/* AUTO-GENERATED — do not edit. Run: python manage.py bundle_css */

/* === 01-base.css === */
:root {
    --ui-scale: 0.85;

    /* surfaces */
    --bg: #fdfaf8;
    --bg-soft: #fff8f5;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --panel-elevated: #ffffff;
    --panel-glass: rgba(255, 255, 255, 0.72);
    --control-bg: rgba(255, 255, 255, 0.82);
    --control-strong: #ffffff;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --field-bg: #ffffff;
    --soft-bg: #fff8f5;
    --hover-bg: rgba(15, 23, 42, 0.04);

    /* text */
    --text: #14202e;
    --text-strong: #0a1622;
    --muted: #5a6a7e;
    --muted-strong: #3d4d61;

    /* lines */
    --line: rgba(15, 23, 42, 0.09);
    --line-strong: rgba(15, 23, 42, 0.16);
    --line-hover: rgba(15, 23, 42, 0.24);

    /* brand */
    --accent: #e25c4c;
    --accent-soft: #f7b9b0;
    --accent-tint: rgba(226, 92, 76, 0.08);
    --accent-tint-strong: rgba(226, 92, 76, 0.16);
    --accent-dark: #b13a2c;
    --accent-glow: 0 8px 22px rgba(226, 92, 76, 0.32);

    --navy: #0f2540;
    --navy-soft: rgba(15, 37, 64, 0.82);

    /* status */
    --success: #1f8a5a;
    --success-soft: rgba(31, 138, 90, 0.12);
    --warn: #c9821a;
    --warn-soft: rgba(201, 130, 26, 0.14);
    --danger: #b13a2c;
    --info: #2d72d9;
    --info-soft: rgba(45, 114, 217, 0.14);

    /* effects — stronger shadows give panels visible "float" */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.09), 0 8px 28px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 24px 64px rgba(15, 23, 42, 0.09);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16), 0 36px 80px rgba(15, 23, 42, 0.1);
    --shadow: var(--shadow-md);
    --ring-focus: 0 0 0 3px rgba(226, 92, 76, 0.28);

    /* gradients */
    --grad-accent: linear-gradient(135deg, #ec6f5e 0%, #e25c4c 60%, #c9483a 100%);
    --grad-accent-soft: linear-gradient(135deg, rgba(236, 111, 94, 0.16), rgba(15, 37, 64, 0.06));
    --grad-navy: linear-gradient(135deg, #1a3658 0%, #0f2540 100%);

    /* branded ambient — coral glow top-left + warm blush top-right, like dark mode's blue glow */
    --body-gradient: linear-gradient(165deg, #fff4f1 0%, #fdfaf8 40%, #f9f1e8 100%);
    --body-overlay:
        radial-gradient(ellipse 70% 45% at 8% -2%, rgba(226, 92, 76, 0.11), transparent),
        radial-gradient(ellipse 55% 35% at 92% 2%, rgba(255, 175, 140, 0.14), transparent),
        radial-gradient(ellipse 90% 35% at 50% 105%, rgba(245, 232, 218, 0.55), transparent);

    --logo-filter: saturate(1.05) brightness(1.02);
    --footer-logo-filter: brightness(1) saturate(1);

    /* shape */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius: var(--radius-lg);

    /* motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 0.16s;
    --dur: 0.22s;
    --dur-slow: 0.36s;
}

:root[data-theme='dark'] {
    --bg: #0c1320;
    --bg-soft: #111a2a;
    --panel: rgba(20, 30, 46, 0.78);
    --panel-strong: #182338;
    --panel-elevated: #1d2a42;
    --panel-glass: rgba(20, 30, 46, 0.6);
    --control-bg: rgba(35, 48, 70, 0.7);
    --control-strong: #243046;
    --menu-bg: rgba(22, 32, 50, 0.96);
    --field-bg: #182338;
    --soft-bg: #182338;
    --hover-bg: rgba(255, 255, 255, 0.05);

    --text: #e8eef5;
    --text-strong: #f3f7fb;
    --muted: #8fa1b8;
    --muted-strong: #b6c3d4;

    --line: rgba(232, 238, 245, 0.08);
    --line-strong: rgba(232, 238, 245, 0.14);
    --line-hover: rgba(232, 238, 245, 0.22);

    --accent: #ee7868;
    --accent-soft: rgba(238, 120, 104, 0.22);
    --accent-tint: rgba(238, 120, 104, 0.1);
    --accent-tint-strong: rgba(238, 120, 104, 0.2);
    --accent-dark: #f48a7c;
    --accent-glow: 0 8px 22px rgba(238, 120, 104, 0.36);

    --navy: #e8eef5;
    --navy-soft: rgba(232, 238, 245, 0.82);

    --success: #5fc99a;
    --success-soft: rgba(95, 201, 154, 0.16);
    --warn: #f0b656;
    --warn-soft: rgba(240, 182, 86, 0.18);
    --danger: #f48a7c;
    --info: #6da3e8;
    --info-soft: rgba(109, 163, 232, 0.16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.32), 0 10px 30px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.32);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow: var(--shadow-md);
    --ring-focus: 0 0 0 3px rgba(238, 120, 104, 0.32);

    --grad-accent: linear-gradient(135deg, #f48a7c 0%, #ee7868 60%, #d65a4a 100%);
    --grad-accent-soft: linear-gradient(135deg, rgba(238, 120, 104, 0.22), rgba(232, 238, 245, 0.06));
    --grad-navy: linear-gradient(135deg, #243046 0%, #182338 100%);

    --body-gradient: linear-gradient(180deg, #0a1322 0%, #101a2c 50%, #14213a 100%);
    --body-overlay:
        radial-gradient(circle at 18% 14%, rgba(238, 120, 104, 0.14), transparent 26%),
        radial-gradient(circle at 84% 12%, rgba(108, 156, 220, 0.1), transparent 22%);

    --logo-filter: saturate(0.95) brightness(1.1);
    --footer-logo-filter: saturate(0.9) brightness(1.05);
}

:root[data-theme='dark'] .ambient-blob {
    opacity: 0.36;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

*:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
    border-radius: 6px;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    scrollbar-gutter: stable;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--body-gradient);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--body-overlay);
    z-index: 0;
}

::selection {
    background: var(--accent-tint-strong);
    color: var(--text-strong);
}

/* ── Typography ── */
h1, h2, h3, h4 {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { margin: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--line-hover); background-clip: padding-box; }

/* ── Loader ── */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, color-mix(in srgb, var(--bg) 90%, transparent), color-mix(in srgb, var(--bg) 40%, transparent) 40%, var(--bg)),
        var(--body-gradient);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.site-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-loader-card {
    display: grid;
    place-items: center;
    gap: 12px;
    min-width: min(340px, calc(100% - 32px));
    padding: 32px 28px;
    text-align: center;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.site-loader-mark {
    width: 64px;
    height: 64px;
    filter: var(--logo-filter);
    animation: loaderPulse 1.6s ease-in-out infinite;
}

.site-loader-card strong {
    font-size: 1.15rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.site-loader-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

main {
    padding-bottom: 28px;
    min-height: 60vh;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
    padding: 16px 0 32px;
}

/* ── Ambient backdrop ── */
.ambient-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-blob,
.ambient-ring,
.ambient-grid {
    position: absolute;
}

.ambient-blob {
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.62;
    animation: drift 20s ease-in-out infinite;
}

.blob-one {
    top: -140px;
    left: -100px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(circle at 30% 30%, rgba(226, 92, 76, 0.38), rgba(226, 92, 76, 0.04) 55%),
        linear-gradient(135deg, rgba(236, 111, 94, 0.32), rgba(255, 184, 140, 0.16));
}

.blob-two {
    top: 20%;
    right: -120px;
    width: 400px;
    height: 400px;
    background:
        radial-gradient(circle at 40% 40%, rgba(180, 210, 240, 0.5), rgba(180, 210, 240, 0.04) 50%),
        linear-gradient(135deg, rgba(45, 114, 217, 0.18), rgba(82, 171, 210, 0.12));
    animation-delay: -7s;
}

.blob-three {
    bottom: -160px;
    left: 20%;
    width: 500px;
    height: 500px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 180, 160, 0.36), rgba(255, 180, 160, 0.04) 52%),
        linear-gradient(135deg, rgba(226, 116, 132, 0.22), rgba(255, 200, 180, 0.14));
    animation-delay: -12s;
}

.ambient-ring {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .ambient-ring {
    border-color: rgba(232, 238, 245, 0.04);
}

.ring-one {
    top: 80px;
    left: -80px;
    width: 220px;
    height: 220px;
}

.ring-two {
    right: 8%;
    bottom: 120px;
    width: 200px;
    height: 200px;
}

.ambient-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    opacity: 0.5;
}

:root[data-theme='dark'] .ambient-grid {
    background-image:
        linear-gradient(rgba(232, 238, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 245, 0.03) 1px, transparent 1px);
    opacity: 0.5;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, 24px, 0) scale(1.05); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* === 02-header.css === */
.site-header {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 10px 14px;
    background: var(--panel-glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    box-shadow: var(--shadow-sm);
}

:root:not([data-theme='dark']) .site-header {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--navy);
    transition: opacity var(--dur) var(--ease);
}

.brand:hover {
    opacity: 0.86;
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 16px rgba(226, 92, 76, 0.28));
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong,
.brand-copy small {
    display: block;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.brand-copy small {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Site nav ── */
.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--control-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.88rem;
    font-weight: 700;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-nav-link:hover {
    color: var(--navy);
    background: var(--panel-strong);
}

.site-nav-link.active,
.site-nav-link[aria-current='page'] {
    color: var(--navy);
    background: var(--panel-strong);
    box-shadow: var(--shadow-sm);
}

.nav-cta {
    background: var(--grad-accent) !important;
    color: white !important;
    box-shadow: var(--accent-glow);
}

.nav-cta:hover {
    color: white !important;
    transform: translateY(-1px);
}

.nav-link-with-badge {
    padding-right: 12px;
}

.nav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--grad-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(226, 92, 76, 0.3);
}

/* ── Header icon buttons ── */
.settings-gear,
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.settings-gear[open],
.language-switcher[open] {
    z-index: 40;
}

.settings-gear-trigger,
.language-switcher-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--control-bg);
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.settings-gear-trigger {
    width: 38px;
    height: 38px;
}

.language-switcher-trigger {
    min-width: 56px;
    min-height: 38px;
    padding: 0 12px;
    gap: 8px;
}

.settings-gear-trigger:hover,
.language-switcher-trigger:hover {
    background: var(--panel-strong);
    border-color: var(--line-strong);
}

.settings-gear-trigger::-webkit-details-marker,
.language-switcher-trigger::-webkit-details-marker { display: none; }

.settings-gear[open] .settings-gear-trigger,
.language-switcher[open] .language-switcher-trigger {
    background: var(--accent-tint-strong);
    border-color: rgba(226, 92, 76, 0.32);
    color: var(--accent-dark);
}

.language-switcher-trigger::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.7;
    transition: transform var(--dur) var(--ease);
}

.language-switcher[open] .language-switcher-trigger::after {
    transform: rotate(-135deg) translateY(0);
}

.language-current-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

/* ── Dropdown menus ── */
.settings-gear-menu,
.language-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    right: 0;
    padding: 6px;
    background: var(--menu-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInUp 0.18s var(--ease-out);
}

.settings-gear-menu {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gear-menu-section {
    padding: 8px 12px 4px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.gear-menu-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

.gear-menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    width: 100%;
    transition: background var(--dur-fast) var(--ease);
}

.gear-menu-row:hover {
    background: var(--hover-bg);
}

.gear-menu-row svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.gear-menu-row-danger {
    color: var(--danger);
}

.gear-menu-row-danger:hover {
    background: var(--accent-tint);
}

.gear-row-label {
    flex: 1;
}

/* ── Toggle pill ── */
.gear-toggle {
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: var(--line-strong);
    position: relative;
    flex-shrink: 0;
    transition: background var(--dur) var(--ease);
}

:root[data-theme='dark'] .gear-toggle {
    background: var(--accent);
}

.gear-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform var(--dur) var(--ease);
}

:root[data-theme='dark'] .gear-toggle::after {
    transform: translateX(14px);
}

.notif-toggle {
    width: 32px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ── Language menu ── */
.language-menu {
    min-width: 200px;
    display: grid;
    gap: 2px;
}

.language-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background var(--dur-fast) var(--ease);
}

.language-menu-item:hover {
    background: var(--hover-bg);
}

.language-menu-item.active {
    background: var(--accent-tint-strong);
    color: var(--accent-dark);
}

.language-menu-item.active strong {
    color: var(--accent-dark);
}

.language-menu-flag {
    width: 26px;
    min-width: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}

.language-menu-copy {
    display: grid;
    gap: 0;
}

.language-menu-copy strong {
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.1;
}

.language-menu-copy small { display: none; }

/* ── Burger ── */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--control-bg);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-burger:hover {
    background: var(--panel-strong);
    border-color: var(--line-strong);
}

