/* ============================================================
   Alviar — Portfolio — Rose Noir
   Deep Purple (#0E0814) × Pink (#FF4D9E) × Lavender (#C084FC)
   Fonts: Syne (headings) + Manrope (body)
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
    --sidebar-w: 240px;

    /* Backgrounds */
    --bg:           #0E0814;
    --bg-surface:   #180D26;
    --glass-bg:     rgba(24, 13, 38, 0.82);
    --glass-border: rgba(255, 77, 158, 0.08);
    --nav-bg:       rgba(14, 8, 22, 0.97);
    --nav-border:   rgba(255, 77, 158, 0.15);

    /* Primary — Hot Pink */
    --accent:       #FF4D9E;
    --accent-hover: #FF70B0;
    --accent-light: rgba(255, 77, 158, 0.10);
    --accent-glow:  rgba(255, 77, 158, 0.32);

    /* Secondary — Lavender */
    --accent2:       #C084FC;
    --accent2-hover: #D0A6FD;
    --accent2-light: rgba(192, 132, 252, 0.10);
    --accent2-glow:  rgba(192, 132, 252, 0.28);

    /* Tertiary — Soft Pink */
    --accent3:       #F9A8D4;
    --accent3-light: rgba(249, 168, 212, 0.10);
    --accent3-glow:  rgba(249, 168, 212, 0.25);

    /* Text */
    --text:       #FDF4FF;
    --text-muted: #C4A8CF;
    --text-dim:   rgba(253, 244, 255, 0.28);

    /* Borders */
    --border:       rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 77, 158, 0.28);

    /* Status */
    --success-bg:   rgba(134, 239, 172, 0.08);
    --success-text: #86EFAC;
    --error-bg:     rgba(252, 165, 165, 0.09);
    --error-text:   #FCA5A5;
    --code-bg:      rgba(14, 8, 22, 0.96);

    /* Shadows */
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.55);
    --shadow:    0 8px 48px rgba(0, 0, 0, 0.68);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.80);

    /* Shape */
    --radius:    16px;
    --radius-sm: 10px;
    --radius-xs: 7px;
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-right: var(--sidebar-w);
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 70% 55% at 10%  5%,  rgba(255,  77, 158, 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 60% 50% at 95% 95%,  rgba(192, 132, 252, 0.06) 0%, transparent 54%),
        radial-gradient(ellipse 48% 40% at 50% 50%,  rgba(249, 168, 212, 0.03) 0%, transparent 62%);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Syne', system-ui, sans-serif; }

/* ── 3. Right Sidebar Navigation ── */

.sidenav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-w);
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    backdrop-filter: blur(32px) saturate(200%);
    border-left: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    padding: 24px 14px 20px;
    z-index: 200;
    overflow-y: auto;
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 77, 158, 0.04);
}

/* Pink-to-lavender top accent line */
.sidenav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF4D9E 40%, #C084FC 70%, transparent);
    pointer-events: none;
}

/* Brand */
.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 10px 0 20px;
    gap: 8px;
}

.brand-monogram {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.90rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: 'Syne', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(255, 77, 158, 0.40), 0 4px 12px rgba(0, 0, 0, 0.40);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-brand:hover .brand-monogram {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(255, 77, 158, 0.60), 0 0 0 4px rgba(255, 77, 158, 0.15);
}

.brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.61rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.55;
    display: block;
    line-height: 1;
}

/* Divider */
.nav-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 158, 0.20), rgba(192, 132, 252, 0.15), transparent);
    margin: 2px 0 10px;
    flex-shrink: 0;
}

/* Nav Links — vertical list */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.845rem;
    font-weight: 600;
    padding: 9px 11px;
    border-radius: var(--radius-xs);
    transition: background 0.15s, color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', inherit;
    width: 100%;
    text-align: left;
    letter-spacing: -0.01em;
}

.nav-link svg { flex-shrink: 0; opacity: 0.55; transition: opacity 0.15s; }

.nav-link:hover         { background: var(--accent-light); color: var(--accent); }
.nav-link:hover svg     { opacity: 1; }
.nav-link.active        { background: var(--accent-light); color: var(--accent); font-weight: 700; }
.nav-link.active svg    { opacity: 1; }

