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

:root {
    --bg: #08090c;
    --panel: #0f1115;
    --card: #161920;
    --border: #1f232b;
    --border-soft: #232832;
    --text: #ffffff;
    --muted: #8892a0;
    --muted-2: #4a5565;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --green: #22c55e;
    --red: #ef4444;
    --purple: #8250dc;
    --orange: #eb6425;
}

html, body {
    min-height: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    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: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Layout geral ---------- */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---------- Música ---------- */
.music-toggle {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 900;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}
.music-toggle:hover { border-color: var(--blue); color: var(--blue); }
.music-toggle.playing { border-color: var(--green); color: var(--green); }

#yt-player-audio {
    position: fixed;
    width: 1px; height: 1px;
    bottom: 0; right: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* ---------- Hero / marketing ---------- */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}
.hero-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 12vw, 96px);
    line-height: .85;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-logo span {
    display: block;
    color: var(--muted);
    font-size: clamp(36px, 8vw, 56px);
}
.hero-sub {
    color: var(--muted);
    max-width: 560px;
    margin: 20px auto 0;
    font-size: 14px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border-color: var(--border-soft);
    color: var(--muted);
}
.btn-outline:hover { border-color: var(--muted); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Vídeo ---------- */
.video-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 48px auto 0;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}
.video-box iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
    pointer-events: none;
}

/* ---------- Marketing grids ---------- */
.features {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}
.feature h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.feature p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- Auth ---------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
}
.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 26px;
    box-shadow: 0 25px 60px rgba(0,0,0,.8);
}
.auth-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    line-height: .85;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.auth-logo span { display: block; font-size: 30px; color: var(--muted); }
.auth-title {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 14px 0 22px;
}
.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    padding: 13px 14px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: all .2s;
}
.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--red); }
.alert-ok { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--green); }
.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted);
}
.auth-footer a { color: var(--blue); }

/* ---------- Dashboard layout ---------- */
.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.sidebar {
    width: 240px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    line-height: .9;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 8px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.sidebar-logo span { display: block; font-size: 20px; color: var(--muted); }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: all .15s;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active {
    background: rgba(37,99,235,.12);
    color: var(--blue);
    border-color: rgba(37,99,235,.25);
}
.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.main {
    flex: 1;
    padding: 28px;
    min-width: 0;
}
.main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}
.main-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.user-chip .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}
.stat-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
}
.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 1px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* ---------- Cartão visual ---------- */
.cc-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.586/1;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2e 0%, #0a0d14 100%);
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 30px rgba(0,0,0,.6);
    margin: 0 auto;
}
.cc-card::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 80%; height: 180%;
    background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 60%);
    pointer-events: none;
}
.cc-card.mastercard { background: linear-gradient(135deg, #2a1810 0%, #0a0d14 100%); }
.cc-card.mastercard::before { background: radial-gradient(circle, rgba(235,100,37,.18) 0%, transparent 60%); }
.cc-card.nubank { background: linear-gradient(135deg, #2a1a4a 0%, #0a0d14 100%); }
.cc-card.nubank::before { background: radial-gradient(circle, rgba(130,80,220,.22) 0%, transparent 60%); }
.cc-card.itau { background: linear-gradient(135deg, #1a1a2a 0%, #0a0d14 100%); }
.cc-card.itau::before { background: radial-gradient(circle, rgba(255,140,0,.2) 0%, transparent 60%); }
.cc-card.bradesco { background: linear-gradient(135deg, #2a1010 0%, #0a0d14 100%); }
.cc-card.bradesco::before { background: radial-gradient(circle, rgba(220,40,60,.2) 0%, transparent 60%); }
.cc-card.santander { background: linear-gradient(135deg, #2a1010 0%, #0a0d14 100%); }
.cc-card.santander::before { background: radial-gradient(circle, rgba(220,40,60,.18) 0%, transparent 60%); }

.cc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.cc-chip {
    width: 42px; height: 32px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 50%, #d4af37 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 0 4px rgba(0,0,0,.3);
}
.cc-chip::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: 3px;
}
.cc-brand { height: 32px; display: flex; align-items: center; }
.cc-brand img { height: 100%; width: auto; max-width: 65px; object-fit: contain; }
.cc-brand img.visa { background: #fff; padding: 3px 6px; border-radius: 4px; }

.cc-number {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    word-spacing: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}
.cc-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; gap: 8px; }
.cc-label {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.cc-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
}
.cc-row { display: flex; gap: 20px; }

/* ---------- Tabelas / listas ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.info-item {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 12px;
}
.info-item .cc-label { margin-bottom: 6px; }
.info-item .cc-value { font-size: 13px; }

.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.consult-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.consult-input input {
    flex: 1;
    min-width: 200px;
    padding: 13px 14px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    outline: none;
}
.consult-input input:focus { border-color: var(--blue); }

.result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--card);
}
.result.ok { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.05); }
.result.fail { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.05); }
.result-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.result.ok .result-title { color: var(--green); }
.result.fail .result-title { color: var(--red); }

.hist { display: flex; flex-direction: column; gap: 8px; }
.hist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}
.hist-item .num { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: 1px; }
.hist-item .meta { color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tag.visa { background: rgba(37,99,235,.15); color: var(--blue); }
.tag.mastercard { background: rgba(235,100,37,.15); color: var(--orange); }
.tag.nubank { background: rgba(130,80,220,.15); color: var(--purple); }
.tag.itau { background: rgba(255,140,0,.15); color: #ff8c00; }
.tag.bradesco { background: rgba(220,40,60,.15); color: #dc283c; }
.tag.santander { background: rgba(220,40,60,.15); color: #dc283c; }

.empty {
    text-align: center;
    color: var(--muted-2);
    padding: 32px 16px;
    font-size: 13px;
}

select {
    width: 100%;
    padding: 13px 14px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform .25s;
        box-shadow: 0 0 40px rgba(0,0,0,.8);
    }
    .sidebar.open { transform: translateX(0); }
    .main { padding: 20px 16px; }
    .menu-toggle { display: flex !important; }
    .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99; }
    .overlay.show { display: block; }
}
.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}
