/* =====================================================
   SIIVORA — Luxury Rewards App Stylesheet
   ===================================================== */

:root {
    --gold: #C9A227;
    --gold-light: #E8D48B;
    --dark: #111111;
    --black: #000000;
    --cream: #F5F1E8;
    --white: #FFFFFF;
    --danger: #e05353;
    --success: #3fbf6f;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
    --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, var(--black) 60%);
    color: var(--cream);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* -------------------- APP SHELL -------------------- */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0c0c0c 0%, #000 100%);
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

/* Floating gold particles background */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold-light);
    opacity: 0.35;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

/* -------------------- SPLASH SCREEN -------------------- */
.splash {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 40%, #1c1c1c 0%, #000 75%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.35em;
    background: linear-gradient(120deg, var(--gold-light), var(--gold) 50%, var(--gold-light));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmerText 2.4s linear infinite;
}
@keyframes shimmerText {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.splash-logo { background-size: 200% auto; }
.splash-tag { margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.25em; color: var(--gold-light); opacity: 0.8; text-transform: uppercase; }
.splash-mist {
    position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
    filter: blur(20px);
    animation: mistPulse 3s ease-in-out infinite;
}
@keyframes mistPulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.25); opacity: 1; } }

/* -------------------- HEADER -------------------- */
.app-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    padding: 14px 14px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
}
.brand-logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}
.header-logo-img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(201,162,39,0.4);
}
.splash-logo-img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 30px rgba(201,162,39,0.5); animation: mistPulse 3s ease-in-out infinite; object-fit: cover; }

/* Reusable responsive logo for auth/landing screens (login, register, claim, referral landing) */
.auth-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 12px;
    box-shadow: 0 0 20px rgba(201,162,39,0.4);
    object-fit: cover;
}
.header-icons { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.icon-btn {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    position: relative; transition: transform .2s ease;
    flex-shrink: 0;
}

/* From ~360px phones up: give the header a little more breathing room */
@media (min-width: 360px) {
    .app-header { padding: 16px 18px; gap: 10px; }
    .brand-logo { font-size: 1.2rem; letter-spacing: 0.12em; gap: 8px; }
    .header-logo-img { width: 30px; height: 30px; }
    .header-icons { gap: 10px; }
    .icon-btn { width: 36px; height: 36px; }
}

/* Tablet and up: full-size header branding */
@media (min-width: 600px) {
    .app-header { padding: 16px 26px; }
    .brand-logo { font-size: 1.5rem; letter-spacing: 0.2em; gap: 10px; }
    .header-logo-img { width: 36px; height: 36px; }
    .header-icons { gap: 14px; }
    .icon-btn { width: 40px; height: 40px; }
    .splash-logo-img { width: 100px; height: 100px; }
    .auth-logo-img { width: 72px; height: 72px; }
}
.icon-btn:active { transform: scale(0.9); }
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--danger);
    animation: pulseBadge 1.6s ease-in-out infinite;
}
@keyframes pulseBadge { 0%,100% { box-shadow: 0 0 0 0 rgba(224,83,83,0.6);} 50% { box-shadow: 0 0 0 6px rgba(224,83,83,0); } }

/* -------------------- MAIN CONTENT -------------------- */
.app-main {
    flex: 1;
    padding: 20px 18px 100px;
    position: relative;
    z-index: 1;
    animation: fadeSlideIn 0.45s ease both;
}
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.page { display: none; }
.page.active { display: block; }

.greeting h1 { font-family: var(--font-display); font-size: 1.7rem; color: var(--white); }
.greeting p { color: rgba(245,241,232,0.65); font-size: 0.9rem; margin-top: 4px; }

