/* ═══════════════════════════════════════════════════════════════════════════
   UNIBOOL INC. — SUPPORT SYSTEM UI
   Temple numérique, support champagne tier 🥂
   Canada Pride Edition 🍁 | Neon Purple | Gold 24K
   MOBILE-FIRST RESPONSIVE
   707 ✨
═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS RESET & BASE
═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ══════ CANADA COLORS ══════ */
    --canada-red: #ff0000;
    --canada-red-dark: #cc0000;
    --canada-red-glow: rgba(255, 0, 0, 0.4);
    --canada-white: #ffffff;
    --canada-blue: #0a1628;
    /* ══════ NEON PURPLE ══════ */
    --neon-purple: #b026ff;
    --neon-purple-light: #d896ff;
    --neon-purple-dark: #7b00cc;
    --neon-purple-glow: rgba(176, 38, 255, 0.5);
    --neon-purple-subtle: rgba(176, 38, 255, 0.15);
    /* ══════ GOLD 24K ══════ */
    --gold-24k: #ffd700;
    --gold-24k-dark: #b8860b;
    --gold-24k-light: #ffe55c;
    --gold-24k-glow: rgba(255, 215, 0, 0.4);
    /* ══════ BACKGROUNDS ══════ */
    --bg-primary: #0a0a12;
    --bg-secondary: #12121f;
    --bg-card: rgba(18, 18, 35, 0.85);
    --bg-card-hover: rgba(30, 30, 55, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-purple: rgba(176, 38, 255, 0.08);
    --bg-input: rgba(10, 10, 20, 0.9);
    /* ══════ GRADIENTS ══════ */
    --gradient-canada: linear-gradient(135deg, #ff0000 0%, #ffffff 50%, #0a1628 100%);
    --gradient-neon: linear-gradient(135deg, #b026ff 0%, #d896ff 50%, #7b00cc 100%);
    --gradient-gold: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #ffe55c 100%);
    --gradient-ai-mesh: linear-gradient(45deg, #b026ff 0%, #ff0000 25%, #ffd700 50%, #0a1628 75%, #b026ff 100%);
    /* ══════ TEXT ══════ */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-gold: #ffd700;
    --text-purple: #d896ff;
    /* ══════ STATES ══════ */
    --success: #00ff88;
    --success-glow: rgba(0, 255, 136, 0.4);
    --error: #ff4757;
    --error-glow: rgba(255, 71, 87, 0.4);
    --warning: #ffa502;
    /* ══════ BORDERS ══════ */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-purple: rgba(176, 38, 255, 0.4);
    --border-gold: rgba(255, 215, 0, 0.4);
    --border-red: rgba(255, 0, 0, 0.4);
    /* ══════ SHADOWS ══════ */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 25px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 50px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 30px var(--neon-purple-glow), 0 0 60px rgba(176, 38, 255, 0.2);
    --shadow-gold: 0 0 30px var(--gold-24k-glow);
    --shadow-red: 0 0 30px var(--canada-red-glow);
    /* ══════ BADGES ══════ */
    --bronze: #cd7f32;
    --bronze-glow: rgba(205, 127, 50, 0.4);
    --silver: #c0c0c0;
    --silver-glow: rgba(192, 192, 192, 0.4);
    --gold-badge: #ffd700;
    --gold-badge-glow: rgba(255, 215, 0, 0.4);
    /* ══════ SPACING (Mobile First) ══════ */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    /* ══════ ANIMATION ══════ */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* ══════ CONTAINER WIDTHS ══════ */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BODY & BACKGROUND
═══════════════════════════════════════════════════════════════════════════ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Animated background - simplified for mobile performance */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at 15% 15%, rgba(255, 0, 0, 0.1) 0%, transparent 40%), radial-gradient(ellipse at 85% 20%, rgba(176, 38, 255, 0.12) 0%, transparent 45%), radial-gradient(ellipse at 50% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 40%);
        pointer-events: none;
        z-index: 0;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-purple);
}

    .header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--gradient-neon);
        opacity: 0.6;
    }

.header-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px var(--neon-purple-glow));
}

