/* ============================================================
   MUNDLE — Design System & Base Styles
   A SaaS for student associations (BDE) in France
   Dark theme • Inter font • Lucide icons
   Inspired by Linear / Stripe / Vercel
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES — Design Tokens
   ============================================================ */

:root {
    /* ---- Colors — aligned with design_system.dart AppColors ---- */

    /* Backgrounds (AppColors.background / backgroundElevated / backgroundCard) */
    --bg-color: #121214;
    /* AppColors.background */
    --bg-elevated: #1E1E22;
    /* AppColors.backgroundElevated */
    --bg-card: rgba(45, 45, 50, 0.5);
    /* AppColors.backgroundCard ~ #2D2D32 */
    --card-bg: rgba(30, 30, 34, 0.6);
    /* AppColors.backgroundElevated w/ opacity */

    /* Brand (AppColors.brand = Color.fromARGB(210, 195, 14, 110)) */
    /* Solid equivalent: #C30E6E  |  With 82% alpha: rgba(195, 14, 110, 0.82) */
    --primary-color: #C30E6E;
    /* AppColors.brand — Hot Pink */
    --primary-hover: #A50C5D;
    /* brand darkened 15% for hover states */
    --primary-subtle: rgba(195, 14, 110, 0.12);
    /* AppColors.opacitySubtle = 12% */
    --primary-glow: rgba(195, 14, 110, 0.25);
    /* AppEffects.brandGlow */

    /* Accent alternatives (AppColors thematic) */
    --accent-purple: #8B5CF6;
    /* AppColors.accentPurple */
    --accent-green: #10B981;
    /* AppColors.accentGreen = success */
    --accent-blue: #3B82F6;
    /* AppColors.accentBlue */
    --accent-teal: #14B8A6;
    /* AppColors.accentTeal */

    /* Gradient — brand only, no yellow (yellow not in design_system.dart) */
    --gradient: linear-gradient(135deg, #C30E6E 0%, #8B5CF6 100%);
    --gradient-brand: linear-gradient(135deg, #C30E6E 0%, #E11D48 100%);

    /* Text (AppColors.textPrimary / textSecondary / textTertiary) */
    --text-primary: #FAFAFA;
    /* AppColors.textPrimary */
    --text-color: #FAFAFA;
    /* alias */
    --text-secondary: #E4E4E7;
    /* AppColors.textSecondary */
    --text-muted: #A1A1AA;
    /* AppColors.textTertiary */
    --text-disabled: #71717A;
    /* AppColors.textDisabled */

    /* Borders (AppColors.border / borderLight) */
    --border: #27272A;
    /* AppColors.border */
    --border-light: #3F3F46;
    /* AppColors.borderLight */
    --border-focus: #C30E6E;
    /* AppColors.borderFocus = brand */

    /* Functional (AppColors.success/warning/error/info) */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;

    /* ---- Typography ---- */
    --font-family: 'Inter', sans-serif;

    /* ---- Layout ---- */
    --container-width: 1200px;
    --section-padding: clamp(60px, 10vw, 120px);

    /* ---- Border Radius (AppBorders) ---- */
    --radius-xs: 6px;
    /* AppBorders.radiusXS */
    --radius-sm: 8px;
    /* AppBorders.radiusSM */
    --radius-md: 12px;
    /* AppBorders.radiusLG (12px — cards) */
    --radius-lg: 16px;
    /* AppBorders.radiusXL */
    --radius-xl: 24px;
    /* AppBorders.radiusXXL */

    /* ---- Transitions ---- */
    --transition: all 0.25s ease;
    /* AppDurations.normal = 250ms */
    --transition-fast: all 0.15s ease;
    /* AppDurations.fast = 150ms */
    --transition-slow: all 0.35s ease;
    /* AppDurations.slow = 350ms */
}



/* ============================================================
   2. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Prevent text selection on all interactive elements */
button,
a,
[role="button"],
[role="tab"],
label {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    line-height: 1.3;
}

/* Gradient Text Effect — brand hot pink → accent purple */
.text-gradient,
.gradient-text {
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ============================================================
   4. CONTAINER
   ============================================================ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================================
   5. HEADER / NAVBAR — Shared across ALL pages
   ============================================================ */

/* ---- Header — toujours en pill, toujours visible ---- */
.header {
    position: fixed;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    max-width: 1100px;
    z-index: 1000;
    padding: 10px 28px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: rgba(16, 16, 18, 0.72);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Les classes JS scroll n'ont plus d'effet */
.header.scrolled {
    /* identique au state de base */
}

/* Auto-hide */
.header.nav-hidden {
    transform: translate(-50%, -150%);
    opacity: 0;
    pointer-events: none;
}

/* ---- Header Container — Logo | Nav | Actions (colonnes symétriques pour centrage réel) ---- */
.header-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.header.scrolled .header-container {
    column-gap: 32px;
}

/* ---- Left: Brand (Logo + Name) ---- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand__logo {
    height: 30px;
    width: auto;
}

.nav-brand__name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    font-family: var(--font-family-heading, 'Space Grotesk', sans-serif);
    transition: opacity 0.2s ease;
}

.nav-brand:hover .nav-brand__name {
    opacity: 0.8;
}

/* ---- Left: Logo (new — index.html) ---- */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

/* ---- Center: Navigation ---- */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ---- Backward-compat: Legacy Left Column & Center Logo ---- */
.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-center img {
    height: 32px;
    width: auto;
}

/* ---- Legacy Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
    margin-right: 12px;
}

/* ---- Right Column ---- */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    grid-column: 3; /* Always stay in 3rd column even when center nav is hidden */
}

/* ---- Nav Events Button ---- */
.btn-nav-events {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-family);
    opacity: 1;
    transform: translateX(0);
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

.btn-nav-events:hover {
    color: #fff;
}

.btn-nav-events .arrow-icon {
    transition: all 0.3s ease;
}

/* Arrow states — default shows down arrow */
.btn-nav-events .arrow-down {
    display: block;
}

.btn-nav-events .arrow-up {
    display: none;
}

/* When scrolled past events section, show up arrow */
.btn-nav-events.scroll-up .arrow-down {
    display: none;
}

.btn-nav-events.scroll-up .arrow-up {
    display: block;
}

/* Hide button when inside events section */
.btn-nav-events.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

/* ---- Nav Text Links ---- */
.nav-link-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    padding: 8px 4px;
    border-radius: 0;
    letter-spacing: 0;
    text-transform: none;
}

.nav-link-text::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 1px;
}

.nav-link-text:hover {
    color: #fff;
}

.nav-link-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---- Nav Custom Links (with arrow icon) ---- */
.nav-link-custom {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link-custom:hover {
    color: var(--text-primary);
}

.nav-link-custom svg {
    transition: transform 0.3s ease;
}

.nav-link-custom:hover svg {
    transform: translate(2px, -2px);
}

/* ---- Nav CTA Button (Se connecter / S'inscrire) ---- */
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-family: var(--font-family);
    letter-spacing: 0;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn-nav-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-nav-cta:active {
    transform: scale(0.97);
}

/* ---- Variante rose : bouton S'inscrire ---- */
.btn-nav-cta--register {
    background: rgba(195, 14, 110, 0.85);
    border-color: rgba(195, 14, 110, 0.6);
    font-weight: 600;
}

.btn-nav-cta--register:hover {
    background: #C30E6E;
    border-color: #C30E6E;
}

.btn-nav-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: none;
}

/* ---- "" Dropdown ---- */
.nav-asso-wrapper {
    position: relative;
}

.btn-nav-asso {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-family);
    letter-spacing: 0;
    text-transform: none;
    position: relative;
}

