@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
    --c-bg:          #0b0f14;
    --c-surface:     rgba(16, 22, 30, 0.85);
    --c-surface-2:   #121b22;
    --c-surface-3:   #19242d;
    --c-border:      rgba(255, 255, 255, 0.05);
    --c-border-hover:rgba(255, 255, 255, 0.12);

    --c-text:        #f8fafc;
    --c-muted:       rgba(241, 245, 249, 0.65);
    --c-subtle:      rgba(241, 245, 249, 0.35);

    --c-accent:      #38bdf8;
    --c-accent-light:#7dd3fc;
    --c-accent-dim:  rgba(56, 189, 248, 0.15);
    --c-accent-glow: rgba(56, 189, 248, 0.3);

    --c-green:       #10b981;
    --c-green-dim:   rgba(16, 185, 129, 0.1);
    --c-blue:        #0ea5e9;
    --c-blue-dim:    rgba(14, 165, 233, 0.1);

    --c-danger:      #ef4444;

    --grad-accent:   linear-gradient(135deg, #0ea5e9, #2dd4bf);
    --grad-text:     linear-gradient(135deg, #e2e8f0, #94a3b8);
    --grad-hero:     linear-gradient(135deg, #f8fafc 0%, #cbd5e1 60%, #94a3b8 100%);

    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     20px;
    --radius-2xl:    28px;
    --radius-full:   999px;

    --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.6);
    --shadow-xl:     0 24px 80px rgba(0,0,0,0.7);
    --shadow-glow:   0 0 40px rgba(56, 189, 248, 0.2);

    --blur-sm:       blur(12px);
    --blur-md:       blur(24px);
    --blur-lg:       blur(48px);

    --header-h:      80px;
    --sidebar-w:     260px;

    --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Light mode overrides below */
}

[data-theme="light"] {
    --c-bg:          #f8fafc;
    --c-surface:     rgba(255, 255, 255, 0.9);
    --c-surface-2:   #ffffff;
    --c-surface-3:   #f1f5f9;
    --c-border:      rgba(15, 23, 42, 0.08);
    --c-border-hover:rgba(15, 23, 42, 0.16);
    --c-text:        #0f172a;
    --c-muted:       #334155;
    --c-subtle:      #64748b;
    --c-accent:      #0284c7;
    --c-accent-light:#0369a1;
    --c-accent-dim:  rgba(2, 132, 199, 0.1);
    --c-accent-glow: rgba(2, 132, 199, 0.15);
    --grad-accent:   linear-gradient(135deg, #0284c7, #0d9488);
    --grad-text:     linear-gradient(135deg, #0f172a, #334155);
    --grad-hero:     linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md:     0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg:     0 12px 40px rgba(15, 23, 42, 0.1);
    --shadow-xl:     0 24px 80px rgba(15, 23, 42, 0.12);
    --shadow-glow:   0 0 40px rgba(2, 132, 199, 0.08);
}

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

html { scroll-behavior: smooth; }

/* ─── Custom scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-border-hover); }

/* ─── Selection color ────────────────────────────────────────── */
::selection { background: rgba(99,102,241,0.28); color: var(--c-text); }

/* ─── Focus ring ─────────────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv01", "cv11";
    overflow-x: hidden;
}

/* ─── Ambient Background (Fluid Ambient Mesh) ────────────────── */
.background-orbs {
    position: fixed; inset: -30%;
    z-index: -2; pointer-events: none; overflow: hidden;
    background: var(--c-bg);
    filter: blur(100px) saturate(170%);
    opacity: 0.45;
    transition: opacity .35s;
}

[data-theme="light"] .background-orbs {
    opacity: 0.25;
    filter: blur(100px) saturate(130%);
}

.orb {
    position: absolute; border-radius: 50%;
    mix-blend-mode: screen;
    filter: blur(40px);
    will-change: transform, left, top;
}

[data-theme="light"] .orb {
    mix-blend-mode: multiply;
}

.orb-1 {
    width: 60vw; height: 60vw;
    background: var(--c-accent, #6366f1);
    left: -10%; top: -15%;
    animation: float-blob-1 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 50vw; height: 50vw;
    background: #8b5cf6;
    right: -5%; top: 20%;
    animation: float-blob-2 30s infinite alternate ease-in-out;
}

.orb-3 {
    width: 55vw; height: 55vw;
    background: #a855f7;
    left: 20%; bottom: -10%;
    animation: float-blob-3 28s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(10%, 8%) scale(1.08) rotate(180deg); }
  100% { transform: translate(-5%, 15%) scale(0.92) rotate(360deg); }
}
@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-15%, -10%) scale(0.88) rotate(-120deg); }
  100% { transform: translate(8%, 5%) scale(1.04) rotate(-240deg); }
}
@keyframes float-blob-3 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-8%, 18%) scale(1.12) rotate(90deg); }
  100% { transform: translate(12%, -8%) scale(0.96) rotate(270deg); }
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--c-text);
}

