*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --purple: #6A4BCF;
    --purple-dark: #543CA5;
    --purple-light: #EEE9FF;
    --black: #08070A;
    --black-60: rgba(8,7,10,0.6);
    --black-15: rgba(8,7,10,0.15);
    --white: #fff;
    --bg: #f6f5f7;
    --green: #22c55e;
    --red: #ef4444;
    --red-light: #fca5a5;
    --radius-sm: 24px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

html { font-size: 34px; height: 100%; }
body {
    font-family: Inter, -apple-system, sans-serif;
    color: var(--black);
    background: url('images/swiping_bg.jpg') center center / cover no-repeat fixed;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    zoom: 0.67;
}

/* ── TOP NAV ── */
nav.top-nav {
    height: 80px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--black-15);
    flex-shrink: 0;
    z-index: 100;
}
.nav-logo { flex: 1; display: flex; align-items: center; }
.nav-logo a { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 100px; align-items: center; justify-content: center; padding: 0 48px; }
.nav-links a {
    font-size: 20px; font-weight: 600;
    color: var(--black); text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--purple-dark);
    box-shadow: 0 3px 0 var(--purple-dark);
    transition: transform .15s, box-shadow .15s;
    min-width: 230px; text-align: center;
}
.nav-links a:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--purple-dark); }
@keyframes navLinkIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-links a { opacity: 0; transform: translateY(-16px); }
body.nav-ready .nav-links a { animation: navLinkIn 0.4s ease both; }
body.nav-ready .nav-links a:nth-child(1) { animation-delay: 0.05s; }
body.nav-ready .nav-links a:nth-child(2) { animation-delay: 0.18s; }
body.nav-ready .nav-links a:nth-child(3) { animation-delay: 0.31s; }
body.nav-ready .nav-links a:nth-child(4) { animation-delay: 0.44s; }
.nav-actions { flex: 1; display: flex; gap: 24px; align-items: center; justify-content: flex-end; padding-left: 48px; margin-right: 20px; }
#nav-auth-btns { display: flex; gap: 24px; align-items: center; opacity: 0; }
#nav-avatar-wrap { opacity: 0; }
body.user-logged-in .nav-links { gap: 100px; padding: 0 48px; }
body.user-logged-in .nav-links a { min-width: 230px; }
body.user-logged-in .nav-actions { flex: 1; margin-right: 20px; }

body.nav-ready #nav-auth-btns,
body.nav-ready #nav-avatar-wrap,
body.nav-ready .dark-toggle,
body.nav-ready .lang-dropdown { animation: navLinkIn 0.35s ease both; }
.nav-avatar-bubble {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--purple);
    cursor: pointer;
    display: block;
    box-shadow: 0 2px 8px rgba(112,66,248,0.25);
    transition: transform .15s, box-shadow .15s;
}
.nav-avatar-bubble:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(112,66,248,0.35); }

/* ── AVATAR DROPDOWN ── */
.nav-avatar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(112,66,248,0.15);
  border-radius: 17px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.12);
  min-width: 224px;
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.nav-avatar-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: none;
  border: none;
  padding: 13px 17px;
  border-radius: 11px;
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.nav-dd-item svg { width: 21px; height: 21px; }
.nav-dd-item:hover { background: rgba(112,66,248,0.07); }
.nav-dd-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 6px 0; }
.nav-dd-logout { color: #e74c3c; }
.nav-dd-logout:hover { background: rgba(231,76,60,0.07); }

/* ── LANGUAGE DROPDOWN ── */
.lang-dropdown { position: relative; flex-shrink: 0; opacity: 0; }
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--black-15);
    border-radius: var(--radius-sm);
    background: var(--white); cursor: pointer;
    font-size: 20px; font-weight: 700;
    font-family: Inter, sans-serif; color: var(--black);
    box-shadow: 0 3px 0 var(--black-15);
    transition: background .15s, box-shadow .15s;
}
.lang-toggle:hover { background: #f5f5f7; box-shadow: 0 5px 0 var(--black-15); }
.lang-globe { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.7; }
.lang-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; opacity: 0.6; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--white);
    border: 1.5px solid var(--black-15);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(8,7,10,0.13);
    overflow: hidden; display: none; min-width: 190px; z-index: 300;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 16px 22px;
    background: none; border: none; cursor: pointer;
    font-family: Inter, sans-serif; text-align: left;
    transition: background .15s;
}
.lang-option:hover { background: var(--purple-light); }
.lang-option.active { background: var(--purple-light); }
.lang-opt-code { font-weight: 700; font-size: 20px; color: var(--purple); min-width: 28px; }
.lang-opt-name { font-size: 18px; color: var(--black-60); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: Inter, sans-serif; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none; border: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 26px; font-size: 24px; min-width: 230px; text-align: center; }
.btn-primary { background: var(--purple); color: var(--white); border: 2px solid var(--purple-dark); box-shadow: 0 3px 0 var(--purple-dark); }
.btn-primary:hover { box-shadow: 0 5px 0 var(--purple-dark); }
.btn-secondary { background: var(--white); color: var(--black); border: 2px solid var(--black-15); box-shadow: 0 3px 0 var(--black-15); }
.btn-secondary:hover { box-shadow: 0 5px 0 var(--black-15); }

/* ── PAGE ENTRANCE ANIMATIONS ── */
@keyframes enterDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes enterUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes enterFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

nav.top-nav       { animation: enterDown 0.38s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.04s; }
.app-container    { animation: enterFade 0.42s ease both; animation-delay: 0.18s; }
nav.bottom-nav    { animation: enterUp   0.38s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.28s; }
.action-btns      { animation: enterUp   0.40s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.36s; }

