/* ============================================================
   真・カカオトーク掲示板 — Design Renewal CSS
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --kakao-yellow: #ffe300;
  --kakao-yellow-deep: #f4d000;
  --kakao-yellow-soft: #fff7c2;
  --cocoa: #2a1c17;
  --cocoa-soft: #5a4a42;
  --cocoa-faint: #9a8d85;

  --bg: #f3efe9;
  --surface: #ffffff;
  --surface-2: #faf7f2;
  --line: #ece6dd;
  --line-strong: #ddd4c8;

  --trust: #15936a;
  --trust-soft: #e3f3ec;
  --alert: #d8503a;
  --female: #e26d96;
  --female-soft: #fbe9f0;
  --male: #4a86c4;
  --male-soft: #e7f0f9;
  --secret: #9a8d85;
  --secret-soft: #efeae3;
  --pr: #c79a2e;
  --pr-soft: #fcf3d9;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --sh-card: 0 1px 2px rgba(42,28,23,.05), 0 4px 14px rgba(42,28,23,.05);
  --sh-pop: 0 8px 30px rgba(42,28,23,.16);
  --sh-key: 0 2px 0 var(--kakao-yellow-deep);

  --font-display: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;

  --app-w: 440px;
  --pad: 16px;

  /* Density: cozy default */
  --card-pad: 16px;
  --card-gap: 12px;
  --line-h: 1.7;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--cocoa);
  background: radial-gradient(120% 60% at 50% -10%, #efe7d8 0%, var(--bg) 55%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--kakao-yellow); color: var(--cocoa); }
a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; }

/* Hide scrollbars on filter chip rows */
.no-sb { scrollbar-width: none; -ms-overflow-style: none; }
.no-sb::-webkit-scrollbar { display: none; }

/* ---------- Layout columns (responsive) ---------- */
.bbs-wrap,
.board-col { max-width: 720px; margin: 0 auto; width: 100%; }
.app-col   { max-width: 640px; margin: 0 auto; width: 100%; min-height: 100vh; background: var(--surface); }
.chat-col  { max-width: 760px; margin: 0 auto; width: 100%; }

@media (min-width: 980px) {
  .bbs-wrap,
  .board-col { max-width: 1040px; }
  .app-col  { box-shadow: 0 0 0 1px var(--line), var(--sh-card); }
  .chat-col { box-shadow: 0 0 0 1px var(--line); }
}

/* Override Bootstrap container */
.container { max-width: 100%; padding: 0; margin: 0; width: 100%; }
.container > .row { margin: 0; }
.col-md-12 { padding: 0; }

/* ---------- App Header ---------- */
.kk-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 3px solid var(--kakao-yellow);
  box-shadow: 0 2px 8px rgba(42,28,23,.10);
}
.kk-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 9px var(--pad);
}
.kk-header-left { display: flex; }
.kk-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.kk-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.kk-header-logo img {
  height: 44px;
  width: auto;
  max-width: 100%;
  display: block;
}
@media (min-width: 600px) {
  .kk-header-logo img { height: 52px; }
}
@media (min-width: 980px) {
  .kk-header-logo img { height: 62px; }
}
.kk-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--cocoa);
  color: var(--kakao-yellow);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.kk-header-btn:hover { color: var(--kakao-yellow); opacity: .88; }

/* ---------- Sub Header (inner pages) ---------- */
.kk-sub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
}
.kk-sub-header-back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--cocoa);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.kk-sub-header-back svg { display: block; }
.kk-sub-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-sub-header-right {
  margin-left: auto;
}

