/* ═══════════════════════════════════════════════════════════
   nudes.ink — Modern Dark Theme
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg: #09090b;
    --bg-raised: #111113;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c22;
    --bg-input: #1a1a20;
    --bg-surface: #202028;
    --border: #27272a;
    --border-subtle: #1e1e22;
    --border-focus: #e84393;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --primary: #e84393;
    --primary-hover: #d63384;
    --primary-soft: rgba(232,67,147,0.12);
    --accent: #a855f7;
    --accent-soft: rgba(168,85,247,0.12);
    --gradient: linear-gradient(135deg, #e84393, #a855f7);
    --gradient-subtle: linear-gradient(135deg, rgba(232,67,147,0.08), rgba(168,85,247,0.08));
    --success: #22c55e;
    --success-soft: rgba(34,197,94,0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239,68,68,0.12);
    --warning: #eab308;
    --info: #3b82f6;
    --info-soft: rgba(59,130,246,0.12);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --nav-height: 64px;
    --sidebar-width: 320px;
    --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
::selection { background: var(--primary-soft); color: var(--primary); }
::-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-dim); }

/* ═══════════════════════════════════
   NAVBAR
   ═══════════════════════════════════ */
.navbar {
    background: rgba(9,9,11,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.nav-brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-brand:hover { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); }
.nav-logout { color: var(--text-dim); }
.nav-logout:hover { background: var(--danger-soft); color: var(--danger); }

/* ═══════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - var(--nav-height));
}
.main-fullbleed {
    min-height: calc(100vh - var(--nav-height));
}
.alert-floating {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    max-width: 500px;
    width: calc(100% - 48px);
    box-shadow: var(--shadow-lg);
}
.main-content:has(.chat-layout),
.main-fullbleed:has(.chat-layout),
.main-content:has(.admin-layout),
.main-fullbleed:has(.admin-layout) {
    max-width: none;
    padding: 0;
    overflow: hidden;
}
.main-content:has(.chat-layout) > .alert,
.main-content:has(.admin-layout) > .alert {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    max-width: 500px;
    width: calc(100% - 48px);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════
   ALERTS / TOASTS
   ═══════════════════════════════════ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}
.alert-error { background: var(--danger-soft); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.alert-success { background: var(--success-soft); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.chat-live-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 260;
    min-width: 220px;
    max-width: min(360px, calc(100% - 28px));
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.chat-live-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.chat-live-toast:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}
.chat-live-toast-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.chat-live-toast-sub {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(232,67,147,0.25);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(232,67,147,0.35); color: #fff; opacity: 0.92; }

.btn-secondary { background: var(--bg-surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-dim); color: var(--text); }

.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(168,85,247,0.2); }
.btn-accent:hover { background: rgba(168,85,247,0.2); }

.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-icon-only { padding: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-icon, .btn.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    gap: 0;
    font-size: 0;
    line-height: 1;
}
.btn-icon:hover { background: var(--bg-card); color: var(--text); }
.btn-icon.btn-ghost { background: transparent; border: none; color: var(--text-muted); }
.btn-icon.btn-ghost:hover { background: var(--bg-card); color: var(--text); }
.btn-icon.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-icon.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-icon.btn-danger:hover { background: var(--danger-hover); }
.btn-icon-danger, .btn-danger-icon { color: var(--danger); }
.btn-icon-danger:hover, .btn-danger-icon:hover { background: var(--danger-soft); color: var(--danger); }

/* ═══════════════════════════════════
   FORMS
   ═══════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], input[type="search"], textarea, select {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%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; }
select option { background: var(--bg-card); }

.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }

.form-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-section h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.form-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-hint { font-size: 13px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }

.file-input { display: none; }
.file-input-visible {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    width: 100%;
}

/* Custom File Upload Components */
.file-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    position: relative;
}
.file-upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.file-upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.file-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.file-upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.file-upload-zone:hover .file-upload-icon {
    background: var(--primary-soft);
    color: var(--primary);
}
.file-upload-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.file-upload-text span {
    color: var(--primary);
    font-weight: 600;
}
.file-upload-hint {
    font-size: 12px;
    color: var(--text-dim);
}
.file-upload-zone.compact {
    flex-direction: row;
    padding: 16px 20px;
    gap: 16px;
    text-align: left;
}
.file-upload-zone.compact .file-upload-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.file-upload-zone.has-file {
    border-color: var(--success);
    border-style: solid;
}
.file-upload-zone.has-file .file-upload-icon {
    background: var(--success-soft);
    color: var(--success);
}

/* ═══════════════════════════════════
   CHECKBOX / TOGGLE GRID
   ═══════════════════════════════════ */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}
.checkbox-card:hover { border-color: var(--text-dim); color: var(--text); }
.checkbox-card.checked,
.checkbox-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.checkbox-card input { display: none; }

.checkbox-inline { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; padding: 11px 0; }
.checkbox-inline input { width: auto; accent-color: var(--primary); }

/* ═══════════════════════════════════
   AUTH PAGES (Login / Register)
   ═══════════════════════════════════ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(232,67,147,0.06) 0%, transparent 60%);
}

.auth-container { width: 100%; display: flex; justify-content: center; }

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-card-wide { max-width: 640px; }

.auth-header { text-align: center; margin-bottom: 36px; }
.brand { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-subtitle { color: var(--text-muted); margin-top: 8px; font-size: 15px; }

.auth-form { display: flex; flex-direction: column; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 14px; }
.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 12px;
}

/* ═══════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════ */
.landing-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
}

.landing-page {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(1200px 640px at 85% -5%, rgba(168,85,247,0.12), transparent 60%),
        radial-gradient(900px 520px at 10% 10%, rgba(232,67,147,0.11), transparent 62%),
        var(--bg);
}
.landing-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
    opacity: 0.55;
}

.landing-nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    width: min(1160px, calc(100% - 28px));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(12,12,15,0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.landing-nav-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.4px;
    justify-self: start;
}
.landing-nav-brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    justify-self: center;
}
.landing-nav-link {
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}
.landing-nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}
.landing-nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: end;
}

.landing-hero {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 132px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: 40px;
    align-items: center;
}
.landing-hero-content {
    position: relative;
    max-width: 640px;
    text-align: left;
    animation: landingFadeUp 0.7s ease-out;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(232,67,147,0.28);
    background: rgba(232,67,147,0.09);
    color: #fca5d4;
    font-size: 12px;
    letter-spacing: 0.02em;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.landing-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2.35rem, 6vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -1.8px;
    margin-bottom: 18px;
    line-height: 1.06;
    text-wrap: balance;
}
.landing-brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.landing-tagline {
    font-size: clamp(1rem, 1.55vw, 1.18rem);
    color: var(--text-secondary);
    margin-bottom: 34px;
    line-height: 1.65;
    max-width: 58ch;
}

.landing-cta {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.landing-cta .btn-lg {
    padding: 14px 30px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.landing-trust-row {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.landing-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.landing-hero-panel {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    padding: 28px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    animation: landingFadeUp 0.7s ease-out 0.08s both;
}
.landing-panel-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #f5b4d6;
    font-weight: 700;
    margin-bottom: 8px;
}
.landing-panel-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.72rem);
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin-bottom: 22px;
}
.landing-panel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
.landing-panel-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.18);
}
.landing-panel-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text);
}
.landing-panel-item span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}
.landing-panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-panel-icon.lock { background: rgba(232,67,147,0.16); color: #f9a8d4; }
.landing-panel-icon.key { background: rgba(168,85,247,0.16); color: #d8b4fe; }
.landing-panel-icon.check { background: rgba(34,197,94,0.16); color: #86efac; }
.landing-panel-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.landing-panel-meta > div {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    background: rgba(255,255,255,0.02);
}
.landing-panel-meta strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}
.landing-panel-meta span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.landing-proof {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.landing-proof-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.landing-proof-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    color: var(--text);
}
.landing-proof-item span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

.landing-section { padding: 96px 24px; }
.landing-section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.landing-section-inner {
    max-width: 1040px;
    margin: 0 auto;
}
.landing-section-header {
    text-align: center;
    margin-bottom: 52px;
}
.landing-section-header h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.95rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.2;
}
.landing-section-header h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing-section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    text-align: left;
}

.landing-feature {
    background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 26px 22px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.landing-feature:hover {
    border-color: rgba(232,67,147,0.45);
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.35);
    background: linear-gradient(160deg, rgba(232,67,147,0.12), rgba(255,255,255,0.03));
}
.landing-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.landing-feature-icon.pink { background: var(--primary-soft); color: var(--primary); }
.landing-feature-icon.purple { background: var(--accent-soft); color: var(--accent); }
.landing-feature-icon.green { background: var(--success-soft); color: var(--success); }
.landing-feature-icon.blue { background: var(--info-soft); color: var(--info); }
.landing-feature-icon.orange { background: rgba(245,158,11,0.12); color: #f59e0b; }
.landing-feature h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.landing-feature p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.landing-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}
.landing-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 24px;
    transition: all var(--transition);
}
.landing-step:hover {
    border-color: rgba(168,85,247,0.38);
    transform: translateX(3px);
}
.landing-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(232,67,147,0.26);
}
.landing-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.landing-step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.landing-final-wrap { text-align: center; }
.landing-final-cta {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(460px 220px at 85% 20%, rgba(168,85,247,0.16), transparent 70%),
        radial-gradient(420px 200px at 15% 80%, rgba(232,67,147,0.16), transparent 70%),
        rgba(255,255,255,0.03);
    padding: 42px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.34);
}
.landing-final-cta h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
}
.landing-final-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}
.landing-final-actions {
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 0;
}

.landing-footer {
    margin-top: 8px;
    border-top: 1px solid var(--border-subtle);
    padding: 24px 32px 36px;
}
.landing-footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.landing-footer-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}
.landing-footer-brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing-footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