/* ── APP CONTAINER ── */
.app-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── TAB PANES ── */
.tab-pane { display: none; flex: 1; flex-direction: column; overflow: hidden; min-height: 0; }
.tab-pane.active { display: flex; }

/* ── DISCOVER TAB ── */
.discover-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 8px;
    overflow: hidden;
    gap: 12px;
}

.card-stack-wrap {
    position: relative;
    width: 560px;
    flex: 1;
    max-height: 840px;
}

/* ── SWIPE CARDS ── */
.swipe-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1.5px solid var(--black-15);
    box-shadow: 0 8px 40px rgba(8,7,10,0.10);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    transform-origin: center bottom;
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card.is-behind {
    transform: scale(0.96) translateY(10px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
.swipe-card.is-top { z-index: 2; }

.card-img-wrap {
    position: relative;
    height: 57%;
    flex-shrink: 0;
    overflow: hidden;
    user-select: none;
}
.swipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}
.img-indicators {
    position: absolute; top: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 5px; z-index: 5;
}
.img-dot {
    width: 26px; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,0.45);
    transition: background .2s;
}
.img-dot.active { background: var(--white); }

.swipe-label {
    position: absolute; top: 18px;
    font-family: Poppins, sans-serif;
    font-weight: 800; font-size: 24px; letter-spacing: 2px;
    padding: 5px 14px; border-radius: 8px;
    opacity: 0; z-index: 10; pointer-events: none;
}
.like-label { left: 14px; color: var(--green); border: 3px solid var(--green); transform: rotate(-15deg); }
.nope-label { right: 14px; color: var(--red); border: 3px solid var(--red); transform: rotate(15deg); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 16px 10px;
    background: linear-gradient(to top, rgba(8,7,10,0.72) 0%, transparent 100%);
    color: var(--white);
}
.card-name { font-family: Poppins, sans-serif; font-weight: 700; font-size: 74px; line-height: 1.1; }
.card-location { font-size: 24px; opacity: 0.85; margin-top: 2px; display: flex; align-items: center; gap: 5px; }

.card-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--black-15) transparent;
}
.card-body::-webkit-scrollbar { width: 3px; }
.card-body::-webkit-scrollbar-thumb { background: var(--black-15); border-radius: 2px; }

.card-bio { font-size: 24px; color: var(--black-60); line-height: 1.55; }

.card-details { display: flex; flex-direction: column; gap: 5px; }
.detail-row { display: flex; align-items: center; gap: 7px; font-size: 24px; }
.detail-icon { display: flex; align-items: center; flex-shrink: 0; opacity: 0.7; }

.card-prefs { display: flex; flex-wrap: wrap; gap: 5px; }
.pref-tag {
    background: var(--purple-light);
    color: var(--purple-dark);
    font-size: 18px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}

.card-qa { display: flex; flex-direction: column; gap: 7px; }
.qa-box {
    background: #fafafa;
    border: 1px solid var(--black-15);
    border-radius: 12px;
    padding: 9px 11px;
}
.qa-q {
    font-size: 17px; font-weight: 700;
    color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px;
}
.qa-a { font-size: 18px; color: var(--black-60); line-height: 1.4; }

.action-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding: 4px 0 6px;
    flex-shrink: 0;
}
.action-btn {
    width: 62px; height: 62px;
    border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .15s;
    flex-shrink: 0;
}
.action-btn:hover { transform: translateY(-2px); }
.action-btn:active { transform: scale(0.93); }
.btn-pass {
    background: var(--white); color: var(--red);
    border: 2px solid var(--red-light);
    box-shadow: 0 4px 0 var(--red-light);
}
.btn-pass:hover { box-shadow: 0 6px 0 var(--red-light); }
.btn-like {
    background: var(--purple); color: var(--white);
    border: 2px solid var(--purple-dark);
    box-shadow: 0 4px 0 var(--purple-dark);
}
.btn-like:hover { box-shadow: 0 6px 0 var(--purple-dark); }

.empty-state {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px; text-align: center; gap: 10px;
}
.empty-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    padding: 36px 40px;
    background: rgba(160, 160, 170, 0.12);
    border-radius: 20px;
    border-top: 1.5px solid rgba(255,255,255,0.55);
    border-left: 1.5px solid rgba(255,255,255,0.55);
    border-right: 1.5px solid rgba(120,120,135,0.25);
    border-bottom: 1.5px solid rgba(120,120,135,0.25);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    backdrop-filter: blur(12px);
}
.empty-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--purple-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.empty-icon svg { width: 80px; height: 80px; color: var(--purple); }
.empty-state h2 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 40px; }
.empty-state p { color: var(--black-60); font-size: 34px; max-width: 270px; line-height: 1.5; }
.empty-stat { font-size: 13px; color: var(--purple); font-weight: 600; margin-top: 4px; }

.pane-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--black-15);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}
.pane-header h2 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px; }

.match-list { flex: 1; overflow-y: auto; padding: 10px; min-height: 0; }
.match-item {
    display: flex; align-items: center; gap: 16px;
    padding: 15px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
}
.match-item:hover { background: var(--purple-light); }
.match-avatar-wrap { position: relative; flex-shrink: 0; }
.match-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--black); }
.online-dot {
    position: absolute; bottom: 3px; right: 3px;
    width: 14px; height: 14px;
    background: var(--green); border-radius: 50%;
    border: 2px solid var(--white);
}
.match-info { flex: 1; min-width: 0; }
.match-name { font-weight: 600; font-size: 24px; }
.match-sub { font-size: 24px; color: var(--black-60); margin-top: 3px; }
.match-arrow { color: var(--black-60); flex-shrink: 0; }
.match-unread-badge {
  position: absolute;
  top: 4px;
  left: 0;
  background: var(--purple);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  min-width: 34px;
  height: 34px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(106,75,207,0.35);
}