.nav-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-burger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}
.nav-burger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ── */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: -10px;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--menu-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.18s var(--ease-out);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    transition: background var(--dur-fast) var(--ease);
}

.mobile-nav-link:hover {
    background: var(--hover-bg);
}


/* === 03-hero.css === */
.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 22px;
    align-items: stretch;
    margin-top: 8px;
}

.hero-enhanced { align-items: stretch; }

/* ── Panel base ── */
.hero-copy,
.hero-card,
.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:root:not([data-theme='dark']) .hero-copy,
:root:not([data-theme='dark']) .hero-card,
:root:not([data-theme='dark']) .panel {
    background: var(--panel-strong);
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root[data-theme='dark'] .hero-copy,
:root[data-theme='dark'] .hero-card,
:root[data-theme='dark'] .panel {
    background: var(--panel-strong);
    box-shadow: var(--shadow-md);
}

/* ── Hero copy ── */
.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 38px 36px;
    overflow: hidden;
}

.hero-copy::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--accent-tint-strong), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-copy > * { position: relative; z-index: 1; }

.hero-copy h1 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--navy);
    max-width: 11ch;
}

.hero-copy p {
    max-width: 48ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 6px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.hero-metric {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

:root[data-theme='dark'] .hero-metric {
    background: var(--panel-elevated);
}

.hero-metric:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.hero-metric strong,
.hero-metric span {
    display: block;
}

.hero-metric strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.hero-metric span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Hero visual ── */
.hero-visual {
    position: relative;
    min-height: 100%;
    padding-top: 28px;
}

.hero-orbit-card {
    position: absolute;
    z-index: 3;
    max-width: 200px;
    padding: 14px 16px;
    border-radius: 18px;
    color: white;
    background: var(--grad-navy);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-orbit-card.primary {
    top: 14px;
    left: -12px;
    background: var(--grad-accent);
    box-shadow: 0 18px 44px rgba(226, 92, 76, 0.36);
}

.hero-orbit-card.secondary {
    right: -10px;
    top: 154px;
}

.hero-orbit-card strong,
.hero-orbit-label {
    display: block;
}

.hero-orbit-label {
    margin-bottom: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 248, 241, 0.78);
}

.hero-orbit-card strong {
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ── Hero panel ── */
.hero-panel {
    position: relative;
    z-index: 1;
    min-height: 380px;
    padding: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(226, 92, 76, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(15, 37, 64, 0.1), transparent 30%),
        var(--panel-strong);
}

:root[data-theme='dark'] .hero-panel {
    background:
        radial-gradient(circle at top right, rgba(238, 120, 104, 0.18), transparent 32%),
        radial-gradient(circle at bottom left, rgba(108, 156, 220, 0.1), transparent 30%),
        var(--panel-strong);
}

.hero-panel-mark {
    width: 84px;
    height: 84px;
    padding: 14px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

:root[data-theme='dark'] .hero-panel-mark {
    background: var(--panel-elevated);
}

.hero-panel-mark img {
    width: 100%;
    height: auto;
}

.hero-panel-copy {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    display: grid;
    gap: 10px;
}

.hero-panel-copy h2 {
    font-size: 1.4rem;
    color: var(--navy);
}

.hero-panel-copy p {
    color: var(--muted);
    line-height: 1.55;
}

/* ── Shared muted text ── */
.muted,
.request-card p,
.mini-card p,
.profile-card-body p {
    color: var(--muted);
}

/* ─────────────────────────────────────────
   Landing page sections (advantages / AI / how / cta)
   ───────────────────────────────────────── */

.landing-section {
    margin-top: 56px;
    padding: 0 4px;
}

.section-header {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-header .eyebrow {
    justify-self: center;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    letter-spacing: -0.025em;
}

.section-header p {
    color: var(--muted);
    line-height: 1.6;
}

/* ── Advantages grid ── */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.advantage-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 24px 22px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.advantage-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-tint-strong);
    color: var(--accent-dark);
}

.advantage-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.015em;
}

.advantage-card p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.94rem;
}

/* ── AI section ── */
.ai-section {
    padding: 38px 32px;
    background:
        radial-gradient(circle at top right, rgba(226, 92, 76, 0.12), transparent 38%),
        radial-gradient(circle at bottom left, rgba(15, 37, 64, 0.08), transparent 36%),
        var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

:root[data-theme='dark'] .ai-section {
    background:
        radial-gradient(circle at top right, rgba(238, 120, 104, 0.18), transparent 38%),
        radial-gradient(circle at bottom left, rgba(108, 156, 220, 0.12), transparent 36%),
        var(--panel-strong);
}

.ai-section-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.ai-copy {
    display: grid;
    gap: 14px;
}

.ai-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    letter-spacing: -0.025em;
}

.ai-copy p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 56ch;
}