.btn-nav-asso .asso-btn-text {
    position: relative;
}

.btn-nav-asso .asso-btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 1px;
}

.btn-nav-asso:hover .asso-btn-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* More spacing from logo when scrolled */
.header.scrolled .nav-asso-wrapper {
    margin-right: 8px;
}

.btn-nav-asso svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-nav-asso:hover {
    color: #fff;
}

.nav-asso-wrapper:hover .btn-nav-asso svg.asso-chevron {
    transform: rotate(180deg);
}

/* Asso Dropdown Panel */
.asso-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: rgba(14, 14, 16, 0.95);
    backdrop-filter: blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
    margin-top: 8px;
}

.nav-asso-wrapper:hover .asso-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.asso-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-family);
    width: 100%;
    text-align: left;
}

.asso-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.asso-dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.asso-dropdown-item:hover svg {
    opacity: 1;
    color: var(--primary-color);
}

.asso-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 8px;
}

/* ---- Nav Logout (header) — plain, no bubble ---- */
#nav-logout-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 4px;
}

#nav-logout-btn:hover {
    background: transparent;
    border: none;
    color: #fff;
}

/* ---- Nav Logout Button (red circle) ---- */
.btn-nav-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.15);
    border-radius: 10px;
    color: #ff4757;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-nav-logout:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(255, 71, 87, 0.15);
}

