/* ============================================
   POKER CLUB — Casino Modern Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #141428;
    --bg-card-hover: #1a1a35;
    --bg-elevated: #1c1c3a;
    --gold: #d4a843;
    --gold-light: #f0d78c;
    --gold-dark: #a6852e;
    --gold-glow: rgba(212, 168, 67, 0.3);
    --red: #e63946;
    --red-glow: rgba(230, 57, 70, 0.3);
    --green: #2ec4b6;
    --green-glow: rgba(46, 196, 182, 0.3);
    --blue: #4361ee;
    --purple: #7209b7;
    --text-primary: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #5a5a78;
    --border-subtle: rgba(255,255,255,0.06);
    --border-gold: rgba(212,168,67,0.2);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --section-padding: 120px;
    --container-width: 1280px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select {
    font-family: var(--font-body);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
    width: 100%;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); }
::selection { background: var(--gold); color: var(--bg-primary); }

/* === BACKGROUND EFFECTS === */
.bg-effects {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}
.gradient-orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--purple), transparent 70%); top: -200px; right: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--gold-dark), transparent 70%); bottom: -150px; left: -100px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, var(--blue), transparent 70%); top: 50%; left: 50%; animation-delay: -14s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(50px,-30px) scale(1.1); }
    50% { transform: translate(-20px,50px) scale(0.95); }
    75% { transform: translate(-40px,-20px) scale(1.05); }
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.particles { position: absolute; inset: 0; }
.particle {
    position: absolute; width: 2px; height: 2px;
    background: var(--gold); border-radius: 50%; opacity: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* === NAVIGATION === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 72px;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease-out-expo);
}
.navbar.scrolled { background: rgba(10,10,15,0.95); border-bottom-color: var(--border-gold); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px; font-size: 20px; color: var(--bg-primary); font-weight: 900;
    box-shadow: 0 0 20px var(--gold-glow);
}
.logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; }
.logo-text .accent { color: var(--gold); }
.nav-links { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); transition: all 0.3s var(--ease-out-expo);
    position: relative;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Player info in nav */
.player-info { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid var(--border-subtle); }
.player-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--bg-primary); }
.player-details { display: flex; flex-direction: column; }
.player-name { font-weight: 600; font-size: 0.85rem; }
.player-chips { font-size: 0.75rem; color: var(--gold); font-weight: 500; }

