:root {
    --bg: #0a0806;
    --bg-soft: #17130a;
    --panel: #1c160c;
    --gold: #d4af37;
    --gold-soft: #f0d78c;
    --text: #f0ead8;
    --text-dim: #b8ac8e;
    --border: rgba(212, 175, 55, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 0%, #2a2008 0%, var(--bg) 55%);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

body.has-hero-bg {
    background:
        linear-gradient(180deg, rgba(10,8,4,.4) 0%, rgba(10,8,4,.55) 100%),
        url('/static/img/tarot_home.jpg') center top / cover no-repeat fixed;
    background-color: var(--bg);
}

a { color: inherit; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 8, 4, 0.85);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
    gap: 10px;
}

.brand {
    font-size: 1.3em;
    font-weight: 800;
    text-decoration: none;
    color: var(--gold-soft);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s;
}
.nav a:hover { color: var(--gold-soft); }

@media (max-width: 640px) {
    .topbar { padding: 14px 16px; }
    .nav { gap: 6px 14px; font-size: 0.92em; }
}

.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    font-weight: 700;
}
.lang-switch a {
    text-decoration: none;
    color: var(--text-dim);
    padding: 4px 8px;
    border-radius: 8px;
}
.lang-switch a.active {
    color: #0d0700;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

.auth-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    font-weight: 700;
}
.auth-nav a {
    text-decoration: none;
    color: var(--text-dim);
    transition: color .2s;
}
.auth-nav a:hover { color: var(--gold-soft); }
.auth-greeting { color: var(--gold-soft); text-decoration: none; }
.auth-greeting:hover { text-decoration: underline; }

.flash-wrap { max-width: 560px; margin: 0 auto 20px; }
.flash-message {
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
}
.flash-success { background: rgba(0, 255, 102, .1); border: 1px solid rgba(0, 255, 102, .4); color: #d8ffd8; }
.flash-error { background: rgba(255, 80, 80, .1); border: 1px solid rgba(255, 80, 80, .4); color: #ffd8d8; }

main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; width: 100%; }

.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.85em;
    border-top: 1px solid var(--border);
    background: rgba(10, 8, 4, .75);
}
.footer-links { margin: 8px 0 0; display: flex; gap: 8px; justify-content: center; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-social { margin: 10px 0 0; display: flex; gap: 8px; justify-content: center; }
.footer-social a { color: var(--gold-soft); text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--gold); }
.about-social { margin-top: 16px; display: flex; gap: 8px; justify-content: center; }
.about-social a { color: var(--gold-soft); text-decoration: none; font-weight: 600; }
.about-social a:hover { color: var(--gold); }

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
    z-index: 50;
    transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); }

.online-status-widget {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #050805;
    border: 1px solid #2ee66b;
    border-radius: 20px;
    padding: 5px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: .72em;
    letter-spacing: 1px;
    color: #2ee66b;
    box-shadow: 0 0 10px rgba(46, 230, 107, .4);
}
.online-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ee66b;
    box-shadow: 0 0 6px #2ee66b;
    animation: online-status-blink 1.4s infinite;
    flex-shrink: 0;
}
@keyframes online-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* Petit bouton flottant : ne recouvre jamais le contenu, comme le bouton WhatsApp. */
.daily-wheel-fab {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 49;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #b8202f;
    outline: 2px solid var(--gold);
    background: conic-gradient(
        #ffd400 0deg 60deg,
        #ff6b35 60deg 120deg,
        #ff3b5c 120deg 180deg,
        #b14aff 180deg 240deg,
        #3d5aff 240deg 300deg,
        #2ed47a 300deg 360deg
    );
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
    font-size: 22px;
    line-height: 1;
    transition: transform .15s;
}
.daily-wheel-fab:hover { transform: scale(1.08); }
.daily-wheel-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff3b5c;
    border: 2px solid var(--bg);
    box-shadow: 0 0 6px rgba(255,59,92,.8);
}