/* Footer Social */
.landing-footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}
.landing-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
}
.landing-footer-social:hover {
    color: #aabafe;
    background: rgba(88,101,242,0.12);
    border-color: rgba(88,101,242,0.4);
    transform: translateY(-2px);
}
.landing-footer-social svg {
    width: 20px;
    height: 20px;
}

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

/* ═══════════════════════════════════
   PAGE HEADERS
   ═══════════════════════════════════ */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.page-subtitle { color: var(--text-muted); margin-top: 4px; font-size: 15px; }

/* ═══════════════════════════════════
   EXPLORE PAGE
   ═══════════════════════════════════ */
.explore-page { max-width: 1200px; margin: 0 auto; }

.explore-filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.filter-form .filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input, .filter-select {
    padding: 9px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
    min-width: 140px;
}
.filter-input:focus, .filter-select:focus { border-color: var(--primary); }
.filter-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.filter-input { flex: 1; min-width: 200px; }

.explore-results-info { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text);
}
.user-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,67,147,0.08);
    color: var(--text);
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid var(--border);
    transition: border-color var(--transition);
}
.user-card:hover .user-card-avatar { border-color: var(--primary); }
.user-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-card-name { font-weight: 600; font-size: 16px; }
.user-card-username { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.user-card-badges { display: flex; gap: 6px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }

.badge-sm {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-gender { background: var(--primary-soft); color: var(--primary); }
.badge-status { background: var(--accent-soft); color: var(--accent); }
.badge-photos { background: var(--info-soft); color: var(--info); }

.user-card-bio { color: var(--text-muted); font-size: 13px; margin-top: 10px; line-height: 1.4; }

.user-card-tags { display: flex; gap: 5px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.tag-sm { padding: 3px 10px; background: var(--bg-surface); border-radius: 20px; font-size: 11px; color: var(--text-secondary); }
.tag-more { color: var(--text-dim); }

.empty-state-large {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state-large svg { opacity: 0.3; margin-bottom: 16px; }
.empty-state-large h2 { font-size: 20px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-large p { color: var(--text-muted); }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; }

.feed-empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 32px;
}
.feed-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}
.feed-empty h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.feed-empty p { color: var(--text-muted); font-size: 15px; max-width: 320px; margin: 0 auto; line-height: 1.5; }
.feed-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.pagination-info { color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════════
   PROFILE PAGE (Legacy compat)
   ═══════════════════════════════════ */
.profile-page { max-width: 900px; margin: 0 auto; }
.profile-header-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; margin-bottom: 20px; }
.profile-header { display: flex; gap: 32px; align-items: flex-start; }
.profile-avatar-large { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-name { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.profile-username { color: var(--text-muted); font-size: 15px; margin-top: 2px; }
.profile-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge { padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.badge-gender { background: var(--primary-soft); color: var(--primary); }
.badge-status { background: var(--accent-soft); color: var(--accent); }
.badge-location { background: var(--bg-surface); color: var(--text-secondary); }
.badge-revealed { background: var(--success-soft); color: var(--success); }
.badge-contact { background: var(--bg-surface); color: var(--text-secondary); }
.badge-private { border: 1px dashed var(--border); }
.profile-bio { margin-top: 16px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }
.profile-joined { margin-top: 16px; color: var(--text-dim); font-size: 12px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.profile-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-subtle); display: flex; gap: 10px; flex-wrap: wrap; }
.profile-section { margin-top: 36px; }
.profile-section h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.profile-section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.profile-section-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.section-count { font-size: 12px; font-weight: 600; color: var(--text-dim); background: var(--bg-surface); padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tag small { color: var(--text-dim); font-weight: 400; }
.tag-gender_preference { background: var(--primary-soft); color: var(--primary); }
.tag-activity { background: var(--accent-soft); color: var(--accent); }
.tag-kink { background: rgba(244,114,182,0.12); color: #f472b6; }
.tag-body_type { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* ═══════════════════════════════════
   PROFILE VIEW (Redesigned)
   ═══════════════════════════════════ */
.pv {
    max-width: 960px;
    margin: 0 auto;
}

/* Admin Ribbon */
.pv-admin-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--info-soft), rgba(59,130,246,0.08));
    border-bottom: 1px solid rgba(59,130,246,0.15);
    margin: -24px -24px 20px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pv-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--info);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pv-admin-actions {
    display: flex;
    gap: 8px;
}
.pv-admin-actions .btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}
.pv-admin-actions .btn-outline {
    border-color: rgba(59,130,246,0.3);
    color: var(--info);
}
.pv-admin-actions .btn-outline:hover {
    border-color: var(--info);
    background: rgba(59,130,246,0.15);
}
.pv-admin-actions .btn:not(.btn-outline) {
    background: var(--info);
    color: #fff;
    border: none;
}
.pv-admin-actions .btn:not(.btn-outline):hover {
    background: #2563eb;
}

/* Hero Card */
.pv-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-bottom: 24px;
}
.pv-hero-top {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.pv-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: border-color var(--transition);
}
.pv-hero-info { flex: 1; min-width: 0; }
.pv-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}
.pv-verified { flex-shrink: 0; }
.pv-username {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}
.pv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.pv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.pv-badge-pink { background: var(--primary-soft); color: var(--primary); }
.pv-badge-purple { background: var(--accent-soft); color: var(--accent); }
.pv-badge-dim { background: var(--bg-surface); color: var(--text-secondary); }
.pv-badge-blue { background: var(--info-soft); color: var(--info); }
.pv-badge-green { background: var(--success-soft); color: var(--success); }
.pv-badge-amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.pv-badge-danger { background: var(--danger-soft); color: var(--danger); }
.pv-banned {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239,68,68,0.14);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.34);
}

.pv-bio {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.pv-stats {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.pv-stat {
    font-size: 13px;
    color: var(--text-muted);
}
.pv-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.pv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.pv-actions .btn { min-width: 0; }

.pv-timestamps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pv-joined,
.pv-last-active {
    margin: 0;
    color: var(--text-dim);
    font-size: 12px;
    cursor: default;
}
.pv-timestamp-dot {
    color: var(--text-dim);
    font-size: 12px;
    user-select: none;
}

/* Two Column Grid */
.pv-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}
.pv-sidebar { display: flex; flex-direction: column; gap: 16px; }
.pv-main { display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.pv-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.pv-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.pv-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    background: var(--bg-surface);
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Interest Groups */
.pv-interest-group {
    margin-bottom: 16px;
}
.pv-interest-group:last-child { margin-bottom: 0; }
.pv-interest-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.pv-tag-pink { background: var(--primary-soft); color: var(--primary); }
.pv-tag-purple { background: var(--accent-soft); color: var(--accent); }
.pv-tag-rose { background: rgba(244,114,182,0.12); color: #f472b6; }
.pv-tag-amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.pv-tag-blue { background: var(--info-soft); color: var(--info); }

/* Contacts */
.pv-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pv-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}
.pv-contact:last-child { border-bottom: none; }
.pv-contact-type {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
}
.pv-contact-value {
    color: var(--text);
    word-break: break-all;
}
.pv-contact-private {
    color: var(--text-muted);
}
.pv-contact-private .pv-contact-value { color: var(--text-secondary); }

/* Locked placeholder */
.pv-locked-placeholder {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}
.pv-locked-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.pv-locked-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}
.pv-locked-placeholder p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.photo-card video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.photo-card .plyr {
    width: 100%;
    height: 100%;
    background: #000;
}
.photo-card .plyr__video-wrapper {
    height: 100%;
    background: #000;
}
.photo-card .plyr video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-card:hover img { transform: scale(1.03); }
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 12px;
}

.photo-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.photo-lock-badge, .photo-public-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}
.photo-lock-badge { background: rgba(232,67,147,0.7); color: #fff; }
.photo-public-badge { background: rgba(34,197,94,0.7); color: #fff; }

.photo-delete-form { display: inline; }

.locked-placeholder { text-align: center; padding: 32px; }
.locked-grid { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.locked-photo-card {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}
.locked-placeholder p { color: var(--text-muted); font-size: 14px; max-width: 400px; margin: 0 auto; }

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: border-color var(--transition);
}
.avatar-upload:hover .avatar-preview { border-color: var(--primary); }
.avatar-upload-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.avatar-upload-info p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Settings Page */
.settings-page { max-width: 720px; margin: 0 auto; }
.settings-page h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.settings-page > .settings-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}
.settings-form .form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.settings-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-card-icon.pink { background: var(--primary-soft); color: var(--primary); }
.settings-card-icon.purple { background: var(--accent-soft); color: var(--accent); }
.settings-card-icon.blue { background: var(--info-soft); color: var(--info); }
.settings-card-icon.green { background: var(--success-soft); color: var(--success); }
.settings-card-icon.red { background: var(--danger-soft); color: var(--danger); }
.settings-card-icon.orange { background: rgba(245,158,11,0.12); color: #f59e0b; }

.verified-badge { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.badge-contact { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); }
.badge-contact.badge-private { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.contact-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.contact-row:last-child { border-bottom: none; }
.contact-row select { flex: 0 0 140px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); color: var(--text); font-size: 13px; }
.contact-row input[type="text"] { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); color: var(--text); font-size: 13px; }
.settings-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.settings-card-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.photo-upload-form { margin-bottom: 24px; }
.photo-upload-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.photo-upload-row .form-group { margin-bottom: 0; }
.photo-grid-manage .photo-card { cursor: default; }

.danger-zone {
    border-color: rgba(239,68,68,0.2);
}
.danger-zone .settings-card-header {
    border-bottom-color: rgba(239,68,68,0.15);
}
.delete-confirm-card {
    background: var(--bg-card);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
    animation: slideDown 0.2s ease;
}

/* ═══════════════════════════════════
   CHAT PAGES — Desktop Layout
   ═══════════════════════════════════ */
.chat-layout {
    display: grid;
    grid-template-columns: minmax(280px, var(--sidebar-width)) 1fr;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 40%),
        radial-gradient(circle at 88% 84%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 42%),
        var(--bg);
}
.chat-layout > * {
    min-width: 0;
    min-height: 0;
}