.logo-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

    .logo-text span {
        background: var(--gradient-neon);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* Navigation - Hidden on mobile by default */
.nav {
    display: none;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--text-primary);
        background: var(--bg-glass-purple);
    }

    .nav-link.active {
        color: var(--neon-purple-light);
        background: var(--neon-purple-subtle);
    }

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass-purple);
    border: 1px solid var(--border-purple);
    border-radius: 8px;
    color: var(--neon-purple-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .mobile-menu-btn:hover {
        background: var(--neon-purple);
        color: var(--text-primary);
    }

.user-badge {
    display: none;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.35rem 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.8rem;
}

    .user-badge.gold {
        border-color: var(--gold-24k);
        background: rgba(255, 215, 0, 0.1);
    }

    .user-badge.silver {
        border-color: var(--silver);
        background: rgba(192, 192, 192, 0.1);
    }

    .user-badge.bronze {
        border-color: var(--bronze);
        background: rgba(205, 127, 50, 0.1);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════════════════════ */

.main {
    position: relative;
    z-index: 1;
    padding-top: 70px; /* Header height on mobile */
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-2xl);
    position: relative;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-title {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    padding: 0 var(--space-sm);
    position: relative;
    background: linear-gradient(135deg, var(--canada-red) 0%, var(--canada-white) 25%, var(--neon-purple-light) 50%, var(--gold-24k) 75%, var(--canada-red) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
    line-height: 1.2;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACTION CARDS - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.action-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    overflow: hidden;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

    .action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-neon);
        transform: scaleX(0);
        transition: transform var(--transition-normal);
    }

    .action-card:hover,
    .action-card:focus {
        background: var(--bg-card-hover);
        border-color: var(--border-purple);
        transform: translateY(-4px);
        box-shadow: var(--shadow-neon);
    }

        .action-card:hover::before,
        .action-card:focus::before {
            transform: scaleX(1);
        }

    .action-card:nth-child(2):hover,
    .action-card:nth-child(2):focus {
        border-color: var(--border-red);
        box-shadow: var(--shadow-red);
    }

    .action-card:nth-child(2)::before {
        background: linear-gradient(90deg, var(--canada-red), var(--canada-white), var(--canada-red));
    }

    .action-card:nth-child(3):hover,
    .action-card:nth-child(3):focus {
        border-color: var(--border-gold);
        box-shadow: var(--shadow-gold);
    }

    .action-card:nth-child(3)::before {
        background: var(--gradient-gold);
    }

.action-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: block;
    filter: drop-shadow(0 0 10px var(--neon-purple-glow));
}

.action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gold-24k);
}

.action-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-right: 40px;
}

.action-arrow {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-purple);
    border: 1px solid var(--border-purple);
    border-radius: 50%;
    color: var(--neon-purple-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.action-card:hover .action-arrow,
.action-card:focus .action-arrow {
    background: var(--neon-purple);
    color: var(--text-primary);
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   INFO SECTION - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.info-section {
    margin: var(--space-2xl) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.info-card {
    padding: var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all var(--transition-normal);
    position: relative;
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--gradient-neon);
        opacity: 0;
        transition: opacity var(--transition-normal);
        border-radius: 4px 0 0 4px;
    }

    .info-card:hover::before {
        opacity: 1;
    }

.info-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 8px var(--gold-24k-glow));
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--gold-24k);
}

.info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES SHOWCASE - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.badges-section {
    text-align: center;
    padding: var(--space-xl) 0;
    position: relative;
}

    .badges-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-purple), transparent);
    }

.badges-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badges-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
}

.badges-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    min-width: 100px;
    flex: 1;
    max-width: 140px;
    transition: all var(--transition-normal);
}

    .badge-item.bronze {
        border-color: var(--bronze);
        box-shadow: 0 0 20px var(--bronze-glow);
    }

    .badge-item.silver {
        border-color: var(--silver);
        box-shadow: 0 0 20px var(--silver-glow);
    }

    .badge-item.gold {
        border-color: var(--gold-badge);
        box-shadow: 0 0 20px var(--gold-badge-glow);
    }

.badge-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.badge-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.badge-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.footer {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-2xl);
    position: relative;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--canada-red), var(--canada-white), var(--neon-purple), transparent);
    }

.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

    .footer-text a {
        background: var(--gradient-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-decoration: none;
        font-weight: 600;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: flex-end; /* Slide up from bottom on mobile */
    justify-content: center;
    z-index: 1000;
    padding: 0;
}

    .modal-overlay.active {
        display: flex;
    }

.modal {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-purple);
    border-radius: 20px 20px 0 0;
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-ai-mesh);
    background-size: 300% 100%;
    animation: gradientSlide 4s linear infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Modal drag handle for mobile */
