/* ========================================
   CLICK E WIN — Design System
   Tema: Vermelho + Preto
======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #0a0808;
    --bg-card:     #120d0d;
    --bg-elevated: #1a1313;
    --border:      #2a1c1c;
    --border-light:#3a2626;
    --accent:      #8f232b;
    --accent-h:    #a92e37;
    --accent-2:    #d9a53d;
    --accent-dim:  rgba(143, 35, 43, 0.16);
    --accent-glow: rgba(143, 35, 43, 0.35);
    --gold:        #d9a53d;
    --gold-dim:    rgba(217, 165, 61, 0.14);
    --text:        #f1ecea;
    --text-muted:  #9c8b8b;
    --text-dim:    #574545;
    --radius:      14px;
    --radius-sm:   10px;
    --radius-lg:   20px;
    --shadow:      0 8px 32px rgba(0,0,0,0.6);
    --shadow-sm:   0 2px 12px rgba(0,0,0,0.45);
}

html, body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ========================================
   NAVBAR
======================================== */
.cw-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 5, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: 62px;
}
.cw-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.cw-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.3px;
}
.cw-nav-brand .dot { color: var(--gold); }
.cw-nav-right { display: flex; align-items: center; gap: 18px; }
.cw-nav-link { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cw-nav-link:hover, .cw-nav-link.active { color: var(--text); }
.cw-nav-saldo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}
.cw-nav-saldo-label { font-size: 10px; color: var(--text-muted); font-weight: 700; letter-spacing: .04em; }
.cw-nav-saldo-value { font-size: 15px; font-weight: 800; color: var(--gold); }
.cw-nav-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-h), var(--accent));
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    color: #fff !important;
}

/* ========================================
   LAYOUT
======================================== */
.cw-page-body {
    padding-top: 62px;
    min-height: 100vh;
    background: var(--bg);
}
.cw-content {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.cw-content-wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

.cw-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.cw-card-header { margin-bottom: 24px; text-align: center; }
.cw-card-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.cw-card-header p { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* ========================================
   HERO / LANDING
======================================== */
.cw-hero {
    padding: 120px 20px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(143,35,43,0.16), transparent 60%),
        var(--bg);
}
.cw-hero h1 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.cw-hero h1 span {
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cw-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.cw-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   BOTÕES
======================================== */
.cw-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-h), var(--accent)) !important;
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    text-align: center;
    letter-spacing: .01em;
}
.cw-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.cw-btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.cw-btn-outline {
    padding: 14px 24px;
    background: transparent;
    color: var(--text) !important;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.cw-btn-outline:hover { border-color: var(--accent); }

/* ========================================
   FORMULÁRIOS
======================================== */
.cw-field { margin-bottom: 18px; }
.cw-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.cw-field input, .cw-field select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    padding: 13px 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
}
.cw-field input:focus, .cw-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Campo com ícone à esquerda (estilo depósito) */
.cw-field-icon { position: relative; }
.cw-field-icon .icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .8;
    pointer-events: none;
}
.cw-field-icon input { padding-left: 42px; }

/* ========================================
   ALERTAS
======================================== */
.cw-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}
.cw-alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ff6b6b; }
.cw-alert-success { background: rgba(245,184,32,0.12); border: 1px solid rgba(245,184,32,0.35); color: var(--gold); }

.cw-saldo-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(200,30,44,0.35);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 auto 24px;
    width: fit-content;
}

/* ========================================
   BANNER PROMOCIONAL (topo do catálogo / depósito)
======================================== */
.cw-promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1c0f0f 0%, #2b1414 60%, #1c0f0f 100%);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: center;
}
.cw-promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(217,165,61,0.08), transparent 45%);
    pointer-events: none;
}
.cw-promo-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a0507;
    background: var(--gold);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.cw-promo-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    margin-bottom: 4px;
}
.cw-promo-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* ========================================
   CATÁLOGO DE JOGOS