.ai-bullets {
    display: grid;
    gap: 8px;
    margin: 6px 0 4px;
    padding: 0;
    list-style: none;
}

.ai-bullets li {
    position: relative;
    padding: 8px 0 8px 30px;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.5;
}

.ai-bullets li::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--grad-accent);
    box-shadow: 0 4px 10px rgba(226, 92, 76, 0.3);
}

.ai-bullets li::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.ai-model-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: start;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--grad-accent);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--accent-glow);
}

.ai-model-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.ai-visual {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

:root[data-theme='dark'] .ai-visual {
    background: var(--panel-elevated);
}

.ai-visual-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.ai-visual-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ai-visual-row-text {
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.ai-visual-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ai-visual-status.status-clean {
    background: var(--success-soft);
    color: var(--success);
}

.ai-visual-status.status-clean::before,
.ai-visual-status.status-check::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ai-visual-status.status-clean::before {
    background: var(--success);
}

.ai-visual-status.status-check {
    background: var(--warn-soft);
    color: var(--warn);
}

.ai-visual-status.status-check::before {
    background: var(--warn);
    animation: aiPulse 1.4s ease-in-out infinite;
}

.ai-visual-pulse {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-tint-strong), transparent 70%);
    pointer-events: none;
}

/* ── How it works ── */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: how-step;
}

.how-step {
    position: relative;
    padding: 28px 22px 22px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    counter-increment: how-step;
}

.how-step::before {
    content: counter(how-step, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
    opacity: 0.6;
}

.how-step h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.how-step p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.94rem;
}

/* ── Final CTA ── */
.cta-final {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: 48px 32px;
    margin-top: 56px;
    background: var(--grad-accent);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(226, 92, 76, 0.32);
    color: white;
}

.cta-final h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: white;
    letter-spacing: -0.025em;
    max-width: 22ch;
}

.cta-final p {
    color: rgba(255, 248, 241, 0.92);
    line-height: 1.55;
    max-width: 50ch;
}

.cta-final .button-primary {
    margin-top: 8px;
    background: white;
    color: var(--accent-dark);
}

.cta-final .button-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-dark);
}


/* === 04-components.css === */
/* ── Action rows ── */
.hero-actions,
.row-actions,
.form-actions,
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions-profile {
    margin-top: 18px;
    justify-content: flex-end;
}

/* ── Buttons ── */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    cursor: pointer;
    user-select: none;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

.button:active {
    transform: translateY(0);
}

.button:disabled,
.button.disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.button-primary {
    background: var(--grad-accent);
    color: white;
    box-shadow: 0 6px 16px rgba(226, 92, 76, 0.28);
}

.button-primary:hover {
    box-shadow: 0 10px 24px rgba(226, 92, 76, 0.4);
}

.button-secondary {
    background: var(--panel-strong);
    color: var(--navy);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--line-hover);
}

:root[data-theme='dark'] .button-secondary:hover {
    background: var(--panel-elevated);
}

.button-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}

.button-ghost:hover {
    background: var(--hover-bg);
}

.button-danger {
    background: var(--accent-tint);
    color: var(--danger);
    border-color: rgba(226, 92, 76, 0.22);
}

.button-danger:hover {
    background: var(--accent-tint-strong);
    border-color: rgba(226, 92, 76, 0.36);
}

.button-success {
    background: var(--success-soft);
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 32%, transparent);
}

.button-sm {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.button-lg {
    min-height: 46px;
    padding: 0 22px;
    font-size: 0.96rem;
}

.button-block { width: 100%; }

.button-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
}

.button-profile-save {
    min-height: 40px;
    padding: 0 22px;
}

/* ── Mini cards ── */
.hero-card {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.mini-card,
.stat-card,
.request-card,
.conversation-link {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.mini-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: white;
    background: var(--grad-accent);
}

/* ── Flash messages ── */
.message-stack {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.flash-success {
    border-color: color-mix(in srgb, var(--success) 30%, transparent);
    background: var(--success-soft);
    color: var(--success);
}

.flash-error,
.flash-warning {
    border-color: rgba(226, 92, 76, 0.26);
    background: var(--accent-tint);
    color: var(--danger);
}

.flash-info {
    border-color: color-mix(in srgb, var(--info) 28%, transparent);
    background: var(--info-soft);
    color: var(--info);
}

/* ── Section headings ── */
.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.section-heading.compact {
    margin-bottom: 12px;
}

.section-heading > div {
    display: grid;
    gap: 4px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-dark);
}

/* ── Panels ── */
.panel,
.wide-panel {
    padding: 22px;
}

.wide-panel { width: 100%; }

/* ── Auth ── */
.auth-layout {
    display: grid;
    place-items: center;
    min-height: 70vh;
    padding: 16px 0;
}

.form-panel {
    width: min(440px, 100%);
    padding: 32px 28px;
}

.form-panel > h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.form-panel > p {
    margin-bottom: 18px;
    color: var(--muted);
}

.form-panel .button {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
}

.form-panel > .eyebrow {
    margin-bottom: 6px;
}

.auth-cross-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-cross-link a {
    color: var(--accent-dark);
    font-weight: 700;
    transition: color var(--dur) var(--ease);
}

.auth-cross-link a:hover {
    color: var(--accent);
}

.auth-trust-bar {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.auth-trust-bar li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

:root[data-theme='dark'] .auth-trust-bar li {
    background: var(--panel-elevated);
}

.auth-trust-bar svg {
    flex-shrink: 0;
    color: var(--accent-dark);
}

/* ── Pagination ── */
.pagination-bar {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pagination-bar-sm {
    margin-top: 14px;
    gap: 6px;
}

.pagination-bar-sm .button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.pagination-status {
    min-width: 110px;
    text-align: center;
    font-weight: 700;
    color: var(--navy);
}

.pagination-bar-sm .pagination-status {
    min-width: 60px;
    font-size: 0.84rem;
}

/* ── Toast notifications ── */
.toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 240px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    pointer-events: all;
    cursor: pointer;
    opacity: 0;
    transform: translateX(40px) scale(0.96);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.toast.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast-message { border-left: 3px solid var(--accent); }
.toast-friend  { border-left: 3px solid var(--success); }
.toast-online  { border-left: 3px solid var(--info); }

.toast-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--hover-bg);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.toast-close:hover {
    background: var(--line-strong);
    color: var(--navy);
}

/* ── Empty state ── */
.empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 200px;
    padding: 36px 24px;
    text-align: center;
}

.empty-state h2 {
    font-size: 1.1rem;
    color: var(--navy);
}

.empty-state p {
    color: var(--muted);
    max-width: 42ch;
}

/* ── Card grid (generic) ── */
.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* ── Status chip ── */
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--hover-bg);
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-chip.success {
    background: var(--success-soft);
    color: var(--success);
}

