/* KinkyFriends — black · red · white */
:root {
  --kf-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --kf-black: #000000;
  --kf-bg: #000000;
  --kf-surface: #141414;
  --kf-surface-raised: #1c1c1c;
  --kf-white: #ffffff;
  --kf-ink: #ffffff;
  --kf-muted: rgba(255, 255, 255, 0.62);
  --kf-border: rgba(255, 255, 255, 0.12);
  --kf-accent: #dc143c;
  --kf-accent-hover: #b01030;
  --kf-accent-soft: rgba(220, 20, 60, 0.18);
  --kf-accent-ring: rgba(220, 20, 60, 0.35);
  --kf-dark: #000000;
  --kf-header: 56px;
  --kf-dock: 64px;
  --kf-radius: 14px;
  --kf-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --kf-safe-t: env(safe-area-inset-top, 0px);
  --kf-safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.kf {
  margin: 0;
  font-family: var(--kf-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--kf-ink);
  background: var(--kf-bg);
  -webkit-font-smoothing: antialiased;
}
body.kf.kf--dock { padding-bottom: calc(var(--kf-dock) + var(--kf-safe-b)); }
img { max-width: 100%; display: block; }
a { color: var(--kf-accent); text-decoration: none; }
a:hover { color: #ff4d6d; }

.kf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--kf-header) + var(--kf-safe-t));
  padding-top: var(--kf-safe-t);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kf-border);
}
.kf-header__inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1200px; margin: 0 auto; height: var(--kf-header); padding: 0 16px;
}
.kf-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--kf-white); flex-shrink: 0; }
.kf-logo img { border-radius: 10px; }
.kf-header-nav,
.kf-header-aside { display: none; }
.kf-header__title {
  flex: 1; margin: 0; font-size: 0.95rem; font-weight: 600; text-align: center;
  color: var(--kf-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.kf-icon-btn--menu { margin-left: auto; flex-shrink: 0; }

@media (min-width: 900px) {
  :root { --kf-header: 60px; }
  .kf-icon-btn--menu { display: none; }
  .kf-header__title { display: none; }
  .kf-header-nav {
    display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
    min-width: 0; margin: 0 16px;
  }
  .kf-header-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600; color: var(--kf-muted);
    text-decoration: none; white-space: nowrap;
    transition: color 0.15s, background 0.15s;
  }
  .kf-header-nav__link i { font-size: 0.9rem; }
  .kf-header-nav__link:hover { color: var(--kf-white); background: var(--kf-surface-raised); }
  .kf-header-nav__link.is-active { color: var(--kf-accent); background: var(--kf-accent-soft); }
  .kf-header-nav__link.is-active i { color: var(--kf-accent); }
  .kf-header-nav__link--sub {
    padding: 8px 10px; font-size: 0.85rem;
  }
  .kf-header-nav__link--logout {
    color: var(--kf-muted); font-weight: 500;
  }
  .kf-header-nav__link--logout:hover { color: var(--kf-white); }
  .kf-header-nav__badge { margin-left: 2px; }
  .kf-header-aside {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  }
  .kf-header-nav__user {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 4px 0;
    text-decoration: none; color: var(--kf-white);
    transition: color 0.15s;
    max-width: 180px;
  }
  .kf-header-nav__user:hover { color: var(--kf-accent); }
  .kf-header-nav__user.is-active { color: var(--kf-accent); }
  .kf-header-nav__user img {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
  }
  .kf-header-nav__username {
    font-size: 0.88rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .kf-dock { display: none !important; }
  body.kf.kf--dock { padding-bottom: 0; }
  body.kf--dock .kf-footer { margin-bottom: 0; }
}
.kf-icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--kf-border); border-radius: 10px;
  background: var(--kf-surface); cursor: pointer; color: var(--kf-white);
}
.kf-icon-btn:hover { border-color: var(--kf-accent); color: var(--kf-accent); }
.kf-main {
  max-width: 1100px; margin: 0 auto;
  padding: calc(var(--kf-header) + var(--kf-safe-t) + 16px) 16px 24px;
}
body.kf--landing .kf-main { padding: 0; max-width: none; }