a { color: inherit; text-decoration: none; }

p { color: var(--c-muted); line-height: 1.7; }

.text-gradient {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--c-accent-light); }
.text-green  { color: var(--c-green); }
.text-muted  { color: var(--c-muted); }

/* ─── Header ─────────────────────────────────────────────────── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-h);
    min-height: var(--header-h) !important;
    max-height: var(--header-h) !important;
    flex-wrap: nowrap !important;
    position: sticky; top: 0; z-index: 1000;
    background: rgba(7, 7, 12, 0.7);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--c-border);
}

[data-theme="light"] header {
    background: rgba(245, 245, 251, 0.8);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #f0f0ff 0%, #a5b4fc 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}
.logo .logo-mark {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.logo:hover .logo-mark {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(114, 233, 183, 0.6)) drop-shadow(0 0 4px rgba(120, 86, 190, 0.4));
}
[data-theme="light"] .logo {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo sup {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--c-accent-light);
    vertical-align: super;
    margin-left: 2px;
}

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

.nav-links a {
    color: var(--c-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--c-text);
    background: rgba(255,255,255,0.05);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-md);
    font: 600 0.875rem/1 'Inter', sans-serif;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 2px 8px rgba(99,102,241,.25);
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform .55s var(--ease-out);
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8 0%, #8b5cf6 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 20px rgba(99,102,241,.4);
    transform: translateY(-1px);
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
}

.btn-outline:hover {
    border-color: var(--c-border-hover);
    background: rgba(255,255,255,0.04);
}

.btn-ghost {
    background: transparent;
    color: var(--c-muted);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--c-text);
    background: rgba(255,255,255,0.05);
}

.btn-danger {
    background: transparent;
    color: var(--c-danger);
    border-color: rgba(248, 113, 113, 0.25);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.08);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

/* ─── Badges & Tags ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-premium {
    background: linear-gradient(135deg,rgba(167,139,250,.15),rgba(139,92,246,.1));
    color: #a78bfa;
    border: 1px solid rgba(167,139,250,.35);
}

.badge-verified {
    background: var(--c-green-dim);
    color: var(--c-green);
    border: 1px solid rgba(52,211,153,0.2);
}

.badge-topic {
    background: var(--c-accent-dim);
    color: var(--c-accent-light);
    border: 1px solid rgba(99,102,241,0.2);
}

.badge-pill {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    background: var(--c-surface-2);
    color: var(--c-muted);
    border: 1px solid var(--c-border);
}

.micro-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-accent-light);
    margin-bottom: 0.75rem;
}

/* ─── Glass Panel (base card) ────────────────────────────────── */
.glass-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-spring);
}

.glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        400px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
        rgba(255,255,255,0.04),
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.glass-panel > * { position: relative; z-index: 1; }

.glass-panel:hover {
    border-color: rgba(99,102,241,0.28);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,0.06);
    transform: translateY(-2px);
}