/* Mobile menu */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(10,10,15,0.98); backdrop-filter: blur(20px); padding: 20px; border-bottom: 1px solid var(--border-subtle); }
}

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s var(--ease-out-expo); position: relative; overflow: hidden; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-hero {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--gold-glow); }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-danger { background: rgba(230,57,70,0.15); color: var(--red); border: 1px solid rgba(230,57,70,0.3); }
.btn-danger:hover { background: rgba(230,57,70,0.25); }
.btn-primary-glow {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}
.btn-primary-glow:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--gold-glow); }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--bg-primary); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* === MODAL === */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border-gold);
    border-radius: 20px; max-width: 500px; width: 100%;
    padding: 32px; position: relative;
    animation: modalIn 0.3s var(--ease-out-expo);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    font-size: 1.2rem; transition: 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* === TOAST === */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 14px 24px; border-radius: 12px; font-size: 0.9rem;
    backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: slideIn 0.3s var(--ease-out-expo); transition: opacity 0.3s;
    min-width: 250px;
}
.toast-info { background: rgba(67,97,238,0.2); border: 1px solid rgba(67,97,238,0.3); color: #8ab4f8; }
.toast-success { background: rgba(46,196,182,0.2); border: 1px solid rgba(46,196,182,0.3); color: var(--green); }
.toast-error { background: rgba(230,57,70,0.2); border: 1px solid rgba(230,57,70,0.3); color: var(--red); }
.toast-warning { background: rgba(212,168,67,0.2); border: 1px solid rgba(212,168,67,0.3); color: var(--gold); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* === LOADING === */
.loading-spinner {
    width: 24px; height: 24px; border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px; gap: 16px; color: var(--text-muted);
}
.loading-screen .loading-spinner { width: 40px; height: 40px; border-width: 3px; }

/* === CARDS === */
.card {
    width: 72px; height: 100px; border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700;
    position: relative; flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
    user-select: none;
}
.card.card-sm { width: 56px; height: 78px; }
.card-back {
    background: linear-gradient(135deg, #1a1a3a, #2a1a5a);
    border: 2px solid var(--gold);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(212,168,67,0.05) 5px, rgba(212,168,67,0.05) 10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.card-back::after {
    content: '♠'; font-size: 1.5rem; color: var(--gold); opacity: 0.5;
}
.card-front {
    background: linear-gradient(135deg, #f8f8fa 0%, #eeeef0 100%);
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    justify-content: flex-start;
    padding-top: 8px;
}
.card-front .card-rank { font-size: 1.1rem; line-height: 1; }
.card-front .card-suit { font-size: 0.9rem; line-height: 1; margin-top: 2px; }
.card-front .card-corner-br {
    position: absolute; bottom: 6px; right: 6px;
    font-size: 0.65rem; line-height: 1;
}
.card-front.red { color: #d32f2f; }
.card-front.black { color: #1a1a1a; }

/* === FORM STYLES === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.form-error { font-size: 0.85rem; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* === BADGE === */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.badge-gold { background: rgba(212,168,67,0.15); color: var(--gold); border: 1px solid rgba(212,168,67,0.3); }
.badge-green { background: rgba(46,196,182,0.15); color: var(--green); border: 1px solid rgba(46,196,182,0.3); }
.badge-red { background: rgba(230,57,70,0.15); color: var(--red); border: 1px solid rgba(230,57,70,0.3); }

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    :root { --section-padding: 60px; }
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 40px 80px; position: relative; gap: 60px;
    max-width: var(--container-width); margin: 0 auto;
}
.hero-content { flex: 1; max-width: 600px; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px; border-radius: 50px;
    background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.2);
    font-size: 0.85rem; color: var(--gold); margin-bottom: 24px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-title .gradient-text { font-size: 4.5rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); display: block; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Floating cards */
.hero-visual { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.hero-glow {
    position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,168,67,0.15), transparent 70%);
    border-radius: 50%; animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 1; } }
.floating-cards { position: relative; width: 300px; height: 400px; }
.floating-card {
    position: absolute; width: 90px; height: 130px;
    background: linear-gradient(135deg, #fff, #f0f0f5);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 40px rgba(212,168,67,0.1);
    animation: cardFloat 8s ease-in-out infinite;
    left: 50%; top: 50%;
}
.floating-card:nth-child(1) { transform: translate(-120%, -80%) rotate(-15deg); animation-delay: 0s; }
.floating-card:nth-child(2) { transform: translate(20%, -60%) rotate(8deg); animation-delay: 1s; color: #d32f2f; }
.floating-card:nth-child(3) { transform: translate(-80%, 40%) rotate(-5deg); animation-delay: 2s; }
.floating-card:nth-child(4) { transform: translate(40%, 60%) rotate(12deg); animation-delay: 3s; color: #d32f2f; }
.floating-card:nth-child(5) { transform: translate(-10%, -100%) rotate(-20deg); animation-delay: 0.5s; }
@keyframes cardFloat { 0%,100% { transform: var(--tx, translate(0,0)) rotate(var(--r, 0deg)) translateY(0); } 50% { transform: var(--tx, translate(0,0)) rotate(var(--r, 0deg)) translateY(-15px); } }
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-title .gradient-text { font-size: 2.8rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-visual { min-height: 250px; }
    .floating-card { width: 70px; height: 100px; font-size: 1.2rem; }
}

/* === FEATURES SECTION === */
.features { padding: var(--section-padding) 40px; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-badge { display: inline-block; padding: 6px 16px; border-radius: 50px; background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.2); font-size: 0.85rem; color: var(--gold); margin-bottom: 16px; }
.section-header h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--container-width); margin: 0 auto; }
.feature-card {
    padding: 32px; background: var(--bg-card); border-radius: 16px;
    border: 1px solid var(--border-subtle); transition: all 0.4s var(--ease-out-expo);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* === HOW TO PLAY === */
.how-to-play { padding: var(--section-padding) 40px; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 800px; margin: 0 auto; }
.step { text-align: center; flex: 1; padding: 0 20px; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary); font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    box-shadow: 0 0 20px var(--gold-glow);
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.step-connector {
    flex: 0 0 60px; height: 2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    margin-top: 28px; border-radius: 2px;
}
@media (max-width: 700px) { .steps { flex-direction: column; align-items: center; gap: 24px; } .step-connector { width: 2px; height: 40px; flex: 0 0 auto; } }

/* === CTA SECTION === */
.cta-section { padding: 60px 40px var(--section-padding); }
.cta-card {
    max-width: 700px; margin: 0 auto; text-align: center;
    padding: 60px 40px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.02));
    border: 1px solid var(--border-gold);
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(212,168,67,0.05), transparent 50%);
    animation: rotateGlow 20s linear infinite;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cta-card h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 16px; position: relative; }
.cta-card p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; position: relative; }
.cta-card .btn { position: relative; }

/* === FOOTER === */
.page-footer {
    text-align: center; padding: 40px 20px;
    color: var(--text-muted); font-size: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}
.page-footer span { color: var(--gold); }