.status-chip.warn {
    background: var(--warn-soft);
    color: var(--warn);
}

/* ── Notification settings panel (legacy) ── */
.notif-settings-panel {
    position: absolute;
    z-index: 200;
    min-width: 240px;
    padding: 12px;
    background: var(--menu-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease);
}

.notif-settings-row:hover {
    background: var(--hover-bg);
}

.notif-settings-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--control-bg);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Skeleton (for future loading states) ── */
.skeleton {
    background: linear-gradient(90deg, var(--hover-bg) 0%, var(--line) 50%, var(--hover-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

/* ── Telegram button ── */
.button-telegram {
    background: #229ED9;
    color: white;
    border-color: #1a8bbf;
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.28);
}

.button-telegram:hover {
    background: #1a8bbf;
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.4);
}

/* ── Google button ── */
.button-google {
    background: var(--panel-strong);
    color: var(--navy);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.button-google:hover {
    background: var(--bg-soft);
    border-color: var(--line-hover);
}

/* ── Auth divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ── Forgot password link ── */
.auth-forgot-link {
    margin: -2px 0 6px;
    font-size: 0.86rem;
}
.auth-forgot-link a {
    color: var(--muted);
    transition: color var(--dur) var(--ease);
}
.auth-forgot-link a:hover {
    color: var(--accent-dark);
}

/* ── Captcha box ── */
.captcha-box {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.captcha-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.03em;
}
.captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}
.captcha-refresh:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--hover-bg);
}
.captcha-refresh svg {
    transition: transform 0.4s var(--ease-out);
}
.captcha-refresh.spinning svg {
    transform: rotate(360deg);
}

/* ── OTP code input ── */
.otp-input {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-align: center;
    padding: 14px 12px;
}

/* ── Welcome screen ── */
.welcome-panel {
    text-align: center;
    padding: 40px 28px 32px;
}
.welcome-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-dark);
}
.welcome-panel h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
}
.welcome-panel p {
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Auth note ── */
.auth-note {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* ── Telegram registration steps ── */
.button-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #229ED9;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}
.button-tg:hover {
    background: #1a8bbf;
    color: #fff;
    text-decoration: none;
}

.tg-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 8px;
}
.tg-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.tg-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.tg-step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tg-step-label {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}
.tg-step-divider {
    width: 1px;
    height: 24px;
    background: var(--line);
    margin: 6px 0 6px 13px;
}

/* ── Form error banner ── */
.form-error-banner {
    background: var(--accent-tint);
    color: var(--danger);
    border: 1px solid rgba(226, 92, 76, 0.22);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 4px;
}


/* === 05-forms.css === */
/* ── Privacy consent ── */
.privacy-consent-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 0.9rem;
    line-height: 1.5;
}

:root[data-theme='dark'] .privacy-consent-row {
    background: var(--panel-elevated);
}

.privacy-consent-row input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.privacy-link-button {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.privacy-link-button:hover { opacity: 0.8; }

/* ── Modals ── */
.privacy-modal {
    width: min(720px, calc(100% - 24px));
    max-height: min(680px, calc(100vh - 32px));
    padding: 0;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    overflow: visible;
}

.privacy-modal::backdrop,
.interest-modal::backdrop,
.photo-crop-modal::backdrop,
.friend-preview-modal::backdrop,
.confirm-modal::backdrop {
    background: rgba(8, 14, 24, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy-modal-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(680px, calc(100vh - 32px));
    padding: 28px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.privacy-modal-close,
.interest-modal-close,
.photo-crop-close,
.friend-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--navy);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

:root[data-theme='dark'] .privacy-modal-close,
:root[data-theme='dark'] .interest-modal-close,
:root[data-theme='dark'] .photo-crop-close,
:root[data-theme='dark'] .friend-preview-close {
    background: var(--panel-elevated);
}

.privacy-modal-close:hover,
.interest-modal-close:hover,
.photo-crop-close:hover,
.friend-preview-close:hover {
    background: var(--hover-bg);
    border-color: var(--line-strong);
}

.privacy-modal-header {
    padding-right: 44px;
    margin-bottom: 14px;
}

.privacy-modal-header h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.privacy-modal-header p {
    color: var(--muted);
    font-size: 0.92rem;
}

.privacy-modal-body {
    padding-right: 8px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.privacy-policy-content {
    display: grid;
    gap: 14px;
    color: var(--text);
    line-height: 1.6;
}

.privacy-policy-content section {
    display: grid;
    gap: 6px;
}

.privacy-policy-content h3 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

.privacy-policy-content p,
.privacy-policy-content li {
    color: var(--muted);
    margin: 0;
}

.privacy-policy-content ul {
    padding-left: 18px;
    margin: 0;
}

.privacy-policy-note {
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    background: var(--bg-soft);
}

:root[data-theme='dark'] .privacy-policy-note {
    background: var(--panel-elevated);
}

.privacy-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ── Forms ── */
.stack-form,
.profile-grid-form {
    display: grid;
    gap: 14px;
}

.profile-edit-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 600px);
    gap: 22px;
    align-items: start;
    width: min(940px, 100%);
    margin-inline: auto;
}

.profile-grid-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
    align-content: start;
    font-weight: 600;
    min-width: 0;
}

.profile-grid-form .field {
    grid-column: span 6;
}

.field > span:first-child,
.profile-grid-form .field > span:first-child {
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea,
.field input[type='file'] {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    font-size: 0.94rem;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: 0.78;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--line-hover);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring-focus);
}

.field input,
.field select,
.field input[type='file'] {
    min-height: 42px;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.field small,
.field ul,
.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.84rem;
}

.errorlist li {
    color: var(--danger);
    font-weight: 600;
}

.field-photo,
.field-address,
.field-interests,
.field-bio {
    grid-column: 1 / -1;
}

.field-photo input[type='file'] {
    padding: 12px 14px;
}

/* ── Photo control ── */
.profile-photo-control {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.profile-photo-input,
.profile-photo-clear-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-photo-button {
    flex: 1 1 auto;
    min-height: 38px;
}

.profile-photo-button.is-hidden { display: none; }

.profile-photo-status {
    color: var(--success);
    font-weight: 700;
    font-size: 0.86rem;
}

.profile-photo-status.error {
    color: var(--danger);
}

/* ── Interest select ── */
.interest-select-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.interest-select-button:hover {
    border-color: var(--line-hover);
}

.interest-select-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.interest-select-button strong {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-tint-strong);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

/* ── Interest modal ── */
.interest-modal {
    width: min(580px, calc(100% - 24px));
    padding: 0;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    overflow: visible;
}

.interest-modal-shell {
    position: relative;
    display: grid;
    gap: 16px;
    max-height: min(620px, calc(100vh - 32px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel-strong);
    box-shadow: var(--shadow-xl);
}

.interest-modal-header {
    display: grid;
    gap: 6px;
    padding-right: 44px;
}

.interest-modal-header h2 {
    font-size: 1.2rem;
}

.interest-modal-header p {
    color: var(--muted);
    font-size: 0.92rem;
}

.interest-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: min(360px, calc(100vh - 220px));
    overflow-y: auto;
    padding: 4px 6px 4px 0;
}

.interest-options > div {
    display: inline-flex;
}

.interest-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

:root[data-theme='dark'] .interest-options label {
    background: var(--panel-elevated);
}

.interest-options label:hover {
    transform: translateY(-1px);
    border-color: var(--line-hover);
}

.interest-options input {
    width: 14px;
    height: 14px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent);
}

.interest-options label:has(input:checked) {
    border-color: rgba(226, 92, 76, 0.5);
    background: var(--accent-tint-strong);
    color: var(--accent-dark);
}

.interest-modal-actions {
    display: flex;
    justify-content: flex-end;
}

/* ── Interest chips ── */
.interest-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.interest-chip-list.compact {
    margin: 6px 0 8px;
}