.chat-sidebar {
    background: linear-gradient(180deg, var(--bg-raised), color-mix(in srgb, var(--bg-card) 70%, var(--bg-raised)));
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.chat-sidebar-header h2 { font-size: 20px; font-weight: 700; }

.chat-sidebar-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px;
}
.chat-sidebar-list::-webkit-scrollbar {
    width: 8px;
}
.chat-sidebar-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-dim) 45%, transparent);
    border-radius: 999px;
}

.conv-skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
}
.conv-skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}
.conv-skeleton-body {
    flex: 1;
    min-width: 0;
}
.conv-skeleton-line {
    margin: 0;
}
.conv-skeleton-line-name {
    height: 13px;
    width: 58%;
    margin-bottom: 8px;
    border-radius: 6px;
}
.conv-skeleton-line-sub {
    height: 11px;
    width: 42%;
    border-radius: 6px;
}
.conv-skeleton-meta {
    width: 58px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.conv-skeleton-line-time {
    height: 10px;
    width: 42px;
    border-radius: 6px;
}
.conv-skeleton-line-pill {
    height: 18px;
    width: 24px;
    border-radius: 999px;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text);
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
}
.conv-item:hover {
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    border-color: var(--border-subtle);
    color: var(--text);
}
.conv-item.active {
    background: color-mix(in srgb, var(--primary-soft) 78%, transparent);
    border-color: color-mix(in srgb, var(--primary) 26%, var(--border-subtle));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent);
}

.conv-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { color: var(--text-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { text-align: right; flex-shrink: 0; }
.conv-time { color: var(--text-dim); font-size: 12px; }
.conv-count { display: block; color: var(--text-dim); font-size: 11px; }
.conv-unread .conv-name { color: var(--text); }
.conv-unread .conv-preview { color: var(--text-secondary); font-weight: 500; }
.conv-unread .conv-time { color: var(--info); font-weight: 600; }
.conv-unread-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--info); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 10px;
    line-height: 1;
}

/* Navbar unread badge */
.nav-link { position: relative; }
.nav-badge {
    position: absolute; top: 2px; right: -2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--info); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg);
}

/* Read receipts */
.msg-read-receipt {
    display: flex; align-items: center; gap: 3px;
    font-size: 11px; color: var(--text-dim); margin-top: 2px;
    justify-content: flex-end;
}
.msg-read-receipt.is-read { color: var(--success); }
.msg-read-receipt svg { flex-shrink: 0; }
.msg-send-status.is-pending {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}
.msg-send-status.is-pending::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
    animation: chat-send-pulse 0.9s infinite ease-in-out;
}
.message-sending {
    opacity: 0.82;
}
.message-failed {
    border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
.message-failed .msg-send-status.is-failed {
    color: #ffd0d0;
    font-weight: 600;
}

@keyframes chat-send-pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.45; }
    50% { transform: scale(1); opacity: 1; }
}

/* Unread messages divider */
.unread-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0; padding: 0 16px;
}
.unread-divider::before, .unread-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--info);
    opacity: 0.4;
}
.unread-divider span {
    font-size: 12px; font-weight: 600; color: var(--info);
    white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px;
}

.chat-sidebar-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.chat-sidebar-empty p { font-size: 14px; margin-top: 8px; }

/* Chat Main Panel */
.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent), var(--bg));
    overflow: hidden;
}

.chat-main-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}
.chat-main-empty h3 { font-size: 18px; color: var(--text-secondary); margin-top: 12px; }
.chat-main-empty p { font-size: 14px; margin-top: 4px; }

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-raised) 90%, transparent);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    position: relative;
    z-index: 6;
}

.chat-user-info { display: flex; align-items: center; gap: 12px; color: var(--text); flex: 1; }
.chat-user-info:hover { color: var(--text); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-user-name { font-weight: 600; font-size: 15px; }
.chat-user-sub { color: var(--text-muted); font-size: 12px; }
.chat-header-meta {
    display: flex;
    align-items: center;
    margin-right: 8px;
}
.chat-e2ee-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 80%, transparent);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    white-space: nowrap;
}
.chat-actions { display: flex; gap: 6px; align-items: center; }
.chat-toggle-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.chat-toggle-btn:hover { border-color: var(--text-secondary); color: var(--text); }
.chat-toggle-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chat-toggle-btn.active:hover { background: var(--primary-hover); }
#reportBtn.chat-toggle-btn.active { background: #f59e0b; border-color: #f59e0b; color: #111113; }
#reportBtn.chat-toggle-btn.active:hover { background: color-mix(in srgb, #f59e0b 86%, #ffd68a); }

/* Messages Area */
.chat-messages {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 18px 24px 20px;
    background:
        radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--primary) 7%, transparent) 0%, transparent 48%),
        radial-gradient(circle at 90% 92%, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 44%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg-raised) 76%, transparent));
}
.chat-messages::-webkit-scrollbar {
    width: 9px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-dim) 45%, transparent);
    border-radius: 999px;
}
.chat-message-rail {
    width: min(920px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-report-summary {
    border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--border));
    border-radius: var(--radius);
    padding: 10px 12px;
    color: color-mix(in srgb, var(--text) 88%, #f59e0b);
    font-size: 13px;
    line-height: 1.45;
    background: color-mix(in srgb, #f59e0b 8%, var(--bg-card));
}
.chat-report-summary.is-error {
    border-color: rgba(239,68,68,0.55);
    color: var(--danger);
    background: rgba(239,68,68,0.11);
}
.chat-report-selection-bar {
    margin: 10px 24px 0;
    border: 1px solid rgba(245,158,11,0.42);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(245,158,11,0.12), rgba(245,158,11,0.03)),
        color-mix(in srgb, var(--bg-card) 95%, transparent);
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    padding: 12px;
    position: relative;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-report-selection-bar[hidden] {
    display: none !important;
}
.chat-report-selection-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: 10px;
    align-items: stretch;
}
.chat-report-selection-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.chat-report-selection-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f59e0b;
    text-transform: uppercase;
}
.chat-report-selection-desc {
    color: color-mix(in srgb, var(--text-secondary) 85%, #f59e0b);
    font-size: 13px;
    line-height: 1.4;
}
.chat-report-selection-subtle {
    color: var(--text-dim);
    font-size: 12px;
}
.chat-report-selection-controls {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.chat-report-selection-controls select,
.chat-report-selection-controls input {
    min-height: 38px;
}
.chat-report-selection-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.chat-report-selection-actions .btn {
    white-space: nowrap;
}
.chat-main.is-report-mode .chat-header {
    border-bottom-color: rgba(245,158,11,0.34);
}
.chat-main.is-report-mode .chat-input-area {
    opacity: 0.56;
}
.chat-message-rail.chat-report-mode .message.report-selectable {
    cursor: pointer;
    outline: none;
    border-color: color-mix(in srgb, var(--info) 65%, var(--border-subtle));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 42%, transparent), 0 5px 14px rgba(0, 0, 0, 0.08);
    transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}
.chat-message-rail.chat-report-mode .message.report-selectable:hover {
    border-color: color-mix(in srgb, #f59e0b 58%, var(--border-subtle));
    box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 28%, transparent), 0 8px 18px rgba(0,0,0,0.12);
}
.message.report-selected-range {
    border-color: rgba(245,158,11,0.72);
    box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 32%, transparent), 0 8px 18px rgba(0,0,0,0.12);
}
.message-sent.report-selected-range {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 90%, #f59e0b 10%), color-mix(in srgb, var(--accent) 86%, #f59e0b 14%));
}
.message-received.report-selected-range {
    background: color-mix(in srgb, #f59e0b 13%, var(--bg-card));
}
.message.report-selected-start,
.message.report-selected-end {
    box-shadow: 0 0 0 3px rgba(245,158,11,0.6), 0 10px 22px rgba(0,0,0,0.16);
}
.message.report-selected-start::after,
.message.report-selected-end::after {
    position: absolute;
    top: -10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    color: #111113;
    background: #f59e0b;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}
.message.report-selected-start::after {
    content: 'Start';
    right: 10px;
}
.message.report-selected-end::after {
    content: 'End';
    left: 10px;
}
.chat-message-rail.chat-report-mode .message.report-selectable a,
.chat-message-rail.chat-report-mode .message.report-selectable button,
.chat-message-rail.chat-report-mode .message.report-selectable input,
.chat-message-rail.chat-report-mode .message.report-selectable textarea,
.chat-message-rail.chat-report-mode .message.report-selectable select,
.chat-message-rail.chat-report-mode .message.report-selectable label,
.chat-message-rail.chat-report-mode .message.report-selectable video,
.chat-message-rail.chat-report-mode .message.report-selectable audio,
.chat-message-rail.chat-report-mode .message.report-selectable .chat-photo,
.chat-message-rail.chat-report-mode .message.report-selectable .chat-storage-share-image,
.chat-message-rail.chat-report-mode .message.report-selectable .chat-storage-share-video,
.chat-message-rail.chat-report-mode .message.report-selectable [data-audio-play],
.chat-message-rail.chat-report-mode .message.report-selectable [data-audio-seek],
.chat-message-rail.chat-report-mode .message.report-selectable [data-audio-speed],
.chat-message-rail.chat-report-mode .message.report-selectable .chat-audio-download {
    pointer-events: none;
}
@media (max-width: 900px) {
    .chat-report-selection-bar {
        margin: 8px 10px 0;
        padding: 10px;
        gap: 8px;
    }
    .chat-report-selection-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .chat-report-selection-title {
        font-size: 12px;
    }
    .chat-report-selection-desc {
        font-size: 12px;
        line-height: 1.35;
    }
    .chat-report-summary {
        padding: 8px 10px;
        font-size: 12px;
    }
    .chat-report-selection-controls {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .chat-report-selection-controls select,
    .chat-report-selection-controls input {
        width: 100%;
        min-height: 36px;
    }
    .chat-report-selection-controls #reportNote {
        grid-column: auto;
    }
    .chat-report-selection-actions {
        justify-content: flex-start;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .chat-report-selection-actions .btn {
        min-height: 36px;
        width: 100%;
        padding-inline: 10px;
    }
    .chat-report-selection-actions #reportSubmitBtn {
        grid-column: 1 / -1;
    }
    .chat-report-selection-subtle {
        font-size: 11px;
    }
}
.chat-loading { text-align: center; color: var(--text-dim); padding: 40px; }

.message {
    max-width: min(620px, 78%);
    padding: 11px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    position: relative;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}
.message a {
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.message-received a {
    color: var(--primary);
}
.message-sent a {
    color: #fff;
    text-decoration-color: rgba(255,255,255,0.75);
}
.message a:hover {
    opacity: 0.9;
}

.message-sent {
    align-self: flex-end;
    background: var(--gradient);
    color: #fff;
    border: 1px solid color-mix(in srgb, #fff 15%, transparent);
    border-bottom-right-radius: 6px;
}

.message-received {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text);
    border-bottom-left-radius: 6px;
}

.message-system {
    align-self: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    max-width: 100%;
}

.message-time {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.65;
}
.message-sent .message-time {
    text-align: right;
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 90%, transparent), var(--bg-raised));
    backdrop-filter: blur(10px);
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.chat-typing-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(3px);
}
.chat-typing-indicator.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-typing-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 8px 10px;
    border-radius: 16px 16px 16px 6px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.chat-typing-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    background: color-mix(in srgb, var(--primary) 60%, var(--text-dim));
    animation: chat-typing-pulse 1s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.12s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.24s; }