/* Fenetre modale : la grande roue s'affiche au centre, jamais par-dessus le texte de la page. */
.daily-wheel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.daily-wheel-modal-overlay[hidden] { display: none; }
.daily-wheel-modal {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 20px 22px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}
.daily-wheel-modal h3 { color: var(--gold-soft); margin: 0 0 22px; }
.daily-wheel-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.daily-wheel-outer {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}
.daily-wheel-stand {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: linear-gradient(180deg, #d43b3b, #8f1f1f);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,.5);
    z-index: 0;
}
.daily-wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--gold);
    z-index: 3;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.daily-wheel-btn {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    cursor: pointer;
    border: 6px solid #b8202f;
    outline: 3px solid var(--gold);
    background: conic-gradient(
        #ffd400 0deg 60deg,
        #ff6b35 60deg 120deg,
        #ff3b5c 120deg 180deg,
        #b14aff 180deg 240deg,
        #3d5aff 240deg 300deg,
        #2ed47a 300deg 360deg
    );
    box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 0 3px #2a2116;
    transition: transform 3.6s cubic-bezier(.15,.65,.15,1);
    position: relative;
    z-index: 1;
}
.daily-wheel-btn:disabled { cursor: not-allowed; filter: grayscale(.65) brightness(.7); }
.daily-wheel-seg-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #241a06;
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
    pointer-events: none;
}
.daily-wheel-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fff2b0;
    box-shadow: 0 0 6px 1px rgba(255, 220, 100, .85);
    pointer-events: none;
}
.daily-wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 70%);
    border: 3px solid #2a2116;
    z-index: 2;
}
.daily-wheel-label {
    display: block;
    margin-top: 26px;
    font-size: .95em;
    font-weight: 700;
    color: var(--gold-soft);
}
.daily-wheel-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 220;
    background: var(--panel);
    border: 1px solid var(--gold);
    color: var(--gold-soft);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,.45);
    animation: daily-wheel-toast-in .25s ease-out;
}
@keyframes daily-wheel-toast-in {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 480px) {
    .daily-wheel-fab { right: 14px; bottom: 82px; width: 50px; height: 50px; font-size: 20px; }
    .daily-wheel-outer, .daily-wheel-btn { width: 190px; height: 190px; }
}

/* Admin */
.admin-page { max-width: 900px; margin: 0 auto; }
.admin-page h1 { color: var(--gold-soft); text-align: center; }
.admin-block {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.admin-block h2 { color: var(--gold-soft); font-size: 1.05em; margin-top: 0; }
.admin-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-inline-form input[type="date"],
.admin-inline-form input[type="text"],
.admin-inline-form select,
.admin-inline-form textarea {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-family: inherit;
}
.admin-inline-form textarea { width: 100%; min-height: 70px; }

/* Reviews */
.reviews-avg { text-align: center; color: var(--gold-soft); font-weight: 700; margin-bottom: 20px; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}
.review-stars { font-size: 1.1em; margin-bottom: 6px; }
.review-text { margin: 0 0 8px; line-height: 1.5; }
.review-name { margin: 0; color: var(--text-dim); font-size: .9em; text-align: right; }
.review-own-edit-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.review-own-edit-form select,
.review-own-edit-form textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text);
    font-family: inherit;
    font-size: .9em;
    width: 100%;
}
.review-own-actions { display: flex; justify-content: flex-end; }
.review-own-delete-form { margin: 0 0 8px; text-align: right; }
.review-own-delete-btn {
    background: rgba(255, 80, 80, .1);
    border: 1px solid rgba(255, 80, 80, .4);
    color: var(--text-dim);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .78em;
    cursor: pointer;
}
/* Horoscope */
.horoscope-page { max-width: 1040px; }
.horoscope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.horoscope-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}
.horoscope-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.horoscope-symbol { font-size: 1.8em; color: var(--gold); line-height: 1; }
.horoscope-name { color: var(--gold-soft); font-weight: 700; }
.horoscope-dates { color: var(--text-dim); font-size: .8em; }
.horoscope-line { margin: 0 0 8px; font-size: .92em; line-height: 1.5; }
.horoscope-line b { color: var(--gold-soft); }
.zodiac-char-meta { color: var(--text-dim); font-size: .85em; margin: 0 0 10px; }
.zodiac-char-meta b { color: var(--gold-soft); }