.kf-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); z-index: 200;
}
.kf-menu-backdrop[hidden], .kf-menu[hidden] { display: none !important; }
.kf-menu {
  position: fixed; top: 0; right: 0; width: min(300px, 88vw); height: 100dvh;
  background: var(--kf-surface); z-index: 201; padding: 24px 20px;
  border-left: 1px solid var(--kf-border);
  display: flex; flex-direction: column; gap: 4px;
}
.kf-menu__close {
  align-self: flex-end; border: none; background: none; font-size: 1.5rem;
  cursor: pointer; color: var(--kf-white);
}
.kf-menu__link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; color: var(--kf-white); font-weight: 500;
}
.kf-menu__link:hover { background: var(--kf-accent-soft); color: var(--kf-white); }
.kf-menu__link i { color: var(--kf-accent); }
.kf-menu__link--muted { color: var(--kf-muted); margin-top: auto; }

.kf-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--kf-dock) + var(--kf-safe-b));
  padding-bottom: var(--kf-safe-b);
  background: var(--kf-black); border-top: 1px solid var(--kf-border);
  display: flex; justify-content: space-around; align-items: center;
}
.kf-dock__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; font-size: 0.65rem; font-weight: 600; color: var(--kf-muted);
}
.kf-dock__item i { font-size: 1.15rem; }
.kf-dock__item.is-active { color: var(--kf-accent); }
.kf-dock__item.is-active i { color: var(--kf-accent); }

.kf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 12px;
  background: var(--kf-accent); color: var(--kf-white); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.kf-btn:hover { background: var(--kf-accent-hover); color: var(--kf-white); }
.kf-btn--ghost {
  background: transparent; color: var(--kf-accent); border: 1.5px solid var(--kf-accent);
}
.kf-btn--ghost:hover { background: var(--kf-accent-soft); color: var(--kf-white); }
.kf-btn--ghost-light {
  background: transparent; color: var(--kf-white); border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.kf-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08); border-color: var(--kf-white); color: var(--kf-white);
}
.kf-btn--block { width: 100%; }
.kf-btn--sm { padding: 8px 14px; font-size: 0.85rem; }

.kf-alert { padding: 12px 16px; border-radius: var(--kf-radius); margin-bottom: 16px; font-size: 0.9rem; }
.kf-alert--ok {
  background: rgba(255, 255, 255, 0.08); color: var(--kf-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.kf-alert--err {
  background: var(--kf-accent-soft); color: #ffb3c1;
  border: 1px solid var(--kf-accent);
}
.kf-alert--info {
  background: rgba(255, 255, 255, 0.06); color: var(--kf-muted);
  border: 1px solid var(--kf-border);
}

.kf-card {
  background: var(--kf-surface); border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius); padding: 20px; box-shadow: var(--kf-shadow);
  color: var(--kf-white);
}
.kf-field { margin-bottom: 16px; }
.kf-field label {
  display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600;
  color: var(--kf-muted);
}
.kf-field input, .kf-field select, .kf-field textarea,
.kf-filters input, .kf-filters select, .kf-chat-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--kf-border);
  border-radius: 10px; font: inherit; background: var(--kf-surface-raised);
  color: var(--kf-white);
}
.kf-filters input[type="search"],
.kf-filters input[type="number"] { width: auto; }
.kf-field input::placeholder, .kf-chat-form input::placeholder { color: var(--kf-muted); }
.kf-field input:focus, .kf-field select:focus, .kf-field textarea:focus,
.kf-filters select:focus, .kf-chat-form input:focus {
  outline: none; border-color: var(--kf-accent); box-shadow: 0 0 0 3px var(--kf-accent-soft);
}
.kf-field select option { background: var(--kf-surface); color: var(--kf-white); }

/* Maintenance */
.kf-maintenance {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px calc(32px + var(--kf-safe-b));
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(220, 20, 60, 0.2) 0%, transparent 55%),
    var(--kf-black);
}
.kf-maintenance__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--kf-white);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 28px;
}
.kf-maintenance__logo img { border-radius: 14px; }
.kf-maintenance__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
}
.kf-maintenance__text {
  max-width: 420px;
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--kf-muted);
}
.kf-maintenance__hint {
  margin: 0 0 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}
body.kf--maintenance .kf-main { padding: 0; max-width: none; }