@keyframes chat-typing-pulse {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0) scale(0.95); }
    40% { opacity: 1; transform: translateY(-2px) scale(1); }
}

.chat-recording-bubble {
    min-width: 42px;
}
.chat-recording-icon {
    position: relative;
    width: 18px;
    height: 18px;
    color: color-mix(in srgb, var(--primary) 76%, var(--text-dim));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chat-recording-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chat-recording-dot {
    position: absolute;
    right: -3px;
    top: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.42);
    animation: chat-recording-pulse 1.1s infinite ease-out;
}

@keyframes chat-recording-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.42); opacity: 0.95; }
    100% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); opacity: 1; }
}

.chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.chat-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 8px 10px 6px;
    border-radius: 0;
    background: transparent;
    border: 0;
    font-size: 14px;
    color: var(--text);
}
.chat-form input[type="text"]::placeholder {
    color: var(--text-dim);
}
.chat-form input[type="text"]:focus {
    border: 0;
    outline: none;
}
.chat-input-field {
    position: relative;
    flex: 1;
    min-width: 0;
}
.chat-form .chat-input-field input[type="text"] {
    width: 100%;
    padding-right: 8px;
}

.chat-form .btn-icon-only {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.chat-form .btn-icon-only:hover { opacity: 0.85; }
.chat-form .btn-icon-only.is-hidden { display: none; }
.chat-form .chat-record-trigger {
    display: none;
}
.chat-form .chat-record-trigger.is-visible {
    display: inline-flex;
}

.chat-photo {
    max-width: min(280px, 100%);
    max-height: 320px;
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: 4px;
    cursor: pointer;
}
.chat-photo:hover { opacity: 0.9; }
.message-sent .chat-photo { border-radius: 18px 18px 6px 18px; }
.message-received .chat-photo { border-radius: 18px 18px 18px 6px; }

.chat-storage-share {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
}
.message-sent .chat-storage-share {
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.08);
}
.chat-storage-share-label {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-secondary) 92%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.message-sent .chat-storage-share-label {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.2);
}
.chat-storage-share-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #000;
}
.chat-storage-share-image {
    display: block;
    width: min(320px, 100%);
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    object-position: center center;
    background: #000;
}
.nudes-video-shell {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.nudes-video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
}
.nudes-video-shell-storage {
    height: 280px;
}
.chat-storage-share .nudes-video-shell-chat {
    width: min(320px, 100%);
    max-width: 100%;
    height: clamp(168px, 28vw, 260px);
}
.nudes-video-controls {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(6,8,14,0.64), rgba(4,5,10,0.86));
    backdrop-filter: blur(7px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.nudes-video-shell:hover .nudes-video-controls,
.nudes-video-shell:focus-within .nudes-video-controls,
.nudes-video-shell.is-playing .nudes-video-controls {
    opacity: 1;
    transform: translateY(0);
}
.nudes-video-shell:fullscreen,
.nudes-video-shell:-webkit-full-screen {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: #000;
}
.nudes-video-shell:fullscreen video,
.nudes-video-shell:-webkit-full-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}
.nudes-video-shell:fullscreen .nudes-video-controls,
.nudes-video-shell:-webkit-full-screen .nudes-video-controls {
    left: 20px;
    right: 20px;
    bottom: 20px;
    opacity: 1;
    transform: none;
}
.nudes-video-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(15,17,24,0.74);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.nudes-video-btn:hover {
    border-color: rgba(255,255,255,0.38);
    background: rgba(31,35,46,0.84);
}
.nudes-video-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nudes-video-time {
    min-width: 78px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.nudes-video-seek,
.nudes-video-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    outline: none;
}
.nudes-video-seek {
    background: linear-gradient(to right, #ec4899 0 var(--video-seek-progress, 0%), rgba(255,255,255,0.24) var(--video-seek-progress, 0%) 100%);
}
.nudes-video-volume {
    width: 68px;
    background: linear-gradient(to right, #60a5fa 0 var(--video-volume-progress, 100%), rgba(255,255,255,0.24) var(--video-volume-progress, 100%) 100%);
}
.nudes-video-seek::-webkit-slider-thumb,
.nudes-video-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.5);
    cursor: pointer;
}
.nudes-video-seek::-moz-range-thumb,
.nudes-video-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.5);
    cursor: pointer;
}
@media (hover: none), (pointer: coarse) {
    .nudes-video-controls {
        opacity: 1;
        transform: none;
    }
}

.chat-form .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 0;
    background: color-mix(in srgb, var(--bg-input) 85%, transparent);
    color: var(--text-muted);
}
.chat-form .btn-icon:hover {
    background: color-mix(in srgb, var(--bg-input) 72%, var(--primary-soft));
    color: var(--text);
}
.chat-form .chat-emoji-btn.is-active {
    background: color-mix(in srgb, var(--primary-soft) 74%, transparent);
    color: var(--primary);
}

.chat-emoji-panel {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-card) 95%, transparent);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    overflow: hidden;
}
.chat-emoji-panel[hidden] {
    display: none !important;
}
.chat-emoji-panel-head {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-subtle);
}
.chat-emoji-grid {
    max-height: 220px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
    gap: 6px;
    padding: 10px;
}
.chat-emoji-cell {
    width: 100%;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-input) 88%, transparent);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chat-emoji-cell:hover {
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-input) 72%, var(--primary-soft));
}
.chat-emoji-empty {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    padding: 14px 8px;
}

.chat-emoji-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 16;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-card) 96%, transparent);
    box-shadow: 0 12px 26px rgba(0,0,0,0.2);
    overflow: auto;
    max-height: 220px;
}
.chat-emoji-autocomplete[hidden] {
    display: none !important;
}
.chat-emoji-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 78%, transparent);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
.chat-emoji-option:last-child {
    border-bottom: 0;
}
.chat-emoji-option:hover,
.chat-emoji-option.is-active {
    background: color-mix(in srgb, var(--primary-soft) 74%, transparent);
}
.chat-emoji-option-glyph {
    font-size: 18px;
    width: 22px;
    text-align: center;
}
.chat-emoji-option-code {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.chat-voice-panel {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-card) 94%, transparent);
    padding: 10px 12px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}
