/* =========================================================
   GUIDANCE PERSONNALISÉE — styles dédiés
   Complète cosmic.css (mêmes variables de thème).
   ========================================================= */

/* ----- États (auth / app) ----- */
.gd-state { display: none; animation: fadeUp 0.5s ease both; }
.gd-state.is-active { display: block; }

.gd-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 50px 0;
    font-size: 0.9rem;
}
.gd-loading i { color: var(--accent-glow); margin-right: 8px; }

/* ----- Carte générique ----- */
.gd-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    margin-bottom: 18px;
    animation: fadeUp 0.6s ease both;
}
.gd-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.gd-card__title i { color: var(--accent-glow); }
.gd-card__hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ----- Onglets segmentés (Connexion / Inscription) ----- */
.gd-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(11, 4, 32, 0.55);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 18px;
}
.gd-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 8px;
    border-radius: calc(var(--radius-md) - 4px);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.gd-tab.is-active {
    background: linear-gradient(135deg, var(--accent-deep), #5b21b6);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

/* ----- Formulaires ----- */
.gd-field { margin-bottom: 14px; }
.gd-field label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.gd-field input,
.gd-field select,
.gd-field textarea {
    width: 100%;
    background: rgba(11, 4, 32, 0.5);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gd-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.gd-field input:focus,
.gd-field select:focus,
.gd-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}
.gd-field select option { background: #150a35; color: var(--text-primary); }
.gd-field__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 420px) { .gd-field__row { grid-template-columns: 1fr; } }

/* ----- Boutons ----- */
.gd-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4);
}
.gd-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5); }
.gd-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.gd-btn--ghost {
    background: rgba(167, 139, 250, 0.10);
    color: var(--text-secondary);
    border: 1px solid var(--border-soft);
    box-shadow: none;
    width: auto;
    padding: 9px 16px;
    font-size: 0.85rem;
}
.gd-btn--ghost:hover { background: rgba(167, 139, 250, 0.18); color: var(--text-primary); box-shadow: none; }

.gd-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: none;
}
.gd-error.show { display: block; animation: fadeUp 0.3s ease both; }

/* ----- En-tête utilisateur connecté ----- */
.gd-userbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}
.gd-userbar__avatar {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.5);
}
.gd-userbar__body { flex: 1; min-width: 0; }
.gd-userbar__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.gd-userbar__meta { font-size: 0.76rem; color: var(--text-muted); }

/* ----- Carte de guidance (résultat) ----- */
.gd-result { animation: fadeUp 0.6s ease both; }
.gd-guidance {
    background: linear-gradient(180deg, rgba(40, 25, 80, 0.55), rgba(20, 12, 45, 0.6));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.gd-guidance::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 50% 0%, rgba(192, 132, 252, 0.25), transparent 60%);
    pointer-events: none;
}
.gd-guidance__head { text-align: center; margin-bottom: 18px; position: relative; }
.gd-guidance__orb {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.6) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(124,58,237,0.9), rgba(30,16,66,0.95));
    box-shadow: 0 0 30px rgba(167,139,250,0.7), inset 0 0 20px rgba(192,132,252,0.4);
    display: grid; place-items: center;
    font-size: 1.4rem; color: #fff;
    animation: orb-pulse 4s ease-in-out infinite;
}
.gd-guidance__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.gd-guidance__date {
    color: var(--accent-glow);
    font-size: 0.82rem;
    margin-top: 4px;
}
.gd-guidance__intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.gd-section {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}
.gd-section__icon {
    width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.1rem; color: #fff;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.35);
}
.gd-section__body { flex: 1; min-width: 0; }
.gd-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.gd-section__text { font-size: 0.86rem; line-height: 1.6; color: var(--text-secondary); }

/* Révélation — bloc fort */
.gd-revelation {
    margin: 16px 0;
    padding: 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(240, 171, 252, 0.18));
    border: 1px solid var(--border-strong);
    position: relative;
}
.gd-revelation__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-glow);
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.gd-revelation__text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18rem;
    font-style: italic;
    line-height: 1.5;
    color: #fff;
}

/* Conseil */
.gd-advice {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}
.gd-advice i { color: var(--gold); font-size: 1.2rem; margin-top: 2px; }
.gd-advice__title { color: var(--accent-glow); font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.gd-advice__text { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.5; }

/* Porte-bonheur (chiffre / couleur / moment) */
.gd-lucky {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}
.gd-lucky__item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
}
.gd-lucky__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.gd-lucky__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