/* Zodiac hub */
.zodiac-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.zodiac-hub-card {
    display: block;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s;
}
.zodiac-hub-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.zodiac-hub-icon { font-size: 2.2em; display: block; margin-bottom: 10px; }
.zodiac-hub-name { color: var(--gold-soft); font-weight: 700; margin-bottom: 8px; }
.zodiac-hub-desc { color: var(--text-dim); font-size: .85em; line-height: 1.5; margin: 0; }

/* Ascendant */
.ascendant-result {
    text-align: center;
    background: var(--bg-soft);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    color: var(--text-dim);
}
.ascendant-result-sign { color: var(--gold-soft); font-weight: 800; font-size: 1.2em; }
.ascendant-result-meaning { margin: 10px 0 0; line-height: 1.5; color: var(--text); font-size: .92em; }
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    font-size: .9em;
}
.pagination-link:hover { border-color: var(--gold); color: var(--gold-soft); }
.pagination-link.active {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #1a1200;
    border-color: var(--gold);
}

/* Review cards (admin) */
.review-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.review-card-tile {
    position: relative;
    background: var(--bg-soft);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.review-card-stars { font-size: .95em; margin-bottom: 8px; }
.review-card-text { margin: 0 0 10px; font-size: .88em; line-height: 1.5; color: var(--text); }
.review-card-name { margin: 0; color: var(--gold-soft); font-weight: 700; font-size: .85em; }
.review-card-date { margin: 4px 0 8px; color: var(--text-dim); font-size: .75em; }
.review-card-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}
.review-card-edit-form input[type="text"],
.review-card-edit-form select,
.review-card-edit-form textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text);
    font-family: inherit;
    font-size: .85em;
    width: 100%;
}
.review-card-edit-form textarea { resize: vertical; }
.review-card-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}
.review-card-delete button {
    background: rgba(255, 80, 80, .12);
    border: 1px solid rgba(255, 80, 80, .4);
    color: var(--text);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    line-height: 1;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
}
.stat-value { font-size: 1.7em; font-weight: 800; color: var(--gold-soft); }
.stat-label { color: var(--text-dim); font-size: .8em; margin-top: 4px; }
.signup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 140px;
    padding-top: 10px;
}
.signup-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.signup-bar {
    width: 100%;
    max-width: 36px;
    min-height: 4px;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
}
.signup-bar span { position: absolute; top: -20px; font-size: .8em; color: var(--gold-soft); font-weight: 700; }
.signup-day-label { color: var(--text-dim); font-size: .75em; margin-top: 6px; }
.admin-blocked-title { color: var(--text-dim); font-size: .85em; margin: 16px 0 6px; }
.admin-blocked-list { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-blocked-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 80, 80, .1);
    border: 1px solid rgba(255, 80, 80, .4);
    border-radius: 8px;
    padding: 4px 6px 4px 10px;
    color: var(--text);
    font-size: .85em;
}
.admin-blocked-chip button {
    background: none;
    border: none;
    color: #ff9090;
    cursor: pointer;
    font-size: 1em;
    padding: 0 4px;
}
.admin-empty { color: var(--text-dim); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--text-dim);
    font-size: .9em;
}
.admin-table th { color: var(--gold-soft); }
.admin-table td a { color: var(--gold-soft); }
.admin-wa-link { text-decoration: none; font-size: 1.05em; color: #25D366; white-space: nowrap; }
.admin-wa-link:hover { text-decoration: underline; }
.footer-links a:hover { color: var(--gold-soft); }

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 32px;
    line-height: 1.6;
}
.legal-page h1 { color: var(--gold-soft); margin-top: 0; }
.legal-page h2 { color: var(--gold-soft); font-size: 1.1em; margin: 24px 0 8px; }
.legal-page p { color: var(--text-dim); margin: 0 0 4px; }
.legal-page a { color: var(--gold-soft); }
.legal-updated { font-size: .85em; font-style: italic; margin-bottom: 20px; }