/* Landing */
.kf-hero {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--kf-black); color: var(--kf-white); position: relative; overflow: hidden;
}
.kf-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(220, 20, 60, 0.22) 0%, transparent 55%),
    var(--kf-black);
}
.kf-hero__nav {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: calc(16px + var(--kf-safe-t)) 20px 0; max-width: 1100px; margin: 0 auto; width: 100%;
}
.kf-hero__nav .kf-logo { color: var(--kf-white); }
.kf-hero__nav .kf-logo span { color: var(--kf-white); }
.kf-hero__links { display: flex; gap: 20px; font-size: 0.9rem; }
.kf-hero__links a { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.kf-hero__links a:hover { color: var(--kf-accent); }
.kf-hero__body {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
}
.kf-hero__logo { max-width: 200px; margin-bottom: 20px; }
.kf-hero h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; color: var(--kf-white); }
.kf-hero p { margin: 0 0 28px; max-width: 420px; color: var(--kf-muted); line-height: 1.65; }
.kf-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.kf-hero__foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  justify-content: center; padding: 20px; font-size: 0.8rem;
}
.kf-hero__foot a { color: var(--kf-muted); text-decoration: none; }
.kf-hero__foot a:hover { color: var(--kf-accent); }
.kf-hero__foot-age {
  padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700;
  border: 1px solid var(--kf-accent-ring); color: var(--kf-accent);
}

/* Discover grid */
.kf-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .kf-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .kf-grid { grid-template-columns: repeat(4, 1fr); } }

.kf-member {
  position: relative; border-radius: var(--kf-radius); overflow: hidden;
  aspect-ratio: 3/4; background: var(--kf-surface);
  border: 1px solid var(--kf-border);
}
.kf-member:hover { border-color: var(--kf-accent); }
.kf-member--new { border-color: var(--kf-accent-ring); box-shadow: 0 0 0 1px var(--kf-accent-soft); }
.kf-member__badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
}
.kf-member img { width: 100%; height: 100%; object-fit: cover; }
.kf-member__info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); color: var(--kf-white);
}
.kf-member__name { font-weight: 700; font-size: 0.95rem; }
.kf-member__meta { font-size: 0.75rem; opacity: 0.85; }