/* -------------------- GLASS CARD -------------------- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmerSweep 5s linear infinite;
    pointer-events: none;
}
@keyframes shimmerSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.reward-card { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.reward-card .badge { font-size: 1.6rem; }
.reward-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light); }
.reward-card p { font-size: 0.85rem; color: rgba(245,241,232,0.75); line-height: 1.4; }

.btn-gold {
    margin-top: 4px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--gold-light), var(--gold));
    color: #1a1400;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    box-shadow: 0 8px 20px rgba(201,162,39,0.35);
    transition: transform 0.15s ease;
}
.btn-gold:active { transform: scale(0.96); }
.btn-gold[disabled] { opacity: 0.4; filter: grayscale(0.5); box-shadow: none; pointer-events: none; }
.btn-outline {
    padding: 12px 20px; border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--cream);
    text-align: center;
    font-weight: 500;
    transition: transform 0.15s ease;
}
.btn-outline:active { transform: scale(0.96); }
.btn-block { width: 100%; display: block; }

.rotating-icon { display: inline-block; animation: spinSlow 6s linear infinite; }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.section-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); margin: 26px 0 12px; }

/* -------------------- MY REWARDS LIST (mini) -------------------- */
.mini-reward-list { display: flex; flex-direction: column; gap: 10px; }
.mini-reward {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-radius: var(--radius-md);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.mini-reward .info h4 { font-size: 0.95rem; color: var(--white); }
.mini-reward .info span { font-size: 0.75rem; color: rgba(245,241,232,0.55); }
.status-pill { font-size: 0.7rem; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.status-pill.active { background: rgba(63,191,111,0.15); color: var(--success); }
.status-pill.redeemed { background: rgba(224,83,83,0.15); color: var(--danger); }
.status-pill.expired { background: rgba(255,255,255,0.08); color: rgba(245,241,232,0.5); }
.empty-state { text-align: center; padding: 40px 10px; color: rgba(245,241,232,0.5); font-size: 0.9rem; }

/* -------------------- BOTTOM NAV -------------------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    display: flex; justify-content: space-around;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    z-index: 50;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 0.68rem; color: rgba(245,241,232,0.5);
    padding: 6px 14px; border-radius: 14px;
    transition: color .2s ease, background .2s ease;
    position: relative;
}
.nav-item i { font-size: 1.1rem; }
.nav-item.active { color: var(--gold-light); background: rgba(201,162,39,0.12); }
.nav-item .nav-dot {
    position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold-light); opacity: 0; transition: opacity .2s ease;
}
.nav-item.active .nav-dot { opacity: 1; }

/* -------------------- SPIN WHEEL -------------------- */
.wheel-page-wrap { text-align: center; }
.wheel-wrapper { position: relative; width: 300px; height: 300px; margin: 30px auto 10px; }
.wheel-wrapper.glow::after {
    content: ''; position: absolute; inset: -20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.35), transparent 70%);
    filter: blur(10px); z-index: -1;
    animation: mistPulse 1.4s ease-in-out infinite;
}
#wheelCanvas {
    width: 300px; height: 300px; border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(201,162,39,0.15), var(--shadow-soft);
    transition: transform 0s;
}
.wheel-pointer {
    position: absolute; top: -6px; 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-light);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    z-index: 5;
}
.wheel-center-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 78px; height: 78px; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light), var(--gold));
    color: #1a1400; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    letter-spacing: 0.05em;
    transition: transform 0.15s ease, opacity 0.2s ease;
    z-index: 6;
}
.wheel-center-btn:active { transform: translate(-50%, -50%) scale(0.92); }
.wheel-center-btn[disabled] { opacity: 0.5; pointer-events: none; }
.wheel-status { min-height: 24px; margin-top: 18px; font-size: 0.85rem; color: var(--gold-light); }