======================================== */
.cw-jogos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cw-jogo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform .15s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.cw-jogo-card.ativo:hover { transform: translateY(-4px); border-color: var(--gold); cursor: pointer; }
.cw-jogo-card.em-breve { opacity: .6; }
.cw-jogo-capa {
    position: relative;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(217,165,61,0.16), transparent 65%),
        linear-gradient(160deg, #241010, #140b0b);
    border-bottom: 1px solid var(--border);
}
.cw-jogo-capa::before {
    /* padrão decorativo sutil (diagonais), sem depender de nenhuma imagem externa */
    content: "";
    position: absolute;
    inset: -20%;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 18px);
    pointer-events: none;
}
.cw-jogo-capa-icone {
    position: relative;
    z-index: 1;
    font-size: 54px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
    transition: transform .2s;
}
.cw-jogo-card.ativo:hover .cw-jogo-capa-icone { transform: scale(1.08) rotate(-3deg); }
.cw-jogo-capa img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

/* Sotaque de cor por jogo — só CSS, sem arte de terceiros */
.cw-jogo-capa-subway-surf { background: radial-gradient(ellipse at 50% 0%, rgba(217,165,61,0.20), transparent 65%), linear-gradient(160deg, #123024, #140b0b); }
.cw-jogo-capa-helix-jump { background: radial-gradient(ellipse at 50% 0%, rgba(217,165,61,0.20), transparent 65%), linear-gradient(160deg, #2a1608, #140b0b); }

.cw-jogo-info { padding: 16px; }
.cw-jogo-nome { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.cw-jogo-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.cw-jogo-badge {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}
.cw-jogo-badge.ativo { background: var(--gold); color: #1a0507; }
.cw-jogo-badge.em-breve { background: rgba(0,0,0,0.55); color: var(--text-muted); backdrop-filter: blur(2px); }

/* ========================================
   VALORES RÁPIDOS COM SELO DE BÔNUS (depósito)
======================================== */
.cw-amt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.cw-amt-btn {
    position: relative;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    color: var(--text);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}
.cw-amt-btn:hover { border-color: var(--gold); }
.cw-amt-badge {
    position: absolute;
    top: -10px; right: -6px;
    background: var(--gold);
    color: #1a0507;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.cw-rollover-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.cw-rollover-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.cw-rollover-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.cw-rw-bar-bg { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.cw-rw-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; }
.cw-rw-nums { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ========================================
   TELA DE APOSTA (inicio de partida)
======================================== */
.cw-bet-card { text-align: center; border-color: var(--border-light); }
.cw-bet-icon {
    width: 84px; height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    background: radial-gradient(circle at 35% 30%, #3a2010, #1a0e08);
    border: 2px solid var(--gold);
    box-shadow: 0 0 24px rgba(217,165,61,0.25);
}
.cw-bet-title { font-size: 24px; font-weight: 900; letter-spacing: -.3px; margin-bottom: 6px; }
.cw-bet-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.cw-bet-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    text-align: left;
}
.cw-bet-label { display: block; font-size: 13px; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; }
.cw-bet-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    outline: none;
}
.cw-bet-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.cw-bet-meta { text-align: center; font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 12px; }
.cw-online-pill {
    display: inline-block;
    margin-top: 18px;
    background: var(--gold);
    color: #1a0507;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

/* ========================================
   MODAL DE LOGIN/CADASTRO
======================================== */
.cw-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cw-modal-overlay.show { display: flex; }
.cw-modal-box {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 26px 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.cw-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.cw-modal-brand {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--gold);
}
.cw-modal-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}
.cw-modal-switch a { color: var(--gold); font-weight: 700; }

/* ========================================
   MOBILE
======================================== */
@media (max-width: 640px) {
    .cw-card { padding: 24px 18px; }
    .cw-hero { padding: 100px 16px 40px; }
    .cw-hero h1 { font-size: 32px; }
    .cw-amt-grid { grid-template-columns: repeat(2, 1fr); }
}