/* ─── Icon Button ────────────────────────────────────────────── */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--c-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.icon-btn:hover {
    color: var(--c-text);
    background: rgba(255,255,255,0.07);
}

/* Gaze toggle button — shared header */
.wekyn-gaze-btn {
    border-color: rgba(99,102,241,.3);
    color: rgba(99,102,241,.75);
}
.wekyn-gaze-btn.on {
    background: rgba(99,102,241,.15);
    border-color: rgba(99,102,241,.5);
    color: var(--c-accent-light);
}

/* Gaze target snapping highlight */
.wk-gaze-hover {
    outline: 2px solid var(--c-accent-light, #818cf8) !important;
    outline-offset: 4px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.45) !important;
    transform: scale(1.02) !important;
    transition: outline .15s, box-shadow .15s, transform .15s !important;
}

/* ─── Language Dropdown ──────────────────────────────────────── */
.lang-dropdown { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font: 600 0.82rem 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--c-text);
    border-color: var(--c-border-hover);
    background: rgba(255,255,255,0.04);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: all 0.18s var(--ease-spring);
    z-index: 9999;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    padding: 0.5rem 0.85rem;
    color: var(--c-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--c-text); }
.lang-option.selected { color: var(--c-accent-light); }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 7, 12, 0.75);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: modalIn 0.3s var(--ease-spring);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

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

.close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    background: transparent;
    border: none;
    color: var(--c-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
}

.close:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text);
    font: 600 0.9rem 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.oauth-btn:hover { border-color: var(--c-border-hover); background: var(--c-surface-3); transform: translateY(-1px); }

.oauth-google:hover  { border-color: rgba(234,67,53,0.4); box-shadow: 0 4px 12px rgba(234,67,53,0.1); }
.oauth-microsoft:hover { border-color: rgba(0,164,239,0.4); box-shadow: 0 4px 12px rgba(0,164,239,0.1); }

.modal-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--c-subtle);
    font-size: 0.8rem;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--c-border);
}

/* ─── Form Controls ──────────────────────────────────────────── */
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text);
    font: 400 0.95rem 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control::placeholder { color: var(--c-subtle); }

.form-control:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-dim);
}

.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--c-muted); }

/* Floating label inputs */
.floating-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.floating-group input,
.floating-group select,
.floating-group textarea {
    width: 100%;
    padding: 1.1rem 1rem 0.55rem 2.75rem;
    border-radius: var(--radius-md);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    font: 400 0.95rem 'Inter', sans-serif;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.floating-group textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
    padding-top: 1.25rem;
}

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

.floating-group label {
    position: absolute;
    left: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-subtle);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.2s var(--ease-out);
}

.floating-group textarea + label { top: 1.1rem; transform: none; }

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group select ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
    top: 0.45rem;
    transform: none;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--c-accent-light);
    letter-spacing: 0.02em;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-subtle);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s;
}

.floating-group textarea ~ .input-icon { top: 1.2rem; transform: none; }

.floating-group input:focus ~ .input-icon,
.floating-group select:focus ~ .input-icon,
.floating-group textarea:focus ~ .input-icon {
    color: var(--c-accent-light);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Search Input */
.search-input {
    width: 100%;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font: 400 0.9rem 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.search-input:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-dim);
    background: var(--c-surface-3);
}

.search-input::placeholder { color: var(--c-subtle); }

/* ─── Animations ─────────────────────────────────────────────── */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-spring) forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(52,211,153,0.3); }
    50%       { box-shadow: 0 0 20px rgba(52,211,153,0.6); }
}

/* ─── Pulse ring on CTA buttons ──────────────────────────────── */
.pulse {
    animation: btnPulse 2.8s ease-in-out infinite;
}
@keyframes btnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(99,102,241,.5), 0 1px 0 rgba(255,255,255,.12) inset; }
    60%  { box-shadow: 0 0 0 8px rgba(99,102,241,0), 0 1px 0 rgba(255,255,255,.12) inset; }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0),  0 1px 0 rgba(255,255,255,.12) inset; }
}

