/* ═══════════════════════════════════════════════════════════════
   RPMClasses.com — Design System
   "The Dojo in the Shadows"
   Premium dark-mode aesthetic for rope arts education
   ═══════════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── DESIGN TOKENS ── */
:root {
    /* Colors */
    --bg-deep: #050505;
    --bg-primary: #0A0A0A;
    --bg-elevated: #121212;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --bg-surface: #1E1E2E;
    --border: #2A2A2A;
    --border-subtle: #1E1E1E;

    --text-primary: #E8E8E8;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --text-dim: #444444;

    --crimson: #C30B0B;
    --crimson-glow: #E01515;
    --crimson-dark: #8B0000;
    --gold: #D4AF37;
    --gold-glow: #E8C84A;
    --gold-dark: #A08520;
    --accent-warm: #B8860B;

    /* Glass */
    --glass-bg: rgba(26, 26, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 20px;

    /* Typography */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow-crimson: 0 0 30px rgba(195, 11, 11, 0.15);
    --shadow-glow-gold: 0 0 30px rgba(212, 175, 55, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 900px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-glow); }

/* ── CONTAINER ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ── NAVIGATION ── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base);
}

.main-nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--crimson), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: #fff !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid rgba(195, 11, 11, 0.3);
    transition: all var(--transition-base) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: linear-gradient(135deg, var(--crimson-glow), var(--crimson));
    box-shadow: var(--shadow-glow-crimson);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.4rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── HERO SECTION ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(195, 11, 11, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(195, 11, 11, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--crimson), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: #fff;
    border: 1px solid rgba(195, 11, 11, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--crimson-glow), var(--crimson));
    box-shadow: var(--shadow-glow-crimson);
    transform: translateY(-2px);
    color: #fff;
}

.btn--secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

.btn--secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-2px);
    color: var(--gold-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn--small {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ── SECTIONS ── */
.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background: var(--bg-elevated);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(195, 11, 11, 0.1);
    border: 1px solid rgba(195, 11, 11, 0.2);
    border-radius: var(--radius-full);
    color: var(--crimson-glow);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── GLASS CARDS ── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── PILLAR CARDS (3-column) ── */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.pillar-icon--crimson {
    background: rgba(195, 11, 11, 0.15);
    color: var(--crimson-glow);
}

.pillar-icon--gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.pillar-icon--warm {
    background: rgba(184, 134, 11, 0.15);
    color: var(--accent-warm);
}

.pillar h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.pillar p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── PROGRESSION TIMELINE ── */
.timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.3;
}

.timeline-node {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-lg);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--crimson);
    margin: 0 auto var(--space-md);
    position: relative;
    transition: all var(--transition-base);
}

.timeline-node:hover .timeline-dot {
    background: var(--crimson);
    box-shadow: 0 0 20px rgba(195, 11, 11, 0.4);
    transform: scale(1.3);
}

