/* ═══════════════════════════════════════════════════════
   VibeMood — Modern Minimalist Design
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-hover: #fafafa;
    --border: #e5e5ea;
    --border-light: #f0f0f2;
    --text: #1c1c1e;
    --text-secondary: #8e8e93;
    --text-muted: #aeaeb2;
    --accent: #ff6b6b;
    --accent-hover: #ff5252;
    --accent-light: rgba(255, 107, 107, 0.1);
    --accent-gradient: linear-gradient(135deg, #ff6b6b, #ee5a24);
    --teal: #34c3a3;
    --teal-light: rgba(52, 195, 163, 0.1);
    --danger: #ff3b30;
    --danger-light: rgba(255, 59, 48, 0.08);
    --success: #34c759;
    --warning: #ff9500;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    height: 60px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    line-height: 1;
    vertical-align: super;
    margin-left: 2px;
}

/* ── Nav Dropdown ───────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    color: var(--text);
    background: var(--bg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--text);
    background: var(--bg);
}

.nav-dropdown-menu a.active {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-admin {
    color: var(--warning) !important;
}

.logout-form { display: inline; }

.nav-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
}

.nav-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Container ──────────────────────────────────────── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    animation: fadeIn 0.3s ease;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Flash Messages ─────────────────────────────────── */
.flash-messages { margin-bottom: 1rem; }

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: var(--teal-light); color: #0d7d5e; border: 1px solid rgba(52,195,163,0.3); }
.flash-error { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(255,59,48,0.2); }
.flash-warning { background: rgba(255,149,0,0.1); color: #c77c00; border: 1px solid rgba(255,149,0,0.2); }
.flash-info { background: rgba(0,122,255,0.08); color: #007aff; border: 1px solid rgba(0,122,255,0.2); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1.5px solid rgba(255,59,48,0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Auth Forms ─────────────────────────────────────── */
.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.4s ease;
}

.auth-form h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.auth-form .auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-form .auth-link a { font-weight: 500; }

.report-form {
    max-width: 480px;
    margin: 1.5rem auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.report-form h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.report-target {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* ── Form Groups ────────────────────────────────────── */
.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238e8e93'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

/* ── Checkbox & Radio Labels ────────────────────────── */
.checkbox-label, .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    margin: 0.25rem;
    background: var(--bg);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.checkbox-label:hover, .radio-label:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.checkbox-label input, .radio-label input {
    display: none;
}

.checkbox-label:has(input:checked),
.radio-label:has(input:checked) {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.interests-checkboxes, .interests-select, .report-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* ── Tags ───────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

/* ── Profile Card ───────────────────────────────────── */
.profile-card {
    max-width: 480px;
    margin: 1.5rem auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg), var(--border-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-card h1 {
    padding: 1.25rem 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Verified Badge ─────────────────────────────────── */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #007aff;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.verified-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #007aff;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

/* ── Verify Video ───────────────────────────────────── */
.verify-form { margin-top: 1rem; }

.verify-status {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.verify-pending { background: rgba(255,149,0,0.08); }
.verify-approved { background: var(--teal-light); }
.verify-rejected { background: var(--danger-light); }

.verify-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.verify-status p {
    font-weight: 600;
    font-size: 1rem;
}

.verify-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.verified-badge-sm.mod-badge-inline {
    display: inline-flex;
    margin-left: 0.375rem;
}

.profile-age-city {
    padding: 0.25rem 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.profile-gender {
    padding: 0.5rem 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.profile-looking-for {
    padding: 0.25rem 1.5rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
}

.profile-details {
    padding: 0.5rem 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.profile-detail {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ── Online indicator ────────────────────────────── */
.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #34c759;
    border-radius: 50%;
    margin-left: 0.375rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.online-dot-sm {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #34c759;
    border-radius: 50%;
    margin-left: 0.25rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Favorite button ─────────────────────────────── */
.btn-fav {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-fav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-fav.favorited {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ── Who liked me ────────────────────────────────── */
.liked-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.liked-card:hover {
    transform: translateY(-2px);
}

.liked-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.liked-card-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.liked-card-info {
    flex: 1;
    min-width: 0;
}

.liked-card-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.liked-card-info p {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.liked-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Photo vote ──────────────────────────────────── */
.vote-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.15s;
}

.vote-btn:hover {
    transform: scale(1.3);
}

.vote-count {
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* ── Promo badge ─────────────────────────────────── */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Online counter ──────────────────────────────── */
.online-counter {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.online-counter strong {
    color: #34c759;
    font-weight: 700;
}

/* ── Card gallery ─────────────────────────────────── */
.card-gallery {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card-gallery-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.card-gallery-thumb:hover,
.card-gallery-thumb.gallery-active {
    opacity: 1;
    border-color: var(--accent);
}

/* ── Card details row ─────────────────────────────── */
.card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
    padding: 0 0 0.25rem;
}

.card-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Card actions row ─────────────────────────────── */
.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.375rem;
}

.compatibility-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0;
}

/* ── Rooms / Events / Languages list ──────────────── */
.rooms-list,
.events-list,
.language-pairs,
.favorites-list,
.liked-list,
.matches-list {
    max-width: 600px;
    margin: 0 auto;
}

.room-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.room-card:hover {
    transform: translateY(-2px);
}

.room-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.room-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.event-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.event-card h3 {
    margin: 0 0 0.25rem;
}

.event-meta {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 0.375rem;
}

.event-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.375rem;
}

.event-participants {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.language-pair {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 0 0.5rem 0.5rem 0;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
}

/* ── Video call page ──────────────────────────────── */
.video-call-page {
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container #remote-video {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 120px;
    height: 90px;
    border-radius: var(--radius-md);
    border: 2px solid white;
    object-fit: cover;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ── Chat history ─────────────────────────────────── */
.history-list {
    max-width: 600px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateY(-1px);
}

.history-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.history-avatar,
.history-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.history-avatar-placeholder {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-last {
    margin: 0.125rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-stats {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.chat-date-separator {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.75rem 0 0.25rem;
    font-weight: 600;
}

.profile-bio {
    padding: 0.75rem 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-card .interests {
    padding: 0.75rem 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.profile-last-seen {
    padding: 0.75rem 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.profile-photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 1rem 1.5rem 0;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition);
}

.gallery-main { border-color: var(--accent); }

.profile-card .btn-secondary,
.profile-card .btn-danger {
    display: block;
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem 0;
    text-align: center;
}

.profile-card .delete-account-form {
    padding: 0 1.5rem 1.5rem;
}

.profile-card .delete-account-form .btn-danger {
    margin: 0.75rem 0 0;
}

.profile-other-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
}

.profile-other-actions .btn { flex: 1; }
.block-form { margin: 0; }

/* ── Edit Profile ───────────────────────────────────── */
.edit-form {
    max-width: 560px;
    margin: 1.5rem auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.edit-form h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.edit-form h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.photos-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.upload-form { margin-bottom: 1rem; }

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: all var(--transition);
}

.upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-area input[type="file"] { display: none; }

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.upload-placeholder.has-image { display: none; }

.upload-placeholder.has-image + .upload-icon { display: none; }

.upload-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.upload-area img {
    max-height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.btn-upload { margin-top: 0.75rem; }

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-main { border-color: var(--accent); }

.photo-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    color: white;
}

.status-pending { background: rgba(255, 149, 0, 0.85); }
.status-approved { background: rgba(52, 195, 163, 0.85); }
.status-rejected { background: rgba(255, 59, 48, 0.85); }

.photo-badge {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    padding: 0.125rem 0.5rem;
    background: var(--accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.photo-actions {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.photo-item:hover .photo-actions { opacity: 1; }

.btn-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.btn-icon:hover { background: white; color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-icon-danger:hover { color: var(--danger); }

/* ── City Select ────────────────────────────────────── */
.city-select-wrap {
    position: relative;
}

.city-select-wrap input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
}

.city-select-wrap input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.city-select-wrap select { display: none; }

/* ── Geo Button ─────────────────────────────────────── */
#geo-btn { margin-top: 0.5rem; }

.geo-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

#geo-status {
    font-size: 0.8125rem;
    color: var(--teal);
    margin-left: 0.5rem;
}

/* ── Swipe Page ─────────────────────────────────────── */
.swipe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

#card-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 520px;
    margin-bottom: 1.5rem;
    touch-action: none;
}

.card {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: box-shadow var(--transition);
}

.card:active { cursor: grabbing; box-shadow: var(--shadow-xl); }

.card-photo {
    width: 100%;
    height: 65%;
    object-fit: cover;
}

.card-photo-placeholder {
    width: 100%;
    height: 65%;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.card-info {
    padding: 1rem 1.25rem;
    height: 35%;
    overflow: hidden;
}

.card-info h2 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.125rem;
}

.card-city {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.card-looking-for {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.card-bio {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.card-distance {
    font-size: 0.75rem;
    color: var(--teal);
    font-weight: 500;
}

.card-label {
    position: absolute;
    top: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 4px solid;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.card-label-like {
    left: 1.5rem;
    color: var(--teal);
    border-color: var(--teal);
    transform: rotate(-15deg);
}

.card-label-nope {
    right: 1.5rem;
    color: var(--danger);
    border-color: var(--danger);
    transform: rotate(15deg);
}

/* ── Swipe Actions ──────────────────────────────────── */
.swipe-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition);
    font-family: var(--font);
}

.btn-action:active { transform: scale(0.9); }

.btn-dislike {
    width: 56px;
    height: 56px;
    background: var(--surface);
    color: var(--danger);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
}

.btn-dislike:hover {
    box-shadow: 0 4px 20px rgba(255,59,48,0.2);
    border-color: var(--danger);
}

.btn-undo {
    width: 44px;
    height: 44px;
    background: var(--surface);
    color: var(--warning);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    font-size: 1rem;
}

.btn-undo:hover {
    box-shadow: 0 4px 16px rgba(255,149,0,0.2);
    border-color: var(--warning);
}

.btn-like {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(255,107,107,0.35);
}

.btn-like:hover {
    box-shadow: 0 6px 28px rgba(255,107,107,0.5);
    transform: scale(1.05);
}

.btn-second-chance {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: var(--surface);
    color: var(--teal);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.btn-second-chance:hover { background: var(--teal-light); }

.btn-super-like {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-super-like:hover {
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

/* ── Match Popup ────────────────────────────────────── */
.match-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
}

.match-popup-content {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 340px;
    width: 90%;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.match-popup-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.match-popup-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.match-popup-content .btn { margin: 0.375rem 0; width: 100%; }

/* ── Empty State ────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.empty-state p { font-size: 1.125rem; font-weight: 500; }

.empty-sub {
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.375rem;
    font-weight: 400 !important;
}

.empty-state .btn { margin-top: 1.5rem; }

/* ── Matches List ───────────────────────────────────── */
.matches-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

.match-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: var(--text);
}

.match-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}

.match-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.match-info { flex: 1; min-width: 0; }

.match-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.match-last-msg {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-new {
    color: var(--accent);
    font-weight: 500;
}

.match-unread-badge {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Page Title ─────────────────────────────────────── */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* ── Conversations List ─────────────────────────────── */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
}

.conversation-item:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.conversation-unread {
    background: var(--accent-light);
}

.conversation-unread:hover {
    background: rgba(255,107,107,0.12);
}

.conversation-avatar-wrap {
    flex-shrink: 0;
}

.conversation-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
}

.conversation-body {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.125rem;
}

.conversation-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.conversation-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.conversation-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.conversation-text-bold {
    color: var(--text);
    font-weight: 600;
}

.conversation-badge {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Chat ───────────────────────────────────────────── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px - 3rem);
    max-width: 960px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface);
    flex-shrink: 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.chat-header-status,
.chat-online-status {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-height: 1em;
}

.chat-online-status.online { color: var(--teal); }

.chat-back {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.chat-back:hover {
    background: var(--bg);
    color: var(--accent);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overscroll-behavior: contain;
}

.chat-load-more {
    display: none;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.msg {
    max-width: 75%;
    animation: msgIn 0.2s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-mine {
    align-self: flex-end;
}

.msg-other {
    align-self: flex-start;
}

.msg-text {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    line-height: 1.5;
    word-break: break-word;
}

.msg-mine .msg-text {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-other .msg-text {
    background: var(--bg);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.msg-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
    padding: 0 0.25rem;
}

.msg-mine .msg-meta { justify-content: flex-end; }

.msg-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.msg-read {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.msg-read-yes { color: var(--teal); }

.msg-pending { opacity: 0.6; }
.msg-failed { opacity: 0.5; border: 1px dashed var(--danger); }
.msg-failed .msg-text { color: var(--text-muted); }
.msg-deleted .msg-text { font-style: italic; color: var(--text-muted); }
.msg-retry {
    cursor: pointer;
    color: var(--danger);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}
.msg-retry:hover { color: var(--accent-hover); }

/* ── Chat Input ─────────────────────────────────────── */
.chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--surface);
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    outline: none;
    transition: all var(--transition);
}

.chat-input input:focus {
    border-color: var(--accent);
    background: var(--surface);
}

.chat-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.chat-send:hover {
    box-shadow: 0 2px 12px rgba(255,107,107,0.35);
    transform: scale(1.05);
}

/* ── Room Members Panel ─────────────────────────────── */
.members-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    transition: all var(--transition);
}

.members-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.members-count {
    font-weight: 600;
}

.members-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.member-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.member-online.online {
    background: var(--teal);
}

.chat-page {
    position: relative;
    display: flex;
    flex-direction: row;
    height: calc(100vh - 60px - 3rem);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--surface);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0.25rem;
}

.sidebar-close:hover { color: var(--text); }

.sidebar-profile {
    padding: 1.25rem 1rem;
    text-align: center;
}

.sidebar-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
}

.sidebar-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 0.75rem;
}

.sidebar-profile-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sidebar-profile-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
}

.sidebar-profile-bio {
    font-size: 0.875rem;
    color: var(--text);
    margin-top: 0.75rem;
    text-align: left;
    line-height: 1.5;
}

.sidebar-profile-section {
    margin-top: 1rem;
    text-align: left;
}

.sidebar-section-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.sidebar-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.sidebar-interest {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.mobile-only { display: none; }

/* ── Filters ────────────────────────────────────────── */
.filters-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.filters-panel {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.age-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.age-range input { flex: 1; }
.age-range span { color: var(--text-muted); font-weight: 500; }

.radius-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radius-row input[type="range"] {
    flex: 1;
    min-width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.radius-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255,107,107,0.3);
}

.radius-row span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 50px;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.btn-small:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filters-actions {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
}

.filters-actions .form-group { flex: 1; margin-bottom: 0; }
.btn-search { flex-shrink: 0; }

/* ── Search Results ─────────────────────────────────── */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.search-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition);
    animation: fadeIn 0.3s ease;
}

.search-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.search-card-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.search-card-body { padding: 1rem; }

.search-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.search-card-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
}

.search-card-city {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.search-card-looking-for {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.search-card-bio {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.search-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.search-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-like-small, .btn-dislike-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.btn-like-small {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-like-small:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 10px rgba(255,107,107,0.3);
}

.btn-dislike-small {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-dislike-small:hover {
    background: var(--danger);
    color: white;
}

.btn-like-small:disabled,
.btn-dislike-small:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ── Moderation ─────────────────────────────────────── */
.moderation-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.moderation-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.mod-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    text-decoration: none;
}

.mod-tab:hover { color: var(--text); background: var(--bg); }

.mod-tab-active {
    background: var(--accent);
    color: white;
}

.mod-tab-active:hover { background: var(--accent-hover); color: white; }

.mod-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.375rem;
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: 0.375rem;
}

.mod-tab:not(.mod-tab-active) .mod-badge {
    background: var(--danger);
    color: white;
}

.moderation-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mod-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow var(--transition);
}

.mod-card:hover { box-shadow: var(--shadow-md); }

.mod-card-report {
    flex-direction: column;
}

.mod-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.mod-video {
    width: 160px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
}

.mod-info { flex: 1; min-width: 0; }

.mod-user {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.mod-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.report-reason-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.report-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mod-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-mod {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    border: 1.5px solid;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-mod-view {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-mod-view:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-mod-approve {
    background: var(--teal-light);
    border-color: rgba(52,195,163,0.3);
    color: var(--teal);
}

.btn-mod-approve:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.btn-mod-reject {
    background: var(--danger-light);
    border-color: rgba(255,59,48,0.2);
    color: var(--danger);
}

.btn-mod-reject:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-mod-delete {
    background: none;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-mod-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ── Admin Users (compact table) ──────────────────────── */
.admin-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.admin-table-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table-row {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    transition: background var(--transition);
    position: relative;
}

.admin-table-row:last-child { border-bottom: none; }
.admin-table-row:hover { background: var(--bg); }

.at-row-banned { background: var(--danger-light); }
.at-row-inactive { opacity: 0.55; }

.at-col { padding: 0 0.25rem; }

.at-col-avatar { width: 32px; flex-shrink: 0; }
.at-col-avatar img { width: 32px; height: 32px; border-radius: var(--radius-md); object-fit: cover; display: block; }
.at-avatar-placeholder { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); }

.at-col-name { width: 22%; min-width: 140px; display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.at-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.at-username { color: var(--text-muted); font-size: 0.75rem; }

.at-col-meta { flex: 1; min-width: 0; color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.at-col-date { width: 72px; color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }

.at-col-status { width: 110px; flex-shrink: 0; display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.at-ban-until { font-size: 0.6875rem; color: var(--danger); }

.at-col-actions { display: flex; gap: 0.3rem; flex-shrink: 0; margin-left: 0.5rem; }

.badge-inactive { font-size: 0.5625rem; font-weight: 700; padding: 1px 5px; border-radius: var(--radius-full); background: var(--text-muted); color: white; }
.badge-admin { font-size: 0.5625rem; font-weight: 700; padding: 1px 5px; border-radius: var(--radius-full); background: var(--warning); color: white; }
.badge-banned { font-size: 0.5625rem; font-weight: 700; padding: 1px 5px; border-radius: var(--radius-full); background: var(--danger); color: white; }

.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.6875rem; border-radius: var(--radius-full); font-weight: 600; border: 1.5px solid; background: transparent; cursor: pointer; transition: all var(--transition); text-decoration: none; display: inline-flex; align-items: center; line-height: 1.2; }

.ban-form-inline { position: absolute; left: 0; right: 0; bottom: -1px; transform: translateY(100%); z-index: 10; padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ban-form-inline .ban-form-inner { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }

@media (max-width: 900px) {
    .at-col-date, .at-col-meta { display: none; }
    .admin-table-header .at-col-date, .admin-table-header .at-col-meta { display: none; }
}
@media (max-width: 600px) {
    .at-col-status { display: none; }
    .admin-table-header .at-col-status { display: none; }
}

.at-col-check { width: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.at-col-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--danger); }

.bulk-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}
.bulk-bar-label { display: flex; align-items: center; gap: 0.375rem; cursor: pointer; white-space: nowrap; }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1.5px solid;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-approve {
    border-color: rgba(52,195,163,0.3);
    color: var(--teal);
    background: var(--teal-light);
}

.btn-approve:hover {
    background: var(--teal);
    color: white;
}

.btn-reject {
    border-color: rgba(255,59,48,0.2);
    color: var(--danger);
}

.btn-reject:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        left: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-slow);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        font-size: 0.9375rem;
    }

    .nav-dropdown { width: 100%; }

    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        font-size: 0.9375rem;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1rem;
        display: block;
    }

    .nav-dropdown:not(.open) .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .logout-form { width: 100%; }

    .nav-btn {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
    }

    .container { padding: 1rem 0.75rem 2rem; }

    #card-stack {
        max-width: 100%;
        height: 450px;
    }

    .card-info h2 { font-size: 1.25rem; }

    .filters-row { grid-template-columns: 1fr; }

    .search-results {
        grid-template-columns: 1fr;
    }

    .auth-form {
        margin: 1rem auto;
        padding: 2rem 1.5rem;
    }

    .edit-form {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .chat-container {
        height: calc(100vh - 60px - 2rem);
        border-radius: var(--radius-lg);
        margin: 0 0.25rem;
    }

    .chat-page {
        height: calc(100vh - 60px - 2rem);
        border-radius: var(--radius-lg);
        margin: 0 0.25rem;
    }

    .chat-sidebar {
        position: absolute;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        z-index: 10;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-slow);
    }

    .chat-sidebar.open {
        right: 0;
    }

    .mobile-only { display: flex; }

    .mod-card { flex-direction: column; }
    .mod-actions { width: 100%; }
    .btn-mod { flex: 1; justify-content: center; }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .match-item { padding: 0.75rem; }
    .match-avatar, .match-avatar-placeholder { width: 48px; height: 48px; }
}

@media (max-width: 380px) {
    #card-stack { height: 400px; }
    .swipe-actions { gap: 0.75rem; }
    .btn-dislike, .btn-like { width: 50px; height: 50px; }
    .btn-undo { width: 40px; height: 40px; }
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection ──────────────────────────────────────── */
::selection { background: var(--accent-light); color: var(--accent); }

/* ── Focus Visible ──────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Profile Completion ──────────────────────────── */
.profile-streak {
    font-size: 0.9rem;
    color: var(--warning);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.profile-completion {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--accent-light);
    border-radius: var(--radius-md);
}
.completion-header { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.completion-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.completion-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.completion-hint { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ── Landing Page ────────────────────────────────── */
.landing-hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: var(--accent-gradient);
    color: #fff;
    margin: -1.5rem -1.5rem 2rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.landing-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.landing-hero .tagline { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; }
.landing-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.landing-stat { text-align: center; }
.landing-stat .num { font-size: 1.75rem; font-weight: 700; }
.landing-stat .label { font-size: 0.8rem; opacity: 0.8; }
.landing-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-cta .btn { padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-full); }
.landing-cta .btn-primary { background: #fff; color: var(--accent); }
.landing-cta .btn-primary:hover { background: #f0f0f0; }
.landing-cta .btn-secondary { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.landing-feature {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.landing-feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.landing-feature h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.landing-feature p { font-size: 0.9rem; color: var(--text-secondary); }
.landing-bottom-cta {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}
.landing-bottom-cta h2 { font-size: 1.5rem; margin-bottom: 1rem; }

/* ── Onboarding ──────────────────────────────────── */
.onboarding-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.onboarding-step {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}
.onboarding-step.active { background: var(--accent); }
.onboarding-step.done { background: var(--teal); }
.onboarding-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.onboarding-card h2 { text-align: center; margin-bottom: 1.5rem; }
.onboarding-card .form-group { margin-bottom: 1.25rem; }
.onboarding-nav { display: flex; gap: 1rem; margin-top: 1.5rem; }
.onboarding-nav .btn { flex: 1; }

/* ── Match popup animations ──────────────────────── */
@keyframes matchPopIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes matchShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.match-popup { animation: matchPopIn 0.4s ease-out; }
.match-popup-content h2 {
    background: linear-gradient(90deg, var(--accent), #ee5a24, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: matchShimmer 3s linear infinite;
}

/* ── Card swipe labels ───────────────────────────── */
.card-label-like, .card-label-nope {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}
.card-label-like {
    left: 20px;
    border: 3px solid var(--success);
    color: var(--success);
}
.card-label-nope {
    right: 20px;
    border: 3px solid var(--danger);
    color: var(--danger);
}

/* ── Icebreaker chips ────────────────────────────── */
.icebreakers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.icebreaker-chip {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.icebreaker-chip:hover { border-color: var(--accent); }

/* ── Admin Tabs ───────────────────────────────────── */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.admin-tab {
    padding: 0.625rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    text-decoration: none;
}
.admin-tab:hover { color: var(--text); }
.admin-tab-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Fakes Toolbar & Panels ───────────────────────── */
.fakes-toolbar { margin-bottom: 1rem; }
.fakes-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.fakes-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.fakes-edit-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fakes-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

/* ── Stats Grid ───────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent);
}
.stat-card-success { border-left-color: var(--success); }
.stat-card-warning { border-left-color: var(--warning); }
.stat-card-danger { border-left-color: var(--danger); }
.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ── Stats Charts ─────────────────────────────────── */
.stats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.stats-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.stats-section h3 { font-size: 0.95rem; margin-bottom: 1rem; }
.stats-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.stats-bar-row { display: flex; align-items: center; gap: 0.75rem; }
.stats-bar-label { width: 120px; font-size: 0.8rem; color: var(--text-secondary); text-align: right; flex-shrink: 0; }
.stats-bar-track { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.stats-bar-fill { height: 100%; background: var(--accent-gradient); border-radius: 4px; min-width: 2px; transition: width 0.5s ease; }
.stats-bar-fill-accent { background: var(--accent); }
.stats-bar-fill-teal { background: var(--teal); }
.stats-bar-value { width: 40px; font-size: 0.8rem; font-weight: 600; text-align: right; }

/* ── Settings Form ────────────────────────────────── */
.settings-form { max-width: 600px; }
.settings-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.settings-section h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.settings-desc { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; }

/* ── Photo Drag & Drop ─────────────────────────────── */
.photo-item[draggable="true"] { cursor: grab; }
.photo-item[draggable="true"]:active { cursor: grabbing; }
.photo-item.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.photo-drag-handle {
    position: absolute;
    top: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    z-index: 2;
    cursor: grab;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ── Likes Remaining ───────────────────────────────── */
.likes-remaining {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.25rem 0.5rem;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.footer-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.footer-sep {
    margin: 0 0.6rem;
    color: var(--border);
}
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}
