/* ============================================================
   GRADIENTQUEST — MVP CYBER-DECK CSS
   Clean | Vertical Slice | Neon Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg-primary: #0a0b10;
    --bg-card: rgba(20, 22, 32, 0.7);
    
    --cyan: #00f2fe;
    --purple: #9d4edd;
    --yellow: #ffb703;
    --green: #00e676;
    
    --text-primary: #ffffff;
    --text-muted: #8b8fa3;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* =========================================
   LANDING PAGE (Pillar Grid)
   ========================================= */
.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ---- Brand Logo Component ---- */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.brand-logo__icon {
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
}

.brand-logo__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ffffff 0%, var(--cyan) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Small variant for sub-page navs */
.brand-logo--sm {
    gap: 10px;
    margin-bottom: 0;
}

.brand-logo--sm .brand-logo__icon {
    font-size: 1.3rem;
}

.brand-logo--sm .brand-logo__text {
    font-size: 1.3rem;
}

.landing-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Header subtitle inherits from base */
.landing-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    flex: 1;
}

/* Pillar Card Base */
.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 450px;
}

.pillar-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.pillar-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pillar-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex: 1;
}

.pillar-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    align-self: center;
}

/* --- Base Hover Effects for all pillars --- */
.pillar-card:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

/* --- Color Identities --- */
/* SQL (Cyan) */
.pillar-card--sql {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.1);
}

.pillar-card--sql:hover {
    border-color: var(--cyan);
    box-shadow: 0 15px 50px rgba(0, 242, 254, 0.2);
}

.pillar-card--sql .pillar-icon {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.pillar-card--sql .pillar-badge {
    background: rgba(0, 242, 254, 0.15);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Machine Learning (Purple) */
.pillar-card--ml {
    border-color: rgba(157, 78, 221, 0.2);
}

.pillar-card--ml:hover {
    border-color: var(--purple);
    box-shadow: 0 15px 50px rgba(157, 78, 221, 0.2);
}

.pillar-card--ml .pillar-icon {
    color: var(--purple);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.pillar-card--ml:hover .pillar-icon {
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

.pillar-card--ml .pillar-badge {
    background: rgba(157, 78, 221, 0.1);
    color: var(--purple);
    border: 1px solid var(--purple);
}

/* Mathematics (Amber) */
.pillar-card--math {
    border-color: rgba(255, 183, 3, 0.2);
}

.pillar-card--math:hover {
    border-color: var(--yellow);
    box-shadow: 0 15px 50px rgba(255, 183, 3, 0.2);
}

.pillar-card--math .pillar-icon {
    color: var(--yellow);
    text-shadow: 0 0 20px rgba(255, 183, 3, 0.3);
}

.pillar-card--math:hover .pillar-icon {
    text-shadow: 0 0 20px rgba(255, 183, 3, 0.6);
}

.pillar-card--math .pillar-badge {
    background: rgba(255, 183, 3, 0.1);
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

/* Python (Green) */
.pillar-card--python {
    border-color: rgba(0, 230, 118, 0.2);
}

.pillar-card--python:hover {
    border-color: var(--green);
    box-shadow: 0 15px 50px rgba(0, 230, 118, 0.2);
}

.pillar-card--python .pillar-icon {
    color: var(--green);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.pillar-card--python:hover .pillar-icon {
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
}

.pillar-card--python .pillar-badge {
    background: rgba(0, 230, 118, 0.1);
    color: var(--green);
    border: 1px solid var(--green);
}

/* Locked Overlay Effect */
.pillar-card--locked {
    position: relative;
    opacity: 0.85;
}

.pillar-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* =========================================
   IN-PROGRESS PAGE
   ========================================= */
.wip-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    padding: 20px;
}

.wip-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    pointer-events: none;
}

.wip-icon {
    font-size: 6rem;
    color: var(--purple);
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.wip-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wip-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.btn-neon {
    display: inline-block;
    padding: 16px 36px;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    background: rgba(0, 242, 254, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.btn-neon:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6), inset 0 0 15px rgba(0, 242, 254, 0.4);
}


/* =========================================
   SQL HUB PAGE
   ========================================= */
.hub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.hub-nav {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--cyan);
}

.hub-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.hub-header h1 {
    font-size: 2.5rem;
    color: var(--cyan);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Featured Mission Banner */
.mission-featured {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(157, 78, 221, 0.05));
    border: 1px solid var(--cyan);
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.1);
}

.mission-featured::before {
    content: '\f120'; /* Terminal icon */
    font-family: 'FontAwesome';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    opacity: 0.03;
}

.mission-featured__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.mission-featured h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.mission-featured p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--cyan);
    color: #000;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn-launch:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Upcoming Missions Grid */
.upcoming-missions-header {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.missions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mission-locked {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.6;
    filter: grayscale(1);
    position: relative;
}

.mission-locked__info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.mission-locked__info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mission-locked__badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1100px) {
    .pillar-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .pillar-grid, .missions-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-featured {
        padding: 30px 20px;
    }
}


/* =========================================
   TOP-BAR NAVIGATION (Auth Button Cluster)
   ========================================= */

/* Floating top-bar for landing page — sits above the centered content */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    pointer-events: none;
}

.top-bar > * {
    pointer-events: auto;
}

/* ---- Operative Login Button (Guest State) ---- */
.btn-operative-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 8px;
    background: rgba(0, 242, 254, 0.04);
    color: var(--cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.08);
}