.profile-tab-inner {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.profile-stats-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--black-15);
    box-shadow: 0 8px 40px rgba(8,7,10,0.08);
    padding: 36px 28px;
    text-align: center;
    width: 100%; max-width: 360px;
}
.profile-user-icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--purple);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
}
.profile-user-icon svg { width: 38px; height: 38px; color: var(--white); }
.profile-user-icon img { width: 76px; height: 76px; object-fit: cover; border-radius: 50%; }
.profile-stats-card h2 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 21px; margin-bottom: 4px; }
.profile-stats-card > p { color: var(--black-60); font-size: 13.5px; margin-bottom: 22px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    border: 1.5px solid var(--black-15);
    border-radius: var(--radius-md); padding: 18px;
}
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-value { font-family: Poppins, sans-serif; font-weight: 700; font-size: 21px; }
.stat-value.purple { color: var(--purple); }
.stat-label { font-size: 13px; color: var(--black-60); }

nav.bottom-nav {
    height: 100px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--black-15);
    display: flex;
    flex-shrink: 0;
    z-index: 50;
}
.tab-btn {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    background: none; border: none; cursor: pointer;
    color: var(--black-60);
    font-size: 10px; font-family: Inter, sans-serif; font-weight: 600;
    position: relative;
    transition: color .15s;
}
.tab-btn.active { color: var(--purple); }
.tab-btn svg { width: 40px; height: 40px; transition: transform .15s; }
.tab-btn.active svg { transform: scale(1.1); }
.match-badge {
    position: absolute; top: 5px; right: calc(50% - 20px);
    background: var(--red); color: var(--white);
    font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 20px;
    display: none; align-items: center; justify-content: center;
}

.match-modal {
    position: fixed; inset: 0; z-index: 600;
    display: none; align-items: center; justify-content: center;
}
.match-modal-bg {
    position: absolute; inset: 0;
    background: url('images/match_modal.png') center center / cover no-repeat;
    animation: matchFadeIn .45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes matchFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.match-modal-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(30, 10, 60, 0.38);
}
.match-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 22px;
    padding: 72px 64px; text-align: center; color: var(--white);
    animation: matchPop .45s cubic-bezier(0.34,1.56,0.64,1) forwards;
    width: 520px;
}
@keyframes matchPop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.match-heart { display: none; }
.match-content h1 { font-family: Poppins, sans-serif; font-weight: 800; font-size: 48px; margin: 0; line-height: 1.1; }
.match-profile-img { width: 200px; height: 200px; border-radius: 28px; object-fit: cover; border: 4px solid rgba(255,255,255,0.5); box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.match-profile-name { font-family: Poppins, sans-serif; font-weight: 700; font-size: 34px; }
.match-profile-loc { font-size: 34px; opacity: 0.85; display: flex; align-items: center; justify-content: center; gap: 5px; }
.match-actions { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 10px; }
.btn-white-match {
    background: var(--white); color: var(--purple);
    border: none; border-radius: var(--radius-sm);
    padding: 18px 32px; font-size: 20px; font-weight: 700;
    font-family: Inter, sans-serif; cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.15);
    transition: transform .15s, box-shadow .15s;
}
.btn-white-match:hover { transform: translateY(-1px); box-shadow: 0 6px 0 rgba(0,0,0,0.15); }
.btn-ghost-match {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    color: var(--white); border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    padding: 18px 32px; font-size: 18px; font-weight: 600;
    font-family: Inter, sans-serif; cursor: pointer;
    transition: background .15s;
}
.btn-ghost-match:hover { background: rgba(255,255,255,0.25); }

.profile-view {
    position: fixed; inset: 0; z-index: 400;
    background: var(--bg); overflow-y: auto;
    display: none;
    animation: slideUp .3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.pv-hero { position: relative; height: 50vh; max-height: 460px; overflow: hidden; }
.pv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-hero-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,7,10,0.65) 0%, rgba(8,7,10,0) 55%);
}
.pv-close {
    position: absolute; top: 14px; left: 14px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(8,7,10,0.4); backdrop-filter: blur(8px);
    border: none; color: var(--white); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.pv-close:hover { background: rgba(8,7,10,0.65); }
.pv-close svg { width: 18px; height: 18px; }
.pv-hero-info {
    position: absolute; bottom: 14px; left: 18px; color: var(--white);
}
.pv-hero-info h2 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 24px; }
.pv-hero-info p { font-size: 13px; opacity: 0.85; margin-top: 2px; }