/* ---- Logged-in user group (pill + logout) ---- */
.nav-user-group {
    display: none;
    align-items: center;
    gap: 6px;
}

/* ---- Logged-in user info pill ---- */
.nav-user-info {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
    font-family: var(--font-family);
    transition: background 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.nav-user-info:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
}

.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C30E6E, #7C3AED);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0;
}

.nav-user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-sep {
    display: none;
}

/* Email — micro-dropdown sous le nom */
.nav-user-email {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(18, 12, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.nav-user-info:hover .nav-user-email {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Auth Buttons ---- */
.nav-auth-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-auth-slider {
    display: none;
}

/* "Se connecter" — texte gris simple */
.nav-auth-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-family);
    letter-spacing: 0;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* "S'inscrire" — fond rose foncé */
.nav-auth-tab--active {
    background: #C30E6E;
    color: #fff;
    font-weight: 600;
    padding: 7px 18px;
}

.nav-auth-tab--active:hover {
    background: #a50c5d;
    color: #fff;
}

/* ---- Dropdown Menu (Linear-style) ---- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 12px 32px -4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(12px) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.dropdown-item svg {
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-item:hover svg {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Rotating chevron indicator */
.chevron {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.6;
}

.nav-dropdown:hover .chevron {
    transform: rotate(180deg);
}


/* ============================================================
   6. BUTTONS — Shared Components
   ============================================================ */

/* ---- Generic Button ---- */
.btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

/* ---- Primary (glass pill) ---- */
.btn-primary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ---- Ghost Button ---- */
.btn-ghost {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ---- Outline Button ---- */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ---- Secondary ---- */
.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 10px;
}

/* ---- CTA Primary — Gradient ---- */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ---- CTA Secondary — Glass ---- */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* ---- Store Buttons (App Store / Google Play) ---- */
.btn-store {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #262626;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    transition: all 0.2s ease;
    color: white;
    min-width: auto;
    text-decoration: none;
}

.btn-store:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.btn-store svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    fill: white;
}

.btn-store-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

/* ---- Official App Store & Google Play Badges ---- */
.app-store-badge,
.play-store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 10px;
    overflow: hidden;
}

.app-store-badge svg,
.play-store-badge svg {
    width: 180px;
    height: auto;
    display: block;
}

.app-store-badge:hover,
.play-store-badge:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.store-badge-img {
    display: block;
    height: 56px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Google badge has ~18% built-in whitespace — scale it up so the visible
   content matches the 56px Apple badge height (56 / 0.82 ≈ 68px) */
.store-badge-google {
    height: 68px;
    margin: -6px 0;
}

a:has(.store-badge-img):hover .store-badge-img {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

/* ---- Inline CTA (same as cta-primary but in-context) ---- */
.btn-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-inline-cta:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 8px 30px var(--primary-glow);
}


/* ============================================================
   7. HERO SECTION — index.html
   ============================================================ */

/* ---- Legacy Hero (fallback) ---- */
.hero {
    padding: 160px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

/* ---- Hero Sticky Wrapper ---- */
.hero-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    z-index: 1;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content that overlaps hero on scroll */
.content-overlap {
    position: relative;
    z-index: 10;
    margin-top: -48px;
    background: #0a0a0a;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    border-radius: 48px 48px 0 0;
}

/* ---- Glass utility ---- */
.glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---- Hero Card — Glass panel with shapes ---- */
.hero-card {
    width: 94%;
    max-width: 1500px;
    background: #0a0a0a;
    /* Fond opaque — backdrop-filter invisible et coûteux, désactivé */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 992px) {
    .hero-card {
        flex-direction: row;
        height: 460px;
        align-items: center;
    }
}

/* Shadow fade at bottom of hero card */
.hero-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0) 100%);
    z-index: 4;
    border-radius: 0;
    pointer-events: none;
}

/* ---- Hero Content Grid ---- */
.hero-content-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-content-grid {
        flex-direction: row;
    }
}

/* ---- Hero Text Column ---- */
.hero-text-col {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 5;
}

.hero-text-col h1 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (min-width: 992px) {
    .hero-text-col {
        padding: 0 0 0 80px;
        max-width: 55%;
    }

    .hero-text-col h1 {
        font-size: 56px;
    }
}