/* ---------- Filter Bar ---------- */
.kk-filter-bar {
  position: sticky;
  top: 65px;
  z-index: 15;
  background: var(--bg);
  padding-top: 10px;
  border-bottom: 2px solid var(--kakao-yellow);
}
@media (min-width: 600px) {
  .kk-filter-bar { top: 73px; }
}
@media (min-width: 980px) {
  .kk-filter-bar { top: 83px; }
}
.kk-filter-bar-top {
  display: flex;
  gap: 8px;
  padding: 0 var(--pad) 10px;
}
.kk-search-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--cocoa-faint);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.kk-filter-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--cocoa);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.kk-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 var(--pad) 11px;
  scrollbar-width: none;
}
.kk-chips::-webkit-scrollbar { display: none; }
.kk-chip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cocoa-faint);
  align-self: center;
  padding-right: 2px;
  white-space: nowrap;
}
.kk-chip-divider {
  width: 1px;
  background: var(--line);
  margin: 3px 4px;
  flex-shrink: 0;
}
.kk-chip {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface);
  color: var(--cocoa-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.kk-chip.active, a.kk-chip.active {
  background: var(--kakao-yellow);
  color: var(--cocoa);
  box-shadow: none;
}

/* ---------- Post Card ---------- */
.kk-posts {
  padding: 14px var(--pad) 0;
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}
.kk-post-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  box-shadow: var(--sh-card);
  border: 2px solid var(--kakao-yellow);
  position: relative;
  overflow: hidden;
}
.kk-post-top {
  display: flex;
  gap: 11px;
}
.kk-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.kk-avatar.female { background: var(--female-soft); color: var(--female); box-shadow: inset 0 0 0 2px #e26d9622; }
.kk-avatar.male   { background: var(--male-soft);   color: var(--male);   box-shadow: inset 0 0 0 2px #4a86c422; }
.kk-avatar.secret { background: var(--secret-soft); color: var(--secret); box-shadow: inset 0 0 0 2px #9a8d8522; }

.kk-post-info { flex: 1; min-width: 0; }
.kk-post-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.kk-post-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--cocoa);
}
.kk-post-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.kk-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.kk-tag.neutral { color: var(--cocoa-soft);  background: var(--surface-2); }
.kk-tag.female  { color: var(--female);       background: var(--female-soft); }
.kk-tag.male    { color: var(--male);         background: var(--male-soft); }
.kk-tag.secret  { color: var(--secret);       background: var(--secret-soft); }
.kk-tag.trust   { color: var(--trust);        background: var(--trust-soft); }
.kk-tag.pr      { color: var(--pr);           background: var(--pr-soft); }
.kk-tag.solid.trust { color: #fff; background: var(--trust); }
.kk-tag.solid.female { color: #fff; background: var(--female); }

.kk-post-body {
  margin: 12px 2px 0;
  font-size: 14.5px;
  line-height: var(--line-h);
  color: var(--cocoa);
  word-break: break-word;
}

/* ID Row */
.kk-id-row-verified {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--trust-soft);
  box-shadow: inset 0 0 0 1px #15936a22;
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
}
.kk-id-row-unverified {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.kk-id-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.kk-id-icon.yellow { background: var(--kakao-yellow); color: var(--cocoa); }
.kk-id-icon.grey   { background: var(--line); color: var(--cocoa-faint); }
.kk-id-text-main { display: block; font-size: 12.5px; font-weight: 700; color: var(--trust); }
.kk-id-text-sub  { display: block; font-size: 11px; color: var(--cocoa-faint); }
.kk-id-unverified-text {
  flex: 1;
  font-size: 11.5px;
  color: var(--cocoa-faint);
  line-height: 1.4;
}
.kk-id-unverified-text a {
  color: var(--cocoa-soft);
  font-weight: 700;
  text-decoration: underline;
}

/* Post footer */
.kk-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--kakao-yellow-deep);
}
.kk-post-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--cocoa-faint);
  font-weight: 500;
}
.kk-post-report {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--cocoa-faint);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.kk-post-report:hover { color: var(--alert); }