.interest-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ── Photo crop ── */
.photo-crop-modal {
    width: min(620px, calc(100% - 24px));
    padding: 0;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    overflow: visible;
}

.photo-crop-shell {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel-strong);
    box-shadow: var(--shadow-xl);
}

.photo-crop-header {
    display: grid;
    gap: 6px;
    padding-right: 44px;
}

.photo-crop-header h2 {
    font-size: 1.2rem;
}

.photo-crop-header p {
    color: var(--muted);
    font-size: 0.92rem;
}

.photo-crop-stage {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(45deg, color-mix(in srgb, var(--navy) 6%, transparent) 25%, transparent 25%),
        linear-gradient(-45deg, color-mix(in srgb, var(--navy) 6%, transparent) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--navy) 6%, transparent) 75%),
        linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--navy) 6%, transparent) 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    touch-action: none;
    cursor: grab;
}

.photo-crop-stage.is-dragging {
    cursor: grabbing;
}

.photo-crop-image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    user-select: none;
    will-change: transform, width, height;
}

.photo-crop-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.32),
        inset 0 0 0 999px rgba(15, 23, 42, 0.04);
}

.photo-crop-zoom {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
}

.photo-crop-zoom input {
    width: 100%;
    accent-color: var(--accent);
}

.photo-crop-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}


/* === 06-profile.css === */
/* ── Profile preview (sidebar in edit page) ── */
.profile-preview-panel {
    position: sticky;
    top: 88px;
    padding: 18px;
}

.profile-preview-card {
    display: grid;
    gap: 14px;
    margin: 8px 0 14px;
}

.profile-preview-photo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 5;
    background: var(--grad-accent-soft);
    box-shadow: var(--shadow-sm);
}

.profile-preview-photo,
.profile-preview-photo.placeholder {
    width: 100%;
    height: 100%;
}

.profile-preview-photo {
    object-fit: cover;
    object-position: center;
}

.profile-preview-photo.placeholder {
    display: grid;
    place-items: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--navy);
}

.profile-preview-copy {
    display: grid;
    gap: 8px;
}

.profile-preview-copy h2 {
    font-size: 1.2rem;
}

.preview-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-preview-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-preview-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid var(--line);
}

:root[data-theme='dark'] .profile-preview-facts span {
    background: var(--panel-elevated);
}

.form-actions {
    grid-column: 1 / -1;
}

/* ── Dashboard head ── */
.dashboard-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 4px 16px;
}

.dashboard-breadcrumb {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-page-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* ── View mode switch ── */
.dashboard-mode-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-strong);
    box-shadow: var(--shadow-sm);
}

.dashboard-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.85rem;
    font-weight: 800;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dashboard-mode-btn:hover {
    color: var(--navy);
}

.dashboard-mode-btn.active {
    background: var(--grad-accent);
    color: white;
    box-shadow: 0 6px 14px rgba(226, 92, 76, 0.32);
}

/* ── Filter bar ── */
.dashboard-filter-bar {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(190px, 1.2fr) minmax(190px, 1.2fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    box-shadow: var(--shadow-sm);
}

.dashboard-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dashboard-age-range,
.dashboard-filter-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--field-bg);
    color: var(--text);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dashboard-age-range:focus-within,
.dashboard-filter-field select:focus {
    border-color: var(--accent);
    box-shadow: var(--ring-focus);
}

.dashboard-age-range {
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 4px;
}

.dashboard-age-range input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.94rem;
    text-align: center;
    outline: none;
}

.dashboard-age-range span {
    color: var(--muted);
    padding: 0 4px;
}

.dashboard-filter-field select {
    padding: 0 36px 0 14px;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}

.dashboard-filter-submit {
    min-height: 44px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--grad-accent);
    color: white;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(226, 92, 76, 0.28);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dashboard-filter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(226, 92, 76, 0.4);
}

.view-icon {
    width: 18px;
    height: 16px;
    display: block;
    border-radius: 5px;
    border: 2px solid currentColor;
    opacity: 0.8;
}

.grid-icon {
    background:
        linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat,
        linear-gradient(90deg, currentColor, currentColor) 0 50% / 100% 2px no-repeat;
}

.single-icon {
    width: 20px;
    box-shadow:
        4px 3px 0 -1px var(--panel-strong),
        4px 3px 0 1px currentColor;
}

/* ── Single-card carousel ── */
.single-card-stage {
    width: min(720px, 100%);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 380px) 60px;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.single-card-arrow {
    width: 56px;
    height: 80px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--panel-strong);
    color: var(--navy);
    font: inherit;
    font-size: 2.4rem;
    line-height: 0.8;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.single-card-arrow:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-lg);
}

/* ── Card grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.dashboard-card-grid.single-card-deck {
    display: block;
    width: 100%;
    margin-inline: auto;
}

.single-card-deck .profile-card {
    display: none;
}

.single-card-deck .profile-card.is-active {
    display: flex;
}

.dashboard-card-grid > .empty-state {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    margin-inline: auto;
    justify-self: center;
    text-align: center;
}

/* ── Profile card ── */
.profile-card {
    display: flex;
    flex-direction: column;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.profile-card-clickable {
    cursor: pointer;
}

.profile-card-clickable:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-lg);
}

.profile-card-body {
    flex: 1;
    padding: 14px 16px 0;
    display: grid;
    gap: 10px;
}

.profile-photo-wrap {
    position: relative;
    overflow: hidden;
    background: var(--grad-accent-soft);
    aspect-ratio: 3 / 4;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--ease-out);
}

.profile-photo.placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--navy);
}

.profile-card:hover .profile-photo {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 4px;
    padding: 60px 16px 14px;
    color: white;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 14, 24, 0.18) 36%, rgba(8, 14, 24, 0.92) 100%);
}

.photo-overlay h2 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.profile-card-line {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4;
    font-size: 0.88rem;
    color: var(--muted);
}

.profile-card-extra {
    display: none;
}

.single-card-deck .profile-card-extra {
    display: -webkit-box;
}

.single-card-deck .profile-card-line {
    -webkit-line-clamp: 4;
}

.profile-card-body .profile-preview-facts span {
    min-height: 22px;
    padding: 3px 10px;
    background: var(--bg-soft);
    color: var(--muted-strong);
    font-size: 0.76rem;
    border-color: var(--line);
}

:root[data-theme='dark'] .profile-card-body .profile-preview-facts span {
    background: var(--panel-elevated);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 16px;
}

.card-actions .button,
.card-actions .status-chip,
.card-actions .contact-request-form {
    width: 100%;
}

.card-actions .button,
.card-actions .status-chip {
    min-height: 40px;
    border-radius: 12px;
}

.contact-request-form {
    margin: 0;
}

.contact-request-form .button {
    width: 100%;
}

.card-action-message {
    display: block;
    margin-top: 6px;
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

/* ── Cards page-in animation ── */
@keyframes cardsPageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.dashboard-card-grid {
    animation: cardsPageIn 0.35s ease-out both;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

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

.page-btn-active {
    background: var(--grad-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(226, 92, 76, 0.3);
}

.page-btn-active:hover {
    color: white;
    border-color: transparent;
}

.page-btn-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.page-ellipsis {
    color: var(--muted);
    font-weight: 700;
    align-self: center;
    padding: 0 2px;
}

/* ── Public profile ── */
.public-profile-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.public-profile-visual {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 88px;
}

/* Wrapper that shows the online-dot without overflow clipping */
.public-profile-photo-outer {
    position: relative;
    display: block;
}

.public-profile-photo-outer.online-dot::after {
    right: 8px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border-width: 3px;
}

.public-profile-photo-wrap {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--grad-accent-soft);
    box-shadow: var(--shadow-md);
}

.public-profile-photo,
.public-profile-photo.placeholder {
    width: 100%;
    height: 100%;
}

.public-profile-photo {
    object-fit: cover;
    object-position: center;
}

.public-profile-photo.placeholder {
    display: grid;
    place-items: center;
    font-size: 4.4rem;
    font-weight: 800;
    color: var(--navy);
}

.public-profile-visual-actions {
    display: grid;
    gap: 8px;
}

.public-profile-visual-actions .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
}

.public-profile-copy {
    display: grid;
    gap: 22px;
    padding: 28px;
}

.public-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.public-profile-copy h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1.15;
}