/* Bracket notation styling */
.btn-operative-login__brackets {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Pulsing dot indicator */
.btn-operative-login__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: op-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes op-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
    50%      { opacity: 0.4; box-shadow: 0 0 3px var(--cyan); }
}

/* Light-sweep on hover */
.btn-operative-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 254, 0.08),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-operative-login:hover {
    border-color: var(--cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow:
        0 0 25px rgba(0, 242, 254, 0.2),
        inset 0 0 12px rgba(0, 242, 254, 0.06);
    color: var(--cyan);
}

.btn-operative-login:hover::before {
    left: 100%;
}

.btn-operative-login:hover .btn-operative-login__brackets {
    opacity: 1;
}

/* Responsive: shrink button on mobile */
@media (max-width: 768px) {
    .top-bar {
        padding: 16px 20px;
    }

    .btn-operative-login {
        font-size: 0.72rem;
        padding: 8px 14px;
        gap: 8px;
    }
}


/* =========================================
   AUTHENTICATION PAGES (Login / Register)
   ========================================= */

/* Full-viewport wrapper that centers the auth modal */
.auth-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Animated grid-pulse background behind the modal */
.auth-viewport::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 242, 254, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* The glassmorphic auth card */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(var(--glass-blur));
    padding: 48px 40px 40px;
    box-shadow:
        0 0 60px rgba(0, 242, 254, 0.08),
        0 0 120px rgba(157, 78, 221, 0.05);
    animation: auth-fade-in 0.6s ease-out;
}

@keyframes auth-fade-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative top-border glow line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
    border-radius: 2px;
}

/* ---- Auth Header ---- */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header__icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: inline-block;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
}

.auth-header__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-header__subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- Form Elements ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.form-group__input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 11, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group__input::placeholder {
    color: rgba(139, 143, 163, 0.5);
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.85rem;
}

.form-group__input:focus {
    border-color: var(--cyan);
    box-shadow:
        0 0 0 3px rgba(0, 242, 254, 0.15),
        0 0 20px rgba(0, 242, 254, 0.1);
}

.form-group__input:focus.input--purple {
    border-color: var(--purple);
    box-shadow:
        0 0 0 3px rgba(157, 78, 221, 0.15),
        0 0 20px rgba(157, 78, 221, 0.1);
}

/* ---- Primary Auth Button ---- */
.btn-auth-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), #00c4cc);
    color: #0a0b10;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
    margin-top: 6px;
}

.btn-auth-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-auth-primary:hover {
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

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

.btn-auth-primary:active {
    transform: translateY(0);
}

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.auth-divider__line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider__text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

/* ---- OAuth / Secondary Button ---- */
.btn-auth-oauth {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-auth-oauth:hover {
    border-color: var(--purple);
    background: rgba(157, 78, 221, 0.08);
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.15);
}

.btn-auth-oauth .oauth-icon {
    font-size: 1.1rem;
    color: var(--purple);
}

/* ---- Auth Footer Link ---- */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.auth-footer__link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-footer__link:hover {
    color: var(--cyan);
}

.auth-footer__link span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Flash / Error Messages ---- */
.auth-flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.auth-flash--error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
}

.auth-flash--success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--green);
}


