/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:         #0d0d1a;
    --surface:    #14142b;
    --surface2:   #1e1e3f;
    --border:     #2a2a5a;
    --primary:    #7c3aed;
    --primary-h:  #9461ff;
    --accent:     #f59e0b;
    --green:      #10b981;
    --red:        #ef4444;
    --text:       #e2e8f0;
    --text-muted: #94a3b8;
    --btc:        #f7931a;
    --xmr:        #ff6600;
    --eth:        #627eea;
    --radius:     12px;
    --shadow:     0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; padding: 2rem 1rem; }
a { color: var(--primary-h); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAVBAR === */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: .5rem;
}
.logo { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; }
.logo-lotto  { color: var(--primary-h); }
.logo-monero { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-weight: 600; letter-spacing: .05em; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-auth { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.balance { color: var(--accent); font-weight: 700; }
.username { color: var(--text-muted); font-size: .9rem; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    border-radius: var(--radius);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: .05em;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-h); }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover  { border-color: var(--primary); color: var(--primary-h); }
.btn-danger   { background: var(--red); color: #fff; }
.btn-danger:hover   { background: #dc2626; }
.btn-disabled { background: var(--surface2); color: var(--text-muted); cursor: not-allowed; }
.btn-sm  { padding: .35rem .9rem; font-size: .85rem; }
.btn-lg  { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; display: block; }

/* === ALERTS === */
.alert {
    padding: .85rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 600;
}
.alert-success { background: rgba(16,185,129,.15); border: 1px solid var(--green); color: var(--green); }
.alert-error   { background: rgba(239,68,68,.15);  border: 1px solid var(--red);   color: var(--red); }

/* === HERO === */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 4rem 2rem;
}
.hero-content { max-width: 500px; }
.hero-content h1 { font-family: 'Orbitron', monospace; font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
.highlight { color: var(--accent); }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-numbers { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; max-width: 320px; }
.demo-ball {
    width: 52px; height: 52px;
    background: var(--surface2);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700; font-size: 1.1rem;
    color: var(--primary-h);
    transition: all .3s;
}
.demo-ball:hover { border-color: var(--primary); background: var(--primary); color: #fff; transform: scale(1.1); }

/* === FEATURES === */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-family: 'Orbitron', monospace; font-size: 1rem; margin-bottom: .5rem; color: var(--accent); }
.feature-card p  { color: var(--text-muted); font-size: .95rem; }

/* === PRIZE TABLE === */
.prize-table-section { max-width: 600px; margin: 0 auto 4rem; padding: 0 2rem; text-align: center; }
.prize-table-section h2 { font-family: 'Orbitron', monospace; margin-bottom: 1.5rem; color: var(--accent); }
.prize-table { width: 100%; border-collapse: collapse; }
.prize-table th, .prize-table td { padding: .85rem 1rem; border: 1px solid var(--border); }
.prize-table thead { background: var(--surface2); font-family: 'Orbitron', monospace; font-size: .85rem; }
.prize-table tbody tr:hover { background: var(--surface); }
.prize { color: var(--green); font-weight: 700; }
.jackpot-row { background: rgba(245,158,11,.05); }
.jackpot { color: var(--accent) !important; font-size: 1.2rem; }
.bet-note { margin-top: 1rem; color: var(--text-muted); font-size: .9rem; }

/* === AUTH PAGES === */
.auth-container { display: flex; justify-content: center; align-items: flex-start; padding: 2rem; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}
.auth-card h2 {
    font-family: 'Orbitron', monospace;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-align: center;
}
.auth-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; color: var(--text-muted); font-size: .9rem; letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .7rem 1rem;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group select option { background: var(--surface2); }
.form-hint { color: var(--text-muted); font-size: .85rem; }
.auth-footer { text-align: center; color: var(--text-muted); margin-top: 1.2rem; font-size: .95rem; }

/* === PAGE HEADER === */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: 'Orbitron', monospace; font-size: 2rem; color: var(--accent); margin-bottom: .5rem; }
.page-header p  { color: var(--text-muted); }

/* === GAMES GRID === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}
.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: border-color .2s, transform .2s;
}
.game-card.featured { border-color: var(--primary); }
.game-card:hover { transform: translateY(-4px); }
.game-card.coming-soon { opacity: .65; }
.game-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--green); color: #fff;
    padding: .2rem .6rem; border-radius: 20px;
    font-size: .75rem; font-weight: 700;
}
.game-badge.soon { background: var(--text-muted); }
.game-icon { font-size: 3rem; margin-bottom: 1rem; }
.game-card h3 { font-family: 'Orbitron', monospace; color: var(--accent); margin-bottom: .5rem; }
.game-card p  { color: var(--text-muted); margin-bottom: 1.5rem; }
.game-info { display: flex; justify-content: space-between; margin-bottom: 1.5rem; color: var(--text-muted); font-size: .9rem; }

/* === CONTACT === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.5rem; }
.info-item h4 { color: var(--accent); margin-bottom: .25rem; }
.info-item p  { color: var(--text-muted); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }

/* === DEPOSIT PAGE === */
.deposit-container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.balance-card {
    background: linear-gradient(135deg, var(--primary), #4c1d95);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.balance-label { display: block; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.balance-amount { font-family: 'Orbitron', monospace; font-size: 2.5rem; font-weight: 900; color: #fff; }
.deposit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.deposit-form-card,
.rates-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.deposit-form-card h3, .rates-card h3 { font-family: 'Orbitron', monospace; color: var(--accent); margin-bottom: 1.2rem; font-size: .95rem; }
.wallet-address {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .7rem 1rem;
    font-family: monospace;
    font-size: .8rem;
    word-break: break-all;
    color: var(--accent);
}
.rate-row { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.rate-note { color: var(--text-muted); font-size: .8rem; margin-top: .75rem; }
.deposit-row { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; flex-wrap: wrap; }
.empty-note { color: var(--text-muted); font-size: .9rem; }

/* === CRYPTO BADGES === */
.crypto-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.crypto-badge.btc  { background: rgba(247,147,26,.2);  color: var(--btc); border: 1px solid var(--btc); }
.crypto-badge.xmr  { background: rgba(255,102,0,.2);   color: var(--xmr); border: 1px solid var(--xmr); }
.crypto-badge.eth  { background: rgba(98,126,234,.2);  color: var(--eth); border: 1px solid var(--eth); }
.crypto-badge.bnb  { background: rgba(243,186,47,.2);  color: #F3BA2F;    border: 1px solid #F3BA2F; }
.crypto-badge.sol  { background: rgba(153,69,255,.2);  color: #9945FF;    border: 1px solid #9945FF; }
.crypto-badge.doge { background: rgba(194,166,51,.2);  color: #C2A633;    border: 1px solid #C2A633; }
.crypto-badge.ton  { background: rgba(0,136,204,.2);   color: #0088CC;    border: 1px solid #0088CC; }

/* === STATUS BADGES === */
.status-badge { padding: .15rem .5rem; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.status-badge.pending   { background: rgba(245,158,11,.2);  color: var(--accent); }
.status-badge.confirmed { background: rgba(16,185,129,.2);  color: var(--green); }
.status-badge.failed    { background: rgba(239,68,68,.2);   color: var(--red); }

/* === GAME PAGE === */
.game-page { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.game-header { text-align: center; margin-bottom: 2rem; }
.game-header h1 { font-family: 'Orbitron', monospace; color: var(--accent); margin-bottom: .5rem; }
.game-balance { color: var(--text-muted); }

.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.number-label { cursor: pointer; }
.number-label input[type="checkbox"] { display: none; }
.number-btn {
    width: 68px; height: 68px;
    background: var(--surface2);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700; font-size: 1.3rem;
    color: var(--text);
    transition: all .2s;
    cursor: pointer;
    user-select: none;
    margin: 0 auto;
}
.number-label input:checked + .number-btn {
    background: var(--primary);
    border-color: var(--primary-h);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(124,58,237,.5);
}
.number-btn:hover { border-color: var(--primary); }

.selection-info { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.btn-play { display: block; max-width: 300px; margin: 0 auto 2rem; font-family: 'Orbitron', monospace; }
.btn-play:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* === RESULT PANEL === */
.result-panel {
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid;
    text-align: center;
}
.result-panel.win  { border-color: var(--green); background: rgba(16,185,129,.07); }
.result-panel.lose { border-color: var(--red);   background: rgba(239,68,68,.07); }

.result-numbers { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.result-group { text-align: center; }
.result-label { display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; }
.number-row { display: flex; gap: .6rem; justify-content: center; }

.ball {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700; font-size: 1.1rem;
}
.ball.winning { background: var(--surface2); border: 2px solid var(--border); }
.ball.selected { background: rgba(124,58,237,.2); border: 2px solid var(--primary); color: var(--primary-h); }
.ball.matched  { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }

.jackpot-msg { font-family: 'Orbitron', monospace; font-size: 1.4rem; color: var(--accent); }
.win-msg     { font-size: 1.2rem; color: var(--green); font-weight: 700; }
.lose-msg    { font-size: 1.1rem; color: var(--text-muted); }

/* === HISTORY TABLE === */
.history-section { margin-top: 3rem; }
.history-section h3 { font-family: 'Orbitron', monospace; color: var(--accent); margin-bottom: 1rem; }
.history-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.history-table th, .history-table td { padding: .7rem 1rem; border: 1px solid var(--border); text-align: center; }
.history-table thead { background: var(--surface2); }
.row-win  { color: var(--green); }
.row-lose { color: var(--text-muted); }

/* === DISCLAIMER BANNER === */
.disclaimer-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 500;
    background: #1a0a00;
    border-top: 2px solid var(--accent);
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}
.disclaimer-text {
    color: #f5c97a;
    font-size: .88rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.disclaimer-btn {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: .45rem 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
    flex-shrink: 0;
}
.disclaimer-btn:hover { opacity: .85; }

/* === CONSENT CHECKBOX === */
.consent-group { margin-top: .25rem; }
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    cursor: pointer;
    line-height: 1.5;
}
.consent-label input[type="checkbox"] {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: .15rem;
    accent-color: var(--primary);
    cursor: pointer;
}
.consent-label span {
    color: var(--text-muted);
    font-size: .88rem;
}

/* === LEGAL PAGES === */
.legal-page { max-width: 820px; margin: 0 auto; padding: 0 2rem 3rem; }
.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.legal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: .4rem;
}
.legal-updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--primary-h);
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
}
.legal-section h3 { font-size: .95rem; color: var(--text-muted); margin: .75rem 0 .4rem; }
.legal-section p  { color: var(--text-muted); line-height: 1.7; margin-bottom: .6rem; }
.legal-section ul { color: var(--text-muted); padding-left: 1.5rem; line-height: 1.8; }
.legal-section a  { color: var(--primary-h); }

.cookie-table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .9rem; }
.cookie-table th {
    background: var(--surface2);
    padding: .6rem .9rem;
    text-align: left;
    color: var(--text-muted);
    font-size: .8rem;
    letter-spacing: .04em;
    border: 1px solid var(--border);
}
.cookie-table td {
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: top;
    line-height: 1.5;
}
.cookie-table code {
    background: var(--surface2);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .85rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .legal-page { padding: 0 1rem 2rem; }
    .legal-card  { padding: 1.5rem 1.25rem; }
    .legal-title { font-size: 1.4rem; }
    .cookie-table { display: block; overflow-x: auto; }
}

/* === FOOTER === */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}
.footer-brand .logo-lotto  { font-family: 'Orbitron', monospace; font-weight: 900; color: var(--primary-h); font-size: 1.2rem; }
.footer-brand .logo-monero { font-family: 'Orbitron', monospace; font-weight: 900; color: var(--accent);    font-size: 1.2rem; }
.footer-brand p { color: var(--text-muted); margin-top: .5rem; font-size: .9rem; }
.footer-links h4, .footer-crypto h4 { color: var(--accent); margin-bottom: .75rem; font-family: 'Orbitron', monospace; font-size: .85rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-crypto { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: .85rem; border-top: 1px solid var(--border); padding-top: 1rem; max-width: 1100px; margin: 0 auto; }

/* === DEMO SECTION === */
.demo-section {
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}
.demo-wrap {
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(124,58,237,.15);
    position: relative;
}
.demo-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: .25rem .75rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.demo-title { font-family: 'Orbitron', monospace; font-size: 1.3rem; margin-bottom: .5rem; color: var(--accent); }
.demo-sub   { color: var(--text-muted); margin-bottom: 1.75rem; }

.demo-pick-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1rem;
}
.demo-pick-btn {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border);
    color: var(--text);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    display: flex; align-items: center; justify-content: center;
}
.demo-pick-btn:hover:not(:disabled) { border-color: var(--primary); transform: scale(1.08); }
.demo-pick-btn.active {
    background: var(--primary);
    border-color: var(--primary-h);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(124,58,237,.5);
}
.demo-pick-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.demo-pick-info  { color: var(--text-muted); margin-bottom: 1.25rem; font-weight: 600; min-height: 1.4em; }
.demo-spin-btn   { font-family: 'Orbitron', monospace; min-width: 180px; }

/* draw result */
.demo-result-area { margin-top: 1.75rem; }
.demo-draw-label  { color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; letter-spacing: .05em; }
.demo-balls-row   { display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap; margin-bottom: .5rem; }

.demo-result-ball {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
}
@keyframes demoPop {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    65%  { transform: scale(1.18) rotate(6deg);  opacity: 1; }
    100% { transform: scale(1)    rotate(0deg);  opacity: 1; }
}
.demo-result-ball.pop {
    animation: demoPop .45s cubic-bezier(.175,.885,.32,1.275) forwards;
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 0 18px rgba(16,185,129,.5);
}

/* win message */
@keyframes demoSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.demo-win-msg {
    animation: demoSlideUp .5s ease forwards;
    margin-top: 1.5rem;
}
.demo-win-icon   { font-size: 2.5rem; margin-bottom: .25rem; }
.demo-win-amount {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(245,158,11,.4);
}
.demo-win-label { color: var(--green); font-weight: 700; font-size: 1.05rem; margin-top: .25rem; }

/* register CTA */
.demo-reg-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    animation: demoSlideUp .4s ease forwards;
}
.demo-reg-cta p { color: var(--text-muted); }
.demo-reg-cta .btn { min-width: 200px; }

/* === HAMBURGER BUTTON === */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.3rem;
    padding: .3rem .65rem;
    cursor: pointer;
    line-height: 1;
    transition: border-color .2s;
}
.nav-toggle:hover { border-color: var(--primary); }

/* === LANGUAGE SWITCHER === */
.lang-switcher { position: relative; }

.lang-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: .35rem .75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .2s;
    white-space: nowrap;
}
.lang-btn:hover { border-color: var(--primary); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
}
.lang-dropdown.open { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    color: var(--text-muted);
    font-size: .9rem;
    transition: background .15s;
    text-decoration: none;
}
.lang-option:hover        { background: var(--surface2); color: var(--text); text-decoration: none; }
.lang-option.active       { color: var(--primary-h); background: rgba(124,58,237,.1); }

/* Close dropdown on outside click */
/* (handled by JS in game.js) */

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* --- Navbar / hamburger --- */
    .navbar {
        flex-wrap: wrap;
        padding: .75rem 1rem;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }
    .nav-toggle { display: block; }

    .nav-links,
    .nav-auth {
        display: none;
        width: 100%;
        margin-top: .5rem;
        padding-top: .5rem;
        border-top: 1px solid var(--border);
    }
    .navbar.nav-open .nav-links { display: flex; }
    .navbar.nav-open .nav-auth  { display: flex; }

    .nav-links {
        flex-direction: column;
        gap: .1rem;
    }
    .nav-links li a {
        display: block;
        padding: .45rem .25rem;
    }
    .nav-auth {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem;
        padding-bottom: .5rem;
    }
    .nav-auth .btn { width: 100%; text-align: center; }
    .nav-auth .balance,
    .nav-auth .username { padding: .2rem 0; }

    /* --- Main padding --- */
    main { padding: 1.5rem .75rem; }

    /* --- Hero --- */
    .hero { flex-direction: column; text-align: center; padding: 2rem 1rem; gap: 2rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-cta { justify-content: center; }
    .hero-numbers { max-width: 100%; }

    /* --- Page header --- */
    .page-header h1 { font-size: 1.5rem; }

    /* --- Auth card --- */
    .auth-container { padding: 1rem; }
    .auth-card { padding: 1.75rem 1.25rem; }

    /* --- Balance card --- */
    .balance-amount { font-size: 1.8rem; }

    /* --- Grids --- */
    .contact-container { grid-template-columns: 1fr; padding: 0 1rem; }
    .deposit-container  { padding: 0 1rem; }
    .deposit-grid { grid-template-columns: 1fr; }
    .games-grid   { padding: 0 1rem; }
    .features     { padding: 0 1rem; }
    .prize-table-section { padding: 0 1rem; overflow-x: auto; }

    /* --- Number grid (lotto) --- */
    .game-page { padding: 0 1rem; }
    .number-grid { gap: .5rem; }
    .number-btn  { width: 54px; height: 54px; font-size: 1.1rem; }

    /* --- Result balls --- */
    .ball { width: 46px; height: 46px; font-size: 1rem; }
    .result-numbers { gap: 1.5rem; }

    /* --- Demo section --- */
    .demo-section { padding: 0 1rem; }
    .demo-wrap    { padding: 1.75rem 1.25rem; }
    .demo-title   { font-size: 1.1rem; }
    .demo-pick-btn { width: 50px; height: 50px; font-size: 1rem; }
    .demo-result-ball { width: 52px; height: 52px; font-size: 1.1rem; }
    .demo-win-amount  { font-size: 2.2rem; }

    /* --- History table scroll --- */
    .history-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .history-table   { min-width: 520px; }

    /* --- Footer --- */
    footer { padding: 2rem 1rem 1rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.4rem; }
    .page-header h1  { font-size: 1.3rem; }
    .balance-amount  { font-size: 1.5rem; }
    .auth-card       { padding: 1.25rem 1rem; }
    .btn-lg          { padding: .7rem 1.5rem; font-size: 1rem; }
    .demo-ball       { width: 44px; height: 44px; font-size: .95rem; }

    /* Lotto küçük ekran */
    .number-btn { width: 46px; height: 46px; font-size: .95rem; }
    .ball        { width: 40px; height: 40px; font-size: .85rem; }
    .number-row  { gap: .4rem; }

    /* Prize table */
    .prize-table th,
    .prize-table td { padding: .6rem .5rem; font-size: .85rem; }
}

/* ═══════════════════════════════════════════════════════════
   PROVABLY FAIR — Anasayfa bölümü
   ═══════════════════════════════════════════════════════════ */
.provably-fair-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}
.pf-badge-row { margin-bottom: 2rem; }
.pf-badge-row .pf-badge-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.pf-badge-row h2 { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; color: var(--text); margin-bottom: .5rem; }
.pf-badge-row p  { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.pf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.pf-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: border-color .2s;
}
.pf-card:hover { border-color: var(--primary); }
.pf-card-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.pf-card h4   { font-size: 1rem; margin-bottom: .5rem; color: var(--text); }
.pf-card p    { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════
   PROVABLY FAIR — Oyun sonuç paneli
   ═══════════════════════════════════════════════════════════ */
.provably-fair-info {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.pf-label       { font-weight: 600; color: var(--primary-h); font-size: .9rem; }
.pf-hash        { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.pf-seed        { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.pf-hash-label  { font-size: .78rem; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
.pf-hash-val    { font-size: .72rem; font-family: monospace; color: var(--accent); word-break: break-all; }
.pf-verify-link { font-size: .82rem; color: var(--primary-h); text-decoration: none; margin-top: .25rem; }
.pf-verify-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   PROVABLY FAIR — Fairness sayfası
   ═══════════════════════════════════════════════════════════ */
.fair-section { max-width: 1000px; margin: 3rem auto; padding: 0 1.5rem; }
.fair-heading  { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; color: var(--text); margin-bottom: 1.5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }

.fair-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.fair-step  { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.fair-step-num { min-width: 2.2rem; height: 2.2rem; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.fair-step h4 { margin-bottom: .4rem; font-size: 1rem; }
.fair-step p  { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

.fair-algo-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; font-family: monospace; font-size: .85rem; }
.fair-algo-line { margin-bottom: .4rem; word-break: break-all; }
.fair-kw  { color: var(--primary-h); font-weight: 700; }
.fair-val { color: var(--text-muted); }
.fair-algo-hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.fair-algo-example { margin-bottom: .75rem; opacity: .7; font-size: .8rem; }
.fair-note { margin-top: 1rem; color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

.fair-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .fair-verify-grid { grid-template-columns: 1fr; } }