/* -------------------- SCRATCH CARD -------------------- */
.scratch-page-wrap { text-align: center; }
.scratch-wrapper {
    position: relative; width: 100%; max-width: 340px; height: 220px;
    margin: 34px auto 0; border-radius: 24px;
    overflow: visible;
}
.scratch-wrapper::before {
    /* soft ambient glow behind the card */
    content: ''; position: absolute; inset: -16px; border-radius: 30px;
    background: radial-gradient(circle, rgba(201,162,39,0.35), transparent 70%);
    filter: blur(18px); z-index: -1;
    animation: mistPulse 2.6s ease-in-out infinite;
}
.scratch-card-inner {
    position: relative; width: 100%; height: 100%; border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(232,212,139,0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.scratch-reveal {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(232,212,139,0.12), transparent 55%),
        linear-gradient(135deg, #1c1608, #0a0800 60%, #000);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--gold-light); text-align: center; padding: 18px;
}
.scratch-reveal .reveal-logo { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 10px; box-shadow: 0 0 16px rgba(201,162,39,0.5); opacity: 0.9; }
.scratch-reveal h3 { font-family: var(--font-display); font-size: 1.7rem; }
.scratch-reveal .code { margin-top: 8px; font-weight: 700; letter-spacing: 0.1em; color: var(--white); font-size: 0.95rem; padding: 6px 14px; border: 1px dashed rgba(232,212,139,0.4); border-radius: 999px; }
.scratch-reveal .sparkle { position: absolute; color: rgba(232,212,139,0.5); font-size: 0.9rem; animation: sparkleFloat 3s ease-in-out infinite; }
.scratch-reveal .sparkle:nth-child(1) { top: 14px; left: 18px; animation-delay: 0s; }
.scratch-reveal .sparkle:nth-child(2) { top: 20px; right: 22px; animation-delay: 0.6s; }
.scratch-reveal .sparkle:nth-child(3) { bottom: 18px; left: 26px; animation-delay: 1.2s; }
@keyframes sparkleFloat { 0%,100% { transform: translateY(0) scale(1); opacity: 0.4; } 50% { transform: translateY(-6px) scale(1.2); opacity: 0.9; } }
#scratchCanvas { position: absolute; inset: 0; touch-action: none; cursor: pointer; border-radius: 24px; }
.scratch-hint { margin-top: 18px; font-size: 0.8rem; color: rgba(245,241,232,0.55); }
.scratch-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(201,162,39,0.12); border: 1px solid rgba(201,162,39,0.3);
    color: var(--gold-light); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 4px;
}

/* -------------------- MODAL -------------------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
    width: 100%; max-width: 380px;
    background: linear-gradient(180deg, #161616, #000);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    max-height: 85vh;
    overflow-y: auto;
}
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }
.modal-box h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); margin-bottom: 4px; }
.modal-box .win-label { font-size: 0.8rem; letter-spacing: 0.2em; color: rgba(245,241,232,0.55); text-transform: uppercase; margin-bottom: 10px; }
.modal-box .win-reward { font-family: var(--font-display); font-size: 2rem; color: var(--white); margin: 6px 0 16px; }
.coupon-box {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(201,162,39,0.1); border: 1px dashed var(--gold);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px;
}
.coupon-box code { font-weight: 700; letter-spacing: 0.1em; color: var(--gold-light); font-size: 1rem; }
.copy-btn { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--cream); }
.terms-box { text-align: left; font-size: 0.75rem; color: rgba(245,241,232,0.6); margin: 14px 0; line-height: 1.5; max-height: 110px; overflow-y: auto; }
.terms-box h4 { color: var(--gold-light); font-size: 0.8rem; margin-bottom: 6px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.modal-close-x { position: absolute; top: 14px; right: 16px; font-size: 1.2rem; color: rgba(245,241,232,0.6); }

/* -------------------- CONFETTI -------------------- */
.confetti-piece {
    position: fixed; top: -10px; width: 8px; height: 14px; z-index: 300;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; }
}

