/* ============================================================================
   TIPZ PREMIUM — Composants réutilisables pour pages auth + dashboards
   ============================================================================ */

/* ---------- CARDS PREMIUM (rondes et fondues) ---------- */
.tipz-card {
    position: relative;
    background: linear-gradient(180deg, rgba(28, 26, 50, 0.6), rgba(20, 18, 38, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.4s ease;
    overflow: hidden;
}

/* Glow halo violet diffus en arrière-plan */
.tipz-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(124, 92, 255, 0.3), 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 92, 168, 0.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* Effet de lumière diffuse en haut */
.tipz-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.tipz-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.25);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(124, 92, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Variante stat card (pour dashboards) */
.tipz-stat-card {
    position: relative;
    background: linear-gradient(180deg, rgba(28, 26, 50, 0.5), rgba(20, 18, 38, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s;
}

/* Glow radial qui donne du relief */
.tipz-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.15), transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.tipz-stat-card--pink::before { background: radial-gradient(circle, rgba(255, 92, 168, 0.15), transparent 60%); }
.tipz-stat-card--amber::before { background: radial-gradient(circle, rgba(255, 193, 69, 0.15), transparent 60%); }
.tipz-stat-card--green::before { background: radial-gradient(circle, rgba(74, 222, 128, 0.15), transparent 60%); }

.tipz-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tipz-stat-card__label {
    margin: 0 0 0.625rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
}

.tipz-stat-card__value {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    position: relative;
}

.tipz-stat-card__value--gradient {
    background: linear-gradient(135deg, #a18bff, #ff5ca8, #ffc145);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tipz-stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(124, 92, 255, 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    position: relative;
}
.tipz-stat-card__icon--pink { background: rgba(255, 92, 168, 0.15); color: var(--color-pink); }
.tipz-stat-card__icon--amber { background: rgba(255, 193, 69, 0.15); color: var(--color-amber); }
.tipz-stat-card__icon--green { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

.tipz-stat-card__delta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4ade80;
    position: relative;
}
.tipz-stat-card__delta--down { color: #f87171; }


/* ---------- AUTH LAYOUT (connexion/inscription) ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
}

.auth-page__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 92, 255, 0.18), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 92, 168, 0.15), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 193, 69, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(28, 26, 50, 0.85), rgba(20, 18, 38, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2.5rem;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(124, 92, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card--large { max-width: 620px; }

.auth-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.5), transparent);
}

.auth-card__brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card__logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
}
.auth-card__logo .dot {
    color: var(--color-accent);
    font-size: 2.25rem;
    line-height: 0;
    margin-left: 1px;
}

.auth-card__eyebrow {
    text-align: center;
    margin: 0 0 0.625rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.6875rem;
    color: var(--color-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-card__title {
    margin: 0 0 0.625rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.auth-card__subtitle {
    margin: 0 0 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.auth-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.auth-card__footer {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}
.auth-card__footer a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-card__footer a:hover { text-decoration: underline; }

/* Inputs premium */
.tipz-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tipz-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}
.tipz-field__label--required::after {
    content: ' *';
    color: var(--color-pink);
}
.tipz-field__input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.tipz-field__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.tipz-field__input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 0 0 4px rgba(124, 92, 255, 0.12),
        0 0 30px rgba(124, 92, 255, 0.15);
}
select.tipz-field__input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff80' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.tipz-field__hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* Bouton premium */
.tipz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9375rem 1.5rem;
    border: none;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, opacity 0.2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.tipz-btn--primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
    color: #fff;
    box-shadow: 
        0 8px 20px rgba(124, 92, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.tipz-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 14px 30px rgba(124, 92, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tipz-btn--amber {
    background: linear-gradient(135deg, var(--color-pink), var(--color-amber));
    color: #1a0e00;
    box-shadow: 
        0 8px 20px rgba(255, 193, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tipz-btn--amber:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 14px 30px rgba(255, 193, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tipz-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}
.tipz-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.tipz-btn--block { width: 100%; }
.tipz-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Messages d'erreur / succès */
.tipz-alert {
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.tipz-alert--error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #f87171;
}
.tipz-alert--success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ade80;
}
.tipz-alert--info {
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.25);
    color: #a18bff;
}


/* ---------- DASHBOARD LAYOUT ---------- */
.dashboard {
    min-height: 100vh;
    position: relative;
    padding-top: 5rem;
}

.dashboard__bg {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(124, 92, 255, 0.08), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 92, 168, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard__content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.dashboard__header {
    margin-bottom: 2.5rem;
}

.dashboard__greeting {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.dashboard__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.dashboard__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 999px;
    color: #4ade80;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dashboard__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.125rem;
    margin-bottom: 2.5rem;
}

.dashboard__section {
    margin-bottom: 2.5rem;
}

.dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.dashboard__section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dashboard__section-title svg {
    color: var(--color-accent);
}

.dashboard__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9375rem;
}

.dashboard__empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(124, 92, 255, 0.1);
    color: rgba(124, 92, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Top bar app simple */
.app-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4.5rem;
    background: rgba(15, 14, 30, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.app-topbar__inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-topbar__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
}
.app-topbar__logo .dot {
    color: var(--color-accent);
}

.app-topbar__nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
@media (max-width: 768px) {
    .app-topbar__nav { display: none; }
}

.app-topbar__link {
    padding: 0.5rem 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}
.app-topbar__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.app-topbar__link--active {
    color: var(--color-accent);
    background: rgba(124, 92, 255, 0.1);
}

.app-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-topbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Liste / tableau premium */
.tipz-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tipz-list__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tipz-list__item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 92, 255, 0.2);
    transform: translateX(2px);
}
.tipz-list__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.05);
}
.tipz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.tipz-badge--green {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}
.tipz-badge--amber {
    background: rgba(255, 193, 69, 0.12);
    color: var(--color-amber);
}
.tipz-badge--violet {
    background: rgba(124, 92, 255, 0.15);
    color: var(--color-accent);
}
.tipz-badge--pink {
    background: rgba(255, 92, 168, 0.15);
    color: var(--color-pink);
}
.tipz-badge--red {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}
.tipz-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}


/* ============================================================================
   OVERRIDES — applique le style premium aux dashboards existants 
   sans toucher au HTML/JS
   ============================================================================ */

/* Stats cards (dashboard pro/reco) — rondes et fondues */
.stat-card,
.kpi-card,
.metric-card {
    background: linear-gradient(180deg, rgba(28, 26, 50, 0.5), rgba(20, 18, 38, 0.3)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 22px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.35s !important;
}

/* Glow radial dans le coin pour donner du relief */
.stat-card::before,
.kpi-card::before,
.metric-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.stat-card:nth-child(2)::before { background: radial-gradient(circle, rgba(74, 222, 128, 0.18), transparent 60%); }
.stat-card:nth-child(3)::before { background: radial-gradient(circle, rgba(255, 193, 69, 0.18), transparent 60%); }
.stat-card:nth-child(4)::before { background: radial-gradient(circle, rgba(255, 92, 168, 0.18), transparent 60%); }

.stat-card > *,
.kpi-card > *,
.metric-card > * {
    position: relative;
    z-index: 1;
}

.stat-card:hover,
.kpi-card:hover,
.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.2) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(124, 92, 255, 0.1);
}