/* Activities accordion button */
.activities-btn { justify-content: space-between; }

.btn-arrow {
    transition: transform 0.20s ease;
    opacity: 0.38;
    flex-shrink: 0;
    margin-left: auto;
}
.activities-btn.open              { background: var(--accent-light); color: var(--accent); }
.activities-btn.open .btn-arrow   { transform: rotate(180deg); opacity: 1; }
.activities-btn.open svg:first-child { opacity: 1; }

/* Activities Accordion Panel */
.activities-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    padding-left: 2px;
}

.activities-panel.open { max-height: 700px; }

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0 8px;
}

.activity-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    color: rgba(196, 168, 207, 0.58);
    text-decoration: none;
    font-size: 0.765rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    letter-spacing: -0.01em;
}

.activity-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: rgba(255, 77, 158, 0.14);
}

.activity-link.active {
    background: var(--accent2-light);
    color: var(--accent2);
    border-color: rgba(192, 132, 252, 0.18);
    font-weight: 700;
}

.activity-num {
    min-width: 20px;
    height: 20px;
    background: rgba(255, 77, 158, 0.07);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    color: rgba(196, 168, 207, 0.45);
    flex-shrink: 0;
    font-family: 'Syne', monospace;
}

.activity-link:hover .activity-num  { background: rgba(255, 77, 158, 0.14); color: var(--accent); }
.activity-link.active .activity-num { background: rgba(192, 132, 252, 0.14); color: var(--accent2); }

/* Auth section at bottom of sidebar */
.nav-auth {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 10px;
    flex-shrink: 0;
}

.auth-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.77rem;
    padding: 8px 11px;
    background: var(--accent-light);
    border: 1px solid rgba(255, 77, 158, 0.18);
    border-radius: var(--radius-xs);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-dot {
    width: 5px;
    height: 5px;
    background: var(--success-text);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--success-text);
    animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.auth-link {
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 18px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    border: none;
    border-radius: var(--radius-xs);
    transition: all 0.18s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 14px rgba(255, 77, 158, 0.28);
    cursor: pointer;
    font-family: 'Manrope', inherit;
}

.auth-link:hover {
    background: linear-gradient(135deg, #FF70B0 0%, #D0A6FD 100%);
    box-shadow: 0 4px 22px rgba(255, 77, 158, 0.48);
    transform: translateY(-1px);
    color: #fff;
}

.auth-link-secondary {
    display: block;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 77, 158, 0.15);
    transition: all 0.15s;
    cursor: pointer;
    font-family: 'Manrope', inherit;
    background: none;
}
.auth-link-secondary:hover {
    background: var(--accent-light);
    border-color: rgba(255, 77, 158, 0.30);
    color: var(--accent);
}

/* Mobile toggle button — hidden on desktop */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 210;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: all 0.18s;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.50);
}

.mobile-toggle:hover {
    border-color: rgba(255, 77, 158, 0.40);
    color: var(--accent);
    background: var(--accent-light);
}