/* ─── Header — scrolled state ────────────────────────────────── */
header { transition: background .3s, box-shadow .3s; }
header.scrolled {
    background: rgba(7,7,12,.94);
    box-shadow: 0 1px 0 var(--c-border), 0 4px 24px rgba(0,0,0,.4);
}
[data-theme="light"] header.scrolled {
    background: rgba(245,245,251,.96);
    box-shadow: 0 1px 0 var(--c-border), 0 4px 16px rgba(0,0,0,.08);
}

/* ─── Main page entry ─────────────────────────────────────────── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
main { animation: pageIn .45s var(--ease-spring) both; }

/* ─── Profile card stagger on load ───────────────────────────── */
.profile-card { animation: fadeUp .5s var(--ease-spring) both; }
.profile-card:nth-child(1) { animation-delay: .04s; }
.profile-card:nth-child(2) { animation-delay: .09s; }
.profile-card:nth-child(3) { animation-delay: .14s; }
.profile-card:nth-child(4) { animation-delay: .19s; }
.profile-card:nth-child(5) { animation-delay: .24s; }
.profile-card:nth-child(6) { animation-delay: .29s; }

/* ─── Skeleton loader for profile grid ───────────────────────── */
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: var(--radius-md);
}
.profile-skeleton {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-skeleton .sk-avatar   { width: 52px; height: 52px; border-radius: var(--radius-md); }
.profile-skeleton .sk-line      { height: 12px; border-radius: 6px; }
.profile-skeleton .sk-line.w60  { width: 60%; }
.profile-skeleton .sk-line.w40  { width: 40%; }
.profile-skeleton .sk-line.w80  { width: 80%; }
.profile-skeleton .sk-block     { height: 64px; border-radius: var(--radius-md); }
.profile-skeleton .sk-tags      { display: flex; gap: .35rem; }
.profile-skeleton .sk-tag       { height: 22px; width: 70px; border-radius: 6px; }
.profile-skeleton .sk-stats     { display: flex; gap: .5rem; }
.profile-skeleton .sk-stats > div { flex: 1; height: 52px; border-radius: var(--radius-md); }
.profile-skeleton .sk-btns      { display: flex; gap: .5rem; }
.profile-skeleton .sk-btns > div { height: 36px; border-radius: var(--radius-md); }
.profile-skeleton .sk-btns > div:first-child { flex: 1; }
.profile-skeleton .sk-btns > div:last-child  { flex: 2; }

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ─── HOME: Footer ───────────────────────────────────────────── */
.nextgen-footer {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--c-border);
    flex-wrap: wrap;
}

.nextgen-footer strong { font-size: 1rem; font-weight: 700; }
.nextgen-footer span   { font-size: 0.82rem; color: var(--c-muted); }

/* ─── DASHBOARD ──────────────────────────────────────────────── */
.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    height: calc(100vh - var(--header-h));
    border-top: 1px solid var(--c-border);
}

.sidebar {
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-subtle);
    padding: 0.75rem 0.75rem 0.4rem;
}

.project-item {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.project-item:hover {
    background: var(--c-surface-2);
}

.project-item.active {
    background: var(--c-accent-dim);
    border-color: rgba(99,102,241,0.2);
}

.project-item h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.15rem; }
.project-item p  { font-size: 0.75rem; color: var(--c-muted); margin: 0; line-height: 1.4; }

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
    overflow: hidden;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
}

.chat-header h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.chat-header p  { font-size: 0.78rem; color: var(--c-muted); margin: 0; }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

.message {
    max-width: 62%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.55;
}

.msg-received {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-sent {
    background: var(--grad-accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 0.68rem;
    opacity: 0.6;
    margin-top: 0.35rem;
    text-align: right;
}

.chat-input-area {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--c-border);
    background: var(--c-surface);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-full);
    font: 400 0.9rem 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--c-accent); }