.modal::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-purple);
    border: 1px solid var(--border-purple);
    color: var(--neon-purple-light);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    z-index: 1;
}

    .modal-close:hover {
        background: var(--neon-purple);
        color: var(--text-primary);
    }

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: var(--space-md) 0 var(--space-sm);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    padding: 0 var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-24k);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px; /* Prevents zoom on iOS */
    font-family: inherit;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--neon-purple);
        box-shadow: 0 0 0 3px var(--neon-purple-glow);
        background: rgba(176, 38, 255, 0.05);
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: var(--text-muted);
    }

    .form-input.code-input {
        text-align: center;
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
        font-weight: 700;
        color: var(--neon-purple-light);
        background: rgba(176, 38, 255, 0.1);
        border-color: var(--border-purple);
    }

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b026ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

    .form-select option {
        background: var(--bg-primary);
        color: var(--text-primary);
    }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    display: none;
}

    .form-error.visible {
        display: block;
    }

.form-success {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    display: none;
}

    .form-success.visible {
        display: block;
    }

.custom-type-group {
    display: none;
    margin-top: var(--space-md);
}

    .custom-type-group.visible {
        display: block;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem var(--space-lg);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px; /* Touch target size */
}

.btn-primary {
    width: 100%;
    background: var(--gradient-neon);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--neon-purple-glow);
}

    .btn-primary:hover,
    .btn-primary:focus {
        transform: translateY(-2px);
        box-shadow: var(--shadow-neon);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        background: var(--text-muted);
    }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-purple);
    color: var(--neon-purple-light);
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        border-color: var(--neon-purple);
        background: var(--neon-purple-subtle);
        color: var(--text-primary);
    }

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    box-shadow: 0 4px 15px var(--error-glow);
}

    .btn-danger:hover,
    .btn-danger:focus {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px var(--error-glow);
    }

.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 3px solid transparent;
        border-top-color: var(--text-primary);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREENSHOT UPLOAD - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.screenshot-upload {
    margin: var(--space-lg) 0;
}

.screenshot-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-24k);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.screenshot-zone {
    position: relative;
    aspect-ratio: 4/3;
    border: 2px dashed var(--border-purple);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
    background: var(--bg-glass-purple);
    -webkit-tap-highlight-color: transparent;
}

    .screenshot-zone:hover,
    .screenshot-zone:focus {
        border-color: var(--neon-purple);
        background: rgba(176, 38, 255, 0.1);
    }

    .screenshot-zone.has-image {
        border-style: solid;
        border-color: var(--success);
    }

    .screenshot-zone.required {
        border-color: var(--canada-red);
    }

        .screenshot-zone.required::after {
            content: 'Requis';
            position: absolute;
            top: var(--space-xs);
            right: var(--space-xs);
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
            background: var(--canada-red);
            color: var(--text-primary);
            border-radius: 4px;
            font-weight: 700;
            text-transform: uppercase;
        }

    .screenshot-zone.has-image::after {
        display: none;
    }

.screenshot-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--neon-purple-light);
}

.screenshot-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 var(--space-xs);
}

.screenshot-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-remove {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    width: 24px;
    height: 24px;
    background: var(--error);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 1;
}

.screenshot-input {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH STEPS
═══════════════════════════════════════════════════════════════════════════ */

.auth-step {
    display: none;
}

    .auth-step.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resend-link {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    padding: var(--space-sm);
}

    .resend-link:hover,
    .resend-link:focus {
        color: var(--neon-purple-light);
    }

    .resend-link.disabled {
        pointer-events: none;
        opacity: 0.5;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   JOURNAL / WEEKS PRESS - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.journal-header {
    text-align: center;
    padding: var(--space-lg) 0 var(--space-xl);
}

.journal-edition {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-neon);
    color: var(--text-primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.journal-section {
    margin: var(--space-xl) 0;
}

.journal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-purple);
    color: var(--gold-24k);
    position: relative;
}

    .journal-section-title::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--gradient-neon);
    }

.share-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.share-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.share-badge {
    font-size: 1.1rem;
}

.share-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: var(--neon-purple-subtle);
    border: 1px solid var(--border-purple);
    border-radius: 10px;
    color: var(--neon-purple-light);
    font-weight: 600;
}

.share-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gold-24k);
}

.share-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.share-ceo-reply {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-left: 3px solid var(--neon-purple);
    border-radius: 0 10px 10px 0;
}

.share-ceo-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--neon-purple-light);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Changelog List */
.changelog-list {
    list-style: none;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

    .changelog-item:last-child {
        border-bottom: none;
    }

.changelog-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.changelog-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCOUNT PAGE - MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */

.account-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: 16px;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

    .account-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-ai-mesh);
        background-size: 300% 100%;
        animation: gradientSlide 6s linear infinite;
    }