.chat-voice-panel[hidden] {
    display: none !important;
}
.chat-voice-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.chat-voice-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    animation: chat-voice-pulse 1.1s infinite ease-out;
}
.chat-voice-panel.is-paused .chat-voice-live-dot {
    background: var(--text-dim);
    animation: none;
    box-shadow: none;
}
.chat-voice-timer {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.chat-voice-wave {
    margin-top: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-input) 92%, transparent), color-mix(in srgb, var(--bg-raised) 88%, transparent));
    overflow: hidden;
}
.chat-voice-wave canvas {
    display: block;
    width: 100%;
    height: 72px;
}
.chat-voice-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
@keyframes chat-voice-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.message-voice {
    padding-bottom: 10px;
}
.chat-audio-wrap {
    min-width: 240px;
    max-width: min(360px, 80vw);
}
.chat-audio-player {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-radius: 14px;
    padding: 8px 10px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-input) 92%, transparent);
}
.message-sent .chat-audio-player {
    border-color: rgba(255,255,255,0.26);
    background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.11));
    backdrop-filter: blur(3px);
}
.message-received .chat-audio-player {
    border-color: var(--border-subtle);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-input) 95%, transparent), color-mix(in srgb, var(--bg-raised) 90%, transparent));
}
.chat-audio-element {
    display: none;
}
.chat-audio-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}
.chat-audio-play:hover {
    transform: scale(1.05);
}
.chat-audio-play svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.chat-audio-player .chat-audio-play {
    background: color-mix(in srgb, var(--primary-soft) 80%, transparent);
    color: var(--primary);
}
.message-sent .chat-audio-play {
    background: rgba(255,255,255,0.92);
    color: #7c2d6b;
}
.message-received .chat-audio-play {
    background: color-mix(in srgb, var(--primary-soft) 80%, transparent);
    color: var(--primary);
}
.chat-audio-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-audio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    line-height: 1.2;
}
.chat-audio-title {
    font-weight: 700;
    letter-spacing: 0.01em;
}
.chat-audio-time {
    font-variant-numeric: tabular-nums;
    opacity: 0.86;
}
.chat-audio-seek {
    --seek-progress: 0%;
    --seek-active: var(--primary);
    --seek-track: color-mix(in srgb, var(--text-dim) 34%, transparent);
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--seek-active) 0%,
        var(--seek-active) var(--seek-progress),
        var(--seek-track) var(--seek-progress),
        var(--seek-track) 100%
    );
    outline: none;
    border: 0;
    cursor: pointer;
}
.message-sent .chat-audio-seek {
    --seek-active: rgba(255,255,255,0.94);
    --seek-track: rgba(255,255,255,0.26);
}
.message-received .chat-audio-seek {
    --seek-active: var(--primary);
    --seek-track: color-mix(in srgb, var(--text-dim) 30%, transparent);
}
.chat-audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: currentColor;
}
.message-sent .chat-audio-seek::-webkit-slider-thumb {
    color: rgba(255,255,255,0.96);
}
.message-received .chat-audio-seek::-webkit-slider-thumb {
    color: var(--primary);
}
.chat-audio-seek::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: currentColor;
}
.message-sent .chat-audio-seek::-moz-range-thumb {
    color: rgba(255,255,255,0.96);
}
.message-received .chat-audio-seek::-moz-range-thumb {
    color: var(--primary);
}
.chat-audio-speed {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.chat-audio-player .chat-audio-speed {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}
.message-sent .chat-audio-speed {
    color: rgba(255,255,255,0.96);
    border-color: rgba(255,255,255,0.36);
    background: rgba(255,255,255,0.12);
}
.message-received .chat-audio-speed {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}
.chat-audio-download {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.chat-audio-download:hover {
    transform: scale(1.05);
}
.chat-audio-download svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chat-audio-player .chat-audio-download {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}
.message-sent .chat-audio-download {
    color: rgba(255,255,255,0.96);
    border-color: rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.11);
}
.message-received .chat-audio-download {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}

/* ═══════════════════════════════════
   MODAL SYSTEM
   ═══════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.modal-icon.warning { background: var(--primary-soft); color: var(--primary); }
.modal-icon.danger { background: var(--danger-soft); color: var(--danger); }
.modal-icon.success { background: var(--success-soft); color: var(--success); }

.modal h3 { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.modal p { color: var(--text-muted); text-align: center; font-size: 14px; line-height: 1.5; }
.modal-actions { display: flex; gap: 12px; margin-top: 28px; }
.modal-actions .btn { flex: 1; }

/* ═══════════════════════════════════
   ADMIN SECTION
   ═══════════════════════════════════ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - var(--nav-height));
    background: radial-gradient(circle at 10% -20%, rgba(255,255,255,0.05), transparent 40%), #09090c;
}

.admin-sidebar {
    background: #0d0d10;
    border-right: 1px solid #1d1d23;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 0 12px;
    margin-bottom: 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
    border: 1px solid transparent;
}
.admin-nav-item:hover { background: #17171d; border-color: #272731; color: var(--text); }
.admin-nav-item.active { background: #1a1a22; border-color: #343441; color: #f4f4f5; }

.admin-content {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent 220px);
}
.admin-content h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.admin-content .page-subtitle { margin-bottom: 28px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }

.stat-card {
    background: #121217;
    border: 1px solid #25252e;
    border-radius: var(--radius-lg);
    padding: 24px;
}
.stat-card-label { color: var(--text-muted); font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.stat-card-value { font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.stat-card-value.pink { color: var(--primary); }
.stat-card-value.purple { color: var(--accent); }
.stat-card-value.green { color: var(--success); }
.stat-card-value.blue { color: var(--info); }

/* Data Table */
.data-table-wrap {
    background: #121217;
    border: 1px solid #25252e;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.data-table-header h3 { font-size: 16px; font-weight: 600; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
    background: #101015;
}
.data-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-card-hover); }
.admin-conv-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-conv-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: #121217;
    padding: 14px;
}
.admin-conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.admin-conv-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.admin-conv-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-conv-count {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--info);
    background: var(--info-soft);
}
.admin-conv-updated {
    font-size: 12px;
    color: var(--text-dim);
}
.admin-conv-participants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}
.admin-conv-participant {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 8px 10px;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
}
.admin-conv-participant.is-deleted {
    opacity: 0.75;
}
.admin-conv-participant img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.admin-conv-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.admin-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.admin-report-summary-card,
.admin-report-resolve-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: #121217;
    padding: 14px;
}
.admin-report-resolve-card {
    margin-top: 12px;
}
@media (max-width: 980px) {
    .admin-conv-card {
        grid-template-columns: 1fr;
    }
    .admin-conv-actions {
        justify-content: flex-start;
    }
}
.network-table {
    table-layout: fixed;
    width: 100%;
}
.network-table th,
.network-table td {
    word-break: break-word;
}
.network-table .network-ip-cell {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.25;
}

.table-user { display: flex; align-items: center; gap: 12px; }
.table-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.table-user-name { font-weight: 600; color: var(--text); font-size: 14px; min-width: 0; }
.table-user-email { color: var(--text-muted); font-size: 12px; }
.table-user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.tor-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    flex-shrink: 0;
}

/* Admin Users Table: keep widths compact and stable */
.admin-users-table {
    table-layout: fixed;
    width: 100%;
}
.admin-users-table th,
.admin-users-table td {
    padding: 10px 10px;
}
.admin-users-table th:nth-child(1) { width: 34%; }
.admin-users-table th:nth-child(2) { width: 12%; }
.admin-users-table th:nth-child(3) { width: 10%; }
.admin-users-table th:nth-child(4) { width: 8%; }
.admin-users-table th:nth-child(5) { width: 8%; }
.admin-users-table th:nth-child(6) { width: 13%; }
.admin-users-table th:nth-child(7) { width: 11%; }
.admin-users-table th:nth-child(8) { width: 4%; }
.admin-users-table th:last-child,
.admin-users-table td:last-child {
    text-align: right;
    padding-right: 24px;
}
.admin-users-table .table-user { min-width: 0; }
.admin-users-table .table-user > div { min-width: 0; }
.admin-users-table .table-user-name,
.admin-users-table .table-user-email {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.admin-users-table .table-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (max-width: 1360px) {
    .admin-users-table th:nth-child(4),
    .admin-users-table td:nth-child(4) {
        display: none;
    }
    .admin-users-table th:nth-child(1) { width: 40%; }
    .admin-users-table th:nth-child(2) { width: 14%; }
    .admin-users-table th:nth-child(3) { width: 14%; }
    .admin-users-table th:nth-child(5) { width: 10%; }
    .admin-users-table th:nth-child(6) { width: 14%; }
    .admin-users-table th:nth-child(7) { width: 6%; }
    .admin-users-table th:nth-child(8) { width: 2%; }
    .admin-users-table th:last-child,
    .admin-users-table td:last-child {
        padding-right: 18px;
    }
}
@media (max-width: 1200px) {
    .admin-users-table th:nth-child(5),
    .admin-users-table td:nth-child(5) {
        display: none;
    }
    .admin-users-table th:nth-child(1) { width: 44%; }
    .admin-users-table th:nth-child(2) { width: 16%; }
    .admin-users-table th:nth-child(3) { width: 14%; }
    .admin-users-table th:nth-child(6) { width: 14%; }
    .admin-users-table th:nth-child(7) { width: 8%; }
    .admin-users-table th:nth-child(8) { width: 4%; }
    .admin-users-table th:last-child,
    .admin-users-table td:last-child {
        padding-right: 16px;
    }
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.status-active { background: var(--success-soft); color: var(--success); }
.status-inactive { background: var(--danger-soft); color: var(--danger); }
.status-admin { background: var(--primary-soft); color: var(--primary); }

/* Admin Edit User */
.admin-user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.admin-user-header img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.admin-user-header h2 { font-size: 22px; font-weight: 700; }
.admin-user-header .meta { color: var(--text-muted); font-size: 13px; }

.admin-form { max-width: 560px; }
.admin-form .form-group { margin-bottom: 20px; }

.admin-panel-card {
    background: #121217;
    border: 1px solid #25252e;
    border-radius: var(--radius-lg);
    padding: 20px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.admin-panel-head h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.admin-panel-head p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}
.admin-panel-head svg { flex-shrink: 0; }
.admin-panel-icon-success { color: var(--success); }
.admin-panel-icon-warn { color: #f59e0b; }

.network-panel .admin-panel-head {
    margin-bottom: 14px;
}
.network-glance {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.05));
}
.network-glance-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}
.network-glance-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    line-height: 1.2;
}
.network-origin {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}
.network-origin-code {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.network-score-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.network-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}
.network-score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.network-risk-low {
    border-color: rgba(16,185,129,0.24);
}
.network-risk-low .network-score-pill {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(16,185,129,0.28);
}
.network-risk-medium {
    border-color: rgba(245,158,11,0.28);
}
.network-risk-medium .network-score-pill {
    color: #f59e0b;
    background: rgba(245,158,11,0.14);
    border-color: rgba(245,158,11,0.35);
}
.network-risk-high {
    border-color: rgba(249,115,22,0.35);
}
.network-risk-high .network-score-pill {
    color: #f97316;
    background: rgba(249,115,22,0.14);
    border-color: rgba(249,115,22,0.35);
}
.network-risk-critical {
    border-color: rgba(239,68,68,0.38);
}
.network-risk-critical .network-score-pill {
    color: var(--danger);
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.36);
}
.network-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.network-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}
.network-chip-safe {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(16,185,129,0.28);
}
.network-chip-warn {
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.3);
}
.network-chip-danger {
    color: var(--danger);
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.34);
}
.network-chip-muted {
    color: var(--text-muted);
    background: var(--bg-surface);
}
.network-primary-ip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}
.network-ip-code {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}
.network-provider-line {
    font-size: 12px;
    color: var(--text-secondary);
}
.network-meta-line {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}
.network-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
.network-mini-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 9px 10px;
}
.network-mini-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}
.network-mini-value {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.network-details {
    margin-top: 4px;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
    padding: 8px 10px;
}
.network-details > summary {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
}
.network-details > summary::-webkit-details-marker {
    display: none;
}
.network-details-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.network-detail-block h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin: 0 0 6px;
}
.network-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.network-detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
}
.network-detail-list li:last-child {
    border-bottom: none;
}
.network-ip-wrap {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.network-ip-inline {
    font-size: 11px;
}

.escrow-panel {
    border-color: var(--border-subtle);
}
.escrow-empty {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px;
}
.escrow-password-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}
.escrow-password-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.escrow-password-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    word-break: break-all;
    filter: blur(6px);
    user-select: none;
    transition: filter .2s ease;
}
.escrow-password-value:hover,
.escrow-password-value:focus,
.escrow-password-wrap:active .escrow-password-value {
    filter: none;
    user-select: text;
}
.escrow-hover-note {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-dim);
}
.escrow-meta-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.escrow-meta-time {
    font-size: 12px;
    color: var(--text-muted);
}
.escrow-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.escrow-history-link {
    margin-top: 10px;
}