/* Hero */
.hero { text-align: center; padding: 60px 10px 40px; }
.hero-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 36px 28px;
    background: rgba(10, 8, 4, .6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hero h1 {
    font-size: 3em;
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.2em; color: var(--gold-soft); margin: 0 0 16px; }
.hero-lead { max-width: 560px; margin: 0 auto 30px; color: var(--text-dim); line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.home-banner {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.hero-minimal {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero { padding: 40px 16px 20px; }
    .hero-inner { padding: 26px 18px; }
    .hero-minimal { min-height: 55vh; }
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #1a1200;
    box-shadow: 0 0 22px rgba(212, 175, 55, .35);
}
.btn-secondary {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold);
    color: var(--text);
}

/* Cards page */
.cards-page h1 { text-align: center; color: var(--gold-soft); }
.cards-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.search-box {
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1em;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 600;
}
.chip.active, .chip:hover { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1200; border-color: var(--gold); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 18px;
}
.card-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    transition: transform .15s, box-shadow .15s;
}
.card-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(212, 175, 55, .35); }
.card-tile img { width: 100%; border-radius: 8px; aspect-ratio: 3/5; object-fit: cover; }
.card-tile span { font-size: 0.85em; text-align: center; font-weight: 700; }
.no-results { text-align: center; color: var(--text-dim); margin-top: 30px; }

/* Card detail */
.back-link { color: var(--gold-soft); text-decoration: none; font-weight: 700; }
.detail-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}
.detail-image {
    width: 180px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(212, 175, 55, .3);
}
.detail-header h1 { margin: 0 0 12px; color: var(--gold-soft); }

.orientation-toggle { display: flex; gap: 8px; }
.toggle-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 700;
}
.toggle-btn.active { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1200; }

.detail-body { max-width: 760px; }
.field-intro { font-size: 1.1em; line-height: 1.7; }
.life-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.life-areas h4 { color: var(--gold-soft); margin: 0 0 4px; }
.life-areas p { margin: 0; color: var(--text-dim); line-height: 1.5; }
.field-block { margin: 20px 0; }
.field-block h4 { color: var(--gold-soft); margin: 0 0 6px; }
.field-block p { line-height: 1.6; color: var(--text-dim); }
.pre { white-space: pre-line; }
.hidden-msg p { font-style: italic; color: var(--gold-soft); }

/* Reading page */
.reading-page { text-align: center; }
.reading-page h1 { color: var(--gold-soft); margin-bottom: 4px; }
.reading-subtitle { color: var(--text-dim); margin-top: 0; }
#questionInput {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    margin: 20px 0;
    font-size: 1em;
}
.spread-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}
.spread-btn {
    padding: 16px 10px;
    border-radius: 12px;
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.2));
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}
.spread-btn:hover { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1200; box-shadow: 0 0 20px rgba(212,175,55,.4); }