.pv-body { padding: 22px 20px 40px; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.pv-section h3 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.pv-section p { font-size: 13.5px; color: var(--black-60); line-height: 1.6; }
.pv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-photo { aspect-ratio: 1; border-radius: 12px; object-fit: cover; width: 100%; display: block; }

.chat-view {
    position: fixed; inset: 0; z-index: 400;
    display: none; flex-direction: column;
    background: var(--bg);
    animation: slideUp .3s ease-out;
}
.chat-header {
    height: 116px; padding: 0 28px;
    display: flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--black-15);
    flex-shrink: 0; z-index: 10;
}
.chat-back {
    width: 68px; height: 68px; border: none; background: none;
    cursor: pointer; color: var(--black);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .15s;
}
.chat-back:hover { background: var(--black-15); }
.chat-back svg { width: 40px; height: 40px; }
.chat-av-wrap { position: relative; cursor: pointer; }
.chat-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; }
.chat-online { position: absolute; bottom: 2px; right: 2px; width: 20px; height: 20px; background: var(--green); border-radius: 50%; border: 3px solid var(--white); }
.chat-hdr-info { flex: 1; cursor: pointer; }
.chat-hdr-name { font-weight: 600; font-size: 29px; }
.chat-hdr-status { font-size: 22px; color: var(--green); font-weight: 500; }
.chat-info-btn {
    width: 68px; height: 68px; border: none; background: none;
    cursor: pointer; color: var(--black-60);
    display: flex; align-items: center; justify-content: center;
}
.chat-info-btn svg { width: 40px; height: 40px; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 28px;
    display: flex; flex-direction: column; gap: 16px;
}
.message {
    max-width: 72%; padding: 18px 26px;
    border-radius: 36px; font-size: 26px; line-height: 1.45;
}
.message.from-them {
    align-self: flex-start; background: var(--white);
    color: var(--black); border: 1px solid var(--black-15);
    border-bottom-left-radius: 8px;
}
.message.from-me {
    align-self: flex-end; background: var(--purple);
    color: var(--white); border-bottom-right-radius: 8px;
}
.message.msg-in {
    align-self: flex-start; background: var(--white);
    color: var(--black); border: 1px solid var(--black-15);
    border-bottom-left-radius: 8px;
}
.message.msg-out {
    align-self: flex-end; background: var(--purple);
    color: var(--white); border-bottom-right-radius: 8px;
}
.msg-time { font-size: 20px; opacity: 0.55; margin-top: 6px; display: block; }
.chat-input-area {
    padding: 20px 28px; display: flex; gap: 16px; align-items: center;
    background: rgba(255,255,255,0.97); border-top: 1px solid var(--black-15);
    flex-shrink: 0;
}
.chat-input {
    flex: 1; padding: 18px 32px;
    border: 1.5px solid var(--black-15); border-radius: var(--radius-sm);
    font-size: 27px; font-family: Inter, sans-serif;
    background: #f9fafb; color: var(--black); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.chat-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(106,75,207,0.12); }
.chat-send {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--purple); color: var(--white);
    border: 2px solid var(--purple-dark);
    box-shadow: 0 3px 0 var(--purple-dark);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .15s; flex-shrink: 0;
}
.chat-send:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--purple-dark); }
.chat-send svg { width: 34px; height: 34px; }

.profile-creator {
    position: fixed; inset: 0; z-index: 500;
    background: var(--bg);
    display: none; flex-direction: column;
    animation: slideUp .3s ease-out;
}
.profile-creator.open { display: flex; }

.pc-header {
    height: 60px; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--black-15);
    flex-shrink: 0;
}
.pc-back {
    width: 36px; height: 36px; border: none; background: none;
    cursor: pointer; color: var(--black);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .15s;
}
.pc-back:hover { background: var(--black-15); }
.pc-back svg { width: 22px; height: 22px; }
.pc-title { font-family: Poppins, sans-serif; font-weight: 700; font-size: 17px; }
.pc-save {
    padding: 8px 22px;
    background: var(--purple); color: var(--white);
    border: 1.5px solid var(--purple-dark);
    border-radius: var(--radius-sm);
    box-shadow: 0 3px 0 var(--purple-dark);
    font-size: 18px; font-weight: 700; font-family: Inter, sans-serif;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.pc-save:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--purple-dark); }

.pc-scroll-wrap {
    flex: 1; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--black-15) transparent;
}
.pc-scroll-wrap::-webkit-scrollbar { width: 3px; }
.pc-scroll-wrap::-webkit-scrollbar-thumb { background: var(--black-15); border-radius: 2px; }

.pc-content {
    padding: 22px 18px 48px;
    max-width: 520px; margin: 0 auto;
    display: flex; flex-direction: column;
}
.pc-section { margin-bottom: 24px; }
.pc-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.pc-section-header h3 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px; }
.pc-section-hint { font-size: 14px; color: var(--purple); font-weight: 600; }
.pc-divider { height: 1px; background: var(--black-15); margin-bottom: 24px; }

.pc-photo-grid {
    display: flex;
    flex-direction: row;
    gap: 7px;
}
.pc-photo-slot {
    flex: 1;
    aspect-ratio: 3/4;
    position: relative;
    border-radius: 14px; overflow: hidden;
    background: var(--purple-light);
    border: 1.5px dashed rgba(106,75,207,0.4);
    cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.pc-photo-slot:hover { border-color: var(--purple); box-shadow: 0 2px 12px rgba(106,75,207,0.18); }
.pc-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-photo-add {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.pc-photo-add svg { width: 22px; height: 22px; color: var(--purple); opacity: 0.6; }
.pc-photo-add-label { font-size: 13px; font-weight: 600; color: var(--purple); opacity: 0.6; }
.pc-photo-del {
    position: absolute; top: 7px; right: 7px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(8,7,10,0.55); border: none; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: background .15s;
}
.pc-photo-del:hover { background: var(--red); }
.pc-photo-del svg { width: 30px; height: 30px; }
.pc-photo-num {
    position: absolute; bottom: 7px; left: 9px;
    background: rgba(8,7,10,0.45); color: var(--white);
    font-size: 10px; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ── Crop Panel ── */
.crop-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
}
.crop-panel-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: #111;
}
.crop-panel-body img { display: block; }
.crop-panel-footer {
    flex-shrink: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    border-top: 1.5px solid var(--black-15);
}
.crop-cancel-btn {
    background: none; border: none;
    color: var(--purple); font-size: 14px; font-weight: 500;
    cursor: pointer; font-family: inherit; padding: 4px 8px;
}
.crop-cancel-btn:hover { opacity: 0.65; }

.pc-fields { display: flex; flex-direction: column; gap: 12px; }
.pc-field-row { display: flex; gap: 10px; }
.pc-field-row .pc-field { flex: 1; min-width: 0; }
.pc-field { display: flex; flex-direction: column; gap: 5px; }
.pc-field label {
    font-size: 14px; font-weight: 700; color: var(--black-60);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.pc-input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--black-15); border-radius: 12px;
    font-size: 22px; font-family: Inter, sans-serif;
    background: var(--white); color: var(--black); outline: none;
    transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.pc-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(106,75,207,0.1); }