.admin-edit-form {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.admin-edit-form .form-group { margin-bottom: 0; }
.admin-edit-form .form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}
.admin-edit-flag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 2px;
}
.admin-edit-flag {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-input);
    cursor: pointer;
    transition: all var(--transition);
}
.admin-edit-flag:hover { border-color: var(--text-dim); }
.admin-edit-flag:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.admin-edit-flag input {
    width: auto;
    margin-top: 3px;
    accent-color: var(--primary);
}
.admin-edit-flag-copy { min-width: 0; }
.admin-edit-flag-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.admin-edit-flag-desc {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}
.admin-edit-flag:has(input:checked) .admin-edit-flag-title { color: var(--primary); }
.admin-edit-flag:has(input:checked) .admin-edit-flag-desc { color: rgba(232,67,147,0.85); }

.admin-action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-action-inline { display: inline; }
.admin-action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.admin-action-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.admin-action-card p { font-size: 13px; color: var(--text-muted); }
.admin-action-card-danger { border-color: rgba(239,68,68,0.25); }

@media (max-width: 900px) {
    .network-glance-top {
        grid-template-columns: 1fr;
    }
    .network-score-line {
        justify-content: flex-start;
    }
    .network-primary-ip {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .network-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .network-detail-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ═══════════════════════════════════
   ADMIN CHAT VIEWER
   ═══════════════════════════════════ */
.admin-chat-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.admin-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.admin-msg-system {
    justify-content: center;
}
.admin-msg-system .admin-msg-body {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    text-align: center;
}
.admin-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.admin-msg-body {
    flex: 1;
    min-width: 0;
}
.admin-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.admin-msg-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}
.admin-msg-time {
    font-size: 11px;
    color: var(--text-dim);
}
.admin-msg-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    word-break: break-word;
}

/* ═══════════════════════════════════
   MODALS
   ═══════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: modalIn 0.15s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.modal-icon-danger { background: var(--danger-soft); color: var(--danger); }
.modal-icon-warn { background: rgba(245,158,11,0.15); color: #f59e0b; }
.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ═══════════════════════════════════
   ADMIN PROFILE BANNER
   ═══════════════════════════════════ */
.admin-profile-bar {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}
.admin-profile-bar svg { flex-shrink: 0; }
.admin-profile-bar .admin-bar-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ═══════════════════════════════════
   UTILITIES
   ═══════════════════════════════════ */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ═══════════════════════════════════
   PROFILE STATS
   ═══════════════════════════════════ */
.profile-stats {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}
.profile-stat {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 14px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    transition: background var(--transition);
}
.profile-stat:hover {
    background: var(--bg-card-hover);
}
.profile-stat strong {
    color: var(--text);
    font-weight: 700;
}

/* ═══════════════════════════════════
   FEED & POSTS
   ═══════════════════════════════════ */
.feed-page {
    max-width: 680px;
    margin: 0 auto;
}
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.feed-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color var(--transition);
}
.post-card:hover {
    border-color: var(--border);
    background: var(--bg-card-hover);
}
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.post-author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.post-meta {
    font-size: 12px;
    color: var(--text-dim);
}
.post-content {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.post-content a {
    color: inherit;
    text-decoration: none;
}
.post-photos {
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}
.post-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.post-photos-grid .post-photo {
    height: 240px;
    border-radius: 0;
}
.post-actions {
    display: flex;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}
.post-action-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}
.post-action-btn.liked {
    color: var(--accent);
}
.like-user-btn.liked {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}
.follow-btn.following {
    color: var(--success);
    border-color: rgba(34,197,94,0.3);
    background: var(--success-soft);
}

/* Create Post */
.post-create-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.post-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    outline: none;
    transition: border-color var(--transition);
}
.post-textarea:focus {
    border-color: var(--accent);
}
.photo-preview-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.photo-preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════
   COMMENTS
   ═══════════════════════════════════ */
.comments-section {
    margin-top: 24px;
}
.comments-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.comment-form {
    margin-bottom: 24px;
}
.comment-form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-avatar-sm {
    width: 24px;
    height: 24px;
}
.comment-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.comment-input:focus {
    border-color: var(--accent);
}
.comment-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
}
.comment-author:hover {
    text-decoration: underline;
}
.comment-time {
    font-size: 11px;
    color: var(--text-dim);
}
.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.comment-photo {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    margin-bottom: 4px;
}
.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.comment-reply {
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}
.reply-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}
.reply-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}
.reply-input:focus {
    border-color: var(--accent);
}

/* ═══════════════════════════════════
   SOCIAL BUTTONS
   ═══════════════════════════════════ */
.follow-btn {
    min-width: 100px;
}
.like-user-btn, .like-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
}

/* ═══════════════════════════════════
   PJAX PAGE TRANSITIONS
   ═══════════════════════════════════ */
#pjax-container {
    transition: opacity 0.12s ease, transform 0.12s ease;
}
#pjax-container.pjax-leaving {
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
}
#pjax-container.pjax-skeleton {
    opacity: 1;
    transform: none;
}
#pjax-container.pjax-entering {
    animation: pjaxFadeIn 0.18s ease forwards;
}
@keyframes pjaxFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════
   SKELETON LOADING SCREENS
   ═══════════════════════════════════ */
@keyframes skShimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.sk {
    background: var(--bg-card);
    background-image: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 40%, var(--bg-card) 80%);
    background-size: 800px 100%;
    animation: skShimmer 1.4s infinite linear;
    border-radius: var(--radius);
}
.sk-line { height: 14px; margin-bottom: 10px; border-radius: 6px; }
.sk-line-sm { height: 10px; margin-bottom: 8px; border-radius: 4px; }
.sk-line-lg { height: 22px; margin-bottom: 12px; border-radius: 8px; }
.sk-w20 { width: 20%; }
.sk-w30 { width: 30%; }
.sk-w40 { width: 40%; }
.sk-w50 { width: 50%; }
.sk-w60 { width: 60%; }
.sk-w70 { width: 70%; }
.sk-w80 { width: 80%; }
.sk-w90 { width: 90%; }
.sk-w100 { width: 100%; }

.sk-circle {
    border-radius: 50%;
}
.sk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.sk-card .sk-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.sk-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.sk-badge {
    width: 60px;
    height: 22px;
    border-radius: 20px;
}
.sk-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.sk-hero .sk-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
}
.sk-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.sk-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.sk-post-header .sk-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sk-post-header > div {
    flex: 1;
}
.sk-filters {
    height: 68px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.sk-tabs {
    height: 48px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.sk-settings-header {
    height: 100px;
    border-radius: var(--radius-xl);
    margin-bottom: 0;
}
.sk-settings-body {
    height: 400px;
    border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════
   SETTINGS PAGE (Redesigned)
   ═══════════════════════════════════ */
.stg {
    max-width: 960px;
    margin: 0 auto;
}
.stg-with-tabs .stg-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Header */
.stg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 0;
}
.stg-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.stg-header-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.stg-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}
.stg-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stg-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-soft);
    padding: 2px 10px;
    border-radius: 20px;
}
.stg-pending {
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    padding: 2px 10px;
    border-radius: 20px;
}
.stg-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stg-logout-btn {
    color: var(--danger);
    border-color: rgba(239,68,68,0.35);
}
.stg-logout-btn:hover {
    background: var(--danger-soft);
    border-color: rgba(239,68,68,0.55);
    color: var(--danger);
}

/* Tabs */
.stg-tabs {
    display: flex;
    gap: 2px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 24px;
}
.stg-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
}
.stg-tab:hover {
    color: var(--text);
    background: var(--bg-surface);
}
.stg-tab.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}
.stg-tab-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-surface);
    color: var(--text-dim);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}
.stg-tab.active .stg-tab-count {
    background: rgba(232,67,147,0.2);
    color: var(--primary);
}

/* Panels */
.stg-panel {
    display: none;
}
.stg-panel.active {
    display: block;
    animation: stgFadeIn 0.2s ease;
}
@keyframes stgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.stg-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}
.stg-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}
.stg-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stg-section-intro h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.stg-section-intro p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Avatar Row */
.stg-avatar-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.stg-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
    transition: border-color var(--transition);
}
.stg-avatar-row:hover .stg-avatar-lg {
    border-color: var(--primary);
}
.stg-avatar-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.stg-avatar-info p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

/* Crop Picker */
.stg-crop-picker {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.stg-crop-preview-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.stg-crop-original {
    position: relative;
    max-width: 280px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.stg-crop-original.dragging {
    cursor: grabbing;
}
.stg-crop-original img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.45;
}
.stg-crop-overlay {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: rgba(232,67,147,0.08);
    pointer-events: none;
    transition: all 0.2s ease;
}
.stg-crop-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.stg-crop-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.stg-crop-hint {
    font-size: 12px;
    color: var(--text-dim);
}
.stg-crop-controls {
    margin-top: 12px;
}

/* Avatar Lightbox */
.pv-avatar-wrap {
    cursor: pointer;
    position: relative;
}
.pv-avatar-wrap:hover .pv-avatar {
    border-color: var(--primary);
}
.avatar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: zoom-out;
}
.avatar-lightbox.active { opacity: 1; }
.avatar-lightbox img {
    max-width: min(90vw, 500px);
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.avatar-lightbox.active img { transform: scale(1); }

/* Field Grids */
.stg-field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stg-field-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* Interest Blocks */
.stg-interest-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.stg-interest-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.stg-interest-header h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.stg-interest-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}
.stg-interest-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stg-interest-icon.pink { background: var(--primary-soft); color: var(--primary); }
.stg-interest-icon.purple { background: var(--accent-soft); color: var(--accent); }
.stg-interest-icon.green { background: var(--success-soft); color: var(--success); }
.stg-interest-icon.blue { background: var(--info-soft); color: var(--info); }
.stg-interest-icon.orange { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* Chip Grid */
.stg-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.stg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}
.stg-chip:hover {
    border-color: var(--text-dim);
    color: var(--text);
    background: var(--bg-surface);
}
.stg-chip.active,
.stg-chip:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}
.stg-chip input { display: none; }