/* ---------- Post Card sub-components (pref/detail/search/age pages) ---------- */
.kk-post-card-top {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.kk-post-card-meta {
  flex: 1;
  min-width: 0;
}
.kk-post-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--cocoa);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.kk-post-card-sub {
  font-size: 12px;
  color: var(--cocoa-faint);
  margin-top: 4px;
}
.kk-post-card-body {
  margin: 12px 2px 0;
  font-size: 14.5px;
  line-height: var(--line-h);
  color: var(--cocoa);
  word-break: break-word;
}
.kk-post-card-footer {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--kakao-yellow-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kk-post-card-time {
  font-size: 11.5px;
  color: var(--cocoa-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.kk-post-card--pin { border-color: var(--kakao-yellow-deep); background: #fffde7; }

/* Filter chips (pref page inline filter bar) */
.kk-filter-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--cocoa-soft);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 6px;
}
.kk-filter-chip.active {
  background: var(--kakao-yellow);
  color: var(--cocoa);
  box-shadow: none;
}

/* Copy button */
.kk-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--trust);
  background: #fff;
  box-shadow: inset 0 0 0 1px #15936a33;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

/* ---------- FAB ---------- */
.kk-fab {
  position: fixed;
  bottom: 24px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--cocoa);
  color: var(--kakao-yellow);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--sh-pop);
  text-decoration: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}
.kk-fab:hover { color: var(--kakao-yellow); opacity: .9; }

/* ---------- Top page post button ---------- */
.kk-top-post-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-pill);
  background: var(--kakao-yellow);
  color: var(--cocoa);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--kakao-yellow-deep), 0 4px 12px rgba(42,28,23,.15);
}
.kk-top-post-btn:hover { background: var(--kakao-yellow-deep); color: var(--cocoa); }

/* ---------- Pagination ---------- */
.kk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 4px;
  flex-wrap: wrap;
}
.kk-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
  color: var(--cocoa-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.kk-page-btn.active {
  background: var(--cocoa);
  color: #fff;
  box-shadow: none;
}
.kk-page-ellipsis { color: var(--cocoa-faint); font-size: 13px; }

/* ---------- Pref Footer ---------- */
.kk-pref-footer { padding: 4px 2px 0; }
.kk-pref-footer h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
  margin: 0 0 11px;
}
.kk-pref-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kk-pref-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cocoa-soft);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  display: inline-block;
}
.kk-pref-pill:hover { background: var(--surface-2); }

/* ---------- Site Footer ---------- */
.kk-site-footer {
  text-align: center;
  padding: 24px 0 80px;
  color: var(--cocoa-faint);
  font-size: 11px;
  line-height: 1.9;
}
.kk-site-footer-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-weight: 600;
}
.kk-site-footer-links a {
  text-decoration: none;
  color: var(--cocoa-faint);
}
.kk-site-footer-links a:hover { color: var(--cocoa); }

/* ---------- Notice banner (terms) ---------- */
.kk-notice {
  margin: 16px 0;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--cocoa-soft);
  line-height: 1.7;
}

/* ---------- Form: SubHeader pages ---------- */
.kk-form-page {
  padding: 18px var(--pad) 120px;
}
.kk-form-page-wide {
  padding: 26px var(--pad) 120px;
}
.kk-nenkaku-page {
  padding: 18px var(--pad) 80px;
}
.kk-safety-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--trust-soft);
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--trust);
  font-weight: 600;
  line-height: 1.6;
}
.kk-field {
  display: block;
  margin-bottom: 18px;
}
.kk-field-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.kk-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-required-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--alert);
  background: #fbe9e5;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.kk-field-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--cocoa-faint);
  line-height: 1.6;
}
.kk-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--cocoa);
  outline: none;
  appearance: none;
}
.kk-input:focus { border-color: var(--cocoa); }
.kk-textarea {
  resize: none;
  line-height: 1.7;
}

/* ---------- Password visibility toggle ---------- */
.kk-pass-wrap { position: relative; }
.kk-pass-wrap .kk-input { padding-right: 44px; }
.kk-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--cocoa-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.kk-pass-toggle:hover { color: var(--cocoa-soft); }

.kk-select-wrap { position: relative; }
.kk-select-wrap select.kk-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a4a42' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.kk-segmented {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kk-seg-btn {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--cocoa-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.kk-seg-btn.active {
  background: var(--cocoa);
  color: #fff;
  box-shadow: none;
}
.kk-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--kakao-yellow);
  color: var(--cocoa);
  box-shadow: var(--sh-key);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.kk-primary-btn:hover { color: var(--cocoa); opacity: .95; }