/* Profile */
.kf-profile-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 8px 0 24px;
}
.kf-profile-hero__photo {
  display: block; margin: 0 auto 16px; padding: 0; border: none; background: none;
  cursor: zoom-in; border-radius: 50%;
}
.kf-profile-hero__photo img,
.kf-profile-hero > img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--kf-accent); box-shadow: 0 0 24px var(--kf-accent-soft);
}
.kf-profile-gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 480px) {
  .kf-profile-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .kf-profile-gallery { grid-template-columns: repeat(6, 1fr); }
}
.kf-profile-gallery__btn {
  padding: 0; border: none; background: none; cursor: zoom-in;
  border-radius: 10px; overflow: hidden;
}
.kf-profile-gallery__btn:hover .kf-thumb { opacity: 0.9; }
.kf-tag--link {
  text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kf-tag--link:hover {
  background: var(--kf-accent-soft); border-color: var(--kf-accent); color: var(--kf-white);
}
.kf-discover-tag {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; padding: 14px 16px;
  background: var(--kf-surface); border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
}
.kf-discover-tag p { margin: 0; color: var(--kf-muted); font-size: 0.9rem; }
.kf-discover-tag strong { color: var(--kf-white); }
.kf-lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.kf-lightbox[hidden] { display: none !important; }
.kf-lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.92);
}
.kf-lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--kf-white);
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.kf-lightbox__close:hover { background: var(--kf-accent); }
.kf-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--kf-white);
  font-size: 1.1rem; cursor: pointer;
}
.kf-lightbox__nav:hover { background: var(--kf-accent); }
.kf-lightbox__prev { left: 12px; }
.kf-lightbox__next { right: 12px; }
.kf-lightbox__figure {
  position: relative; z-index: 2; margin: 0; max-width: min(96vw, 1100px);
  max-height: 90vh; display: flex; flex-direction: column; align-items: center;
}
.kf-lightbox__img {
  max-width: 100%; max-height: calc(90vh - 40px); width: auto; height: auto;
  object-fit: contain; border-radius: 8px;
}
.kf-lightbox__count {
  margin-top: 10px; font-size: 0.85rem; color: var(--kf-muted);
}
.kf-profile-hero h1 { margin: 16px 0 4px; font-size: 1.5rem; color: var(--kf-white); }
.kf-profile-meta {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center;
}
.kf-profile-meta li {
  font-size: 0.88rem; color: var(--kf-muted);
}
.kf-profile-meta__label {
  font-weight: 600; color: var(--kf-white); margin-right: 4px;
}
.kf-profile-incomplete { text-align: center; border-color: var(--kf-border); }
.kf-profile-complete-gate { text-align: center; margin-top: 16px; }
.kf-profile-incomplete__text {
  margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--kf-muted); font-style: italic;
}
.kf-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.kf-section { margin-bottom: 20px; }
.kf-section h2 {
  font-size: 1rem; margin: 0 0 10px; color: var(--kf-accent);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

/* Messages */
.kf-chat-list { list-style: none; margin: 0; padding: 0; }
.kf-chat-list { list-style: none; margin: 0; padding: 0; }
.kf-chat-item {
  display: flex; gap: 14px; align-items: center; padding: 14px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--kf-border); color: var(--kf-white);
  text-decoration: none;
  transition: background 0.15s;
}
.kf-chat-item:hover { background: var(--kf-surface-raised); }
.kf-chat-item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--kf-border); flex-shrink: 0; }
.kf-chat-item__body { flex: 1; min-width: 0; }
.kf-chat-item__row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.kf-chat-item__name { font-weight: 600; color: var(--kf-white); }
.kf-chat-item__preview {
  font-size: 0.85rem; color: var(--kf-muted); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kf-chat-item__time {
  font-size: 0.75rem; color: var(--kf-muted); flex-shrink: 0; align-self: flex-start;
  margin-top: 4px;
}
.kf-unread-badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50%;
  background: var(--kf-accent); color: var(--kf-white);
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kf-unread-badge[hidden] { display: none !important; }
.kf-chat-item__badge { margin-left: 4px; }
.kf-chat-item--unread {
  background: rgba(220, 20, 60, 0.08);
}
.kf-chat-item--unread img { border-color: var(--kf-accent-ring); }
.kf-chat-item--unread .kf-chat-item__name { color: var(--kf-white); font-weight: 700; }
.kf-chat-item--unread .kf-chat-item__preview { color: var(--kf-white); font-weight: 500; }
.kf-chat-item--unread .kf-chat-item__time { color: var(--kf-accent); font-weight: 600; }

.kf-chat-window {
  display: flex; flex-direction: column; min-height: 50vh;
  background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius);
}
.kf-chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kf-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; }
.kf-bubble--mine {
  align-self: flex-end; background: var(--kf-accent); color: var(--kf-white);
  border-bottom-right-radius: 4px;
}
.kf-bubble--theirs {
  align-self: flex-start; background: var(--kf-surface-raised); color: var(--kf-white);
  border: 1px solid var(--kf-border); border-bottom-left-radius: 4px;
}
.kf-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--kf-border); align-items: center; }
.kf-chat-form input[type="text"] { flex: 1; min-width: 0; }
.kf-chat-photo-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--kf-border); color: var(--kf-muted); cursor: pointer;
}
.kf-chat-photo-btn:hover { color: var(--kf-accent); border-color: var(--kf-accent-ring); }
.kf-chat-img { max-width: 220px; border-radius: 10px; display: block; margin-bottom: 6px; }
.kf-fetish-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--kf-border);
}
.kf-fetish-row__name { flex: 1; font-size: 0.9rem; }
.kf-fetish-row select {
  min-width: 140px; padding: 8px; border-radius: 8px;
  border: 1px solid var(--kf-border); background: var(--kf-surface-raised); color: var(--kf-white);
}
.kf-stat-list { list-style: none; margin: 0; padding: 0; }
.kf-stat-list li {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--kf-border); font-size: 0.9rem;
}
.kf-stat-list li span { color: var(--kf-muted); }