/* -------------------- TOAST -------------------- */
.toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(20,20,20,0.95); border: 1px solid var(--glass-border);
    color: var(--cream); padding: 12px 20px; border-radius: 999px;
    font-size: 0.85rem; z-index: 400; opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: var(--shadow-soft);
    max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------- SKELETON -------------------- */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonMove 1.4s linear infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeletonMove { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* -------------------- PROFILE -------------------- */
.profile-avatar {
    width: 84px; height: 84px; border-radius: 50%; margin: 10px auto 14px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 2rem; color: #1a1400;
    box-shadow: 0 8px 24px rgba(201,162,39,0.35);
}
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.stat-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.stat-card .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); }
.stat-card .label { font-size: 0.72rem; color: rgba(245,241,232,0.55); margin-top: 2px; }

/* -------------------- FORMS (login/register) -------------------- */
.auth-wrap { max-width: 420px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 24px; position: relative; z-index: 1; }
.auth-wrap .brand-logo { display: block; text-align: center; font-size: 2rem; margin-bottom: 4px; }
.auth-wrap .tagline { text-align: center; color: rgba(245,241,232,0.55); font-size: 0.85rem; margin-bottom: 30px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.78rem; color: rgba(245,241,232,0.65); margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--white); font-size: 0.95rem;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.phone-input-group {
    display: flex; align-items: stretch;
    border-radius: var(--radius-sm);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: border-color .15s ease;
}
.phone-input-group:focus-within { border-color: var(--gold); }
.phone-prefix {
    display: flex; align-items: center;
    padding: 0 12px;
    background: rgba(201,162,39,0.12);
    color: var(--gold-light);
    font-size: 0.95rem; font-weight: 600;
    border-right: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.phone-input-group input {
    flex: 1; min-width: 0;
    padding: 13px 16px; border: none; background: transparent;
    color: var(--white); font-size: 0.95rem;
}
.phone-input-group input:focus { outline: none; }
.form-error { color: var(--danger); font-size: 0.8rem; margin: -6px 0 14px; }
.form-footer-link { text-align: center; margin-top: 18px; font-size: 0.85rem; color: rgba(245,241,232,0.6); }
.form-footer-link a { color: var(--gold-light); font-weight: 600; }

/* -------------------- STREAK CALENDAR -------------------- */
.streak-row { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.streak-day {
    flex: 0 0 auto; width: 42px; height: 52px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    font-size: 0.7rem; color: rgba(245,241,232,0.5);
}
.streak-day.done { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a1400; font-weight: 700; }
.streak-day.today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,39,0.3); }