.kk-primary-btn:disabled,
.kk-primary-btn.disabled {
  background: var(--line-strong);
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
button:active { filter: brightness(.97); }

/* ---------- Login page ---------- */
.kk-login-logo {
  text-align: center;
  margin-bottom: 26px;
}
.kk-login-logo-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--kakao-yellow);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  box-shadow: var(--sh-card);
}
.kk-login-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--cocoa);
  margin: 0 0 6px;
}
.kk-login-sub {
  font-size: 13px;
  color: var(--cocoa-faint);
  margin: 0;
}
.kk-divider {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cocoa-faint);
  font-size: 12px;
}
.kk-divider::before,
.kk-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.kk-reg-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  text-decoration: none;
  color: inherit;
  border: none;
  cursor: pointer;
}
.kk-reg-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--trust-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--trust);
}
.kk-reg-card-title { display: block; font-size: 14px; font-weight: 700; color: var(--cocoa); }
.kk-reg-card-sub   { display: block; font-size: 11.5px; color: var(--cocoa-faint); }

/* ---------- Upload zone ---------- */
.kk-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.kk-upload-zone.selected {
  border-color: var(--trust);
  background: var(--trust-soft);
}
.kk-upload-zone-icon { color: var(--cocoa-faint); }
.kk-upload-zone.selected .kk-upload-zone-icon { color: var(--trust); }
.kk-upload-zone-label { font-size: 13px; font-weight: 700; color: var(--cocoa-soft); }
.kk-upload-zone.selected .kk-upload-zone-label { color: var(--trust); }
.kk-upload-zone-hint { font-size: 11px; color: var(--cocoa-faint); }

/* Checkbox */
.kk-agree-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 18px;
  cursor: pointer;
}
.kk-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer;
  appearance: none;
  border: none;
}
.kk-checkbox:checked {
  background: var(--trust);
  box-shadow: none;
}
.kk-agree-text { font-size: 12.5px; color: var(--cocoa-soft); line-height: 1.55; }
.kk-agree-text a { color: var(--cocoa); font-weight: 700; }

/* ---------- MyPage ---------- */
.kk-mypage-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--kakao-yellow);
  border-bottom: 1px solid var(--kakao-yellow-deep);
  display: flex;
  align-items: center;
  padding: 12px var(--pad);
}
.kk-mypage-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cocoa);
  flex: 1;
}
.kk-mypage-header-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cocoa);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(42,28,23,.08);
  text-decoration: none;
}
.kk-mypage-body { padding: 16px var(--pad) 110px; }
.kk-profile-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--sh-card);
  border: 1px solid var(--line);
}
.kk-profile-card-top { display: flex; gap: 14px; align-items: center; }
.kk-profile-photo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--kakao-yellow);
  flex-shrink: 0;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.kk-profile-photo-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--kakao-yellow);
  flex-shrink: 0;
}
.kk-profile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--cocoa);
}
.kk-profile-meta {
  font-size: 12.5px;
  color: var(--cocoa-faint);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kk-gender-glyph { font-weight: 700; }
.kk-gender-glyph.female { color: var(--female); }
.kk-gender-glyph.male   { color: var(--male); }
.kk-gender-glyph.secret { color: var(--secret); }

.kk-profile-card-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.kk-mini-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: var(--cocoa);
}
.kk-mini-btn.primary {
  background: var(--kakao-yellow);
  box-shadow: var(--sh-key);
}
.kk-mini-btn.secondary {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Points card */
.kk-points-card {
  margin-top: 14px;
  background: linear-gradient(110deg, var(--cocoa), #3d2a23);
  border-radius: var(--r-xl);
  padding: 18px;
  color: #fff;
  box-shadow: var(--sh-card);
}
.kk-points-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kk-points-label {
  font-size: 12.5px;
  opacity: .75;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kk-points-charge-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--cocoa);
  background: var(--kakao-yellow);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.kk-points-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}
.kk-points-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -.02em;
}
.kk-points-unit { font-size: 15px; opacity: .7; font-weight: 700; }

