/* ============================================================
   Renan Portfolio — Obsidian Royale  (Navy × Gold × Indigo)
   ============================================================ */

/* 1 — Design Tokens */
:root {
    --bg:              #04071C;
    --bg-surface:      #070B24;
    --glass-bg:        rgba(6, 10, 28, 0.82);
    --glass-border:    rgba(201, 168, 76, 0.11);
    --nav-bg:          rgba(2, 4, 14, 0.97);
    --nav-border:      rgba(201, 168, 76, 0.08);
    --accent:          #C9A84C;
    --accent-hover:    #E2C060;
    --accent-light:    rgba(201, 168, 76, 0.10);
    --accent-glow:     rgba(201, 168, 76, 0.30);
    --accent2:         #6875F5;
    --accent2-hover:   #7F8FF8;
    --accent2-glow:    rgba(104, 117, 245, 0.32);
    --text:            #EEF0F8;
    --text-muted:      #8191AE;
    --text-dim:        rgba(238, 240, 248, 0.32);
    --border:          rgba(201, 168, 76, 0.08);
    --shadow-sm:       0 2px 12px rgba(0, 0, 0, 0.52);
    --shadow:          0 8px 40px rgba(0, 0, 0, 0.66);
    --shadow-lg:       0 24px 72px rgba(0, 0, 0, 0.78);
    --success-bg:      rgba(52, 211, 153, 0.08);
    --success-text:    #34D399;
    --error-bg:        rgba(239, 68, 68, 0.09);
    --error-text:      #F87171;
    --code-bg:         rgba(2, 3, 12, 0.94);
    --radius:          14px;
    --radius-sm:       9px;
    --radius-xs:       6px;
}

/* 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 at 8% 16%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 92% 82%, rgba(104, 117, 245, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 45%, rgba(201, 168, 76, 0.022) 0%, transparent 62%);
    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);
    backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.05), 0 4px 24px rgba(0, 0, 0, 0.52);
}

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

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

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #C9A84C 0%, #6875F5 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.32), 0 0 0 1px rgba(201, 168, 76, 0.18);
    line-height: 1;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.nav-brand:hover .brand-logo {
    transform: rotate(8deg) scale(1.05);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.52);
}

.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(129, 145, 174, 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 15px;
    border-radius: 7px;
    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: rgba(201, 168, 76, 0.07);
    color: var(--accent);
}

.nav-link.active {
    background: rgba(201, 168, 76, 0.10);
    color: var(--accent);
    font-weight: 700;
}

/* Activities toggle */
.activities-btn .btn-arrow {
    transition: transform 0.20s ease;
    opacity: 0.38;
    flex-shrink: 0;
}

.activities-btn.open {
    background: rgba(201, 168, 76, 0.08);
    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 12px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 7px;
    white-space: nowrap;
    font-weight: 600;
}

.auth-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent);
    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: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.26);
    border-radius: 7px;
    transition: all 0.18s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

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

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.16);
    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(201, 168, 76, 0.32);
    color: var(--accent);
    background: rgba(201, 168, 76, 0.06);
}

/* 4 — Activities Panel */
.activities-panel {
    background: rgba(3, 5, 18, 0.98);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border-top: 1px solid rgba(201, 168, 76, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.30s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.62);
}

.activities-panel.open {
    max-height: 420px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.05);
}

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

.activity-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: rgba(129, 145, 174, 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: rgba(201, 168, 76, 0.07);
    color: var(--accent);
    border-color: rgba(201, 168, 76, 0.14);
}

.activity-link.active {
    background: rgba(104, 117, 245, 0.09);
    color: var(--accent2);
    border-color: rgba(104, 117, 245, 0.20);
    font-weight: 700;
}

.activity-num {
    min-width: 24px;
    height: 24px;
    background: rgba(201, 168, 76, 0.06);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(129, 145, 174, 0.40);
    flex-shrink: 0;
    font-family: 'Space Grotesk', monospace;
}

.activity-link:hover .activity-num {
    background: rgba(201, 168, 76, 0.14);
    color: var(--accent);
}

.activity-link.active .activity-num {
    background: rgba(104, 117, 245, 0.14);
    color: var(--accent2);
}

/* 5 — Hero Banner */
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -40px;
    margin-bottom: 44px;
    padding: 120px 28px 104px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #030518;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 58% at 14% 68%, rgba(201, 168, 76, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse 58% 50% at 86% 18%, rgba(104, 117, 245, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 45% 38% at 50% 105%, rgba(201, 168, 76, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201, 168, 76, 0.09) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.08);
    color: var(--accent);
    font-size: 0.67rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 99px;
    border: 1px solid rgba(201, 168, 76, 0.24);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 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.6rem, 6.5vw, 4.6rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.045em;
    margin-bottom: 22px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.05;
}