.timeline-node:nth-child(2) .timeline-dot { border-color: #d4632a; }
.timeline-node:nth-child(3) .timeline-dot { border-color: #c99020; }
.timeline-node:nth-child(4) .timeline-dot { border-color: var(--gold); }
.timeline-node:nth-child(2):hover .timeline-dot { background: #d4632a; box-shadow: 0 0 20px rgba(212, 99, 42, 0.4); }
.timeline-node:nth-child(3):hover .timeline-dot { background: #c99020; box-shadow: 0 0 20px rgba(201, 144, 32, 0.4); }
.timeline-node:nth-child(4):hover .timeline-dot { background: var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.timeline-price {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    display: none;
}

.timeline-node:hover .timeline-desc {
    display: block;
}

/* ── CLASS CARDS ── */
.class-grid {
    display: grid;
    gap: var(--space-xl);
}

.class-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.class-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.class-card:hover::before {
    opacity: 1;
}

.class-tier {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.class-tier--1 { background: rgba(195, 11, 11, 0.15); color: var(--crimson-glow); border: 1px solid rgba(195, 11, 11, 0.3); }
.class-tier--2 { background: rgba(212, 99, 42, 0.15); color: #d4632a; border: 1px solid rgba(212, 99, 42, 0.3); }
.class-tier--3 { background: rgba(201, 144, 32, 0.15); color: #c99020; border: 1px solid rgba(201, 144, 32, 0.3); }
.class-tier--4 { background: rgba(212, 175, 55, 0.15); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.3); }

.class-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.class-schedule {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.class-schedule span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.class-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.class-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.class-prereq {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.class-prereq h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--crimson-glow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.class-prereq ul {
    list-style: none;
    padding: 0;
}

.class-prereq li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-left: var(--space-lg);
    position: relative;
}

.class-prereq li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold-dark);
}

/* ── SERVICE / PRICING CARDS ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
}

.service-price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.service-card p, .service-card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-details {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
    flex: 1;
}

.service-details li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: var(--space-sm);
}

.service-details li:last-child {
    border-bottom: none;
}

.service-details li::before {
    content: '✦';
    color: var(--gold-dark);
    flex-shrink: 0;
}

/* ── SHOP / PRODUCT GRID ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.product-info {
    padding: var(--space-lg);
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.product-card .btn {
    width: 100%;
    justify-content: center;
}

/* ── FORM STYLES ── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--crimson);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-success {
    text-align: center;
    padding: var(--space-3xl);
    display: none;
}

.form-success.visible {
    display: block;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

/* ── HIGHLIGHTS STRIP ── */
.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
}

.highlight-tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.highlight-tag:hover {
    border-color: var(--gold-dark);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

/* ── INCLUSIVITY BANNER ── */
.inclusivity {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(195, 11, 11, 0.05), rgba(212, 175, 55, 0.05));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.inclusivity p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.inclusivity strong {
    color: var(--gold);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-copy {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ── PAGE HEADER (for inner pages) ── */
.page-header {
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(195, 11, 11, 0.06) 0%, transparent 60%);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── SCROLL REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--space-lg);
        border-bottom: 1px solid var(--border-subtle);
        gap: var(--space-sm);
    }

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

    .nav-links a {
        padding: var(--space-md);
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover { background: rgba(255,255,255,0.03); }
    .nav-links a::after { display: none; }

    .nav-cta {
        text-align: center;
        margin-top: var(--space-sm);
    }

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

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 3px;
        height: auto;
        transform: translateX(-50%);
    }

    .timeline-node {
        width: 100%;
        max-width: 300px;
    }

    .timeline-node .timeline-desc {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .class-schedule {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MEMBER AREA STYLES — Auth, Profile, Tidbits, Badges
   ═══════════════════════════════════════════════════════════════ */

/* ── AUTH TABS ── */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 1px solid var(--border-subtle);
}

.auth-tab {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.auth-tab:hover {
    color: var(--text-secondary);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: #fff;
    box-shadow: 0 2px 12px rgba(195, 11, 11, 0.3);
}

/* ── AUTH FORMS ── */
.auth-form {
    animation: authFadeIn 0.3s ease;
}

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

.auth-switch {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--gold-glow);
}

/* ── AUTH MESSAGES ── */
.auth-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: authFadeIn 0.3s ease;
}

.auth-message--error {
    background: rgba(195, 11, 11, 0.1);
    border: 1px solid rgba(195, 11, 11, 0.3);
    color: var(--crimson-glow);
}

.auth-message--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* ── PROFILE HEADER CARD ── */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 25px rgba(195, 11, 11, 0.2);
}

.profile-info h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.profile-username {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.profile-role-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
}

.profile-role-badge.role--admin {
    background: rgba(195, 11, 11, 0.15);
    border-color: rgba(195, 11, 11, 0.3);
    color: var(--crimson-glow);
}

.profile-role-badge.role--instructor {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* ── TIDBIT BALANCE CARD ── */
.tidbit-balance-card {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.tidbit-balance-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tidbit-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.tidbit-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.tidbit-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ── PROFILE SECTION CARDS ── */
.profile-section-card {
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
}

.profile-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

/* ── ACTIVITY LIST ── */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.activity-empty,
.badge-empty,
.testout-empty {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    padding: var(--space-lg);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.activity-item:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.activity-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.activity-date {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.activity-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-amount.positive {
    color: #22c55e;
}

.activity-amount.negative {
    color: var(--crimson-glow);
}

/* ── BADGE GRID ── */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
}

.badge-item {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.badge-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-gold);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.badge-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ── TESTOUT LIST ── */
.testout-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ── GRADIENT TEXT UTILITY ── */
.gradient-text {
    background: linear-gradient(135deg, var(--crimson), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── RESPONSIVE: MEMBER AREA ── */
@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .tidbit-amount {
        font-size: 2.5rem;
    }

    .tidbit-actions {
        flex-direction: column;
        align-items: center;
    }

    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