/* Mobile backdrop overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 8, 20, 0.70);
    z-index: 199;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
}
.mobile-overlay.active { display: block; }

/* ── 4. Hero Banner ── */
/* Break out of .container to fill full content-area width */
.hero-banner {
    width: calc(100vw - var(--sidebar-w));
    margin-left: calc(-(100vw - var(--sidebar-w)) / 2 + 50%);
    margin-top: 0;
    margin-bottom: 56px;
    padding: 104px 28px 92px;
    position: relative;
    overflow: hidden;
    background: #0C0716;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 55% at 14% 20%, rgba(255,  77, 158, 0.13) 0%, transparent 58%),
        radial-gradient(ellipse 60% 52% at 88% 80%, rgba(192, 132, 252, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 44% 36% at 50% 110%, rgba(249, 168, 212, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 77, 158, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: center;
}

.hero-left { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 158, 0.08);
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 99px;
    border: 1px solid rgba(255, 77, 158, 0.22);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(255, 77, 158, 0.12);
}

.hero-badge-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2.2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    font-family: 'Syne', sans-serif;
    line-height: 1.05;
}

.hero-accent {
    background: linear-gradient(110deg, #FF4D9E 0%, #F9A8D4 40%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.03rem;
    max-width: 460px;
    margin-bottom: 24px;
    line-height: 1.80;
}

.hero-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-tech-badge {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 99px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.htb-html  { background: rgba(255,  77, 158, 0.10); color: #F9A8D4; border-color: rgba(255,  77, 158, 0.22); }
.htb-css   { background: rgba(192, 132, 252, 0.09); color: #C084FC; border-color: rgba(192, 132, 252, 0.20); }
.htb-php   { background: rgba(249, 168, 212, 0.09); color: #F9A8D4; border-color: rgba(249, 168, 212, 0.20); }
.htb-mysql { background: rgba(255,  77, 158, 0.08); color: #FF70B0; border-color: rgba(255,  77, 158, 0.20); }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    font-size: 0.90rem;
    padding: 13px 32px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 32px rgba(255, 77, 158, 0.35), 0 4px 16px rgba(0, 0, 0, 0.28);
    border-radius: 99px;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.20s ease;
    cursor: pointer;
    font-family: 'Manrope', inherit;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #FF70B0 0%, #D0A6FD 100%);
    box-shadow: 0 0 52px rgba(255, 77, 158, 0.55), 0 4px 20px rgba(0, 0, 0, 0.32);
    color: #fff;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    font-size: 0.90rem;
    padding: 13px 32px;
    background: rgba(253, 244, 255, 0.04);
    border: 1px solid rgba(253, 244, 255, 0.12);
    color: var(--text);
    font-weight: 700;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.20s ease;
    letter-spacing: -0.01em;
    cursor: pointer;
    font-family: 'Manrope', inherit;
}

.hero-btn-ghost:hover {
    background: rgba(255, 77, 158, 0.08);
    border-color: rgba(255, 77, 158, 0.30);
    color: var(--text);
    transform: translateY(-2px);
}

.hero-right { display: flex; justify-content: center; }

.hero-stats-card {
    background: rgba(24, 13, 38, 0.80);
    border: 1px solid rgba(255, 77, 158, 0.12);
    border-radius: 22px;
    padding: 28px 24px;
    width: 100%;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 158, 0.45), rgba(192, 132, 252, 0.30), transparent);
}

.hero-stats-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-stats-card-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    background: rgba(255, 77, 158, 0.04);
    border: 1px solid rgba(255, 77, 158, 0.08);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: border-color 0.18s, background 0.18s;
}

.stat-item:hover {
    border-color: rgba(255, 77, 158, 0.20);
    background: rgba(255, 77, 158, 0.07);
}

.stat-num {
    font-size: 2.0rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.66rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ── 5. Page Hero ── */
.page-hero {
    background: #0C0716;
    padding: 64px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 77, 158, 0.07);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 70%, rgba(192, 132, 252, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 24%, rgba(255,  77, 158, 0.09) 0%, transparent 52%);
    pointer-events: none;
}

.page-hero h1 {
    position: relative;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
}

.accent-text {
    background: linear-gradient(110deg, #FF4D9E 0%, #F9A8D4 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* ── 6. Layout ── */
.container {
    width: 92%;
    max-width: 1000px;
    margin: 48px auto;
    flex: 1;
}

/* ── 7. Cards ── */
.card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    padding: 30px 34px;
    margin-bottom: 20px;
    transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 158, 0.40), rgba(192, 132, 252, 0.20), transparent);
}

.card:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 77, 158, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 77, 158, 0.18);
}

.card h2 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 77, 158, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

.card h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 2px;
    flex-shrink: 0;
}

.card p  { color: var(--text-muted); margin-bottom: 10px; }
.card ul,
.card ol { padding-left: 22px; color: var(--text-muted); }
.card li { margin-bottom: 5px; }

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    background: rgba(255, 77, 158, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 77, 158, 0.07);
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.feature-item:hover {
    border-color: rgba(255, 77, 158, 0.20);
    background: rgba(255, 77, 158, 0.06);
    transform: translateY(-1px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 77, 158, 0.09);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 77, 158, 0.12);
}