.loading { margin: 30px 0; color: var(--text-dim); }
.spinner {
    width: 40px; height: 40px; margin: 0 auto 10px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-area { margin-top: 30px; text-align: left; }
.reading-question { text-align: center; color: var(--text-dim); font-style: italic; margin-bottom: 10px; }
.reading-name { text-align: center; color: var(--gold-soft); font-size: 1.4em; }
.reading-answer { text-align: center; font-size: 1.6em; margin: 10px 0 20px; }

.spread-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.spread-slot {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}
.spread-slot .position-label {
    display: block;
    text-align: center;
    color: var(--gold-soft);
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: .8em;
    letter-spacing: .05em;
}
.spread-card { display: flex; gap: 14px; }
.spread-card img {
    width: 90px;
    border-radius: 8px;
    flex-shrink: 0;
}
.spread-card img.reversed-img { transform: rotate(180deg); }
.spread-card-name { font-weight: 800; color: var(--gold-soft); }
.spread-card-orientation { color: var(--text-dim); font-size: .85em; margin-bottom: 6px; }
.spread-card-intro { font-size: .9em; line-height: 1.5; color: var(--text-dim); }
.spread-card-extra { margin-top: 10px; }
.spread-card-extra summary { cursor: pointer; color: var(--gold-soft); font-weight: 700; font-size: .85em; }
.spread-card-extra .extra-body { margin-top: 8px; font-size: .85em; color: var(--text-dim); }
.spread-card-extra .extra-body h5 { margin: 8px 0 2px; color: var(--gold-soft); }
.spread-card-extra .extra-body p { margin: 0; line-height: 1.5; white-space: pre-line; }

.draw-again-wrap { text-align: center; margin-top: 24px; }

/* Trust box */
.trust-box {
    max-width: 640px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 102, .35);
    background: rgba(0, 0, 0, .3);
    color: #d8ffd8;
    font-size: .9em;
    line-height: 1.5;
}
.trust-box b { color: #00ff66; }

/* Jeton bar */
.jeton-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 4px;
}
.jeton-user {
    font-weight: 800;
    color: var(--gold-soft);
}
.jeton-balance {
    font-weight: 800;
    color: var(--gold-soft);
    background: rgba(212, 175, 55, .1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
}
.jeton-login-prompt { color: var(--text-dim); font-weight: 700; }
.btn-small { padding: 10px 14px; font-size: .9em; }
.btn-buy-jeton-shortcut {
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #1a1200;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* Tabs */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .35);
    color: var(--text-dim);
    font-weight: 800;
    cursor: pointer;
}
.tab-btn.active {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #1a1200;
    border-color: var(--gold);
}
.tab-panel {
    max-width: 760px;
    margin: 0 auto 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
}
.panel-title { color: var(--gold-soft); margin-top: 0; text-align: center; }
.panel-title small { color: var(--text-dim); font-weight: 400; }
.panel-subtitle { color: var(--gold-soft); text-align: center; margin: 30px 0 14px; }
.panel-subtitle small { color: var(--text-dim); font-weight: 400; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--text-dim);
}
.price-table th { color: var(--gold-soft); }
.btn-select {
    display: inline-block;
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #1a1200;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.packs-note { color: var(--text-dim); text-align: center; margin-top: 16px; }
.paypal-btn-container { margin-top: 6px; min-width: 120px; max-width: 160px; }

/* Instant card */
.instant-card-wrap { perspective: 1200px; display: flex; justify-content: center; margin: 20px 0; }
.instant-card {
    width: 150px;
    height: 230px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.instant-card.flipped { transform: rotateY(180deg); }
.instant-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 14px;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    text-align: center;
    overflow: hidden;
}
.instant-back {
    background: linear-gradient(135deg, #1a0f00, #3a230a);
    font-size: 52px;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212,175,55,.35);
}
.instant-front {
    background: linear-gradient(160deg, #0d0d0d, #241505);
    transform: rotateY(180deg);
    color: #fff;
    box-shadow: 0 0 24px rgba(212,175,55,.5);
}
.instant-front img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.instant-name {
    position: relative;
    margin-top: auto;
    color: #0d0700;
    background: linear-gradient(180deg, #ffe39b, #b87912);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 12px;
    align-self: center;
    margin-bottom: 8px;
}
.instant-result { max-width: 480px; margin: 14px auto 0; text-align: center; line-height: 1.5; color: var(--text-dim); }

/* Contact form */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto 40px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: .95em;
}
.form-grid textarea { grid-column: 1 / -1; min-height: 100px; }
.form-grid .full { grid-column: 1 / -1; }
.field-label { grid-column: 1 / -1; color: var(--text-dim); font-size: .88em; margin: -4px 0 -6px; }
.form-grid input[type="file"] { grid-column: 1 / -1; padding: 8px; font-size: .88em; }
.form-status { margin-top: 10px; color: var(--gold-soft); text-align: center; min-height: 1.2em; }

/* Auth pages */
.auth-page { display: flex; justify-content: center; padding: 20px 0 60px; }
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 26px;
    text-align: center;
}
.auth-card h1 { color: var(--gold-soft); margin: 0 0 6px; }
.auth-subtitle { color: var(--text-dim); margin: 0 0 22px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }

/* About page */
.about-page { display: flex; justify-content: center; padding: 20px 0 60px; }
.about-card {
    width: 100%;
    max-width: 480px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}
.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 16px;
}
.about-card h1 { color: var(--gold-soft); margin: 0 0 6px; }
.about-years { color: var(--text-dim); margin: 0 0 10px; }
.about-specialties { color: var(--gold-soft); margin: 0 0 20px; }
.about-bio { text-align: left; line-height: 1.7; color: var(--text); margin-bottom: 24px; }
.about-bio p { margin: 0 0 14px; }