.chat-input::placeholder { color: var(--c-subtle); }

/* Radar Area */
.radar-area {
    padding: 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.radar-area h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.radar-area > p { font-size: 0.9rem; color: var(--c-muted); margin-bottom: 1.5rem; }

.radar-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 0.4rem;
    max-width: 680px;
    transition: border-color 0.2s;
}

.radar-search:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-dim);
}

.radar-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--c-text);
    font: 400 0.95rem 'Inter', sans-serif;
    padding: 0 0.75rem;
}

.radar-search input::placeholder { color: var(--c-subtle); }

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

/* Profile Cards */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.profile-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.22s, box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}

.profile-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        350px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
        rgba(99, 102, 241, 0.065),
        transparent 65%
    );
    pointer-events: none;
    border-radius: inherit;
}

.profile-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.profile-header { display: flex; align-items: flex-start; gap: 1rem; }

.profile-avatar {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: .02em;
    user-select: none;
}

.avatar-c0 { background: linear-gradient(135deg,#6366f1,#818cf8); }
.avatar-c1 { background: linear-gradient(135deg,#10b981,#34d399); }
.avatar-c2 { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.avatar-c3 { background: linear-gradient(135deg,#ec4899,#f472b6); }
.avatar-c4 { background: linear-gradient(135deg,#06b6d4,#22d3ee); }

.profile-meta { flex: 1; min-width: 0; }
.profile-meta h3  { font-size: 1rem; margin-bottom: 0.2rem; }
.profile-meta .profile-uni { font-size: 0.8rem; color: var(--c-green); font-weight: 500; margin: 0; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

.profile-stats {
    display: flex;
    justify-content: space-between;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.profile-stats > div { text-align: center; }
.profile-stats strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.profile-stats span   { font-size: 0.75rem; color: var(--c-muted); }

/* ─── Profile Card — Building excerpt ────────────────────── */
.profile-building {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: .7rem .9rem;
}
.profile-building-label {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--c-accent-light);
    display: block;
    margin-bottom: .28rem;
}
.profile-building p {
    font-size: .82rem;
    color: var(--c-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Profile Card — Exploring tags ──────────────────────── */
.profile-explore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.profile-explore-tag {
    font-size: .68rem;
    font-weight: 500;
    padding: .18rem .55rem;
    border-radius: 6px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.22);
    color: var(--c-accent-light);
}

/* ─── Profile Card — Rate badge in stats ─────────────────── */
.profile-stats .rate-val {
    color: var(--c-green);
    font-weight: 700;
}

.dynamic-escrow-btn {
    background: var(--grad-accent);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.dynamic-escrow-btn:hover {
    box-shadow: 0 8px 24px var(--c-accent-glow);
    transform: translateY(-1px);
}

/* ─── EMPRESA / Radar Dashboard ──────────────────────────────── */
.empresa-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: calc(100vh - var(--header-h));
    border-top: 1px solid var(--c-border);
}

.filter-group { margin-bottom: 1.5rem; }

.filter-group h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-subtle);
    margin-bottom: 0.65rem;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.filter-pill {
    background: transparent;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    cursor: pointer;
    transition: all 0.18s;
    font: 500 0.78rem 'Inter', sans-serif;
}

.filter-pill:hover { border-color: var(--c-border-hover); color: var(--c-text); }

.filter-pill.active {
    background: var(--c-accent-dim);
    color: var(--c-accent-light);
    border-color: rgba(99,102,241,0.3);
}

.empresa-main {
    padding: 2rem;
    overflow-y: auto;
}

.empresa-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: 0.4rem;
    margin-bottom: 2rem;
    max-width: 760px;
    transition: border-color 0.2s;
}

.empresa-search-bar:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-dim);
}

.empresa-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--c-text);
    font: 400 0.95rem 'Inter', sans-serif;
    padding: 0.6rem 0.75rem;
}

.empresa-search-bar input::placeholder { color: var(--c-subtle); }

.search-icon {
    padding: 0 0.75rem;
    color: var(--c-subtle);
    display: flex;
    align-items: center;
}

.loading-radar {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--c-muted);
    grid-column: 1 / -1;
}

.loading-radar h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── REGISTRO ────────────────────────────────────────────────── */
.register-container {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.register-form {
    padding: 2.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-2xl);
}

.value-prop .micro-label { margin-bottom: 1rem; }

.value-prop h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.value-prop > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.value-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.value-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.value-feature-icon.green  { background: var(--c-green-dim); }
.value-feature-icon.blue   { background: var(--c-blue-dim); }
.value-feature-icon.purple { background: rgba(139,92,246,0.1); }

.value-feature h4  { font-size: 0.95rem; margin-bottom: 0.25rem; }
.value-feature p   { font-size: 0.875rem; line-height: 1.55; }

.trust-box {
    background: var(--c-green-dim);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.75rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.trust-box-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.trust-box h4   { font-size: 0.875rem; color: var(--c-green); margin-bottom: 0.25rem; }
.trust-box p    { font-size: 0.8rem; line-height: 1.55; margin: 0; }

/* ─── Metric Bars ────────────────────────────────────────────── */
.metric-container { margin-bottom: 1.25rem; }

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.metric-value {
    color: var(--c-accent-light);
    font-weight: 700;
    font-family: 'Inter', monospace;
}

.metric-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--c-surface-3);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0%;
    background: var(--grad-accent);
    transition: width 1.2s var(--ease-spring);
}

/* ─── Calendar Widget ────────────────────────────────────────── */
.calendar-widget {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-border);
}

.cal-title { font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.cal-timezone { font-size: 0.72rem; color: var(--c-muted); }

.cal-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.cal-slot {
    background: var(--c-blue-dim);
    border: 1px solid rgba(56,189,248,0.2);
    color: var(--c-blue);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font: 600 0.8rem 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.18s;
}

.cal-slot:hover {
    background: var(--c-blue);
    color: #fff;
    border-color: var(--c-blue);
    transform: translateY(-1px);
}

/* ─── Profile Page ───────────────────────────────────────────── */
.ai-brief-box {
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.ai-brief-box::before {
    content: "AI BRIEF";
    position: absolute;
    top: 0; right: 0;
    background: rgba(212,175,55,0.15);
    color: #d4af37;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
    padding: 0.2rem 0.75rem;
    border-bottom-left-radius: var(--radius-sm);
}

.ai-brief-list {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.6;
}

.ai-brief-list li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.ai-brief-list li::marker { color: #d4af37; }

.sci-fi-timeline { position: relative; padding-left: 2rem; margin-top: 1.5rem; }

.sci-fi-timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--c-accent), transparent);
}

.timeline-item { position: relative; margin-bottom: 1.75rem; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem; top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-bg);
    border: 2px solid var(--c-accent);
    box-shadow: 0 0 8px var(--c-accent-glow);
}

.timeline-date  { font-size: 0.75rem; color: var(--c-accent-light); font-weight: 600; display: block; margin-bottom: 0.2rem; }
.timeline-title { color: var(--c-text); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-desc  { color: var(--c-muted); font-size: 0.85rem; line-height: 1.5; }

.live-status-widget {
    background: var(--c-green-dim);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.live-status-pulse {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 8px var(--c-green);
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

.live-status-text h4 { color: var(--c-green); margin: 0 0 0.15rem; font-size: 0.85rem; }
.live-status-text p  { color: var(--c-muted); margin: 0; font-size: 0.78rem; }


/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .register-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }

    .empresa-layout { grid-template-columns: 1fr; }
    .sidebar.empresa-sidebar { display: none; }

    .register-container { padding: 2rem 1.25rem; }
    .register-form { padding: 1.5rem; }

    .nextgen-footer { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
    header { padding: 0 1.25rem; }
    .logo { font-size: 1rem; }
    .logo .logo-mark { width: 42px; height: 42px; }
}

/* ─── Mobile global (≤600px) ────────────────────────────────── */
@media (max-width: 600px) {
    /* Header — ocultar nav links, dejar logo + auth */
    .nav-links { display: none; }
    header { padding: 0 1rem; }

    /* Buttons — touch targets mínimos 44px */
    .btn { min-height: 44px; padding: .65rem 1.15rem; }
    .btn-lg { min-height: 48px; padding: .8rem 1.5rem; }
    .icon-btn { width: 40px; height: 40px; }

    /* Modal — full-width en mobile */
    .modal { padding: .75rem; align-items: flex-end; }
    .modal-content {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-width: 100%;
        padding: 2rem 1.5rem 2.5rem;
    }

    /* Forms */
    .form-control { font-size: 16px; } /* prevent iOS zoom */
    .floating-group input,
    .floating-group textarea { font-size: 16px; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Profile cards */
    .profile-card { padding: 1.1rem; }
    .profile-building p { font-size: .8rem; }

    /* Dashboard bottom nav items */
    .nav-item { padding: .4rem .25rem; }
    .nav-label { font-size: .58rem; }

    /* Dashboard layout */
    .db-shell { height: calc(100vh - 68px); }
}

/* ─── Small phones (≤390px) ─────────────────────────────────── */
@media (max-width: 390px) {
    header { padding: 0 .85rem; }
    .btn { padding: .6rem 1rem; font-size: .82rem; }
    .logo { font-size: 1rem; }
    .auth-buttons { gap: .5rem; }
    .auth-buttons .btn { padding: .5rem .75rem; font-size: .78rem; }
}

/* ─── Bottom nav (used by dashboard.html) ────────────────────── */
.bottom-nav {
    display: flex; align-items: center;
    background: var(--c-surface); border-top: 1px solid var(--c-border);
    height: 68px; padding-bottom: env(safe-area-inset-bottom, 0);
    position: relative; z-index: 100;
}
.nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .25rem;
    padding: .5rem; cursor: pointer; color: var(--c-subtle);
    text-decoration: none; transition: color .18s;
}
.nav-item svg { transition: transform .2s var(--ease-spring); }
.nav-item:hover { color: var(--c-muted); }
.nav-item:hover svg { transform: scale(1.1); }
.nav-item.active { color: var(--c-accent); }
.nav-label { font: 600 .62rem 'Inter',sans-serif; letter-spacing: .02em; }
.nav-badge {
    position: absolute; top: 6px; right: calc(50% - 18px);
    min-width: 18px; height: 18px; background: var(--c-accent); color: #fff;
    border-radius: 999px; font: 700 .65rem 'Inter',sans-serif;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--c-surface); padding: 0 3px;
}

/* ── PROFILE & CARD SHOWCASE EMBEDS ─────────────────── */
.profile-showcase-container {
  margin-top: 1rem;
}
/* Responsive iframe aspect ratio wrapper (16:9) */
.showcase-media-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
  margin-bottom: 1rem;
}
[data-theme="light"] .showcase-media-wrapper {
  border-color: rgba(0, 0, 0, 0.08);
}
.showcase-media-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Glassmorphic Link Portal Cards */
.showcase-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
[data-theme="light"] .showcase-link-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}
.slc-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.slc-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.slc-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.slc-title {
  font: 700 0.8rem 'Inter', sans-serif;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slc-desc {
  font: 500 0.65rem 'Inter', sans-serif;
  color: var(--c-muted);
}
.slc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--c-text);
  font: 700 0.72rem 'Inter', sans-serif;
  text-decoration: none;
  padding: 0.55rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.slc-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
[data-theme="light"] .slc-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .slc-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}
