/* ================================================================
   FAKE CASINO — Main Stylesheet
   Theme: Dark Luxury Casino
   Palette: #0a0a0f (bg) · #1a1a2e (card) · #c9a84c (gold) · #e8d5a3 (gold-light)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #0a0a0f;
    --bg-card:      #12121a;
    --bg-elevated:  #1a1a2e;
    --gold:         #c9a84c;
    --gold-light:   #e8d5a3;
    --gold-dark:    #9a7a2e;
    --text:         #e8e8f0;
    --text-muted:   #7a7a9a;
    --danger:       #e05252;
    --success:      #52c07a;
    --border:       rgba(201, 168, 76, 0.2);
    --radius:       12px;
    --shadow:       0 8px 40px rgba(0,0,0,0.6);
    --glow-gold:    0 0 30px rgba(201,168,76,0.25);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, .brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.04em;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.navbar .brand {
    font-size: 1.4rem;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .brand .crown { font-size: 1.6rem; }

.navbar-links { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,168,76,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}
.btn-outline:hover {
    background: rgba(201,168,76,0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 50%, rgba(100,60,200,0.06) 0%, transparent 60%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    width: 100%;
    padding: 60px 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.12);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ── Cards / Glass ─────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-gold);
}

/* ── Features Section ──────────────────────────────────────────── */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Auth Forms ────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    background:
        radial-gradient(ellipse 60% 50% at 30% 30%, rgba(201,168,76,0.06) 0%, transparent 60%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .brand {
    font-size: 1.6rem;
    color: var(--gold);
    text-decoration: none;
}
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.auth-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 28px;
    color: var(--gold-light);
}

/* ── Form Fields ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-input::placeholder { color: var(--text-muted); }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-error {
    background: rgba(224,82,82,0.12);
    border: 1px solid rgba(224,82,82,0.3);
    color: #ff8585;
}
.alert-success {
    background: rgba(82,192,122,0.12);
    border: 1px solid rgba(82,192,122,0.3);
    color: #7de8a3;
}

/* ── Auth footer link ──────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-footer a { color: var(--gold); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Divider ───────────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer a { color: var(--gold); text-decoration: none; }

/* ── Spinner ───────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .navbar { padding: 14px 20px; }
    .hero-stats { gap: 28px; }
    .auth-card { padding: 28px 20px; }
}