.public-profile-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.public-profile-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.public-profile-fact {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

:root[data-theme='dark'] .public-profile-fact {
    background: var(--panel-elevated);
}

.public-profile-fact span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.public-profile-fact strong {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
}

.public-profile-section {
    display: grid;
    gap: 10px;
}

.public-profile-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.public-profile-bio-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.96rem;
}

:root[data-theme='dark'] .public-profile-bio-text {
    color: var(--text);
}

/* ── Settings card (legacy) ── */
.settings-card {
    margin-top: 14px;
    padding: 0;
    overflow: hidden;
}

.settings-card-header {
    padding: 14px 18px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.settings-rows {
    display: flex;
    flex-direction: column;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: none;
    border-top: 1px solid var(--line);
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease);
    width: 100%;
}

.settings-row:first-child {
    border-top: none;
}

.settings-row:hover {
    background: var(--hover-bg);
}

.settings-row-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-size: 1rem;
    flex-shrink: 0;
}

.settings-row-label { flex: 1; }

.settings-row-arrow {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 400;
}

.settings-row-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.settings-card-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--line);
}

.settings-card-footer .button {
    width: 100%;
    min-height: 44px;
}

.settings-lang-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    cursor: pointer;
}

.settings-lang-row > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
}

.settings-lang-row > summary::-webkit-details-marker { display: none; }

.settings-lang-row[open] > summary {
    border-bottom: 1px solid var(--line);
}

.settings-lang-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.settings-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease);
}

.settings-lang-item:hover {
    background: var(--hover-bg);
}

.settings-lang-item.active {
    background: var(--accent-tint);
    color: var(--accent-dark);
}

.notif-modal-shell {
    gap: 0;
    padding: 0;
}

.notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}

.notif-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.notif-modal-rows {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}


/* === 07-seo.css === */
.seo-page-layout {
    display: grid;
    gap: 28px;
}

.seo-page-hero {
    display: grid;
    gap: 16px;
    max-width: 880px;
    padding: 36px 0 6px;
}

.seo-page-hero h1 {
    color: var(--navy);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.seo-page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.seo-main-copy,
.seo-faq-list {
    display: grid;
    gap: 16px;
}

.seo-text-section,
.seo-aside,
.seo-faq-section,
.seo-related-section,
.seo-page-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel-strong);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.seo-text-section,
.seo-aside,
.seo-faq-section,
.seo-related-section {
    padding: 24px;
}

.seo-text-section {
    display: grid;
    gap: 12px;
}

.seo-text-section h2,
.seo-aside h2,
.seo-faq-section h2,
.seo-related-section h2,
.seo-page-card h2 {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.seo-text-section p,
.seo-page-card p {
    color: var(--muted);
    line-height: 1.7;
}

.seo-aside,
.seo-faq-section,
.seo-related-section {
    display: grid;
    gap: 14px;
}

.seo-aside ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.seo-faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease);
}

:root[data-theme='dark'] .seo-faq-list details {
    background: var(--panel-elevated);
}

.seo-faq-list details:hover {
    border-color: var(--line-strong);
}

.seo-faq-list details[open] {
    border-color: var(--accent-soft);
}

.seo-faq-list summary {
    padding: 14px 16px;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.seo-faq-list summary::-webkit-details-marker { display: none; }

.seo-faq-list summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 600;
    transition: transform var(--dur) var(--ease);
}

.seo-faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.seo-faq-list p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--muted);
    line-height: 1.6;
}

.seo-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.seo-related-links a:hover {
    background: var(--accent-tint-strong);
    transform: translateY(-1px);
}

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

.seo-page-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 24px;
}

.seo-page-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.seo-page-card h2 {
    margin: 0;
    font-size: 1.15rem;
}


/* === 08-connections.css === */
/* ── Split layout (requests in/out) ── */
.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.split-layout .panel {
    padding: 18px;
}

/* ── Request lists ── */
.request-list {
    display: grid;
    gap: 8px;
}

.conversation-list,
.message-list {
    display: grid;
    gap: 6px;
}

/* ── Request card ── */
.request-card {
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 14px;
    gap: 10px;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.request-card:hover {
    border-color: var(--line-strong);
    background: var(--bg-soft);
}

:root[data-theme='dark'] .request-card:hover {
    background: var(--panel-elevated);
}

.request-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    border-radius: 12px;
    transition: opacity var(--dur) var(--ease);
}

.request-card-info:hover {
    opacity: 0.86;
}

.request-avatar-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
}

.request-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--line);
}

.request-avatar.placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    background: var(--grad-accent);
}

.request-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.request-card-meta strong {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-card-meta p,
.request-card-meta span {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.request-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.request-card-actions .button {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.84rem;
}

.button-waiting {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.82rem;
}

/* ── Friends page ── */
.friends-page-shell {
    width: min(1000px, 100%);
    margin-inline: auto;
}

.friends-list {
    display: grid;
    gap: 12px;
}

.friends-toolbar {
    margin-bottom: 16px;
    padding: 16px 18px;
}

.friends-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 200px auto auto;
    gap: 12px;
    align-items: end;
}

.friends-filters .field {
    gap: 6px;
}

.friends-filters .field > span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-strong);
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    font-weight: 600;
    color: var(--navy);
}

:root[data-theme='dark'] .filter-checkbox {
    background: var(--panel-elevated);
}

.filter-checkbox:hover {
    border-color: var(--line-strong);
}

.filter-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

/* ── Friend card ── */
.friend-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    flex-wrap: wrap;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.friend-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.friend-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 220px;
}

.friend-avatar-wrap {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}

.friend-avatar,
.friend-avatar.placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.friend-avatar {
    object-fit: cover;
    border: 1.5px solid var(--line);
}

.friend-avatar.placeholder {
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    background: var(--grad-accent);
}

.friend-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.friend-meta h2,
.friend-meta span,
.friend-meta p {
    margin: 0;
}