/* =========================================
   PROFILE PAGE — OPERATIVE DOSSIER
   ========================================= */

.profile-viewport {
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

/* Top navigation bar for profile */
.profile-topbar {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-signout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 59, 48, 0.4);
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.06);
    color: #ff6b6b;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-signout:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
    color: #ff6b6b;
}

/* ---- Profile Hero Card ---- */
.profile-hero {
    max-width: 1000px;
    margin: 0 auto 36px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(var(--glass-blur));
    padding: 48px 40px;
    display: flex;
    align-items: center;
    gap: 36px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.06), transparent 70%);
    pointer-events: none;
}

/* Avatar — glowing geometric hexagon */
.profile-avatar {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar__shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(157, 78, 221, 0.15));
    border: 2px solid var(--cyan);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--cyan);
    box-shadow:
        0 0 30px rgba(0, 242, 254, 0.2),
        inset 0 0 30px rgba(0, 242, 254, 0.05);
    animation: avatar-pulse 3s ease-in-out infinite;
    transform: rotate(5deg);
}

@keyframes avatar-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 242, 254, 0.2), inset 0 0 30px rgba(0, 242, 254, 0.05); }
    50%      { box-shadow: 0 0 50px rgba(0, 242, 254, 0.35), inset 0 0 40px rgba(0, 242, 254, 0.1); }
}

.profile-info {
    flex: 1;
}

.profile-info__username {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(90deg, var(--text-primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-info__rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(157, 78, 221, 0.12);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 8px;
}

.profile-info__rank i {
    font-size: 0.9rem;
}

.profile-info__joined {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}


/* ---- Stats Grid (3-column data readout) ---- */
.stats-grid {
    max-width: 1000px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(var(--glass-blur));
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.08);
    transform: translateY(-4px);
}

.stat-card__icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: inline-block;
}

.stat-card__icon--cyan  { color: var(--cyan);   text-shadow: 0 0 15px rgba(0, 242, 254, 0.4); }
.stat-card__icon--purple { color: var(--purple); text-shadow: 0 0 15px rgba(157, 78, 221, 0.4); }
.stat-card__icon--green  { color: var(--green);  text-shadow: 0 0 15px rgba(0, 230, 118, 0.4); }
.stat-card__icon--yellow { color: var(--yellow); text-shadow: 0 0 15px rgba(255, 183, 3, 0.4); }

.stat-card__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* Decorative corner tick marks */
.stat-card::before,
.stat-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(0, 242, 254, 0.2);
    border-style: solid;
}

.stat-card::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
}

.stat-card::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 2px 2px 0;
}


/* ---- Badge Showcase ---- */
.badge-showcase {
    max-width: 1000px;
    margin: 0 auto 36px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(var(--glass-blur));
    padding: 36px 40px;
}

.badge-showcase__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-showcase__title i {
    color: var(--yellow);
    font-size: 1rem;
}

.badge-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 11, 16, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.achievement-badge:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.3);
}

.achievement-badge__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
}

.achievement-badge__icon--cyan {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.achievement-badge__icon--purple {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.15);
}

.achievement-badge__icon--yellow {
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--yellow);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.15);
}

.achievement-badge__icon--green {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--green);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.achievement-badge__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-align: center;
}

.achievement-badge__date {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Earned badge glow animation on hover */
.achievement-badge:hover .achievement-badge__icon--cyan  { box-shadow: 0 0 30px rgba(0, 242, 254, 0.35); }
.achievement-badge:hover .achievement-badge__icon--purple { box-shadow: 0 0 30px rgba(157, 78, 221, 0.35); }
.achievement-badge:hover .achievement-badge__icon--yellow { box-shadow: 0 0 30px rgba(255, 183, 3, 0.35); }
.achievement-badge:hover .achievement-badge__icon--green  { box-shadow: 0 0 30px rgba(0, 230, 118, 0.35); }


/* ---- Section Title Helper ---- */
.section-label {
    max-width: 1000px;
    margin: 0 auto 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label i {
    color: var(--cyan);
}


/* ---- Scanline overlay for auth pages ---- */
.scanline-overlay {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
}


/* =========================================
   AUTH & PROFILE — RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 24px 28px;
    }

    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }

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

    .badge-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-topbar {
        flex-direction: column;
        gap: 16px;
    }
}

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

    .auth-header__title {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
    }
}
