/* ============================================================
   John Carl Febrero — Portfolio — Velvet Aurora
   Midnight Dark × Violet (#7C6FFF) × Cyan (#22D3EE)
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
    /* Backgrounds */
    --bg:           #04050C;
    --bg-surface:   #07080F;
    --glass-bg:     rgba(11, 12, 22, 0.80);
    --glass-border: rgba(124, 111, 255, 0.10);
    --nav-bg:       rgba(4, 5, 10, 0.96);
    --nav-border:   rgba(124, 111, 255, 0.07);

    /* Primary — Violet */
    --accent:       #7C6FFF;
    --accent-hover: #9D93FF;
    --accent-light: rgba(124, 111, 255, 0.10);
    --accent-glow:  rgba(124, 111, 255, 0.30);

    /* Secondary — Cyan */
    --accent2:       #22D3EE;
    --accent2-hover: #38E8FF;
    --accent2-light: rgba(34, 211, 238, 0.10);
    --accent2-glow:  rgba(34, 211, 238, 0.28);

    /* Tertiary — Pink */
    --accent3:      #F472B6;
    --accent3-light: rgba(244, 114, 182, 0.10);
    --accent3-glow: rgba(244, 114, 182, 0.25);

    /* Text */
    --text:         #EEF0FC;
    --text-muted:   #7A85A0;
    --text-dim:     rgba(238, 240, 252, 0.30);

    /* Borders */
    --border:       rgba(255, 255, 255, 0.06);
    --border-hover: rgba(124, 111, 255, 0.28);

    /* Status */
    --success-bg:   rgba(16, 185, 129, 0.08);
    --success-text: #34D399;
    --error-bg:     rgba(239, 68, 68, 0.09);
    --error-text:   #F87171;
    --code-bg:      rgba(3, 3, 10, 0.95);

    /* 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; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 68% 52% at 88% 4%,  rgba(124, 111, 255, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 58% 48% at  8% 92%, rgba(34,  211, 238, 0.07) 0%, transparent 52%),
        radial-gradient(ellipse 46% 38% at 50% 50%, rgba(124, 111, 255, 0.03) 0%, transparent 60%);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif; }

/* ── 3. Topnav ── */
.topnav {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 1px 0 rgba(124, 111, 255, 0.05), 0 4px 24px rgba(0, 0, 0, 0.50);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 24px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #7C6FFF 0%, #22D3EE 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 0 22px rgba(124, 111, 255, 0.38), 0 0 0 1px rgba(124, 111, 255, 0.22);
    line-height: 1;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.nav-brand:hover .brand-logo {
    transform: rotate(10deg) scale(1.07);
    box-shadow: 0 0 36px rgba(124, 111, 255, 0.58);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
    color: var(--text);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.brand-sub {
    color: rgba(122, 133, 160, 0.52);
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.855rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

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

.activities-btn .btn-arrow {
    transition: transform 0.20s ease;
    opacity: 0.40;
    flex-shrink: 0;
}
.activities-btn.open { background: var(--accent-light); color: var(--accent); }
.activities-btn.open .btn-arrow { transform: rotate(180deg); opacity: 1; }

/* Nav Auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.auth-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 5px 13px;
    background: var(--accent-light);
    border: 1px solid rgba(124, 111, 255, 0.20);
    border-radius: 7px;
    white-space: nowrap;
    font-weight: 600;
}

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

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

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 7px 18px;
    background: var(--accent-light);
    border: 1px solid rgba(124, 111, 255, 0.28);
    border-radius: 8px;
    transition: all 0.18s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.auth-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 22px var(--accent-glow);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(124, 111, 255, 0.18);
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.mobile-toggle:hover {
    border-color: rgba(124, 111, 255, 0.38);
    color: var(--accent);
    background: var(--accent-light);
}

/* ── 4. Activities Panel ── */
.activities-panel {
    background: rgba(4, 4, 10, 0.98);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border-top: 1px solid rgba(124, 111, 255, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
}

.activities-panel.open {
    max-height: 440px;
    border-bottom: 1px solid rgba(124, 111, 255, 0.05);
}

.activities-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 28px 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.activity-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: rgba(122, 133, 160, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-xs);
    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(124, 111, 255, 0.16);
}

.activity-link.active {
    background: var(--accent2-light);
    color: var(--accent2);
    border-color: rgba(34, 211, 238, 0.20);
    font-weight: 700;
}

.activity-num {
    min-width: 24px;
    height: 24px;
    background: rgba(124, 111, 255, 0.07);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(122, 133, 160, 0.44);
    flex-shrink: 0;
    font-family: 'Space Grotesk', monospace;
}

.activity-link:hover .activity-num { background: rgba(124, 111, 255, 0.16); color: var(--accent); }
.activity-link.active .activity-num { background: rgba(34, 211, 238, 0.16); color: var(--accent2); }

/* ── 5. Hero Banner ── */
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -40px;
    margin-bottom: 52px;
    padding: 130px 28px 112px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #030409;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 60% at 82% 18%, rgba(124, 111, 255, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 62% 54% at 14% 78%, rgba(34,  211, 238, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 50% 42% at 50% 108%, rgba(244, 114, 182, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 111, 255, 0.08);
    color: var(--accent);
    font-size: 0.67rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 99px;
    border: 1px solid rgba(124, 111, 255, 0.24);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 32px;
    box-shadow: 0 0 24px rgba(124, 111, 255, 0.14);
}

.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, 6.5vw, 4.8rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.04;
}

.hero-accent {
    background: linear-gradient(110deg, #7C6FFF 0%, #22D3EE 52%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.82;
}

/* Tech badges row in hero */
.hero-tech {
    display: flex;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

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

.htb-php   { background: rgba(124, 111, 255, 0.10); color: #A78BFA; border-color: rgba(124, 111, 255, 0.20); }
.htb-mysql { background: rgba(34,  211, 238, 0.08);  color: #67E8F9; border-color: rgba(34, 211, 238, 0.18); }
.htb-css   { background: rgba(244, 114, 182, 0.08);  color: #F9A8D4; border-color: rgba(244, 114, 182, 0.18); }
.htb-html  { background: rgba(251, 191, 36,  0.08);  color: #FCD34D; border-color: rgba(251, 191, 36, 0.18); }

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

.hero-btn {
    font-size: 0.9rem;
    padding: 14px 36px;
    background: linear-gradient(135deg, #7C6FFF 0%, #5B52D8 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 36px rgba(124, 111, 255, 0.38), 0 4px 16px rgba(0, 0, 0, 0.28);
    border-radius: 10px;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.20s ease;
    cursor: pointer;
    font-family: 'Inter', inherit;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #9D93FF 0%, #7C6FFF 100%);
    box-shadow: 0 0 54px rgba(124, 111, 255, 0.56), 0 4px 20px rgba(0, 0, 0, 0.32);
    color: #fff;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    font-size: 0.9rem;
    padding: 14px 36px;
    background: rgba(238, 240, 252, 0.04);
    border: 1px solid rgba(238, 240, 252, 0.13);
    color: var(--text);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    cursor: pointer;
    font-family: 'Inter', inherit;
}

.hero-btn-ghost:hover {
    background: rgba(238, 240, 252, 0.08);
    border-color: rgba(238, 240, 252, 0.24);
    transform: translateY(-2px);
    color: var(--text);
}

/* Hero Stats Strip */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 76px;
    padding-top: 52px;
    border-top: 1px solid rgba(124, 111, 255, 0.10);
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #7C6FFF 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ── 6. Page Hero ── */
.page-hero {
    background: #030409;
    padding: 68px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(124, 111, 255, 0.07);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 22% 74%, rgba(34,  211, 238, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 22%, rgba(124, 111, 255, 0.10) 0%, transparent 55%);
    pointer-events: none;
}

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

.accent-text {
    background: linear-gradient(110deg, #7C6FFF 0%, #22D3EE 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;
}

/* ── 7. Layout ── */
.container {
    width: 92%;
    max-width: 1100px;
    margin: 44px auto;
    flex: 1;
}

/* ── 8. 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(124, 111, 255, 0.42), transparent);
}

.card:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(124, 111, 255, 0.14);
    transform: translateY(-2px);
    border-color: rgba(124, 111, 255, 0.22);
}

.card h2 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(124, 111, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 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(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

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

.feature-item:hover {
    border-color: rgba(124, 111, 255, 0.22);
    background: rgba(124, 111, 255, 0.065);
    transform: translateY(-1px);
}

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

.feature-body strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    font-family: 'Space Grotesk', 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(280px, 1fr));
    gap: 8px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 8px;
    background: rgba(124, 111, 255, 0.03);
    border: 1px solid rgba(124, 111, 255, 0.07);
    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(124, 111, 255, 0.20);
    background: rgba(124, 111, 255, 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='%237C6FFF' stroke-width='1.4'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%237C6FFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

/* ── 9. Demo Area ── */
.demo-area {
    background: rgba(2, 3, 12, 0.70);
    border: 1px dashed rgba(124, 111, 255, 0.16);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    margin: 16px 0;
    color: var(--text);
}

/* ── 10. Buttons ── */
.btn,
.source-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7C6FFF 0%, #5B52D8 100%);
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.855rem;
    font-weight: 700;
    font-family: 'Inter', inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 2px 16px rgba(124, 111, 255, 0.28);
    margin: 4px 4px 4px 0;
    letter-spacing: -0.01em;
}

.btn:hover,
.source-btn:hover {
    background: linear-gradient(135deg, #9D93FF 0%, #7C6FFF 100%);
    box-shadow: 0 4px 26px rgba(124, 111, 255, 0.46);
    transform: translateY(-1px);
    color: #fff;
}

.source-btn {
    background: rgba(3, 4, 12, 0.86);
    border: 1px solid rgba(124, 111, 255, 0.18);
    box-shadow: none;
    color: var(--accent);
}

.source-btn:hover {
    background: rgba(5, 6, 18, 0.96);
    border-color: rgba(124, 111, 255, 0.36);
    box-shadow: 0 0 16px rgba(124, 111, 255, 0.12);
    transform: none;
    color: var(--accent);
}

/* Cyan variant (kept as btn-indigo alias for backward compat) */
.btn-indigo {
    background: linear-gradient(135deg, #7C6FFF 0%, #5B52D8 100%);
    color: #fff;
    box-shadow: 0 2px 16px rgba(124, 111, 255, 0.28);
}
.btn-indigo:hover {
    background: linear-gradient(135deg, #9D93FF 0%, #7C6FFF 100%);
    box-shadow: 0 4px 26px rgba(124, 111, 255, 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: 6px;
    margin: 2px;
}

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

/* ── 11. Source Code Block ── */
.source-code {
    background: var(--code-bg);
    color: #A78BFA;
    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(124, 111, 255, 0.12);
}

/* ── 12. 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(3, 4, 10, 0.90);
    border-bottom: 1px solid rgba(124, 111, 255, 0.15);
}

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

tbody tr {
    border-bottom: 1px solid rgba(124, 111, 255, 0.06);
    transition: background 0.14s;
    background: rgba(7, 8, 17, 0.60);
}

tbody tr:hover td { background: rgba(124, 111, 255, 0.06); color: var(--text); }
tbody tr:nth-child(even) td { background: rgba(124, 111, 255, 0.025); }

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

/* ── 13. Forms ── */
input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    margin-top: 5px;
    margin-bottom: 14px;
    border: 1px solid rgba(124, 111, 255, 0.13);
    border-radius: var(--radius-xs);
    font-family: 'Inter', inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: rgba(3, 4, 10, 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(124, 111, 255, 0.12);
}

input::placeholder, textarea::placeholder { color: rgba(122, 133, 160, 0.42); }
select option { background: #07080F; 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;
}

/* ── 14. 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;
}

/* ── 15. Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 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(124, 111, 255, 0.38), transparent);
}

.gallery-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-family: 'Space Grotesk', 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(124, 111, 255, 0.20);
    transform: translateY(-3px);
    border-color: rgba(124, 111, 255, 0.26);
}

/* ── 16. 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(10, 11, 20, 0.86);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 111, 255, 0.12);
    border-radius: 20px;
    padding: 40px 40px 36px;
    box-shadow: var(--shadow), 0 0 90px rgba(124, 111, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 111, 255, 0.55), rgba(34, 211, 238, 0.30), transparent);
}

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

.login-logo-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #7C6FFF 0%, #22D3EE 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 36px rgba(124, 111, 255, 0.44);
}

.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(124, 111, 255, 0.05);
    border: 1px solid rgba(124, 111, 255, 0.15);
    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); }

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

.member-avatar {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #7C6FFF 0%, #22D3EE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin: 0 auto 16px;
    box-shadow: 0 0 36px rgba(124, 111, 255, 0.38);
}

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

.member-name {
    background: linear-gradient(110deg, #7C6FFF, #22D3EE);
    -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;
}

/* ── 18. Footer ── */
.footer {
    background: #030409;
    border-top: 1px solid rgba(124, 111, 255, 0.07);
    padding: 44px 28px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7C6FFF 0%, #22D3EE 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(124, 111, 255, 0.30);
}

.footer-brand-text {
    font-size: 0.83rem;
    font-weight: 700;
    color: rgba(238, 240, 252, 0.42);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 0.77rem;
    color: rgba(122, 133, 160, 0.46);
    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.67rem;
    font-weight: 700;
    color: rgba(122, 133, 160, 0.48);
    padding: 3px 9px;
    background: rgba(124, 111, 255, 0.06);
    border: 1px solid rgba(124, 111, 255, 0.12);
    border-radius: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── 19. Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #030409; }
::-webkit-scrollbar-thumb { background: rgba(124, 111, 255, 0.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 111, 255, 0.42); }

/* ── 20. Responsive ── */
@media (max-width: 900px) {
    .activities-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-stats { gap: 38px; }
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 18px; }
    .brand-sub { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 66px; left: 0; right: 0;
        background: rgba(3, 4, 10, 0.99);
        -webkit-backdrop-filter: blur(28px);
        backdrop-filter: blur(28px);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 14px;
        gap: 3px;
        border-bottom: 1px solid rgba(124, 111, 255, 0.08);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.70);
        z-index: 190;
    }

    .nav-links.mobile-open { display: flex; }

    .nav-link { justify-content: flex-start; padding: 10px 14px; border-radius: var(--radius-xs); }
    .nav-auth { display: none; }
    .mobile-toggle { display: flex; }

    .activities-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 18px 16px; }

    .hero-banner { padding: 84px 20px 74px; }
    .hero-stats { gap: 28px; margin-top: 52px; padding-top: 40px; }
    .page-hero { padding: 56px 20px; }
    .container { width: 95%; margin: 30px auto; }
    .card { padding: 22px 20px; }
    .login-card { padding: 30px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-stack { justify-content: center; }
    .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .activities-grid { grid-template-columns: 1fr 1fr; }
    .brand-text { display: none; }
    .brand-logo { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 9px; }
    .hero-title { font-size: 2.4rem; letter-spacing: -0.038em; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-tech { gap: 5px; }
}