.pc-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.pc-textarea { resize: none; line-height: 1.5; }
.pc-char-count { font-size: 13px; color: var(--black-60); text-align: right; }

.pc-tag-group { margin-bottom: 14px; }
.pc-tag-cat {
    font-size: 14px; font-weight: 700; color: var(--black-60);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.pc-tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag-chip {
    padding: 6px 14px;
    border: 1.5px solid var(--black-15); border-radius: 20px;
    font-size: 18px; font-weight: 600; font-family: Inter, sans-serif;
    background: var(--white); color: var(--black);
    cursor: pointer; transition: all .15s; user-select: none;
}
.pc-tag-chip:hover:not(.pc-chip-disabled) { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.pc-tag-chip.pc-chip-selected {
    background: var(--purple); color: var(--white);
    border-color: var(--purple-dark);
    box-shadow: 0 2px 0 var(--purple-dark);
}
.pc-tag-chip.pc-chip-disabled { opacity: 0.28; cursor: default; pointer-events: none; }

.pc-prompts-sub { font-size: 17px; color: var(--black-60); margin-bottom: 12px; line-height: 1.5; }
.pc-q-list { display: flex; flex-direction: column; gap: 8px; }
.pc-q-item {
    border: 1.5px solid var(--black-15); border-radius: 14px;
    overflow: hidden; background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.pc-q-item.pc-q-selected {
    border-color: var(--purple);
    box-shadow: 0 2px 14px rgba(106,75,207,0.13);
}
.pc-q-item.pc-q-disabled { opacity: 0.32; pointer-events: none; }
.pc-q-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; cursor: pointer; user-select: none;
}
.pc-q-text { font-size: 20px; font-weight: 600; flex: 1; line-height: 1.35; }
.pc-q-item.pc-q-selected .pc-q-text { color: var(--purple); }
.pc-q-check {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid var(--black-15);
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.pc-q-item.pc-q-selected .pc-q-check {
    background: var(--purple); border-color: var(--purple-dark);
}
.pc-q-check svg { width: 14px; height: 14px; color: var(--white); }
.pc-q-answer { padding: 0 14px 12px; display: none; }
.pc-q-item.pc-q-selected .pc-q-answer { display: block; }
.pc-q-textarea {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid var(--black-15); border-radius: 10px;
    font-size: 18px; font-family: Inter, sans-serif;
    background: var(--bg); color: var(--black);
    resize: none; outline: none; line-height: 1.5;
    transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.pc-q-textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(106,75,207,0.1); }

.edit-profile-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 13px 20px; margin-top: 18px;
    background: var(--purple); color: var(--white);
    border: 2px solid var(--purple-dark); border-radius: var(--radius-sm);
    box-shadow: 0 4px 0 var(--purple-dark);
    font-size: 14px; font-weight: 700; font-family: Inter, sans-serif;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.edit-profile-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--purple-dark); }
.edit-profile-btn svg { width: 17px; height: 17px; }

.pc-toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(14px);
    background: rgba(8,7,10,0.88); color: var(--white);
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; font-family: Inter, sans-serif;
    z-index: 999; opacity: 0;
    transition: opacity .25s, transform .25s; pointer-events: none;
    backdrop-filter: blur(8px); white-space: nowrap;
}
.pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PROFILE EDITOR LAYOUT ── */
.profile-editor-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.profile-preview-side {
    width: 630px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 20px;
    gap: 10px;
    background: var(--bg);
    border-right: 1.5px solid var(--black-15);
    overflow-y: auto;
}

.profile-preview-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--black-60);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    align-self: flex-start;
}

.profile-preview-card-wrap {
    width: 100%;
    flex: 1;
    position: relative;
    min-height: 500px;
}

.profile-preview-card {
    position: absolute !important;
    inset: 0 !important;
    cursor: default !important;
    transform: none !important;
    user-select: text !important;
}

.pp-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--purple-light);
    color: var(--purple);
}

.pp-no-photo svg { width: 52px; height: 52px; opacity: 0.4; }
.pp-no-photo span { font-size: 15px; font-weight: 600; opacity: 0.55; }

.pp-empty-hint {
    text-align: center;
    color: var(--black-60);
    font-size: 15px;
    line-height: 1.6;
    padding: 24px 8px;
    font-style: italic;
}

.profile-editor-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
}

.profile-editor-header {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--black-15);
    flex-shrink: 0;
}

.profile-editor-title {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.profile-editor-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 48px;
    scrollbar-width: thin;
    scrollbar-color: var(--black-15) transparent;
}