/* Photo Grid */
.stg-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.stg-storage-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}
.stg-upload-form {
    margin-bottom: 8px;
}
.stg-upload-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}
.stg-upload-caption {
    flex: 1;
}
.stg-upload-lock {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 8px 0;
}
.stg-upload-lock input { width: auto; accent-color: var(--primary); }

.storage-shell {
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        radial-gradient(140% 90% at 0% 0%, rgba(232,67,147,0.12), transparent 55%),
        radial-gradient(140% 120% at 100% 100%, rgba(59,130,246,0.12), transparent 60%),
        #101116;
    padding: 14px;
}
.storage-page .stg-header {
    background:
        linear-gradient(135deg, rgba(232,67,147,0.08), transparent 52%),
        var(--bg-card);
}
.storage-page .stg-section {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 22px;
}
.storage-page .stg-section:last-of-type {
    margin-bottom: 0;
}
.storage-overview-section {
    position: relative;
    margin-top: 16px;
}
.storage-overview-section::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--border-subtle);
    margin: 0 2px 16px;
}
.storage-files-section {
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}
.storage-files-head {
    margin-bottom: 14px;
}
.storage-files-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}
.storage-files-sub {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}
.storage-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.storage-shell-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}
.storage-shell-sub {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}
.storage-usage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.storage-usage-card {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(7, 9, 16, 0.72);
    backdrop-filter: blur(8px);
    padding: 10px 12px;
}
.storage-usage-card label {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.storage-usage-card strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: var(--text);
}
.storage-meter-wrap {
    margin-top: 12px;
}
.storage-meter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.storage-meter-meta strong {
    color: var(--text);
}
.storage-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.storage-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e84393 0%, #a855f7 52%, #3b82f6 100%);
}
.storage-upload-form {
    margin-top: 12px;
}
.storage-upload-zone {
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(18,19,27,0.7), rgba(13,14,20,0.85));
}
.storage-upload-zone:hover {
    border-color: rgba(232,67,147,0.55);
    box-shadow: 0 0 0 3px rgba(232,67,147,0.12);
}
.storage-card {
    aspect-ratio: auto;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.storage-card img,
.storage-card video {
    height: 280px;
    object-fit: contain;
}
.storage-audio-wrap {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.storage-audio-wrap .chat-audio-wrap {
    width: min(520px, 100%);
    max-width: min(520px, 100%);
    min-width: 0;
}
.storage-audio-wrap .chat-audio-player {
    border-color: var(--border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, transparent), color-mix(in srgb, var(--bg-input) 90%, transparent));
}
.storage-card .nudes-video-shell {
    height: 280px;
}
.storage-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232,67,147,0.33);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.storage-share-btn {
    border: 1px solid rgba(232,67,147,0.45);
    color: #f9a8d4;
    background: rgba(232,67,147,0.2);
}
.storage-share-btn:hover {
    border-color: rgba(232,67,147,0.75);
    color: #fff;
    background: rgba(232,67,147,0.38);
}
.storage-meta {
    padding: 9px 10px 10px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(6, 7, 12, 0.82);
}
.storage-name {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}
.storage-info {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Empty State */
.stg-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}
.stg-empty svg {
    opacity: 0.3;
    margin-bottom: 12px;
}
.stg-empty p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Contact Rows */
.stg-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.stg-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.stg-contact-row:last-child { border-bottom: none; }
.stg-contact-row select {
    flex: 0 0 150px;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
}
.stg-contact-row input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
}
.stg-contact-public {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 0 4px;
}
.stg-contact-public input { width: auto; accent-color: var(--primary); }
.stg-contacts-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* Account Cards */
.stg-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stg-account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.stg-account-card h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* Danger Zone */
.stg-danger-zone {
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.stg-danger-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--danger);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(239,68,68,0.15);
}
.stg-danger-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.stg-danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.stg-danger-item strong {
    font-size: 15px;
    display: block;
    margin-bottom: 2px;
}
.stg-danger-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.stg-danger-confirm {
    margin-top: 16px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius);
    animation: slideDown 0.2s ease;
}

/* ═══════════════════════════════════
   RESPONSIVE (Tablets)
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
    .landing-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 118px;
    }
    .landing-hero-content { max-width: none; }
    .landing-cta,
    .landing-trust-row { justify-content: flex-start; }
    .landing-hero-panel { max-width: 680px; }
    .landing-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 62px; }
    .landing-features { grid-template-columns: repeat(2, 1fr); }
    .landing-section { padding: 72px 24px; }
    .landing-section-header h2 { font-size: 28px; }
    .pv-grid { grid-template-columns: 1fr; }

    /* ── Admin mobile: sidebar as overlay ── */
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        display: flex;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 90;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
        box-shadow: none;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
    }
    .admin-mobile-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        top: var(--nav-height);
        background: rgba(0,0,0,0.5);
        z-index: 89;
    }
    .admin-mobile-backdrop.active { display: block; }
    .admin-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        margin-bottom: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition);
    }
    .admin-mobile-toggle:hover { background: var(--bg-card-hover); color: var(--text); }
    .admin-content { padding: 20px 16px; }
    .admin-content h1 { font-size: 22px; }
    .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 600px; }
    .data-table th, .data-table td { padding: 10px 14px; }
    .network-table { min-width: 0 !important; table-layout: fixed; }
    .network-table th, .network-table td { padding: 9px 10px; font-size: 12px; }
    .network-table .network-ip-cell { font-size: 11px; }
    .admin-users-table { min-width: 0 !important; table-layout: fixed; }
    .admin-users-table th,
    .admin-users-table td {
        padding: 8px 9px;
        font-size: 12px;
    }
    .admin-users-table .table-user { gap: 8px; }
    .admin-users-table .table-user img { width: 30px; height: 30px; }
    .admin-users-table .table-user-name { font-size: 13px; }
    .admin-users-table .table-user-email { font-size: 11px; }
    .admin-users-table th:nth-child(4),
    .admin-users-table td:nth-child(4),
    .admin-users-table th:nth-child(5),
    .admin-users-table td:nth-child(5) {
        display: none;
    }
    .admin-users-table th:nth-child(7),
    .admin-users-table td:nth-child(7) {
        display: none;
    }
    .admin-users-table th:nth-child(1) { width: 50%; }
    .admin-users-table th:nth-child(2) { width: 18%; }
    .admin-users-table th:nth-child(3) { width: 14%; }
    .admin-users-table th:nth-child(6) { width: 14%; }
    .admin-users-table th:nth-child(8) { width: 4%; }
    .admin-users-table th:last-child,
    .admin-users-table td:last-child {
        padding-right: 14px;
    }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-card-value { font-size: 24px; }
    .admin-edit-flag-grid { grid-template-columns: 1fr; }
    .admin-action-card { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* ── Chat mobile ── */
    .chat-layout { grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }
    .chat-layout.chat-list-page .chat-sidebar {
        display: flex;
        width: 100%;
    }
    .chat-layout.chat-list-page .chat-main { display: none; }
    .chat-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--bg-surface);
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .chat-back-btn:hover { border-color: var(--text-secondary); color: var(--text); }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 1025px) {
    .admin-mobile-toggle { display: none !important; }
    .admin-mobile-backdrop { display: none !important; }
    .chat-back-btn { display: none !important; }
}