.account-avatar {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--neon-purple-subtle);
    border: 2px solid var(--border-purple);
    border-radius: 50%;
}

.account-info h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--gold-24k);
}

.account-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.stat-card {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.account-section {
    margin: var(--space-xl) 0;
}

.account-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--gold-24k);
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ticket-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

    .ticket-item:hover,
    .ticket-item:focus {
        border-color: var(--border-purple);
        background: var(--bg-card-hover);
    }

.ticket-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ticket-icon {
    font-size: 1.1rem;
}

.ticket-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.ticket-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ticket-status {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

    .ticket-status.new {
        background: rgba(176, 38, 255, 0.2);
        color: var(--neon-purple-light);
        border: 1px solid var(--border-purple);
    }

    .ticket-status.in-progress {
        background: rgba(255, 165, 2, 0.2);
        color: #ffa502;
        border: 1px solid rgba(255, 165, 2, 0.4);
    }

    .ticket-status.resolved {
        background: rgba(0, 255, 136, 0.2);
        color: var(--success);
        border: 1px solid rgba(0, 255, 136, 0.4);
    }

/* GDPR Section */
.gdpr-section {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 16px;
}

.gdpr-title {
    color: var(--error);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gdpr-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATES
═══════════════════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gold-24k);
}

.empty-text {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING STATES
═══════════════════════════════════════════════════════════════════════════ */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--neon-purple);
    border-right-color: var(--canada-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: toastSlideUp 0.4s ease;
}

    .toast.success {
        border-color: var(--success);
    }

    .toast.error {
        border-color: var(--error);
    }

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.85rem;
    line-height: 1.4;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════════════════════ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold-24k);
}

.text-purple {
    color: var(--neon-purple-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR (Desktop only)
═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-primary);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--neon-purple-dark);
        border-radius: 5px;
        border: 2px solid var(--bg-primary);
    }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--neon-purple);
        }
}

/* Selection */
::selection {
    background: var(--neon-purple);
    color: var(--text-primary);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (min-width: 576px)
═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 576px) {
    :root {
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 2.5rem;
    }

    .hero::before {
        width: 400px;
        height: 400px;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .modal {
        border-radius: 20px;
        padding: var(--space-xl);
        max-width: 420px;
        margin: auto;
    }

    .modal-overlay {
        align-items: center;
        padding: var(--space-md);
    }

    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal::after {
        display: none; /* Hide drag handle on tablet+ */
    }

    .ticket-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ticket-status {
        align-self: center;
    }

    .toast-container {
        bottom: var(--space-lg);
        left: auto;
        right: var(--space-lg);
        max-width: 360px;
    }

    @keyframes toastSlideUp {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP BREAKPOINT (min-width: 768px)
═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .header {
        padding: var(--space-md) var(--space-xl);
    }

    .main {
        padding-top: 80px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav {
        display: flex;
    }

    .user-badge {
        display: flex;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        padding: var(--space-2xl) 0 var(--space-2xl);
    }

        .hero::before {
            width: 500px;
            height: 500px;
        }

    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .action-card {
        padding: var(--space-xl);
    }

    .action-icon {
        font-size: 2.5rem;
    }

    .action-title {
        font-size: 1.25rem;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .badges-grid {
        gap: var(--space-xl);
    }

    .badge-item {
        padding: var(--space-lg) var(--space-xl);
        min-width: 140px;
    }

    .badge-icon {
        font-size: 2.5rem;
    }

    .account-header {
        flex-direction: row;
        text-align: left;
        padding: var(--space-xl);
    }

    .account-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .account-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }

    .stat-value {
        font-size: 2.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LARGE DESKTOP BREAKPOINT (min-width: 992px)
═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 992px) {
    .container {
        padding: var(--space-xl);
    }

    .hero::before {
        width: 600px;
        height: 600px;
        animation: heroPulse 4s ease-in-out infinite;
    }

    @keyframes heroPulse {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.5;
        }

        50% {
            transform: translate(-50%, -50%) scale(1.1);
            opacity: 0.8;
        }
    }

    .action-card:hover {
        transform: translateY(-6px);
    }

    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .modal {
        max-width: 480px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXTRA LARGE DESKTOP (min-width: 1200px)
═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1200px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .info-grid {
        gap: var(--space-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE OVERRIDE (already dark, but for completeness)
═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless of system preference */
    :root {
        color-scheme: dark;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════════════════ */

@media print {
    body::before {
        display: none;
    }

    .header,
    .footer,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }

    .main {
        padding-top: 0;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* 707 ✨ — Made with 💜 for UniBool Inc. | Mobile-First Responsive */