/* Account dashboard */
.kf-account__intro {
  margin: 0 0 24px; color: var(--kf-muted); font-size: 0.95rem; line-height: 1.6; max-width: 640px;
}
.kf-account__grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .kf-account__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .kf-account__grid { grid-template-columns: repeat(3, 1fr); }
}
.kf-account-card {
  background: var(--kf-surface); border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius); padding: 20px;
}
.kf-account-card--wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .kf-account-card--wide.kf-account-card--span-2 { grid-column: span 2; }
}
.kf-account-card__title {
  margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--kf-white);
}
.kf-account-card__sub { margin: 0; font-size: 0.85rem; color: var(--kf-muted); line-height: 1.5; }
.kf-account-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px;
}
.kf-account-card__hint { font-size: 0.8rem; color: var(--kf-muted); }
.kf-account-card__split {
  display: grid; gap: 24px;
}
@media (min-width: 640px) {
  .kf-account-card__split { grid-template-columns: 1fr 1fr; }
}
.kf-account-user {
  display: flex; gap: 16px; margin-bottom: 16px;
}
.kf-account-user__photo {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
}
.kf-account-user__photo img { width: 100%; height: 100%; object-fit: cover; }
.kf-account-user__name { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; color: var(--kf-white); }
.kf-account-user__meta { margin: 0 0 2px; font-size: 0.85rem; color: var(--kf-muted); }
.kf-account-meta {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; gap: 8px; font-size: 0.85rem;
}
.kf-account-meta li { display: flex; justify-content: space-between; gap: 12px; }
.kf-account-meta span { color: var(--kf-muted); }
.kf-account-meta strong { color: var(--kf-white); font-weight: 600; }
.kf-account-progress {
  height: 6px; border-radius: 3px; background: var(--kf-surface-raised); overflow: hidden;
}
.kf-account-progress span {
  display: block; height: 100%; background: var(--kf-accent); border-radius: 3px;
  transition: width 0.3s;
}
.kf-account-stat {
  margin: 0; font-size: 2rem; font-weight: 700; color: var(--kf-accent); line-height: 1.2;
}
.kf-account-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--kf-accent);
}
.kf-account-link:hover { color: #ff4d6d; }
.kf-account-link .kf-unread-badge {
  min-width: 18px; height: 18px; font-size: 0.65rem;
}
.kf-account-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.kf-account-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--kf-white); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: background 0.15s;
}
.kf-account-links a:hover { background: var(--kf-accent-soft); color: var(--kf-white); }
.kf-account-links i { width: 18px; color: var(--kf-accent); text-align: center; }
.kf-account-form__row {
  display: grid; gap: 14px; margin-bottom: 16px;
}
@media (min-width: 640px) {
  .kf-account-form__row { grid-template-columns: repeat(3, 1fr); }
}
.kf-account__logout {
  margin: 28px 0 0; text-align: center; font-size: 0.9rem;
}
.kf-account__logout a { color: var(--kf-muted); text-decoration: none; }
.kf-account__logout a:hover { color: var(--kf-accent); }