.friend-meta h2 {
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.friend-meta span,
.friend-meta p,
.friend-card-about p,
.public-profile-subtitle {
    color: var(--muted);
    font-size: 0.86rem;
}

.friend-card-about {
    grid-area: about;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.friend-card-about p {
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* ── Online dot ── */
.online-dot {
    position: relative;
    display: inline-block;
}

.online-dot::after {
    content: '';
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--panel-strong);
    z-index: 2;
}

.online-dot.dot-sm::after {
    width: 10px;
    height: 10px;
    right: 0;
    bottom: 0;
    border-width: 2px;
}

.online-dot.dot-lg::after {
    width: 16px;
    height: 16px;
    right: 6px;
    bottom: 6px;
    border-width: 3px;
}

/* ── Friend status ── */
.friend-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.friend-status-inline {
    margin-left: auto;
    white-space: nowrap;
}

.friend-status,
.friend-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.friend-status {
    background: var(--hover-bg);
    color: var(--muted-strong);
}

.friend-status.online {
    background: var(--success-soft);
    color: var(--success);
}

.friend-status.recent {
    background: var(--accent-tint);
    color: var(--accent-dark);
}

.friend-status.dated,
.friend-status.muted {
    color: var(--muted);
}

.friend-unread {
    background: var(--grad-accent);
    color: white;
}

.friend-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 0;
}

.friend-card-actions .button {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.friend-preview-actions .button {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.94rem;
}

.remove-friend-form {
    margin: 0;
}

/* ── Friend preview modal ── */
.friend-preview-modal {
    width: min(820px, calc(100% - 24px));
    padding: 0;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    overflow: visible;
}

.friend-preview-shell {
    position: relative;
    padding: 28px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.friend-preview-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.friend-preview-media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--grad-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.friend-preview-photo,
.friend-preview-photo.placeholder {
    width: 100%;
    height: 100%;
}

.friend-preview-photo {
    object-fit: cover;
    object-position: center;
}

.friend-preview-photo.placeholder {
    display: grid;
    place-items: center;
    font-size: 5rem;
    font-weight: 800;
    color: var(--navy);
}

.friend-preview-copy {
    display: grid;
    gap: 18px;
}

.friend-preview-copy h2,
.friend-preview-copy p {
    margin: 0;
}

.friend-preview-copy h2 {
    color: var(--navy);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.friend-preview-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.friend-preview-fact {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

:root[data-theme='dark'] .friend-preview-fact {
    background: var(--panel-elevated);
}

.friend-preview-fact span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.friend-preview-fact strong {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
}

.friend-preview-fact-row p,
[data-preview-interests] {
    color: var(--navy);
}

.friend-preview-bio {
    display: grid;
    gap: 8px;
}

.friend-preview-bio p {
    color: var(--muted);
    line-height: 1.6;
}

:root[data-theme='dark'] .friend-preview-bio p,
:root[data-theme='dark'] [data-preview-interests] {
    color: var(--text);
}

.friend-preview-actions {
    justify-content: flex-start;
}

/* ── Confirm modal ── */
.confirm-modal {
    width: min(420px, calc(100% - 32px));
    padding: 0;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
}

.confirm-modal-shell {
    padding: 28px 24px 22px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.confirm-modal-text {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--navy);
    margin: 0;
    text-align: center;
    font-weight: 600;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ── New friend badge ── */
.friend-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.friend-name-row h2 {
    margin: 0;
}

.new-friend-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--success-soft);
    border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
    color: var(--success);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* === 09-chat.css === */
.chat-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.chat-sidebar,
.chat-main {
    min-height: 70vh;
    padding: 16px;
}

.chat-main {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
    padding: 0;
    overflow: hidden;
}

/* ── Conversation list ── */
.conversation-link {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur) var(--ease);
}

.conversation-link:hover {
    background: var(--hover-bg);
    border-color: var(--line);
}

.conversation-avatar-wrap {
    width: 44px;
    height: 44px;
}

.conversation-avatar,
.conversation-avatar.placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.conversation-avatar {
    object-fit: cover;
    border: 1.5px solid var(--line);
}

.conversation-avatar.placeholder {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: white;
    background: var(--grad-accent);
}

.conversation-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.conversation-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.conversation-meta-side {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.conversation-time {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.conversation-meta strong,
.conversation-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta strong {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
}

.conversation-meta .conversation-meta-side {
    display: inline-flex;
    overflow: visible;
}

.conversation-meta .conversation-unread-badge {
    width: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-overflow: clip;
    line-height: 1;
    white-space: nowrap;
}

.conversation-preview {
    color: var(--muted);
    font-size: 0.84rem;
}

.conversation-preview.unread {
    color: var(--navy);
    font-weight: 700;
}

.conversation-unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--grad-accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.conversation-link.active {
    border-color: rgba(226, 92, 76, 0.32);
    background: var(--accent-tint);
}

/* ── Chat header ── */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-strong);
}

.chat-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

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

.chat-presence {
    margin-top: 2px;
}

.chat-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--navy);
    transition: background var(--dur) var(--ease);
}

:root[data-theme='dark'] .chat-back-btn {
    background: var(--panel-elevated);
}

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

/* ── Message list ── */
.chat-main .message-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 8px;
    padding: 18px;
}

/* ── Message bubble ── */
.message-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease);
}

:root[data-theme='dark'] .message-bubble {
    background: var(--panel-elevated);
}

.message-bubble:hover {
    box-shadow: var(--shadow-md);
}

.message-bubble.mine {
    margin-left: auto;
    background: var(--grad-accent);
    color: white;
    border-color: transparent;
    border-radius: 18px 18px 4px 18px;
}

.message-bubble.mine .message-meta,
.message-bubble.mine span {
    color: rgba(255, 255, 255, 0.86);
}

.message-bubble p,
.message-bubble span {
    margin: 0;
    display: block;
}

.message-bubble p {
    font-size: 0.94rem;
    line-height: 1.45;
}

.message-reply-quote {
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    background: var(--hover-bg);
}

.message-bubble.mine .message-reply-quote {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
}

.message-reply-quote strong,
.message-reply-quote span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-reply-quote strong {
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.message-bubble.mine .message-reply-quote strong {
    color: white;
}

.message-reply-quote span {
    color: var(--muted);
    font-size: 0.84rem;
}

.message-bubble.mine .message-reply-quote span {
    color: rgba(255, 255, 255, 0.86);
}

.message-image-button {
    display: block;
    width: fit-content;
    max-width: min(220px, 100%);
    height: 90px;
    margin: 6px 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: zoom-in;
}

.message-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-bubble span.message-meta {
    margin-top: 6px;
}

.message-bubble span:not(.message-meta):not(.message-read-status) {
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--muted);
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
}

.message-seen-label {
    margin: -4px 0 6px auto;
    font-size: 0.7rem;
    color: var(--muted);
    text-align: right;
}

/* ── Message form ── */
.chat-message-form {
    margin-top: auto;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--line);
    background: var(--panel-strong);
}

.chat-reply-preview {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: var(--bg-soft);
}

:root[data-theme='dark'] .chat-reply-preview {
    background: var(--panel-elevated);
}

.chat-reply-preview[hidden] {
    display: none;
}

.chat-reply-preview div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.chat-reply-preview strong,
.chat-reply-preview span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-reply-preview strong {
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.chat-reply-preview span {
    color: var(--muted);
    font-size: 0.86rem;
}

.chat-reply-preview button {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: var(--hover-bg);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}

.chat-reply-preview button:hover {
    background: var(--line-strong);
}

.chat-composer {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px auto;
    align-items: end;
    gap: 8px;
    width: 100%;
}

.chat-composer-field {
    min-width: 0;
}

.chat-message-form textarea {
    display: block;
    width: 100%;
    min-height: 38px;
    max-height: 120px;
    padding: 9px 14px;
    overflow-y: auto;
    resize: none;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.4;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.chat-message-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring-focus);
}

.chat-message-form textarea::placeholder {
    color: var(--muted);
}

.chat-message-form .button {
    width: fit-content;
}

.chat-send-button {
    min-height: 38px;
    padding: 0 18px;
}

.emoji-picker-wrap {
    position: relative;
}

.chat-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--navy);
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

:root[data-theme='dark'] .chat-icon-button {
    background: var(--panel-elevated);
}

.chat-icon-button:hover {
    background: var(--hover-bg);
    border-color: var(--line-strong);
}

.chat-attach-button {
    position: relative;
    font-size: 1.6rem;
    font-weight: 400;
}

.chat-attach-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.emoji-picker {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 4;
    width: 220px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--menu-bg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInUp 0.18s var(--ease-out);
}

.emoji-picker[hidden] {
    display: none;
}

.emoji-picker button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.emoji-picker button:hover {
    background: var(--hover-bg);
    transform: scale(1.15);
}

.chat-attachment-preview {
    width: 100%;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.chat-attachment-preview[hidden] {
    display: none;
}

.chat-attachment-preview button {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--hover-bg);
    color: var(--navy);
    cursor: pointer;
}

.chat-form-errors {
    width: 100%;
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: right;
}

.chat-form-errors[hidden] {
    display: none;
}

/* ── Image viewer ── */
.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(8, 14, 24, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: zoom-out;
}

.image-viewer[hidden] {
    display: none;
}

.image-viewer img {
    max-width: min(100%, 900px);
    max-height: min(100%, 84vh);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.image-viewer-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.26);
}

.image-viewer-open {
    overflow: hidden;
}


/* === 10-footer.css === */
.site-footer {
    margin-top: 22px;
    padding: 32px 28px 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #122a48 0%, #0f2540 50%, #c2453a 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    color: rgba(255, 248, 241, 0.96);
    box-shadow: var(--shadow-lg);
}

/* Light theme: brand-red leads, transitions to navy — feels warm, not cold */
:root:not([data-theme='dark']) .site-footer {
    background: linear-gradient(135deg, #c96559 0%, #a7524c 46%, #2d4c6b 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 28px rgba(76, 50, 44, 0.12), 0 18px 44px rgba(15, 37, 64, 0.08);
}

:root[data-theme='dark'] .site-footer {
    background: linear-gradient(135deg, #1a3658 0%, #182338 60%, #b13a2c 100%);
}

.site-footer::before,
.site-footer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

.site-footer::before {
    top: -100px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 220, 200, 0.32), transparent 64%);
}