.profile-editor-scroll::-webkit-scrollbar { width: 3px; }
.profile-editor-scroll::-webkit-scrollbar-thumb { background: var(--black-15); border-radius: 2px; }

.profile-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.profile-stats-mini .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 8px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--black-15);
}

/* ── PROFILE REQUIRED OVERLAY ── */
.profile-required-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(246,245,247,0.97);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
.profile-required-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(106,75,207,0.18);
    padding: 40px 36px;
    max-width: 380px; width: 90%;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    text-align: center;
}
.profile-required-card h2 {
    font-family: Poppins, sans-serif; font-weight: 700; font-size: 26px;
    color: var(--black);
}
.profile-required-card p {
    font-size: 18px; color: var(--black-60); line-height: 1.5;
}
.profile-required-fields {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.profile-required-fields span {
    background: var(--purple-light); color: var(--purple);
    font-size: 14px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px;
}
.profile-required-btn {
    margin-top: 8px; padding: 14px 32px;
    background: var(--purple); color: var(--white);
    border: 2px solid var(--purple-dark); border-radius: var(--radius-sm);
    box-shadow: 0 4px 0 var(--purple-dark);
    font-size: 20px; font-weight: 700; font-family: Inter, sans-serif;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.profile-required-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--purple-dark); }

/* required field star */
.required-star { color: var(--red); margin-left: 2px; }

/* profile preview card image cycling cursor */
.profile-preview-card .card-img-wrap { cursor: pointer; }