/* -------------------- NOTIFICATIONS PANEL -------------------- */
.notif-panel {
    position: fixed; top: 0; right: 0; height: 100%; width: 85%; max-width: 360px; z-index: 250;
    background: #0b0b0b; border-left: 1px solid var(--glass-border);
    transform: translateX(100%); transition: transform .3s ease;
    padding: 20px; overflow-y: auto;
}
.notif-panel.show { transform: translateX(0); }
.notif-item { padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.notif-item-announcement { background: rgba(201,162,39,0.06); border-radius: 10px; padding: 12px 10px; border-bottom: 1px solid var(--glass-border); }
.notif-item-announcement h4 { color: var(--gold-light); }
.notif-item h4 { font-size: 0.85rem; color: var(--white); }
.notif-item p { font-size: 0.78rem; color: rgba(245,241,232,0.55); margin-top: 3px; }
.notif-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 240; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.notif-backdrop.show { opacity: 1; visibility: visible; }

/* -------------------- QUIZ -------------------- */
.quiz-option {
    display: block; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 10px;
    border-radius: var(--radius-md); background: var(--glass-bg); border: 1px solid var(--glass-border);
    transition: border-color .2s ease, transform .15s ease;
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option.selected { border-color: var(--gold); background: rgba(201,162,39,0.12); }

/* -------------------- MISC -------------------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.checkmark-pop { animation: checkPop 0.4s ease; }
@keyframes checkPop { 0% { transform: scale(0.5); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

@media (min-width: 481px) {
    body {
        display: flex; justify-content: center;
        background:
            radial-gradient(circle at 20% 20%, rgba(201,162,39,0.06), transparent 45%),
            radial-gradient(circle at 80% 80%, rgba(232,212,139,0.05), transparent 45%),
            #050505;
    }
}

/* Tablet: give the app a bit more room instead of staying pinned at phone width */
@media (min-width: 600px) {
    .app-shell, .auth-wrap { max-width: 560px; }
    .bottom-nav { max-width: 560px; }
}

/* Small desktop: comfortable reading width */
@media (min-width: 900px) {
    .app-shell { max-width: 620px; }
    .auth-wrap { max-width: 560px; }
    .bottom-nav { max-width: 620px; }
}

/* Large desktop: a touch wider still, plenty of ambient background on either side */
@media (min-width: 1300px) {
    .app-shell { max-width: 680px; }
    .bottom-nav { max-width: 680px; }
}

/* -------------------- SHARE & UNLOCK -------------------- */
.share-unlock-card { text-align: center; }
.lock-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(201,162,39,0.12); border: 1px solid rgba(201,162,39,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--gold-light);
    margin: 0 auto; animation: lockShake 3.5s ease-in-out infinite;
}
.lock-icon-wrap.unlocked {
    background: rgba(63,191,111,0.15); border-color: rgba(63,191,111,0.4); color: var(--success);
    animation: unlockPop 0.5s ease;
}
@keyframes lockShake {
    0%, 92%, 100% { transform: rotate(0); }
    93% { transform: rotate(-8deg); } 94% { transform: rotate(8deg); }
    95% { transform: rotate(-6deg); } 96% { transform: rotate(6deg); } 97% { transform: rotate(0); }
}
@keyframes unlockPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.share-sheet { max-width: 400px; }
.share-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-option-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    padding: 16px 8px; transition: transform .15s ease;
}
.share-option-btn:active { transform: scale(0.93); }
.share-option-btn i { font-size: 1.4rem; }
.share-option-btn span { font-size: 0.72rem; color: rgba(245,241,232,0.75); }

/* -------------------- FORM CONTROL DARK MODE (dropdowns, date pickers) --------------------
   Browsers render <select> popups and date pickers using OS/browser defaults
   (usually a bright white background) unless explicitly told otherwise — this
   was causing the dropdown to flash to a jarring light background when opened.
   !important is deliberate — Chrome/Edge otherwise let the OS theme win for
   parts of the native <option> popup, causing a half-white/half-dark list. */
select, input[type="date"] {
    color-scheme: dark;
    background-color: rgba(255,255,255,0.04) !important;
    color: #FFFFFF !important;
}
select option {
    background-color: #111111 !important;
    color: #F5F1E8 !important;
}
select option:hover,
select option:checked,
select option:focus {
    background-color: #C9A227 !important;
    color: #1a1400 !important;
}

/* -------------------- REWARDED AD: "FINDING AD" SEARCH ANIMATION -------------------- */
.ad-search-anim {
    position: relative;
    width: 64px; height: 64px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.ad-search-ring {
    position: absolute; inset: 0;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0;
    animation: adSearchPing 1.8s cubic-bezier(0.2, 0.7, 0.4, 1) infinite;
}
.ad-search-ring-2 { animation-delay: 0.9s; }
@keyframes adSearchPing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
.ad-search-icon {
    position: relative; z-index: 1;
    font-size: 1.5rem; color: var(--gold-light);
    animation: adSearchBounce 1.4s ease-in-out infinite;
}
@keyframes adSearchBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.08); }
}
.ad-search-dots span {
    display: inline-block;
    animation: adSearchDot 1.4s ease-in-out infinite;
    opacity: 0.3;
}
.ad-search-dots span:nth-child(2) { animation-delay: 0.2s; }
.ad-search-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes adSearchDot {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}