/* Action tiles */
.kk-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.kk-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.kk-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.kk-tile-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-tile-badge {
  position: absolute;
  top: 11px;
  right: 14px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--alert);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.kk-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border-radius: var(--r-md);
  color: var(--cocoa-faint);
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Profile Detail ---------- */
.kk-hero {
  position: relative;
}
.kk-hero-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.kk-hero-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(150deg, var(--female-soft), var(--female));
  display: grid;
  place-items: center;
}
.kk-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(42,28,23,.6));
}
.kk-hero-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kk-hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  color: #fff;
}
.kk-hero-meta {
  font-size: 13px;
  color: #fff;
  opacity: .92;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kk-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fdc9a;
  display: inline-block;
}

.kk-preview-banner {
  margin: 14px var(--pad) 0;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--kakao-yellow-soft);
  box-shadow: inset 0 0 0 1px var(--kakao-yellow-deep);
  font-size: 12.5px;
  color: var(--cocoa);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kk-section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa-faint);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kk-section-title::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--kakao-yellow-deep);
  display: inline-block;
  flex-shrink: 0;
}
.kk-bio {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--cocoa);
}
.kk-info-table {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}
.kk-info-row {
  display: flex;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
}
.kk-info-row:first-child { border-top: none; }
.kk-info-key {
  width: 108px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--cocoa-faint);
  font-weight: 600;
}
.kk-info-val {
  font-size: 14px;
  color: var(--cocoa);
  font-weight: 600;
  white-space: nowrap;
}

/* Profile bottom bar */
.kk-profile-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  z-index: 30;
}
.kk-like-btn {
  width: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--female-soft);
  color: var(--female);
  box-shadow: inset 0 0 0 1px #e26d9633;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.kk-like-btn.liked { background: var(--female); color: #fff; }

/* ---------- Profile Edit ---------- */
.kk-profile-edit-photo {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.kk-photo-thumb {
  position: relative;
  flex-shrink: 0;
}
.kk-photo-cam {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kakao-yellow);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  border: none;
  cursor: pointer;
  color: var(--cocoa);
}

/* Toggle */
.kk-toggle-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 20px;
  cursor: pointer;
}
.kk-toggle {
  width: 44px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  position: relative;
  flex-shrink: 0;
  transition: background .15s;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}
.kk-toggle:checked { background: var(--trust); }
.kk-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: left .15s;
}
.kk-toggle:checked::after { left: 21px; }
.kk-toggle-label { flex: 1; font-size: 13px; font-weight: 600; color: var(--cocoa); }
.kk-toggle-label small { display: block; font-size: 11px; font-weight: 500; color: var(--cocoa-faint); }

/* ---------- Point Buy ---------- */
.kk-pointbuy-page { padding: 18px var(--pad) 130px; }
.kk-plan-list { display: flex; flex-direction: column; gap: 10px; }
.kk-plan-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.kk-plan-item.selected {
  box-shadow: inset 0 0 0 2px var(--cocoa), var(--sh-card);
}
.kk-plan-radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.kk-plan-item.selected .kk-plan-radio {
  background: var(--cocoa);
  box-shadow: none;
}
.kk-plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--cocoa);
}
.kk-plan-pts {
  font-size: 12.5px;
  color: var(--cocoa-soft);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.kk-plan-bonus { color: var(--trust); font-weight: 700; }
.kk-plan-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.kk-plan-section-label { font-size: 13px; font-weight: 700; color: var(--cocoa); }
.kk-plan-section-sub { font-size: 11px; color: var(--cocoa-faint); font-weight: 600; }
.kk-buy-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  padding: 12px var(--pad);
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 30;
}