/* ---- Hero Subtitle ---- */
.hero-subtitle {
    font-size: 16px;
    color: rgba(160, 160, 160, 1);
    margin-bottom: 32px;
    max-width: 480px;
    font-weight: 400;
    line-height: 1.6;
}

/* ---- Hero Image Column ---- */
.hero-image-col {
    position: absolute;
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    padding: 0;
}

/* ---- Phone Mockup ---- */
.hero-phone-mockup {
    height: auto;
    width: 100%;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
    transform-origin: center bottom;
    margin-bottom: 0;
}

/* ---- Hero Background Shapes (Blobs) ---- */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    border-radius: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    will-change: transform;
}

/* Shape 1: Pink — Top Left */
.shape-1 {
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    top: -30%;
    left: -20%;
}

/* Shape 2: Purple — Bottom Right */
.shape-2 {
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, #A29BFE 0%, transparent 60%);
    bottom: -30%;
    right: -15%;
    left: auto;
    top: auto;
}

/* Shape 3: Pink — Center Right */
.shape-3 {
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 65%);
    top: 10%;
    right: 10%;
    left: auto;
    filter: blur(50px);
    opacity: 0.3;
}

/* Shape 4: Pink/Purple blend — Bottom Center */
.shape-4 {
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(195, 14, 110, 0.5) 0%, rgba(162, 155, 254, 0.3) 50%, transparent 70%);
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    filter: blur(55px);
    opacity: 0.4;
}

/* Shape 5: Pink — Top Right */
.shape-5 {
    width: 45%;
    height: 70%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 55%);
    top: -15%;
    right: 5%;
    left: auto;
    filter: blur(45px);
    opacity: 0.4;
}

/* Shape 6: Pink glow — Center */
.shape-6 {
    width: 60%;
    height: 50%;
    background: radial-gradient(circle, rgba(195, 14, 110, 0.6) 0%, transparent 50%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    opacity: 0.25;
}

/* ---- Hero Buttons Row ---- */
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* ---- Hero BDE Link ---- */
.hero-bde-link {
    margin-top: 32px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 6;
}

.hero-bde-link-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-bde-link a {
    color: #FF1493;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
}

.hero-bde-link a::after {
    content: '↗';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hero-bde-link a:hover {
    color: #FF69B4;
    transform: translate(3px, -3px);
    filter: brightness(1.2);
}

.hero-bde-link a:hover::after {
    transform: translate(5px, -5px);
}


/* ============================================================
   8. INLINE CTA BANNER
   ============================================================ */

.inline-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 40px;
    background: linear-gradient(135deg, rgba(195, 14, 110, 0.08), rgba(254, 225, 64, 0.04));
    border: 1px solid rgba(195, 14, 110, 0.15);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.inline-cta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #C30E6E, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
}

.inline-cta-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.inline-cta-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* BDE Mid-Page CTA */
.bde-mid-cta {
    padding: 20px 0;
}

/* BDE CTA Section */
.cta-bde-section {
    margin-top: -40px;
}


/* ============================================================
   9. SECTION PADDING UTILITY
   ============================================================ */

.section-padding {
    padding: var(--section-padding) 0;
}


/* ============================================================
   10. FOOTER
   ============================================================ */

.footer {
    padding: 40px 24px;
    background: #0a0a0a;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   11. TOAST NOTIFICATIONS
   ============================================================ */

.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    z-index: 9999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 380px;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast.success .toast-icon {
    color: #00d26a;
    background: rgba(0, 210, 106, 0.12);
}

.toast.error .toast-icon {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.12);
}

.toast-msg {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}


/* ============================================================
   12. ANIMATIONS
   ============================================================ */

/* ---- Fade In Up ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Fade In ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- Pulse ---- */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ---- Subtle Float ---- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ---- Shimmer (for loading states) ---- */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ---- Scroll-triggered Animation Class ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child elements */
.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}


/* ============================================================
   13. RESPONSIVE
   ============================================================ */

/* ---- Large Tablets / Small Desktops ---- */
@media (max-width: 1024px) {
    .header {
        width: 88%;
        padding: 10px 24px;
    }

    .hero-card {
        width: 96%;
    }
}