.site-footer::after {
    bottom: -120px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(238, 180, 152, 0.22), transparent 66%);
}

.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.footer-brand {
    display: grid;
    gap: 12px;
}

.footer-logo {
    width: min(200px, 100%);
    height: auto;
    filter: var(--footer-logo-filter);
}

.footer-brand p {
    color: rgba(255, 248, 241, 0.78);
    line-height: 1.6;
    max-width: 36ch;
}

.footer-column span,
.footer-column a {
    color: rgba(255, 248, 241, 0.78);
    font-size: 0.92rem;
    transition: color var(--dur) var(--ease);
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-title {
    margin-bottom: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 248, 241, 0.96);
}

.footer-column a:hover {
    color: white;
}

.footer-safety-promise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 6px 12px;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 248, 241, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
}

.footer-safety-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6dd49d;
    box-shadow: 0 0 0 4px rgba(109, 212, 157, 0.22);
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.footer-social {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 248, 241, 0.92);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    transform: translateY(-1px);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 248, 241, 0.7);
    font-size: 0.88rem;
}


/* === 11-responsive.css === */
/* ── Tablet ── */
@media (max-width: 1024px) {
    .public-profile-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

/* ── Burger threshold ── */
@media (max-width: 960px) {
    .site-nav {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .header-tools {
        gap: 6px;
    }
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .page-shell {
        width: min(1200px, calc(100% - 20px));
        padding: 12px 0 24px;
    }

    .site-header {
        margin-bottom: 18px;
        padding: 9px 12px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .brand-copy small {
        display: none;
    }

    .hero,
    .split-layout,
    .chat-layout,
    .profile-edit-layout,
    .profile-grid-form,
    .public-profile-layout,
    .friend-preview-layout,
    .friend-preview-facts,
    .seo-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 28px 24px;
    }

    /* chat panel switching on narrow screens */
    .chat-back-btn { display: inline-flex; }

    /* list-only view (no active chat) */
    .chat-layout:not(.has-active-chat) .chat-main { display: none; }

    /* chat view: hide sidebar, show chat full-width */
    .chat-layout.has-active-chat .chat-sidebar { display: none; }
    .chat-layout.has-active-chat .chat-main {
        min-height: calc(100vh - 160px);
        max-height: calc(100vh - 160px);
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .language-menu {
        left: 0;
        right: auto;
        min-width: min(220px, 100%);
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero-visual {
        padding-top: 0;
    }

    .hero-orbit-card {
        position: static;
        max-width: none;
        margin-bottom: 12px;
    }

    .hero-orbit-card.secondary {
        margin-bottom: 18px;
    }

    .hero-panel {
        min-height: 300px;
    }

    .hero-panel-copy {
        position: static;
        margin-top: 22px;
    }

    .message-bubble {
        max-width: 88%;
    }

    .chat-composer {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-page-head {
        flex-direction: column;
        align-items: stretch;
        margin-top: 18px;
    }

    .dashboard-mode-switch {
        width: fit-content;
    }

    .dashboard-filter-bar {
        grid-template-columns: 1fr 1fr;
        padding: 14px;
    }

    .dashboard-filter-submit {
        width: 100%;
    }

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

    .single-card-stage {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
    }

    .single-card-arrow {
        width: 48px;
        height: 64px;
        border-radius: 14px;
        font-size: 1.8rem;
    }

    .friend-card-actions {
        justify-content: flex-start;
    }

    .friend-card {
        flex-direction: column;
        align-items: stretch;
    }

    .friend-card-main {
        flex: 1 1 auto;
    }

    .profile-preview-panel {
        position: static;
    }

    .friend-preview-shell {
        padding: 22px;
    }

    .friend-preview-modal {
        width: min(560px, calc(100% - 16px));
    }

    .photo-crop-shell {
        padding: 18px;
        gap: 12px;
    }

    .photo-crop-stage {
        width: min(280px, 100%);
    }

    .photo-crop-zoom {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .interest-modal-shell {
        padding: 18px;
        gap: 12px;
    }

    .interest-options {
        max-height: min(360px, calc(100vh - 200px));
    }

    .ambient-grid {
        opacity: 0.32;
    }

    .blob-one,
    .blob-three {
        width: 280px;
        height: 280px;
    }

    .blob-two {
        width: 240px;
        height: 240px;
    }

    .ring-one,
    .ring-two {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .public-profile-copy {
        padding: 22px;
    }

    .public-profile-copy h1 {
        font-size: 1.5rem;
    }
}

/* ── Small mobile ── */
@media (max-width: 560px) {
    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-filter-bar {
        grid-template-columns: 1fr;
    }

    .dashboard-mode-switch {
        width: 100%;
    }

    .dashboard-mode-btn {
        flex: 1;
    }

    .chat-composer {
        grid-template-columns: 36px minmax(0, 1fr) 36px auto;
        gap: 6px;
    }

    .chat-icon-button {
        width: 36px;
        height: 36px;
    }

    .chat-send-button {
        min-width: 36px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .emoji-picker {
        width: min(220px, calc(100vw - 40px));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .friend-preview-actions {
        flex-direction: column;
    }

    .friend-preview-actions .button {
        width: 100%;
    }

    .toast-container {
        bottom: 14px;
        right: 14px;
        left: 14px;
    }

    .toast {
        max-width: none;
    }

    .landing-section {
        margin-top: 36px;
    }

    .ai-section {
        padding: 28px 22px;
    }

    .ai-section-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .how-steps {
        grid-template-columns: 1fr;
    }

    .cta-final,
    .static-cta {
        padding: 32px 22px;
        margin-top: 36px;
    }

    .static-hero {
        padding: 32px 24px;
    }

    .static-section {
        padding: 22px 22px;
    }

    .requisites-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}



/* === 12-static-pages.css === */
/* ── Static pages: about / contacts ── */

.static-hero {
    display: grid;
    gap: 12px;
    padding: 44px 36px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top right, var(--accent-tint-strong), transparent 38%),
        var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.static-hero h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--navy);
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.static-lead {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1.02rem;
    max-width: 60ch;
}

.static-section {
    margin-top: 32px;
    padding: 28px 32px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.static-section h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.static-section > p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.98rem;
    max-width: 70ch;
}

/* ── Value cards (about) ── */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.value-card {
    display: grid;
    gap: 10px;
    padding: 22px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

:root[data-theme='dark'] .value-card {
    background: var(--panel-elevated);
}

.value-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.value-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-tint-strong);
    color: var(--accent-dark);
}

.value-card h3 {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.value-card p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

/* ── Static CTA (about) ── */
.static-cta {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: 40px 32px;
    margin-top: 32px;
    background: var(--grad-accent);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 48px rgba(226, 92, 76, 0.28);
    color: white;
}

.static-cta h2 {
    color: white;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.static-cta p {
    color: rgba(255, 248, 241, 0.92);
    line-height: 1.55;
    max-width: 50ch;
}

.static-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.static-cta .button-primary {
    background: white;
    color: var(--accent-dark);
}

.static-cta .button-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-dark);
}

.static-cta .button-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.36);
    color: white;
}

.static-cta .button-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ── Contacts grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.contact-card {
    display: grid;
    gap: 6px;
    padding: 24px 22px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

:root[data-theme='dark'] .contact-card {
    background: var(--panel-elevated);
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: var(--accent-tint-strong);
    color: var(--accent-dark);
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.015em;
}

.contact-text {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ── Requisites ── */
.requisites-list {
    display: grid;
    gap: 0;
    margin: 12px 0 14px;
    padding: 0;
}

.requisites-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.4fr) 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.requisites-row:last-child {
    border-bottom: none;
}

.requisites-row dt {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.requisites-row dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.requisites-note {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.requisites-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.requisites-links a {
    color: var(--accent-dark);
    font-weight: 700;
    transition: color var(--dur) var(--ease);
}

.requisites-links a:hover {
    color: var(--accent);
}