/* Actions sous la guidance */
.gd-result__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.gd-result__actions .gd-btn--ghost { flex: 1; min-width: 120px; justify-content: center; }

/* ----- Loader voyance ----- */
.gd-thinking {
    text-align: center;
    padding: 30px 0;
    display: none;
}
.gd-thinking.show { display: block; animation: fadeUp 0.4s ease both; }
.gd-thinking__orb {
    width: 110px; height: 110px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.85) 0%, rgba(30, 16, 66, 0.95) 80%);
    box-shadow: 0 0 50px rgba(167, 139, 250, 0.7), inset 0 0 40px rgba(192, 132, 252, 0.4);
    animation: orb-pulse 3s ease-in-out infinite;
}
.gd-thinking__text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
    min-height: 1.4em;
}

/* ----- Historique ----- */
.gd-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}
.gd-history-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--bg-card-strong);
}
.gd-history-item__icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1rem; color: #fff;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
}
.gd-history-item__icon.--daily { background: linear-gradient(135deg, #b45309, #fbbf24); }
.gd-history-item__body { flex: 1; min-width: 0; }
.gd-history-item__title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gd-history-item__meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.gd-history-item__arrow { color: var(--text-muted); }

.gd-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 26px 16px;
    line-height: 1.6;
}
.gd-empty i { font-size: 1.6rem; color: var(--accent-glow); display: block; margin-bottom: 10px; }

/* Lien secondaire (déconnexion, etc.) */
.gd-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}
.gd-link:hover { color: var(--accent-glow); }

/* =========================================================
   PAYWALL — menu des 4 atouts + carte d'abonnement
   ========================================================= */
.gd-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 8px 0 22px;
    background: linear-gradient(180deg, rgba(40, 25, 80, 0.35), rgba(20, 12, 45, 0.35));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px 6px;
    animation: fadeUp 0.6s ease both;
}
.gd-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 4px 6px;
    text-align: center;
    position: relative;
}
.gd-feature + .gd-feature::before {
    content: "";
    position: absolute;
    left: 0; top: 12%;
    height: 76%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(167,139,250,0.35), transparent);
}
.gd-feature__circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.7rem;
    background: radial-gradient(circle at 50% 40%, rgba(167,139,250,0.18), rgba(11,4,32,0.2));
    border: 2px solid var(--accent);
    box-shadow: 0 0 18px rgba(167,139,250,0.55), inset 0 0 16px rgba(167,139,250,0.25);
    animation: orb-pulse 4s ease-in-out infinite;
}
@media (max-width: 400px) {
    .gd-feature__circle { width: 52px; height: 52px; font-size: 1.4rem; }
    .gd-features { padding: 16px 2px; }
}
.gd-feature__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.25;
}

.gd-paywall {
    background: linear-gradient(180deg, rgba(40, 25, 80, 0.6), rgba(20, 12, 45, 0.65));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s ease both;
}
.gd-paywall::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 50% 0%, rgba(192,132,252,0.28), transparent 60%);
    pointer-events: none;
}
.gd-paywall__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(253, 224, 71, 0.14);
    border: 1px solid rgba(253, 224, 71, 0.4);
    color: var(--gold);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
}
.gd-paywall__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    position: relative;
}
.gd-paywall__amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 24px rgba(192,132,252,0.6);
}
.gd-paywall__period { color: var(--text-secondary); font-size: 1rem; }
.gd-paywall__hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 8px; position: relative; }

.gd-paywall__list {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 0;
    position: relative;
}
.gd-paywall__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    border-bottom: 1px solid var(--border-soft);
}
.gd-paywall__list li:last-child { border-bottom: none; }
.gd-paywall__list li i {
    color: var(--green);
    margin-top: 3px;
    flex: 0 0 auto;
}
.gd-paywall__list strong { color: var(--text-primary); }

.gd-paywall__free {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    position: relative;
}
.gd-paywall__free a { color: var(--accent-glow); text-decoration: underline; }

/* ----- Bandeau membre (dans l'app) ----- */
.gd-membership {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(253,224,71,0.10));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.gd-membership__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
}
.gd-membership__info { color: var(--text-muted); font-size: 0.78rem; flex: 1; min-width: 120px; }

/* Section titre */
.gd-subhead {
    margin: 26px 0 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.gd-subhead i { color: var(--accent-glow); font-size: 1rem; }