/* Values en gradient pour les stats */
.stat-card__value {
    font-family: var(--font-display) !important;
    font-size: clamp(1.875rem, 3vw, 2.25rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, #c0b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sections "panneaux" (Leads en attente, etc) */
.section,
.panel,
.dashboard-section,
.dashboard-panel {
    background: linear-gradient(180deg, rgba(28, 26, 50, 0.5), rgba(20, 18, 38, 0.3)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 22px !important;
    padding: 1.75rem !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Boutons primaires plus arrondis */
.btn-primary,
.btn--primary,
.button-primary {
    border-radius: 14px !important;
}

/* Cards génériques de listes */
.lead-card,
.recommendation-card,
.list-card,
.history-card,
.gift-card-item,
.candidate-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    transition: background 0.2s, border-color 0.2s, transform 0.2s !important;
}
.lead-card:hover,
.recommendation-card:hover,
.list-card:hover,
.history-card:hover,
.gift-card-item:hover,
.candidate-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(124, 92, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Greeting title plus impactant */
.greeting,
.dashboard-title,
.welcome-title,
.page-title,
h1.dashboard-h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(1.875rem, 3.5vw, 2.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
}

/* Empty state plus joli */
.empty-state,
.loading-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: rgba(255, 255, 255, 0.45);
}


/* Icônes emoji dans stat cards — leur donner un container premium */
.stat-card__icon,
.kpi-card__icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: rgba(124, 92, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.375rem !important;
    margin-bottom: 1rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}
/* Coloriser selon ordre */
.stat-card:nth-child(1) .stat-card__icon { background: rgba(124, 92, 255, 0.12) !important; }
.stat-card:nth-child(2) .stat-card__icon { background: rgba(74, 222, 128, 0.12) !important; }
.stat-card:nth-child(3) .stat-card__icon { background: rgba(255, 193, 69, 0.12) !important; }
.stat-card:nth-child(4) .stat-card__icon { background: rgba(255, 92, 168, 0.12) !important; }

/* Label des stat-cards : plus discret et premium */
.stat-card__label {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.6875rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-top: 0.625rem !important;
}

/* Le badge "1 mois offert" dans le screenshot — l'arrondir et l'embellir */
.trial-badge,
.subscription-badge,
.welcome-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1.125rem !important;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.05)) !important;
    border: 1px solid rgba(74, 222, 128, 0.25) !important;
    border-radius: 999px !important;
    color: #4ade80 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px);
}