.feature-body strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.01em;
}

.feature-body span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 8px;
    background: rgba(255, 77, 158, 0.03);
    border: 1px solid rgba(255, 77, 158, 0.06);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.checklist li:hover {
    border-color: rgba(255, 77, 158, 0.18);
    background: rgba(255, 77, 158, 0.06);
    color: var(--text);
}

.checklist li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%23FF4D9E' stroke-width='1.4'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%23FF4D9E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

/* ── 8. Demo Area ── */
.demo-area {
    background: rgba(14, 8, 22, 0.70);
    border: 1px dashed rgba(255, 77, 158, 0.14);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    margin: 16px 0;
    color: var(--text);
}

/* ── 9. Buttons ── */
.btn,
.source-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    color: #fff;
    padding: 9px 20px;
    border-radius: 99px;
    font-size: 0.855rem;
    font-weight: 700;
    font-family: 'Manrope', inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 2px 14px rgba(255, 77, 158, 0.25);
    margin: 4px 4px 4px 0;
    letter-spacing: -0.01em;
}

.btn:hover,
.source-btn:hover {
    background: linear-gradient(135deg, #FF70B0 0%, #D0A6FD 100%);
    box-shadow: 0 4px 26px rgba(255, 77, 158, 0.44);
    transform: translateY(-1px);
    color: #fff;
}

.source-btn {
    background: rgba(14, 8, 22, 0.88);
    border: 1px solid rgba(255, 77, 158, 0.16);
    box-shadow: none;
    color: var(--accent);
}

.source-btn:hover {
    background: rgba(24, 13, 38, 0.96);
    border-color: rgba(255, 77, 158, 0.34);
    box-shadow: 0 0 16px rgba(255, 77, 158, 0.10);
    transform: none;
    color: var(--accent);
}

.btn-indigo {
    background: linear-gradient(135deg, #C084FC 0%, #A855F7 100%);
    color: #fff;
    box-shadow: 0 2px 16px rgba(192, 132, 252, 0.28);
}
.btn-indigo:hover {
    background: linear-gradient(135deg, #D0A6FD 0%, #C084FC 100%);
    box-shadow: 0 4px 26px rgba(192, 132, 252, 0.46);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.26);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 22px rgba(239, 68, 68, 0.42);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 99px;
    margin: 2px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 77, 158, 0.28);
    color: var(--accent);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--accent-light);
    border-color: rgba(255, 77, 158, 0.50);
    box-shadow: none;
    transform: none;
    color: var(--accent);
}

/* ── 10. Source Code Block ── */
.source-code {
    background: var(--code-bg);
    color: #F9A8D4;
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-top: 10px;
    font-size: 0.80rem;
    line-height: 1.72;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    border: 1px solid rgba(255, 77, 158, 0.10);
}

/* ── 11. Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead tr {
    background: rgba(14, 8, 22, 0.90);
    border-bottom: 1px solid rgba(255, 77, 158, 0.14);
}

thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-family: 'Syne', sans-serif;
    color: var(--accent);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 77, 158, 0.05);
    transition: background 0.14s;
    background: rgba(14, 8, 22, 0.60);
}

tbody tr:hover td { background: rgba(255, 77, 158, 0.05); color: var(--text); }
tbody tr:nth-child(even) td { background: rgba(255, 77, 158, 0.02); }

tbody td {
    padding: 11px 16px;
    color: var(--text-muted);
    border: none;
}

/* ── 12. Forms ── */
input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    margin-top: 5px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 77, 158, 0.12);
    border-radius: var(--radius-xs);
    font-family: 'Manrope', inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: rgba(14, 8, 22, 0.72);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 77, 158, 0.12);
}

input::placeholder, textarea::placeholder { color: rgba(196, 168, 207, 0.40); }
select option { background: #180D26; color: var(--text); }

label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── 13. Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-left-color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-left-color: #ef4444;
}