/* Homepage "who am I" teaser */
.home-about-teaser { display: flex; justify-content: center; padding: 10px 0 40px; }
.home-about-teaser-link {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 480px;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s;
}
.home-about-teaser-link:hover { border-color: var(--gold); }
.home-about-teaser-link img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.home-about-teaser-link h2 { color: var(--gold-soft); margin: 0 0 4px; font-size: 1.05em; }
.home-about-teaser-link p { color: var(--text-dim); margin: 0 0 6px; font-size: .92em; line-height: 1.4; }
.home-about-teaser-cta { color: var(--gold); font-size: .88em; font-weight: 600; }
.auth-form input, .auth-form textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: .95em;
    font-family: inherit;
    resize: vertical;
}

/* Calendar */
.calendar-wrap { margin-bottom: 20px; text-align: left; }
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-weight: 800;
    text-transform: capitalize;
}
.cal-nav-btn {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold);
    color: var(--text);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1em;
}
.calendar-weekdays, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.calendar-weekdays span { color: var(--text-dim); font-size: .75em; font-weight: 700; padding: 4px 0; }
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .85em;
    cursor: pointer;
}
.cal-day:hover:not(:disabled) { border-color: var(--gold); }
.cal-day.cal-empty { background: transparent; border: none; cursor: default; }
.cal-day.cal-past { opacity: .25; cursor: not-allowed; }
.cal-day.cal-busy { background: rgba(255, 80, 80, .08); border-color: rgba(255, 80, 80, .4); cursor: not-allowed; font-size: .7em; }
.cal-day.cal-selected { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1200; border-color: var(--gold); font-weight: 800; }
.calendar-legend { display: flex; gap: 16px; margin-top: 10px; font-size: .8em; color: var(--text-dim); }
.calendar-hint { text-align: center; color: var(--gold-soft); font-weight: 700; font-size: .9em; margin: 0 0 10px; }
.calendar-warning {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 80, 80, .1);
    border: 1px solid rgba(255, 80, 80, .4);
    color: #ffd8d8;
    font-size: .85em;
    text-align: center;
}
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.cal-dot-free { background: var(--bg-soft); border: 1px solid var(--border); }
.cal-dot-busy { background: rgba(255, 80, 80, .3); border: 1px solid rgba(255, 80, 80, .5); }

.time-picker-wrap { margin-bottom: 16px; text-align: left; }
.time-picker-wrap label { display: block; color: var(--text-dim); font-size: .85em; margin-bottom: 6px; }
.time-picker-wrap select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: .95em;
}
.appointment-balance { text-align: center; color: var(--text-dim); font-size: .9em; margin: -6px 0 16px; }
.field-group { margin-bottom: 16px; text-align: left; }
.field-group label { display: block; color: var(--text-dim); font-size: .85em; margin-bottom: 6px; }
.field-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: .95em;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--gold);
    background: rgba(212, 175, 55, 0.12);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s;
}
.btn-google:hover { transform: translateY(-2px); }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-dim);
    font-size: .85em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-link { margin: 16px 0 0; color: var(--text-dim); font-size: .9em; }
.auth-link a { color: var(--gold-soft); font-weight: 700; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

.account-info { text-align: left; margin-bottom: 10px; }
.account-info p { color: var(--text-dim); margin: 6px 0; }
.account-info strong { color: var(--gold-soft); }
.account-note { color: var(--text-dim); font-size: .85em; text-align: left; margin: 0 0 14px; font-style: italic; }
.account-checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: .85em; color: var(--text-dim); text-align: left; }
.account-checkbox-label input { margin-top: 3px; }
.account-deletion-page { max-width: 640px; margin: 0 auto; }
.account-deletion-page h1 { color: var(--gold-soft); }
.account-deletion-page h2 { color: var(--gold-soft); font-size: 1.1em; margin-top: 28px; }
.account-deletion-page ol { padding-left: 22px; }
.account-deletion-page li { margin-bottom: 8px; }

@media (max-width: 640px) {
    .detail-header { flex-direction: column; align-items: flex-start; }
    .spread-card { flex-direction: column; align-items: center; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .price-table { display: block; overflow-x: auto; white-space: nowrap; }
}