/* Photos gallery */
.kf-photos__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; font-size: 0.9rem; font-weight: 500;
  color: var(--kf-muted); text-decoration: none;
}
.kf-photos__back:hover { color: var(--kf-accent); }
.kf-photos__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px; flex-wrap: wrap;
}
.kf-photos__title {
  margin: 0; font-size: 1.75rem; font-weight: 700; color: var(--kf-white);
}
.kf-photos__upload-btn { cursor: pointer; margin: 0; }
.kf-photos__upload-form { display: none; }
.kf-photos__limit { font-size: 0.85rem; color: var(--kf-muted); }
.kf-photos__meta { margin: 0 0 24px; font-size: 0.85rem; color: var(--kf-muted); }
.kf-photos-empty { text-align: center; padding: 40px 24px; }
.kf-photos-empty p { margin: 0 0 8px; color: var(--kf-white); }
.kf-photos-empty__sub { color: var(--kf-muted); font-size: 0.9rem; margin-bottom: 20px !important; }
.kf-photos-empty label.kf-btn { cursor: pointer; }
.kf-photos-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .kf-photos-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.kf-photo-card {
  background: var(--kf-surface); border: 1px solid var(--kf-border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.kf-photo-card__img-wrap {
  position: relative; aspect-ratio: 1; background: var(--kf-surface-raised);
}
.kf-photo-card__img {
  display: block; width: 100%; height: 100%; overflow: hidden;
}
.kf-photo-card__rotate-form {
  position: absolute; top: 6px; right: 6px; margin: 0; z-index: 2;
}
.kf-photo-card__rotate {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: var(--kf-white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: background 0.15s, color 0.15s;
}
.kf-photo-card__rotate:hover {
  background: var(--kf-accent); color: var(--kf-white);
}
.kf-photo-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.2s;
}
.kf-photo-card__img:hover img { transform: scale(1.03); }
.kf-photo-card__body { padding: 10px 10px 12px; flex: 1; display: flex; flex-direction: column; }
.kf-photo-card__title {
  margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--kf-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kf-photo-card__meta {
  margin: 0 0 8px; font-size: 0.7rem; color: var(--kf-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kf-photo-card__tag { color: var(--kf-accent); font-weight: 600; }
.kf-photo-card__actions {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: auto;
}
.kf-photo-card__form { margin: 0; display: inline; }
.kf-photo-card__link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 0.72rem; font-weight: 600; color: var(--kf-muted);
  font-family: inherit; text-decoration: none;
}
.kf-photo-card__link:hover { color: var(--kf-white); }
.kf-photo-card__link--danger { color: var(--kf-accent); }
.kf-photo-card__link--danger:hover { color: #ff4d6d; }
.kf-photo-card__link--muted { cursor: default; color: var(--kf-accent); }

.kf-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 16px; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--kf-border);
}
.kf-pagination__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  color: var(--kf-white); background: var(--kf-surface-raised);
  border: 1px solid var(--kf-border); text-decoration: none;
}
.kf-pagination__btn:hover:not(.kf-pagination__btn--disabled) {
  border-color: var(--kf-accent); color: var(--kf-accent);
}
.kf-pagination__btn--disabled {
  opacity: 0.4; cursor: default; color: var(--kf-muted);
}
.kf-pagination__pages {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.kf-pagination__page {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  color: var(--kf-muted); border: 1px solid var(--kf-border);
  text-decoration: none; background: var(--kf-surface);
}
.kf-pagination__page:hover { color: var(--kf-white); border-color: var(--kf-accent); }
.kf-pagination__page.is-active {
  background: var(--kf-accent); border-color: var(--kf-accent); color: var(--kf-white);
}

.kf-profile-edit-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 8px 0 20px; padding-top: 16px;
  border-top: 1px solid var(--kf-border);
}
.kf-auth { max-width: 420px; margin: 0 auto; }
.kf-auth h1 { text-align: center; margin: 0 0 24px; color: var(--kf-white); }
.kf-auth-links { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--kf-muted); }

.kf-signup { max-width: 560px; margin: 0 auto; }
.kf-signup__head h1 { margin: 0 0 12px; font-size: 1.5rem; color: var(--kf-white); }
.kf-signup__lead { margin: 0 0 24px; font-size: 0.92rem; line-height: 1.55; color: var(--kf-muted); }
.kf-signup__lead strong { color: var(--kf-white); font-weight: 600; }
.kf-signup__row { display: grid; gap: 12px; }
.kf-field--private {
  margin-bottom: 20px; padding: 14px; border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius); background: rgba(255, 255, 255, 0.03);
}
.kf-field--private legend {
  padding: 0 6px; font-size: 0.8rem; font-weight: 600; color: var(--kf-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (min-width: 520px) {
  .kf-signup__row { grid-template-columns: 1fr 1fr; }
}
.kf-signup__dob { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.kf-signup__dob select { width: 100%; }
.kf-field__hint { display: block; margin-top: 4px; margin-bottom: 8px; font-size: 0.78rem; line-height: 1.45; color: var(--kf-muted); }
.kf-word-count { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--kf-muted); }
.kf-word-count.is-ok { color: rgba(255, 255, 255, 0.75); }
.kf-word-count.is-low { color: #ffb3c1; }
.kf-signup__agree { margin: 8px 0 16px; }
.kf-signup__checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; color: var(--kf-muted); cursor: pointer; }
.kf-signup__checkbox input { margin-top: 4px; flex-shrink: 0; accent-color: var(--kf-accent); }
.kf-signup__checkbox a { color: var(--kf-accent); }
.kf-signup__agreement {
  margin-bottom: 20px; border: 1px solid var(--kf-border); border-radius: var(--kf-radius);
  background: var(--kf-surface);
}
.kf-signup__agreement summary {
  padding: 12px 14px; font-weight: 600; font-size: 0.9rem; color: var(--kf-white); cursor: pointer;
}
.kf-signup__agreement-body {
  max-height: 220px; overflow-y: auto; padding: 0 14px 14px;
  font-size: 0.8rem; line-height: 1.5; color: var(--kf-muted);
}
.kf-signup__agreement-body h3 { margin: 14px 0 6px; font-size: 0.82rem; color: var(--kf-white); }
.kf-signup__agreement-body p { margin: 0 0 10px; }
.kf-signup__submit { margin-top: 4px; }

.kf-password-field { position: relative; display: flex; align-items: stretch; }
.kf-password-field input {
  width: 100%; padding-right: 44px;
}
.kf-password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 0; border: none; border-radius: 8px;
  background: transparent; color: var(--kf-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.kf-password-toggle:hover { color: var(--kf-white); background: rgba(255, 255, 255, 0.06); }
.kf-password-toggle:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; }

.kf-account-verify { margin-bottom: 24px; border-color: var(--kf-accent-ring); }
.kf-account-verify__title { margin: 0 0 8px; font-size: 1.1rem; color: var(--kf-white); }
.kf-account-verify__text { margin: 0 0 16px; font-size: 0.9rem; color: var(--kf-muted); line-height: 1.5; }
.kf-account-verify__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.kf-account-verify__form .kf-field { flex: 1; min-width: 140px; margin: 0; }

.kf-page-title { margin: 0 0 20px; font-size: 1.35rem; font-weight: 700; color: var(--kf-white); }
.kf-empty { text-align: center; padding: 48px 20px; color: var(--kf-muted); }
.kf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }

.kf-prose h2 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--kf-white); }
.kf-prose p { color: var(--kf-muted); line-height: 1.7; }