/* ---- Tablets / Landscape Phones ---- */
@media (max-width: 768px) {

    /* Header */
    .header {
        width: 95%;
        top: 12px;
        padding: 10px 20px;
    }

    .btn-nav-events {
        padding: 8px 14px;
        font-size: 13px;
    }

    .btn-nav-events .btn-nav-events-text {
        display: none;
    }

    .btn-nav-cta {
        padding: 7px 14px;
        font-size: 12px;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-dropdown {
        display: none;
    }

    /* Hide center nav on mobile */
    .nav-center {
        display: none;
    }

    /* Hide asso dropdown on mobile */
    .asso-dropdown {
        display: none !important;
    }

    .nav-asso-wrapper {
        display: none;
    }

    .nav-brand__name {
        display: none;
    }

    .nav-brand__logo {
        height: 26px;
    }

    /* Hero */
    .hero-card {
        width: 96%;
        border-radius: 24px;
    }

    .hero-card::after {
        border-radius: 0 0 24px 24px;
    }

    .hero-bg-shapes {
        border-radius: 24px;
    }

    .hero-image-col {
        position: relative;
        width: 100%;
        height: 280px;
        right: auto;
    }

    .hero-phone-mockup {
        max-width: 200px;
    }

    .hero-text-col {
        padding: 32px 24px;
        align-items: center;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .app-store-badge svg,
    .play-store-badge svg {
        width: 150px;
    }

    .store-badge-img {
        height: 46px;
    }

    /* 46 / 0.82 ≈ 56px */
    .store-badge-google {
        height: 56px;
        margin: -5px 0;
    }

    .hero-bde-link {
        text-align: center;
        font-size: 14px;
    }

    /* Inline CTA Banner */
    .inline-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Hero legacy */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }
}

/* ---- Small Phones ---- */
@media (max-width: 480px) {
    .hero-text-col h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-store {
        padding: 10px 16px;
        width: 100%;
        justify-content: center;
    }

    .hero-card {
        width: 98%;
        border-radius: 20px;
    }

    .hero-card::after {
        border-radius: 0 0 20px 20px;
    }

    .hero-bg-shapes {
        border-radius: 20px;
    }

    .header {
        width: 96%;
        top: 8px;
        padding: 10px 16px;
    }

    .logo-center img {
        height: 26px;
    }

    .btn-nav-cta {
        padding: 7px 14px;
        font-size: 12px;
    }

    .inline-cta-banner {
        padding: 20px 16px;
        margin: 40px 16px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .footer {
        padding: 32px 16px;
    }
}


/* ============================================================
   BURGER MENU + MOBILE NAV OVERLAY
   ============================================================ */

/* ---- Burger button (hidden on desktop) ---- */
.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
    outline: none;
}

.nav-burger:focus {
    outline: none;
}

.nav-burger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.nav-burger:hover {
    background: rgba(255, 255, 255, 0.13);
}

.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        width 0.2s ease;
}

/* X state when menu is open */
.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Nav Full-Screen Overlay ---- */
.mobile-nav {
    display: none; /* activated by @media below */
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    z-index: 998; /* below header pill (1000) */
    flex-direction: column;
    padding: 88px 32px 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Nav links ---- */
.mobile-nav__links {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 8px;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 9vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.18s ease, padding-left 0.2s ease;
}

.mobile-nav__link:last-child {
    border-bottom: none;
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
    color: #fff;
    padding-left: 12px;
}

/* ---- CTA auth section ---- */
.mobile-nav__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: -0.01em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.mobile-nav__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.mobile-nav__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.mobile-nav__btn--primary {
    background: #C30E6E;
    color: #fff;
    box-shadow: 0 4px 22px rgba(195, 14, 110, 0.38);
}

.mobile-nav__btn--primary:hover {
    background: #A50C5D;
    box-shadow: 0 6px 28px rgba(195, 14, 110, 0.52);
}

.mobile-nav__btn--logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.9rem;
}

.mobile-nav__btn--logout:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
}

/* ---- Auth state: anon vs logged-in ---- */
/* Default: show anon buttons */
.mobile-nav__cta--anon { }

/* When logged in: hide anon, show user */
._auth-in .mobile-nav__cta--anon { display: none !important; }

.mobile-nav__cta--user { display: none; }
._auth-in .mobile-nav__cta--user { display: flex; }

/* ---- Activate on mobile (≤ 768px) ---- */
@media (max-width: 768px) {
    .nav-burger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    /* Hide all nav-actions content on mobile (moved into burger menu) */
    .nav-actions .nav-auth-group,
    .nav-actions #nav-auth-btn,
    .nav-actions #nav-dashboard-btn,
    .nav-actions #nav-user-group {
        display: none !important;
    }
}