/* ── 14. Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-item {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 158, 0.38), rgba(192, 132, 252, 0.20), transparent);
}

.gallery-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

.gallery-item p  { color: var(--text-muted); font-size: 0.81rem; margin-bottom: 8px; }
.gallery-item code {
    color: var(--accent);
    font-size: 0.79rem;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.gallery-item:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 77, 158, 0.18);
    transform: translateY(-3px);
    border-color: rgba(255, 77, 158, 0.22);
}

/* ── 15. Login Page ── */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 24px 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(24, 13, 38, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 77, 158, 0.10);
    border-radius: 22px;
    padding: 40px 40px 36px;
    box-shadow: var(--shadow), 0 0 80px rgba(255, 77, 158, 0.06);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 158, 0.55), rgba(192, 132, 252, 0.28), transparent);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    font-family: 'Syne', sans-serif;
    box-shadow: 0 0 36px rgba(255, 77, 158, 0.40);
}

.login-card h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.04em;
}

.login-card h2::before { display: none; }

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 28px;
}

.login-credentials {
    background: rgba(255, 77, 158, 0.05);
    border: 1px solid rgba(255, 77, 158, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.login-credentials p      { margin: 3px 0; }
.login-credentials strong { color: var(--accent); }

/* ── 16. Members Page ── */
.member-hero {
    text-align: center;
    padding: 14px 0 18px;
    margin-bottom: 22px;
}

.member-avatar {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    font-family: 'Syne', sans-serif;
    margin: 0 auto 16px;
    box-shadow: 0 0 36px rgba(255, 77, 158, 0.38);
}

.member-welcome {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.035em;
    font-family: 'Syne', sans-serif;
    margin-bottom: 6px;
}

.member-name {
    background: linear-gradient(110deg, #FF4D9E, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-subtitle {
    color: var(--text-muted);
    font-size: 0.895rem;
    margin-bottom: 0;
}

/* ── 17. Footer ── */
.footer {
    background: #0C0716;
    border-top: 1px solid rgba(255, 77, 158, 0.07);
    padding: 36px 28px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #FF4D9E 0%, #C084FC 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    font-family: 'Syne', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(255, 77, 158, 0.28);
}

.footer-brand-text {
    font-size: 0.83rem;
    font-weight: 700;
    color: rgba(253, 244, 255, 0.38);
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 0.77rem;
    color: rgba(196, 168, 207, 0.44);
    text-align: center;
    line-height: 1.7;
}

.footer-copy a { color: var(--accent); text-decoration: none; }
.footer-copy a:hover { color: var(--accent-hover); }

.footer-stack {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stack-tag {
    font-size: 0.66rem;
    font-weight: 700;
    color: rgba(196, 168, 207, 0.46);
    padding: 3px 9px;
    background: rgba(255, 77, 158, 0.06);
    border: 1px solid rgba(255, 77, 158, 0.10);
    border-radius: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── 18. Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #0C0716; }
::-webkit-scrollbar-thumb { background: rgba(255, 77, 158, 0.20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 77, 158, 0.40); }

/* ── 19. Responsive ── */
@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-left { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-tech { justify-content: center; }
    .hero-cta  { justify-content: center; }
    .hero-right { max-width: 360px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    html { padding-right: 0; }

    /* Sidebar slides in from right on mobile */
    .sidenav {
        width: 260px;
        transform: translateX(100%);
        transition: transform 0.30s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: none;
    }

    .sidenav.mobile-open {
        transform: translateX(0);
        box-shadow: -8px 0 48px rgba(0, 0, 0, 0.70);
    }

    .mobile-toggle { display: flex; }

    .hero-banner { padding: 80px 20px 64px; }
    .page-hero   { padding: 52px 20px; }
    .container   { width: 95%; margin: 30px auto; }
    .card        { padding: 22px 20px; }
    .login-card  { padding: 30px 24px; }
    .form-row    { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-stack { justify-content: center; }
    .checklist  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .brand-monogram { width: 46px; height: 46px; font-size: 0.82rem; border-radius: 13px; }
    .hero-title  { font-size: 2.5rem; }
    .hero-stats  { grid-template-columns: 1fr 1fr; }
    .stat-num    { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
}