.kf-muted-line { color: var(--kf-muted); margin: 0; }
.kf-pre { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.kf-thumb { aspect-ratio: 1; border-radius: 10px; object-fit: cover; width: 100%; border: 1px solid var(--kf-border); }

.kf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--kf-surface-raised); border: 1px solid var(--kf-border);
  font-size: 0.8rem; color: var(--kf-white);
}
.kf-tag--fetish { border-color: var(--kf-accent-ring); }
.kf-fetish-cat { margin: 12px 0 6px; font-size: 0.75rem; text-transform: uppercase; color: var(--kf-accent); font-weight: 600; }

.kf-tags--pick { gap: 10px; }
.kf-tag-pick { cursor: pointer; }
.kf-tag-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kf-tag-pick span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--kf-border); background: var(--kf-surface-raised);
  font-size: 0.85rem; color: var(--kf-muted); transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.kf-tag-pick input:checked + span {
  border-color: var(--kf-accent); background: var(--kf-accent-soft); color: var(--kf-white);
}

.kf-dock__item { position: relative; }
.kf-dock__badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  min-width: 18px; height: 18px; font-size: 0.65rem;
}

@media (max-width: 899px) {
  .kf-footer { display: none !important; }
}

.kf-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, transparent 0%, var(--kf-surface) 100%);
  border-top: 1px solid var(--kf-border);
}
.kf-footer__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 32px 20px 20px;
}
.kf-footer__top {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .kf-footer__top {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 40px;
    align-items: start;
  }
}
.kf-footer__brand { max-width: 280px; }
.kf-footer__logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--kf-white); font-weight: 700; font-size: 1.1rem;
}
.kf-footer__logo img { border-radius: 8px; }
.kf-footer__logo:hover { color: var(--kf-accent); }
.kf-footer__tagline {
  margin: 12px 0 0; font-size: 0.85rem; line-height: 1.5;
  color: var(--kf-muted);
}
.kf-footer__grid {
  display: grid; gap: 24px 32px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 540px) {
  .kf-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.kf-footer__heading {
  margin: 0 0 10px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kf-accent);
}
.kf-footer__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.kf-footer__links a {
  font-size: 0.88rem; color: var(--kf-muted); text-decoration: none;
  transition: color 0.15s;
}
.kf-footer__links a:hover { color: var(--kf-white); }
.kf-footer__meta {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--kf-border);
}
.kf-footer__contact,
.kf-footer__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--kf-muted);
}
.kf-footer__contact { text-decoration: none; }
.kf-footer__contact:hover { color: var(--kf-accent); }
.kf-footer__phone i,
.kf-footer__contact i { color: var(--kf-accent); font-size: 0.9rem; }
.kf-footer__bottom {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--kf-border);
  text-align: center;
}
@media (min-width: 720px) {
  .kf-footer__bottom { text-align: left; }
}
.kf-footer__copy {
  margin: 0 0 8px; font-size: 0.8rem; color: var(--kf-muted);
}
.kf-footer__notice {
  margin: 0; font-size: 0.75rem; line-height: 1.5;
  color: rgba(255,255,255,0.45);
}
.kf-footer__notice i { color: var(--kf-accent); margin-right: 4px; }
.kf-footer__notice a { color: var(--kf-muted); }
.kf-footer__notice a:hover { color: var(--kf-accent); }

.kf-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kf-modal[hidden] { display: none !important; }
.kf-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.kf-modal__panel { position: relative; width: min(420px, 100%); max-height: 90dvh; overflow-y: auto; }
.kf-modal__panel h2 { margin: 0 0 16px; }