/* ---------- Member List ---------- */
.kk-memberlist-page { padding: 16px var(--pad) 80px; }
.kk-member-search-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-card);
  border: 2px solid var(--kakao-yellow);
  margin-bottom: 18px;
}
.kk-member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.kk-member-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
  border: 2px solid var(--kakao-yellow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.kk-member-card-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
  position: relative;
}
.kk-member-card-photo-wrap { position: relative; }
.kk-online-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(21,147,106,.9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}
.kk-member-card-info {
  padding: 10px 12px;
}
.kk-member-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-member-card-meta { font-size: 11.5px; color: var(--cocoa-faint); margin-top: 2px; }
.kk-member-card-like {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--female);
  cursor: pointer;
}
.kk-member-card-like.liked {
  background: var(--female);
  color: #fff;
  border-color: var(--female);
}

/* ---------- Message List ---------- */
.kk-message-list { }
.kk-message-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.kk-message-item:hover { background: var(--surface-2); }
.kk-message-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.kk-message-info { flex: 1; min-width: 0; }
.kk-message-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-content: space-between;
}
.kk-message-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-message-time { font-size: 11px; color: var(--cocoa-faint); white-space: nowrap; }
.kk-message-preview {
  font-size: 12.5px;
  color: var(--cocoa-faint);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Message Detail (Chat) ---------- */
.kk-chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.kk-chat-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  flex-shrink: 0;
}
.kk-chat-partner-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.kk-chat-partner-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--cocoa); }
.kk-chat-partner-status { font-size: 11px; color: var(--cocoa-faint); }
.kk-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px var(--pad);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kk-bubble-row {
  display: flex;
  gap: 8px;
}
.kk-bubble-row.mine {
  flex-direction: row-reverse;
}
.kk-bubble-row > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.kk-bubble-row.mine > div {
  align-items: flex-end;
}
.kk-bubble-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
  align-self: flex-end;
}
.kk-bubble {
  max-width: 100%;
  width: fit-content;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.kk-bubble.theirs {
  background: var(--surface);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--sh-card);
  color: var(--cocoa);
}
.kk-bubble.mine {
  background: var(--kakao-yellow);
  border-radius: 16px 16px 4px 16px;
  color: var(--cocoa);
}
.kk-bubble-time {
  font-size: 10.5px;
  color: var(--cocoa-faint);
  margin-top: 3px;
  align-self: flex-end;
}
.kk-chat-input-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.kk-chat-textarea {
  flex: 1;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--cocoa);
  outline: none;
  resize: none;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
}
.kk-chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--line-strong);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.kk-chat-send-btn.active {
  background: var(--cocoa);
  color: var(--kakao-yellow);
}
.kk-chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cocoa-faint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  transition: color .15s;
}
.kk-chat-attach-btn:hover { color: var(--cocoa-soft); }
.kk-chat-img {
  display: block;
  max-width: 200px;
  max-height: 260px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Link Preview Card ---------- */
.kk-link-preview {
  margin-top: 6px;
  width: 100%;
  max-width: 280px;
}
.kk-link-preview a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}
.kk-lp-img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
}
.kk-lp-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  background: var(--surface-2);
}
.kk-lp-body {
  padding: 8px 10px;
}
.kk-lp-site {
  font-size: 10.5px;
  color: var(--cocoa-faint);
  margin-bottom: 2px;
}
.kk-lp-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cocoa);
  line-height: 1.4;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kk-lp-desc {
  font-size: 11.5px;
  color: var(--cocoa-faint);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Notifications ---------- */
.kk-notif-list { }
.kk-notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.kk-notif-photo-wrap { position: relative; flex-shrink: 0; }
.kk-notif-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.kk-notif-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}
.kk-notif-badge.male   { background: var(--male); color: #fff; }
.kk-notif-badge.female { background: var(--female); color: #fff; }
.kk-notif-badge.cocoa  { background: var(--cocoa-soft); color: #fff; }
.kk-notif-text {
  flex: 1;
  min-width: 0;
}
.kk-notif-msg { font-size: 13.5px; color: var(--cocoa); font-weight: 500; }
.kk-notif-time { font-size: 11px; color: var(--cocoa-faint); margin-top: 2px; }

/* ---------- Like / Match / Footprint lists ---------- */
.kk-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 57px;
  z-index: 15;
}
.kk-tab {
  flex: 1;
  text-align: center;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cocoa-faint);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  display: block;
}
.kk-tab.active { color: var(--cocoa); }
.kk-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--kakao-yellow);
  border-radius: 2px 2px 0 0;
}