/* Fond du dashboard adouci */
body.dashboard-body,
.dashboard-container {
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(124, 92, 255, 0.06), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 92, 168, 0.05), transparent 50%),
        #0a0e27 !important;
}


/* Override trial badge inline style */
#trialBadge,
#founderBadge {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.05)) !important;
    border: 1px solid rgba(74, 222, 128, 0.25) !important;
    border-radius: 999px !important;
    color: #4ade80 !important;
    padding: 0.5rem 1.125rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    backdrop-filter: blur(10px);
}
#founderBadge {
    background: linear-gradient(135deg, rgba(255, 193, 69, 0.12), rgba(255, 92, 168, 0.08)) !important;
    border-color: rgba(255, 193, 69, 0.3) !important;
    color: var(--color-amber) !important;
}

/* Stats grid spacing */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.125rem !important;
}

/* Dashboard greeting plus impactant */
.dash-greeting h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(1.875rem, 3.5vw, 2.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    margin: 0 0 0.5rem !important;
}

/* Améliorer le sublabel (% coût) */
.stat-card__sublabel {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.6875rem !important;
    color: #4ade80 !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
}


/* Admin KPI cards alignement avec stat-card */
.kpi-card__label {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.6875rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin: 0 0 0.625rem !important;
    position: relative;
    z-index: 1;
}
.kpi-card__value {
    font-family: var(--font-display) !important;
    font-size: clamp(1.875rem, 3vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(135deg, #fff, #c0b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}
.kpi-card__sub,
.kpi-card__detail {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 0.625rem !important;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.125rem !important;
}

/* Admin header top bar */
.admin-header {
    background: rgba(15, 14, 30, 0.7) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.admin-logo {
    font-family: var(--font-display) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}
.admin-logo .dot {
    color: var(--color-accent) !important;
}

.admin-badge {
    background: linear-gradient(135deg, rgba(255, 92, 168, 0.15), rgba(255, 193, 69, 0.1)) !important;
    border: 1px solid rgba(255, 92, 168, 0.3) !important;
    color: var(--color-pink) !important;
    border-radius: 999px !important;
    padding: 0.25rem 0.875rem !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.admin-h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 4vw, 2.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    margin: 0 0 0.5rem !important;
    background: linear-gradient(135deg, #fff, #c0b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin: 3rem 0 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.section-title__icon {
    font-size: 1.125rem;
}


/* ============================================================================
   BOUTON HERO TÉLÉCHARGER L'APP (forcé pour éviter override par autres CSS)
   ============================================================================ */
button.hero-app-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    padding: 0.875rem 1.5rem 0.875rem 1.125rem !important;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 92, 168, 0.12)) !important;
    border: 1.5px solid rgba(124, 92, 255, 0.5) !important;
    border-radius: 18px !important;
    color: #fff !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-align: left !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s, 
                border-color 0.3s,
                background 0.3s !important;
    box-shadow: 
        0 10px 30px rgba(124, 92, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

button.hero-app-download:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(124, 92, 255, 0.8) !important;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(255, 92, 168, 0.18)) !important;
    box-shadow: 
        0 18px 40px rgba(124, 92, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

button.hero-app-download--amber {
    background: linear-gradient(135deg, rgba(255, 193, 69, 0.22), rgba(255, 92, 168, 0.15)) !important;
    border-color: rgba(255, 193, 69, 0.55) !important;
    box-shadow: 
        0 10px 30px rgba(255, 193, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
button.hero-app-download--amber:hover {
    border-color: rgba(255, 193, 69, 0.8) !important;
    background: linear-gradient(135deg, rgba(255, 193, 69, 0.32), rgba(255, 92, 168, 0.22)) !important;
    box-shadow: 
        0 18px 40px rgba(255, 193, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.hero-app-download__icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    box-shadow: 0 6px 16px rgba(124, 92, 255, 0.5) !important;
    position: relative !important;
    z-index: 1 !important;
}
.hero-app-download--amber .hero-app-download__icon {
    background: linear-gradient(135deg, var(--color-amber), var(--color-pink)) !important;
    color: #1a0e00 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 69, 0.5) !important;
}

.hero-app-download__text {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.125rem !important;
    flex: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero-app-download__title {
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

.hero-app-download__sub {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500 !important;
}

.hero-app-download__arrow {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    transition: background 0.3s, transform 0.3s !important;
    position: relative !important;
    z-index: 1 !important;
}

button.hero-app-download:hover .hero-app-download__arrow {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Si déjà installée, on cache */
@media all and (display-mode: standalone) {
    .hero-app-download { display: none !important; }
}
body.app-installed .hero-app-download {
    display: none !important;
}


/* Sur mobile, virer le scroll-hint qui prend de la place inutile */
@media (max-width: 767px) {
    .cinema-hero__scroll-hint { 
        display: none !important; 
    }
    
    button.hero-app-download {
        width: 100% !important;
        margin-top: 1.5rem !important;
        padding: 1rem 1.125rem !important;
        border-radius: 16px !important;
    }
    .hero-app-download__icon {
        width: 40px !important;
        height: 40px !important;
    }
    .hero-app-download__title {
        font-size: 0.9375rem !important;
    }
    .hero-app-download__sub {
        font-size: 0.6875rem !important;
    }
    .hero-app-download__arrow {
        width: 28px !important;
        height: 28px !important;
    }
}


/* Fix reveal-mask qui coupe le HAUT des caractères majuscules sur mobile */
@media (max-width: 767px) {
    .reveal-mask {
        padding-top: 0.25em !important;
        margin-top: -0.2em !important;
    }
    .cinema-hero__title-line {
        padding-top: 0.25em !important;
        margin-top: -0.2em !important;
    }
}


/* ============================================================================
   STICKY STORY MOBILE FLOW — Container réorganisé par JS
   ============================================================================ */
.sticky-story__mobile-flow {
    display: block !important;
}

.sticky-story__mobile-chapter {
    display: block !important;
    padding: 0 0 1.5rem !important;
    margin: 0 0 2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sticky-story__mobile-chapter:last-child {
    border-bottom: none;
}

.sticky-story__mobile-chapter .sticky-story__chapter-eyebrow {
    font-size: 0.6875rem !important;
    color: var(--color-amber) !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin: 0 0 0.875rem !important;
}

.sticky-story__mobile-chapter .sticky-story__chapter-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.5rem, 6vw, 1.875rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
    margin: 0 0 1rem !important;
    color: #fff !important;
}

.sticky-story__mobile-chapter .sticky-story__chapter-desc {
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 0 1.25rem !important;
}

.sticky-story__mobile-chapter .sticky-story__chapter-stat {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 0.875rem 1.125rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    font-size: 0.8125rem !important;
}
.sticky-story__mobile-chapter .sticky-story__chapter-stat-value {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    color: var(--color-amber) !important;
}

/* Visuel mobile = mockup centré, sans satellite */
.sticky-story__mobile-visual {
    display: block !important;
    margin: 0 0 3rem !important;
    padding: 0 !important;
}
.sticky-story__mobile-visual .mockup-app {
    margin: 0 auto !important;
    max-width: 100% !important;
}
.sticky-story__mobile-visual .mockup-app__satellite {
    display: none !important;
}

/* Indicateurs cachés en mode mobile flow */
.sticky-story__mobile-flow .sticky-story__indicators {
    display: none !important;
}