.hero-accent {
    background: linear-gradient(110deg, #C9A84C 0%, #E8C56A 44%, #6875F5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-btn {
    font-size: 0.9rem;
    padding: 14px 34px;
    background: linear-gradient(135deg, #C9A84C 0%, #A8841E 100%);
    border: none;
    color: #04071C;
    font-weight: 800;
    box-shadow: 0 0 34px rgba(201, 168, 76, 0.36);
    border-radius: 8px;
    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, #E2C060 0%, #C9A84C 100%);
    box-shadow: 0 0 52px rgba(201, 168, 76, 0.52);
    color: #04071C;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    font-size: 0.9rem;
    padding: 14px 34px;
    background: rgba(238, 240, 248, 0.04);
    border: 1px solid rgba(238, 240, 248, 0.15);
    color: var(--text);
    font-weight: 700;
    border-radius: 8px;
    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, 248, 0.09);
    border-color: rgba(238, 240, 248, 0.26);
    transform: translateY(-2px);
    color: var(--text);
}

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

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

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

.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: #030518;
    padding: 64px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 168, 76, 0.07);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 70%, rgba(201, 168, 76, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(104, 117, 245, 0.09) 0%, transparent 55%);
    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: 'Space Grotesk', sans-serif;
}

.accent-text {
    background: linear-gradient(110deg, #C9A84C 0%, #6875F5 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: 40px 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: 28px 32px;
    margin-bottom: 20px;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.38), transparent);
}

.card:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(201, 168, 76, 0.13);
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.20);
}

.card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.09);
    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(250px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(201, 168, 76, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.07);
    transition: border-color 0.18s, background 0.18s;
}

.feature-item:hover {
    border-color: rgba(201, 168, 76, 0.16);
    background: rgba(201, 168, 76, 0.055);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(201, 168, 76, 0.09);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

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

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

/* 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: 8px 12px;
    border-radius: 7px;
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.07);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.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='%23C9A84C' stroke-width='1.4'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%23C9A84C' 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, 14, 0.65);
    border: 1px dashed rgba(201, 168, 76, 0.16);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 16px 0;
    color: var(--text);
}

/* 10 — Buttons */
.source-btn,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #C9A84C 0%, #A8841E 100%);
    color: #04071C;
    padding: 9px 20px;
    border-radius: 7px;
    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 12px rgba(201, 168, 76, 0.26);
    margin: 4px 4px 4px 0;
    letter-spacing: -0.01em;
}

.source-btn:hover,
.btn:hover {
    background: linear-gradient(135deg, #E2C060 0%, #C9A84C 100%);
    box-shadow: 0 4px 22px rgba(201, 168, 76, 0.42);
    transform: translateY(-1px);
    color: #04071C;
}

.source-btn {
    background: rgba(2, 3, 14, 0.82);
    border: 1px solid rgba(201, 168, 76, 0.16);
    box-shadow: none;
    color: var(--accent);
}

.source-btn:hover {
    background: rgba(4, 6, 20, 0.94);
    border-color: rgba(201, 168, 76, 0.32);
    box-shadow: none;
    transform: none;
    color: var(--accent);
}

.btn-indigo {
    background: linear-gradient(135deg, #6875F5 0%, #4F58D9 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(104, 117, 245, 0.30);
}

.btn-indigo:hover {
    background: linear-gradient(135deg, #7F8FF8 0%, #6875F5 100%);
    box-shadow: 0 4px 22px rgba(104, 117, 245, 0.44);
    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(201, 168, 76, 0.26);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.44);
    box-shadow: none;
    transform: none;
    color: var(--accent);
}

/* 11 — Source Code Block */
.source-code {
    background: rgba(2, 3, 14, 0.96);
    color: #C9A84C;
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-top: 10px;
    font-size: 0.80rem;
    line-height: 1.70;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    border: 1px solid rgba(201, 168, 76, 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(2, 3, 14, 0.86);
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

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(201, 168, 76, 0.06);
    transition: background 0.14s;
    background: rgba(7, 11, 36, 0.55);
}

tbody tr:hover td {
    background: rgba(201, 168, 76, 0.04);
    color: var(--text);
}

tbody tr:nth-child(even) td {
    background: rgba(201, 168, 76, 0.022);
}

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(201, 168, 76, 0.13);
    border-radius: var(--radius-xs);
    font-family: 'Inter', inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: rgba(2, 3, 14, 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(201, 168, 76, 0.10);
}

input::placeholder, textarea::placeholder {
    color: rgba(129, 145, 174, 0.40);
}

select option { background: #070B24; 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: 20px 22px;
    transition: box-shadow 0.20s, transform 0.20s, border-color 0.20s;
    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(201, 168, 76, 0.32), 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);
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.22);
}

/* 16 — Footer */
.footer {
    background: #020410;
    border-top: 1px solid rgba(201, 168, 76, 0.07);
    padding: 40px 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: 30px;
    height: 30px;
    background: linear-gradient(135deg, #C9A84C 0%, #6875F5 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    flex-shrink: 0;
}

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

.footer-copy {
    font-size: 0.77rem;
    color: rgba(129, 145, 174, 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.67rem;
    font-weight: 700;
    color: rgba(129, 145, 174, 0.44);
    padding: 3px 8px;
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.10);
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* 17 — Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #020410; }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.34); }

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

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

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(2, 4, 16, 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(201, 168, 76, 0.08);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.68);
        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: 78px 20px 70px; }
    .hero-stats { gap: 28px; margin-top: 52px; padding-top: 40px; }
    .page-hero { padding: 52px 20px; }
    .container { width: 95%; margin: 28px auto; }
    .card { padding: 20px 18px; }
    .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: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .hero-title { font-size: 2.3rem; letter-spacing: -0.035em; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
}