@media (max-width: 768px) {
    body.landing-body { padding-bottom: 0; }
    .chat-live-toast {
        right: 10px;
        bottom: calc(64px + 10px);
        max-width: calc(100% - 20px);
    }
    /* Mobile bottom navbar */
    .navbar {
        height: 64px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-top: 1px solid var(--border-subtle);
        border-bottom: none;
        z-index: 100;
    }
    body {
        padding-top: 0;
        padding-bottom: 64px;
    }
    .main-content, .main-fullbleed {
        min-height: calc(100vh - 64px);
    }
    .nav-container {
        padding: 0 8px;
        height: 100%;
    }
    .nav-brand {
        font-size: 16px;
        display: none;
    }
    .nav-links {
        position: static;
        flex: 1;
        justify-content: space-around;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        gap: 0;
    }
    .nav-link {
        flex-direction: column;
        gap: 2px;
        padding: 8px 6px;
        font-size: 10px;
        min-width: 48px;
    }
    .nav-link span {
        display: block;
        font-size: 10px;
    }
    .nav-link svg {
        width: 22px;
        height: 22px;
    }
    .nav-logout {
        display: none;
    }
    .nav-badge {
        top: 0; right: 50%; transform: translateX(calc(50% + 10px));
        min-width: 16px; height: 16px; padding: 0 4px;
        font-size: 9px; border-radius: 8px;
    }

    /* Explore page mobile improvements */
    .explore-page {
        padding-top: 8px;
    }
    .page-header h1 {
        font-size: 22px;
    }
    .explore-filters {
        padding: 12px;
        margin-bottom: 16px;
    }
    .filter-form .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    .filter-input, .filter-select {
        min-width: 100%;
        padding: 10px 12px;
    }
    .user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .user-card {
        padding: 16px;
    }
    .user-card-avatar {
        width: 60px;
        height: 60px;
    }
    .user-card-name {
        font-size: 14px;
    }
    .user-card-badges {
        margin-top: 6px;
    }
    .badge-sm {
        font-size: 10px;
        padding: 2px 6px;
    }
    .user-card-bio {
        font-size: 12px;
        margin-top: 6px;
    }
    .user-card-tags {
        display: none;
    }

    .main-content { padding: 16px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-header-card { padding: 24px; }
    .profile-avatar-large { width: 100px; height: 100px; }
    .profile-badges { justify-content: center; }
    .profile-stats { justify-content: center; flex-wrap: wrap; }
    .profile-actions { justify-content: center; }
    .profile-section-card { padding: 20px; }
    .settings-card { padding: 20px; }
    .settings-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .form-row { flex-direction: column; gap: 0; }
    .photo-upload-row { flex-direction: column; align-items: stretch; }
    .avatar-upload { flex-direction: column; text-align: center; }
    .auth-card { padding: 32px 24px; }
    .landing-nav {
        top: 8px;
        width: calc(100% - 20px);
        grid-template-columns: auto 1fr;
        padding: 10px 12px;
        border-radius: 14px;
        gap: 12px;
    }
    .landing-nav-menu { display: none; }
    .landing-nav-links .btn-sm { padding: 7px 10px; font-size: 12px; }
    .landing-nav-links .btn-ghost { display: none; }
    .landing-hero {
        padding: 96px 16px 44px;
        gap: 24px;
    }
    .landing-brand {
        font-size: clamp(2.05rem, 11vw, 2.5rem);
        letter-spacing: -1.2px;
    }
    .landing-tagline { font-size: 15px; margin-bottom: 26px; }
    .landing-cta {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 26px;
    }
    .landing-cta .btn-lg { width: 100%; }
    .landing-trust-row { gap: 10px; }
    .landing-trust-item { font-size: 11px; }
    .landing-panel-title { margin-bottom: 16px; }
    .landing-panel-meta { grid-template-columns: 1fr; }
    .landing-proof {
        grid-template-columns: 1fr;
        padding: 0 16px 52px;
    }
    .landing-section { padding: 60px 16px; }
    .landing-features { grid-template-columns: 1fr; }
    .landing-step { padding: 18px; gap: 14px; }
    .landing-section-header h2 { font-size: 24px; }
    .landing-section-header p { font-size: 15px; }
    .landing-final-cta { padding: 30px 20px; }
    .landing-final-cta h2 { font-size: 24px; }
    .landing-final-actions .btn { width: 100%; }
    .landing-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
    .chat-header { padding: 10px 10px; gap: 8px; }
    .chat-messages { padding: 10px 10px 12px; }
    .chat-message-rail { width: 100%; gap: 6px; }
    .chat-input-area {
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .chat-avatar { width: 34px; height: 34px; }
    .chat-user-name { font-size: 14px; }
    .chat-toggle-btn { width: 32px; height: 32px; }
    .chat-toggle-btn svg { width: 15px; height: 15px; }
    .chat-header-meta { margin-right: 4px; }
    .chat-e2ee-chip { padding: 4px 7px; }
    .chat-e2ee-chip-label { display: none; }
    .chat-typing-indicator { gap: 8px; margin-bottom: 6px; }
    .chat-typing-bubble { min-width: 38px; padding: 6px 8px; }
    .chat-typing-text { font-size: 11px; }
    .chat-recording-icon { width: 16px; height: 16px; }
    .chat-recording-icon svg { width: 16px; height: 16px; }
    .chat-form { padding: 4px; gap: 6px; }
    .chat-form .btn-icon-only { width: 36px; height: 36px; }
    .chat-form .btn-icon { width: 34px; height: 34px; }
    .chat-form input[type="text"] { padding: 8px 6px; font-size: 14px; }
    .chat-emoji-panel { margin-top: 6px; }
    .chat-emoji-grid { max-height: 180px; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 4px; padding: 8px; }
    .chat-emoji-cell { min-height: 30px; font-size: 18px; border-radius: 8px; }
    .chat-emoji-autocomplete { bottom: calc(100% + 6px); max-height: 170px; }
    .chat-emoji-option { padding: 7px 9px; }
    .chat-emoji-option-glyph { font-size: 16px; width: 20px; }
    .chat-voice-panel { margin-top: 8px; padding: 8px 9px 10px; }
    .chat-voice-wave canvas { height: 62px; }
    .chat-voice-controls { gap: 6px; }
    .chat-voice-controls .btn-sm { padding: 7px 10px; }
    .chat-audio-wrap { min-width: 180px; max-width: min(290px, 82vw); }
    .chat-audio-player { grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 8px; padding: 7px 8px; }
    .chat-audio-play { width: 30px; height: 30px; }
    .chat-audio-play svg { width: 14px; height: 14px; }
    .chat-audio-meta { font-size: 10px; }
    .chat-audio-speed { padding: 5px 7px; font-size: 10px; }
    .chat-audio-download { width: 28px; height: 28px; }
    .message { max-width: 90%; padding: 10px 12px; font-size: 13px; }
    .message-time { font-size: 10px; }
    .file-upload-zone { padding: 24px 16px; }
    .admin-content { padding: 16px 12px; }
    .admin-content h1 { font-size: 20px; }
    .admin-panel-card { padding: 16px; }
    .admin-panel-head { align-items: flex-start; }
    .admin-chat-viewer { padding: 16px; max-height: calc(100vh - 200px); }
    .admin-msg-photo img { max-width: 200px !important; max-height: 200px !important; }
    .admin-profile-bar { flex-wrap: wrap; font-size: 12px; }
    .admin-profile-bar .admin-bar-actions { margin-left: 0; width: 100%; }

    /* Admin user-edit: stack 2-col grid on mobile */
    .admin-content > div[style*="grid-template-columns:1fr 1fr"],
    .admin-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Admin user header card: stack avatar/info/buttons */
    .admin-content div[style*="display:flex;gap:20px;align-items:center"] {
        flex-wrap: wrap !important;
    }
    .admin-content div[style*="display:flex;gap:20px;align-items:center"] > div[style*="display:flex;gap:6px"] {
        width: 100% !important;
    }
    .admin-content div[style*="display:flex;gap:20px;align-items:center"] img[style*="width:80px"] {
        width: 56px !important;
        height: 56px !important;
    }
    /* Admin users search bar */
    .admin-content div[style*="display:flex;gap:10px;align-items:center"] {
        flex-wrap: wrap !important;
    }
    .admin-content div[style*="display:flex;gap:10px;align-items:center"] input[type="search"] {
        min-width: 100% !important;
    }
    /* Verification cards: 3-col grid to 1-col */
    .admin-content div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }
    /* Verification card header: stack on mobile */
    .admin-content div[style*="display:flex;gap:16px;align-items:flex-start"] {
        flex-direction: column !important;
    }
    .admin-content div[style*="display:flex;gap:16px;align-items:flex-start"] > img {
        width: 44px !important;
        height: 44px !important;
    }
    /* Verification images responsive */
    .admin-content img[style*="max-width:280px"] {
        max-width: 100% !important;
    }
    /* Conversation view header responsive */
    .admin-content > div[style*="display:flex;align-items:center;gap:12px;margin-bottom:24px"] {
        flex-wrap: wrap !important;
    }
    /* Stats row wrap */
    .admin-content div[style*="display:flex;gap:24px;font-size:13px"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    /* Profile view responsive */
    .pv-hero { padding: 24px; }
    .pv-hero-top { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
    .pv-avatar { width: 90px; height: 90px; }
    .pv-name { font-size: 22px; justify-content: center; }
    .pv-badges { justify-content: center; }
    .pv-stats { justify-content: center; gap: 20px; }
    .pv-actions { justify-content: center; }
    .pv-card { padding: 20px; }

    /* Settings responsive */
    .stg-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
    .stg-header-right { width: 100%; }
    .stg-header-right .btn { flex: 1; }
    .stg-header-right .stg-logout-btn { flex: 0 0 auto; }
    .stg-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; gap: 1px; padding: 4px; }
    .stg-tabs::-webkit-scrollbar { display: none; }
    .stg-tab { padding: 8px 10px; font-size: 12px; min-width: 0; flex: 0 0 auto; gap: 4px; }
    .stg-tab svg { display: block; width: 16px; height: 16px; flex-shrink: 0; }
    .stg-tab-count { font-size: 10px; padding: 0 5px; }
    .stg-field-grid-2, .stg-field-grid-3, .stg-account-grid { grid-template-columns: 1fr; }
    .stg-avatar-row { flex-direction: column; text-align: center; }
    .stg-interest-block { padding: 20px; }
    .stg-chip { padding: 8px 14px; font-size: 13px; }
    .storage-shell { padding: 12px; }
    .storage-shell-head { flex-direction: column; align-items: flex-start; }
    .storage-shell-head .btn { width: 100%; justify-content: center; }
    .storage-usage { grid-template-columns: 1fr; }
    .stg-storage-grid { grid-template-columns: 1fr; gap: 12px; }
    .storage-card { min-height: 304px; }
    .storage-card img,
    .storage-card video,
    .storage-card .nudes-video-shell { height: 230px; }
    .storage-card .storage-audio-wrap {
        height: 230px;
        padding: 10px;
    }
    .nudes-video-controls {
        left: 8px;
        right: 8px;
        bottom: 8px;
        grid-template-columns: auto 1fr auto auto;
        gap: 7px;
    }
    .nudes-video-time { display: none; }
    .nudes-video-volume { display: none; }
    .stg-contact-row { flex-wrap: wrap; }
    .stg-contact-row select { flex: 1 1 100%; }
    .stg-upload-controls { flex-wrap: wrap; }
    .stg-upload-caption { min-width: 100%; }
    .stg-danger-item { flex-direction: column; align-items: flex-start; }

    /* Mobile logout button */
    .stg-mobile-logout { display: block; margin: 16px 0; }
    .stg-mobile-logout .btn { width: 100%; justify-content: center; }
}

/* Hide mobile logout on desktop */
.stg-mobile-logout { display: none; }