.kk-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.kk-member-row-photo {
  position: relative;
  flex-shrink: 0;
}
.kk-member-row-photo img,
.kk-member-row-photo .kk-photo-ph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.kk-member-row-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5fdc9a;
  border: 2px solid var(--surface);
}
.kk-member-row-info { flex: 1; min-width: 0; }
.kk-member-row-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-member-row-meta { font-size: 12px; color: var(--cocoa-faint); margin-top: 2px; }
.kk-member-row-right { flex-shrink: 0; }
.kk-member-row-time { font-size: 11px; color: var(--cocoa-faint); }

/* Matching */
.kk-matching-banner {
  margin: 14px var(--pad) 0;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--female-soft);
  color: var(--female);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.kk-match-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--female);
  padding: 15px;
  margin: 0 var(--pad) 12px;
  box-shadow: var(--sh-card);
}
.kk-match-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.kk-match-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.kk-match-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-match-meta { font-size: 12px; color: var(--cocoa-faint); margin-top: 2px; }
.kk-match-btns { display: flex; gap: 8px; }
.kk-match-profile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--cocoa);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.kk-match-msg-btn {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--female);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* ---------- Empty state ---------- */
.kk-empty {
  text-align: center;
  padding: 40px var(--pad);
  color: var(--cocoa-faint);
  font-size: 14px;
}

/* ---------- Error / Success messages ---------- */
.kk-alert-box {
  margin: 16px var(--pad);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.kk-alert-box.error {
  background: #fbe9e5;
  color: var(--alert);
  border: 1px solid #f0c0b8;
}
.kk-alert-box.success {
  background: var(--trust-soft);
  color: var(--trust);
  border: 1px solid #b0d9ca;
}
.kk-alert-box a { color: inherit; font-weight: 700; }

/* ---------- SVG Icons (inline) ---------- */
.kk-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }


/* ---------- Print of old classes: Bootstrap override for forms ---------- */
.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--cocoa);
  outline: none;
  appearance: none;
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--cocoa);
  box-shadow: none;
}
.btn { cursor: pointer; font-family: var(--font-body); }

/* ---------- Textarea ---------- */
.kk-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}

/* ---------- Point plan rows (bank/paypal list) ---------- */
.kk-point-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.kk-point-plan-row:hover,
.kk-point-plan-row:active {
  border-color: var(--line-strong);
  box-shadow: 0 2px 8px rgba(42,28,23,.1);
}
.kk-point-plan-row.popular {
  border-color: var(--kakao-yellow-deep);
  box-shadow: 0 0 0 1.5px var(--kakao-yellow-deep), var(--sh-card);
}
.kk-point-plan-price {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cocoa);
}
.kk-point-plan-pt {
  font-size: 12.5px;
  color: var(--cocoa-soft);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- jyouken / pref footer (board pages) ---------- */
.kk-jyouken-notice {
  margin: 0 var(--pad) 14px;
  padding: 12px 14px;
  background: var(--trust-soft);
  border-radius: var(--r-md);
  border: 1px solid #b0d9ca;
  font-size: 12.5px;
  color: var(--cocoa);
  line-height: 1.6;
}
.kk-jyouken-notice a { color: var(--trust); font-weight: 700; }
.kk-jyouken-pref {
  padding: 12px var(--pad) 20px;
}
.kk-jyouken-pref h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa-faint);
  margin: 0 0 10px;
}
.kk-jyouken-pref a {
  display: inline-block;
  font-size: 12.5px;
  color: var(--cocoa-soft);
  text-decoration: none;
  margin: 2px 3px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.kk-jyouken-pref a:hover { color: var(--cocoa); }