/* ── DATE PICKER ── */
.date-picker-wrap { position: relative; }
.date-picker-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    text-align: left; cursor: pointer; gap: 8px;
}
.date-picker-trigger svg { flex-shrink: 0; opacity: 0.5; }
.date-picker-placeholder { color: rgba(8,7,10,0.35); }
.date-picker-dropdown {
    position: fixed;
    background: var(--white);
    border: 1.5px solid var(--black-15); border-radius: 16px;
    box-shadow: 0 8px 28px rgba(8,7,10,0.15);
    z-index: 99999;
    padding: 14px;
    box-sizing: border-box;
    width: 280px;
}
.cal-header {
    display: flex; align-items: center; justify-content: space-between;
    height: 44px; margin-bottom: 10px;
}
.cal-month-year { font-size: 16px; font-weight: 700; font-family: Poppins, sans-serif; }
.cal-nav {
    background: none; border: none; cursor: pointer;
    font-size: 28px; color: var(--purple); line-height: 1;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.cal-nav:hover { background: var(--purple-light); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-hdr {
    text-align: center; font-size: 11px; font-weight: 700;
    color: var(--black-60); padding: 4px 0; text-transform: uppercase;
}
.cal-cell {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-family: Inter, sans-serif;
    border: none; background: none; border-radius: 50%;
    cursor: pointer; transition: background .15s, color .15s;
}
.cal-cell:hover:not(:disabled):not(.cal-selected) { background: var(--purple-light); color: var(--purple); }
.cal-cell.cal-selected { background: var(--purple); color: var(--white); font-weight: 700; }
.cal-cell.cal-past { color: rgba(8,7,10,0.2); cursor: default; }
.cal-cell.cal-empty { pointer-events: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1600px) {
    nav.top-nav { padding: 0 48px; }
    .nav-links { gap: 32px; padding: 0 16px; }
    .nav-links a { min-width: 140px; }
    body.user-logged-in .nav-links { gap: 60px; padding: 0 24px; }
    body.user-logged-in .nav-links a { min-width: 190px; }
    .nav-actions { margin-right: 80px; }
    body.user-logged-in .nav-actions { margin-right: 0; }
}
@media (max-width: 1280px) {
    nav.top-nav { padding: 0 32px; }
    .nav-links { gap: 20px; padding: 0 8px; }
    .nav-links a { min-width: 120px; font-size: 18px; padding: 6px 14px; }
    body.user-logged-in .nav-links { gap: 32px; padding: 0 16px; }
    body.user-logged-in .nav-links a { min-width: 150px; }
    .nav-actions { gap: 16px; margin-right: 40px; padding-left: 24px; }
    body.user-logged-in .nav-actions { margin-right: 0; }
    .card-stack-wrap { width: 440px; }
}
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-actions { margin-right: 0; padding-left: 0; }
    .card-stack-wrap { width: 380px; }
}

/* ── DARK MODE TOGGLE BUTTON ── */
.dark-toggle {
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    width: 44px; height: 44px;
    border: 1.5px solid var(--black-15);
    border-radius: 50%;
    background: var(--white); cursor: pointer;
    box-shadow: 0 3px 0 var(--black-15);
    transition: background .15s, box-shadow .15s, border-color .15s;
    flex-shrink: 0;
}
.dark-toggle:hover { background: #f5f5f7; box-shadow: 0 5px 0 var(--black-15); }
.dark-toggle svg { width: 20px; height: 20px; color: var(--black); transition: color .15s; }
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: block; }

/* ── DARK MODE ─────────────────────────────────────────────────────────────
   Palette mirrors index.css dark mode:
     page bg      swiping_bg_dark.jpg
     surface      #1a1825
     surface-hi   #1e1c28
     surface-top  #262336
     border       rgba(255,255,255,0.08)
     text         #e8e6f0
     text-muted   rgba(232,230,240,0.55)
     purple       #8B6FE8
   ──────────────────────────────────────────────────────────────────────── */
body.dark {
    background: url('images/swiping_bg_dark.jpg') center center / cover no-repeat fixed;
    color: #e8e6f0;
}

/* NAV */
body.dark nav.top-nav {
    background: rgba(26,24,37,0.97);
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark .nav-links a {
    color: #e8e6f0;
    border-color: rgba(139,111,232,0.55);
    box-shadow: 0 3px 0 rgba(139,111,232,0.4);
}
body.dark .nav-links a:hover { box-shadow: 0 5px 0 rgba(139,111,232,0.4); }
body.dark #nav-logo-light { display: none !important; }
body.dark #nav-logo-dark  { display: block !important; }
body:not(.dark) #nav-logo-dark { display: none !important; }

/* DARK TOGGLE */
body.dark .dark-toggle {
    background: #1e1c28; border-color: rgba(255,255,255,0.12);
    box-shadow: 0 3px 0 rgba(255,255,255,0.06);
}
body.dark .dark-toggle:hover { background: #262336; box-shadow: 0 5px 0 rgba(255,255,255,0.06); }
body.dark .dark-toggle svg { color: #e8e6f0; }
body.dark .dark-toggle .icon-sun  { display: block; }
body.dark .dark-toggle .icon-moon { display: none; }

/* LANG DROPDOWN */
body.dark .lang-toggle {
    background: #1e1c28; border-color: rgba(255,255,255,0.12);
    color: #e8e6f0; box-shadow: 0 3px 0 rgba(255,255,255,0.06);
}
body.dark .lang-toggle:hover { background: #262336; box-shadow: 0 5px 0 rgba(255,255,255,0.06); }
body.dark .lang-menu { background: #1e1c28; border-color: rgba(255,255,255,0.1); box-shadow: 0 12px 40px rgba(0,0,0,0.45); }
body.dark .lang-option { color: #e8e6f0; }
body.dark .lang-option:hover,
body.dark .lang-option.active { background: rgba(139,111,232,0.15); }
body.dark .lang-opt-code { color: #8B6FE8; }
body.dark .lang-opt-name { color: rgba(232,230,240,0.55); }

/* AVATAR DROPDOWN */
body.dark .nav-avatar-dropdown { background: #1e1c28; border-color: rgba(139,111,232,0.2); box-shadow: 0 16px 56px rgba(0,0,0,0.45); }
body.dark .nav-dd-item { color: #e8e6f0; }
body.dark .nav-dd-item:hover { background: rgba(139,111,232,0.12); }
body.dark .nav-dd-divider { background: rgba(255,255,255,0.08); }
body.dark .nav-dd-logout { color: #f87171; }
body.dark .nav-dd-logout:hover { background: rgba(248,113,113,0.1); }

/* BUTTONS */
body.dark .btn-secondary {
    background: #1e1c28; color: #e8e6f0;
    border-color: rgba(255,255,255,0.13); box-shadow: 0 3px 0 rgba(255,255,255,0.06);
}
body.dark .btn-secondary:hover { box-shadow: 0 5px 0 rgba(255,255,255,0.06); }
body.dark .btn-pass {
    background: #1e1c28; border-color: rgba(239,68,68,0.45);
    box-shadow: 0 4px 0 rgba(239,68,68,0.3);
}
body.dark .btn-pass:hover { box-shadow: 0 6px 0 rgba(239,68,68,0.3); }

/* SWIPE CARDS */
body.dark .swipe-card {
    background: #1a1825;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
body.dark .card-bio { color: rgba(232,230,240,0.6); }
body.dark .pref-tag { background: rgba(139,111,232,0.18); color: #c4b0ff; }
body.dark .qa-box { background: #262336; border-color: rgba(255,255,255,0.08); }
body.dark .qa-q { color: #8B6FE8; }
body.dark .qa-a { color: rgba(232,230,240,0.6); }
body.dark .card-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* EMPTY STATE */
body.dark .empty-state h2 { color: #e8e6f0; }
body.dark .empty-state p { color: rgba(232,230,240,0.55); }
body.dark .empty-icon { background: rgba(139,111,232,0.18); }
body.dark .empty-card {
    background: rgba(80,80,100,0.18);
    border-top-color: rgba(255,255,255,0.12);
    border-left-color: rgba(255,255,255,0.12);
    border-right-color: rgba(0,0,0,0.25);
    border-bottom-color: rgba(0,0,0,0.25);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* PANE HEADER */
body.dark .pane-header {
    background: rgba(26,24,37,0.97);
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark .pane-header h2 { color: #e8e6f0; }

/* MATCH LIST */
body.dark .match-item:hover { background: rgba(139,111,232,0.12); }
body.dark .match-avatar { border-color: #e8e6f0; }
body.dark .match-name { color: #e8e6f0; }
body.dark .match-sub { color: rgba(232,230,240,0.55); }
body.dark .match-arrow { color: rgba(232,230,240,0.4); }
body.dark .online-dot { border-color: #1a1825; }

/* PROFILE STATS CARD */
body.dark .profile-stats-card {
    background: #1a1825;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
body.dark .profile-stats-card h2 { color: #e8e6f0; }
body.dark .profile-stats-card > p { color: rgba(232,230,240,0.55); }
body.dark .stats-grid { border-color: rgba(255,255,255,0.08); }
body.dark .stat-label { color: rgba(232,230,240,0.55); }
body.dark .stat-value { color: #e8e6f0; }

/* BOTTOM NAV */
body.dark nav.bottom-nav {
    background: rgba(26,24,37,0.97);
    border-top-color: rgba(255,255,255,0.08);
}
body.dark .tab-btn { color: rgba(232,230,240,0.45); }
body.dark .tab-btn.active { color: #8B6FE8; }

/* PROFILE VIEW */
body.dark .profile-view { background: #0f0e13; }
body.dark .pv-section h3 { color: #e8e6f0; }
body.dark .pv-section p { color: rgba(232,230,240,0.55); }

/* CHAT VIEW */
body.dark .chat-view { background: #0f0e13; }
body.dark .chat-header {
    background: rgba(26,24,37,0.97);
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark .chat-back { color: #e8e6f0; }
body.dark .chat-back:hover { background: rgba(255,255,255,0.08); }
body.dark .chat-hdr-name { color: #e8e6f0; }
body.dark .chat-online { border-color: #1a1825; }
body.dark .chat-info-btn { color: rgba(232,230,240,0.55); }
body.dark .message.from-them,
body.dark .message.msg-in {
    background: #1e1c28;
    color: #e8e6f0;
    border-color: rgba(255,255,255,0.08);
}
body.dark .chat-input-area {
    background: rgba(26,24,37,0.97);
    border-top-color: rgba(255,255,255,0.08);
}
body.dark .chat-input {
    background: #262336;
    border-color: rgba(255,255,255,0.1);
    color: #e8e6f0;
}
body.dark .chat-input::placeholder { color: rgba(232,230,240,0.4); }
body.dark .chat-input:focus { border-color: #8B6FE8; box-shadow: 0 0 0 3px rgba(139,111,232,0.2); }

/* PROFILE CREATOR */
body.dark .profile-creator { background: #0f0e13; }
body.dark .pc-header {
    background: rgba(26,24,37,0.97);
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark .pc-back { color: #e8e6f0; }
body.dark .pc-back:hover { background: rgba(255,255,255,0.08); }
body.dark .pc-title { color: #e8e6f0; }
body.dark .pc-divider { background: rgba(255,255,255,0.08); }
body.dark .pc-section-header h3 { color: #e8e6f0; }
body.dark .pc-section-hint { color: #8B6FE8; }
body.dark .pc-field label { color: rgba(232,230,240,0.55); }
body.dark .pc-input {
    background: #262336; border-color: rgba(255,255,255,0.1);
    color: #e8e6f0;
}
body.dark .pc-input::placeholder { color: rgba(232,230,240,0.4); }
body.dark .pc-input:focus { border-color: #8B6FE8; box-shadow: 0 0 0 3px rgba(139,111,232,0.2); }
body.dark .pc-tag-cat { color: rgba(232,230,240,0.55); }
body.dark .pc-tag-chip {
    background: #1e1c28; border-color: rgba(255,255,255,0.1); color: #e8e6f0;
}
body.dark .pc-tag-chip:hover:not(.pc-chip-disabled) { border-color: #8B6FE8; color: #8B6FE8; background: rgba(139,111,232,0.1); }
body.dark .pc-prompts-sub { color: rgba(232,230,240,0.55); }
body.dark .pc-q-item { background: #1e1c28; border-color: rgba(255,255,255,0.08); }
body.dark .pc-q-text { color: #e8e6f0; }
body.dark .pc-q-item.pc-q-selected .pc-q-text { color: #8B6FE8; }
body.dark .pc-q-check { border-color: rgba(255,255,255,0.15); }
body.dark .pc-q-textarea {
    background: #262336; border-color: rgba(255,255,255,0.1); color: #e8e6f0;
}
body.dark .pc-q-textarea:focus { border-color: #8B6FE8; box-shadow: 0 0 0 3px rgba(139,111,232,0.2); }
body.dark .pc-char-count { color: rgba(232,230,240,0.45); }
body.dark .pc-photo-slot { background: rgba(139,111,232,0.1); }

/* PROFILE EDITOR LAYOUT */
body.dark .profile-preview-side {
    background: #0f0e13;
    border-right-color: rgba(255,255,255,0.08);
}
body.dark .profile-preview-label { color: rgba(232,230,240,0.45); }
body.dark .pp-no-photo { background: rgba(139,111,232,0.1); color: #8B6FE8; }
body.dark .pp-empty-hint { color: rgba(232,230,240,0.45); }
body.dark .profile-editor-side { background: #1a1825; }
body.dark .crop-panel { background: #1a1825; }
body.dark .crop-panel-footer { border-top-color: rgba(255,255,255,0.08); }
body.dark .profile-editor-header {
    background: rgba(26,24,37,0.97);
    border-bottom-color: rgba(255,255,255,0.08);
}
body.dark .profile-editor-title { color: #e8e6f0; }
body.dark .profile-editor-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
body.dark .profile-stats-mini .stat-item {
    background: #262336;
    border-color: rgba(255,255,255,0.08);
}

/* PROFILE REQUIRED OVERLAY */
body.dark .profile-required-overlay { background: rgba(15,14,19,0.97); }
body.dark .profile-required-card { background: #1a1825; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
body.dark .profile-required-card h2 { color: #e8e6f0; }
body.dark .profile-required-card p { color: rgba(232,230,240,0.55); }
body.dark .profile-required-fields span { background: rgba(139,111,232,0.18); color: #c4b0ff; }

/* DATE PICKER */
body.dark .date-picker-dropdown {
    background: #1e1c28; border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
body.dark .cal-month-year { color: #e8e6f0; }
body.dark .cal-day-hdr { color: rgba(232,230,240,0.45); }
body.dark .cal-cell { color: #e8e6f0; }
body.dark .cal-cell:hover:not(:disabled):not(.cal-selected) { background: rgba(139,111,232,0.15); color: #8B6FE8; }
body.dark .cal-cell.cal-past { color: rgba(232,230,240,0.2); }
body.dark .date-picker-placeholder { color: rgba(232,230,240,0.35); }