:root {
    --bg: #030817;
    --bg-soft: #071226;
    --panel: rgba(8, 20, 42, .94);
    --panel-2: rgba(10, 28, 56, .9);
    --line: rgba(103, 151, 218, .24);
    --line-strong: rgba(27, 132, 255, .6);
    --text: #f4f8ff;
    --muted: #91a4c5;
    --blue: #1385ff;
    --blue-2: #0058ff;
    --lime: #8fff00;
    --green: #21dc77;
    --yellow: #ffd84a;
    --red: #ff414f;
    --orange: #ff8a24;
    --shadow: 0 22px 70px rgba(0, 0, 0, .34);
    --radius: 16px;
    --radius-sm: 11px;
    --sidebar-width: 260px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 5%, rgba(0, 100, 255, .14), transparent 25rem),
        radial-gradient(circle at 10% 95%, rgba(143, 255, 0, .08), transparent 26rem),
        linear-gradient(145deg, #020611 0%, #051024 52%, #020817 100%);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, #000, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
svg.icon { width: 21px; height: 21px; flex: 0 0 auto; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050b18; }
::-webkit-scrollbar-thumb { background: #1b365d; border-radius: 999px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    background: linear-gradient(180deg, rgba(2, 9, 23, .99), rgba(3, 12, 28, .96));
    border-right: 1px solid var(--line);
    z-index: 40;
    transition: transform .25s ease;
}
.brand { height: 90px; display: grid; place-items: center; overflow: hidden; }
.brand img { width: 215px; max-width: none; mix-blend-mode: screen; }
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    margin: 8px 0 18px;
    border: 1px solid var(--line);
    background: rgba(9, 26, 52, .65);
    border-radius: var(--radius-sm);
}
.sidebar-user > div { min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user strong { font-size: .9rem; }
.sidebar-user small { color: var(--green); margin-top: 3px; font-size: .72rem; }
.avatar {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #194eb6, #071735);
    border: 1px solid rgba(109, 156, 255, .5);
    font-weight: 800;
    font-size: .82rem;
}
.avatar--small { width: 34px; height: 34px; }
.sidebar-nav { display: grid; gap: 6px; }
.nav-link {
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    color: #b5c2db;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: .18s ease;
}
.nav-link:hover { color: #fff; background: rgba(18, 70, 140, .18); }
.nav-link.is-active {
    color: #fff;
    border-color: rgba(0, 132, 255, .7);
    background: linear-gradient(90deg, rgba(0, 94, 255, .35), rgba(4, 30, 67, .55));
    box-shadow: inset 3px 0 0 var(--blue), 0 0 26px rgba(0, 100, 255, .12);
}
.nav-link.is-active .icon { color: var(--blue); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.responsible-note {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 65, 79, .25);
    background: rgba(255, 65, 79, .05);
    border-radius: var(--radius-sm);
}
.responsible-note strong { color: var(--red); }
.responsible-note span { font-size: .71rem; color: var(--muted); line-height: 1.35; }

.main-column { grid-column: 2; min-width: 0; }
.topbar {
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    background: rgba(3, 10, 25, .82);
    border-bottom: 1px solid rgba(101, 142, 201, .15);
    backdrop-filter: blur(18px);
}
.topbar-title { min-width: 0; }
.topbar-title strong, .topbar-title span { display: block; }
.topbar-title strong { font-size: 1rem; }
.topbar-title span { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(8, 24, 50, .72);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}
.icon-button:hover { border-color: var(--line-strong); background: rgba(12, 42, 84, .8); }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); position: absolute; right: 7px; top: 7px; box-shadow: 0 0 12px var(--lime); }
.mobile-menu { display: none; }
.page-content { width: min(1480px, 100%); margin: 0 auto; padding: 26px 28px 100px; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: clamp(1.45rem, 2vw, 2.1rem); letter-spacing: -.04em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 800; margin-bottom: 7px; }

.panel, .hero-card, .pix-card, .stat-card, .ticket-card, .form-card, .table-card, .auth-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(7, 19, 40, .96), rgba(4, 13, 30, .94));
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}
.panel, .form-card, .table-card { padding: 20px; }
.panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-header > div { min-width: 0; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 1.05rem; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.panel-header .panel-actions { margin-left: auto; display: flex; gap: 8px; }

.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .8fr); gap: 20px; margin-bottom: 22px; }
.hero-card {
    min-height: 260px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}
.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(0, 109, 255, .45), transparent 34%), linear-gradient(90deg, rgba(3, 11, 27, .1), rgba(2, 11, 28, .65));
    z-index: -2;
}
.hero-card::after {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    right: -40px;
    top: -20px;
    background: url('../img/icon-512.png') center/contain no-repeat;
    opacity: .72;
    filter: drop-shadow(0 0 24px rgba(0, 118, 255, .55));
    z-index: -1;
}
.hero-card__content { max-width: 56%; }
.hero-card h1 { font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1; margin: 0 0 14px; letter-spacing: -.05em; }
.hero-card h1 em { display: block; color: var(--lime); font-style: normal; }
.hero-card p { color: #c0cde2; line-height: 1.55; margin: 0; }
.hero-slogan { margin-top: 20px; font-weight: 800; color: var(--blue); }
.hero-slogan b { color: var(--lime); }

.pix-card { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.pix-card__head { display: flex; align-items: center; gap: 14px; }
.pix-symbol { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: var(--lime); background: rgba(143, 255, 0, .08); border: 1px solid rgba(143, 255, 0, .28); }
.pix-card h2 { font-size: 1.02rem; margin: 0; }
.pix-key-row { display: flex; align-items: center; gap: 10px; margin: 11px 0 14px 64px; }
.pix-key-row strong { color: var(--lime); font-size: clamp(1.2rem, 2vw, 1.75rem); word-break: break-all; }
.copy-button { min-width: 40px; }
.pix-rules { display: grid; gap: 9px; padding-top: 15px; border-top: 1px dashed rgba(147, 173, 214, .27); }
.pix-rules span { color: #d3dded; font-size: .84rem; }
.fee-warning { color: var(--red); font-weight: 800; margin: 12px 0 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { padding: 18px; min-height: 116px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -35px; top: -35px; background: rgba(0, 118, 255, .14); }
.stat-card span { color: var(--muted); font-size: .78rem; }
.stat-card strong { display: block; font-size: clamp(1.25rem, 2vw, 2rem); margin-top: 10px; letter-spacing: -.04em; }
.stat-card small { display: block; color: var(--green); margin-top: 5px; font-size: .7rem; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 27px 0 14px; }
.section-heading h2 { margin: 0; font-size: 1.1rem; }
.section-heading p { color: var(--muted); margin: 3px 0 0; font-size: .78rem; }
.tickets-grid { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 16px; }
.ticket-card {
    padding: 17px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ticket-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(0, 120, 255, .08), transparent 35%, rgba(143, 255, 0, .035)); }
.ticket-card:hover { transform: translateY(-3px); border-color: rgba(0, 132, 255, .55); box-shadow: 0 22px 58px rgba(0, 67, 168, .18); }
.ticket-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.ticket-code { color: var(--blue); font-weight: 800; font-size: .8rem; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: .67rem; font-weight: 900; text-transform: uppercase; border: 1px solid transparent; }
.status-success { color: #88ffb5; background: rgba(33, 220, 119, .12); border-color: rgba(33, 220, 119, .3); }
.status-danger { color: #ff8b94; background: rgba(255, 65, 79, .11); border-color: rgba(255, 65, 79, .32); }
.status-warning { color: #ffe27b; background: rgba(255, 216, 74, .1); border-color: rgba(255, 216, 74, .28); }
.status-info { color: #8ac3ff; background: rgba(19, 133, 255, .1); border-color: rgba(19, 133, 255, .25); }
.match-row { display: grid; grid-template-columns: 1fr 68px 1fr; align-items: center; gap: 8px; margin: 17px 0 14px; }
.team { min-width: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.team strong { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.team-badge { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; font-weight: 950; letter-spacing: -.05em; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 20px rgba(255,255,255,.05); }
.team-badge--home { background: linear-gradient(145deg, #de2638, #28050b); }
.team-badge--away { background: linear-gradient(145deg, #1e72ff, #06143c); }
.team-logo { object-fit: contain; padding: 6px; background: rgba(255,255,255,.94); }
.match-center { text-align: center; color: var(--muted); }
.match-versus { display: block; font-size: 1.55rem; color: #6d7892; font-weight: 900; }
.match-center small { display: block; font-size: .64rem; line-height: 1.2; margin-top: 3px; }
.result-strip { text-align: center; color: var(--muted); padding: 7px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .75rem; }
.result-strip strong { color: var(--lime); }
.selection-list { display: grid; gap: 0; margin-top: 10px; }
.selection-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(111, 146, 197, .14); }
.selection-line span { min-width: 0; }
.selection-line b, .selection-line small { display: block; }
.selection-line b { font-size: .84rem; }
.selection-line small { color: var(--muted); font-size: .7rem; margin-top: 3px; }
.selection-line > strong { color: var(--lime); padding: 6px 9px; border: 1px solid rgba(143, 255, 0, .2); background: rgba(143, 255, 0, .05); border-radius: 8px; }
.ticket-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 13px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket-metrics > div { min-width: 0; padding: 0 8px; border-right: 1px solid var(--line); }
.ticket-metrics > div:first-child { padding-left: 0; }
.ticket-metrics > div:last-child { border-right: 0; padding-right: 0; }
.ticket-metrics span, .ticket-metrics strong { display: block; }
.ticket-metrics span { color: var(--muted); font-size: .62rem; }
.ticket-metrics strong { font-size: .83rem; margin-top: 5px; white-space: nowrap; }
.accent-lime { color: var(--lime) !important; }
.ticket-actions { display: grid; grid-template-columns: .9fr .9fr 1.2fr; gap: 7px; position: relative; }

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: .8rem;
    transition: transform .15s ease, filter .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: 0 10px 30px rgba(0, 91, 255, .22); }
.btn-gradient { background: linear-gradient(105deg, #065cff 0%, #0da5ff 48%, #8fff00 100%); color: #041021; box-shadow: 0 10px 28px rgba(0, 112, 255, .24); }
.btn-success { background: linear-gradient(135deg, #087443, var(--green)); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #8f1421, var(--red)); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #8e6100, var(--yellow)); color: #160e00; }
.btn-ghost { border-color: var(--line); background: rgba(8, 28, 57, .55); color: #c8d6ee; }
.btn-disabled { background: rgba(118, 132, 157, .11); color: #68758f; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: .72rem; border-radius: 8px; }

.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #dce6f7; font-size: .78rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(103, 151, 218, .3);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: rgba(3, 13, 31, .82);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { padding-top: 12px; min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19, 133, 255, .11); }
input[type="checkbox"] { width: 18px; min-height: 18px; }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-line label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--muted); }
.form-hint { color: var(--muted); line-height: 1.45; }

.notice { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: .8rem; line-height: 1.45; }
.notice-info { border-color: rgba(19, 133, 255, .35); background: rgba(19, 133, 255, .08); color: #cde5ff; }
.notice-danger { border-color: rgba(255, 65, 79, .35); background: rgba(255, 65, 79, .08); color: #ffd2d6; }
.notice-success { border-color: rgba(33, 220, 119, .35); background: rgba(33, 220, 119, .08); color: #caffe0; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th { color: #70b6ff; font-size: .67rem; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid rgba(103, 151, 218, .13); font-size: .78rem; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(13, 52, 102, .12); }
.cell-title { display: block; font-weight: 800; }
.cell-subtitle { display: block; color: var(--muted); font-size: .69rem; margin-top: 3px; }
.actions-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state h3 { color: var(--text); margin: 0 0 8px; }

.flash { position: fixed; right: 22px; top: 88px; z-index: 100; max-width: min(420px, calc(100vw - 30px)); padding: 13px 16px; border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: slide-in .25s ease; font-size: .82rem; border: 1px solid; }
.flash-success { color: #d8ffe9; background: #063821; border-color: #16804c; }
.flash-danger { color: #ffe3e6; background: #481018; border-color: #9b2331; }
.flash-warning { color: #fff3c5; background: #463410; border-color: #8f6c1b; }
.flash-info { color: #dcecff; background: #0a2d5a; border-color: #185fa6; }
@keyframes slide-in { from { opacity: 0; transform: translateX(20px); } }

.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 4, 13, .78); backdrop-filter: blur(7px); }
.modal-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; position: relative; z-index: 1; padding: 25px; border-radius: var(--radius); border: 1px solid rgba(42, 135, 255, .5); background: linear-gradient(160deg, #07162f, #030b1b); box-shadow: 0 35px 90px rgba(0, 0, 0, .62), 0 0 55px rgba(0, 96, 255, .13); }
.modal-card h2 { margin: 0 0 14px; letter-spacing: -.03em; }
.modal-close { position: absolute; right: 14px; top: 14px; }
.pix-instructions--modal { display: grid; gap: 4px; padding: 14px; border: 1px solid rgba(143, 255, 0, .25); background: rgba(143, 255, 0, .045); border-radius: 10px; }
.pix-instructions--modal strong { color: var(--lime); font-size: 1.15rem; word-break: break-all; }

.pwa-install {
    position: fixed;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: min(630px, calc(100vw - 24px));
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 13px;
    background: rgba(4, 15, 34, .97);
    border: 1px solid rgba(65, 139, 244, .45);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pwa-install[hidden] { display: none; }
.pwa-install img { width: 45px; height: 45px; border-radius: 10px; }
.pwa-install > div { min-width: 0; flex: 1; }
.pwa-install strong, .pwa-install span { display: block; }
.pwa-install strong { font-size: .84rem; }
.pwa-install span { color: var(--muted); font-size: .72rem; margin-top: 2px; }

.guest-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-layout { width: min(1160px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(3, 12, 29, .94); box-shadow: 0 35px 100px rgba(0,0,0,.5); }
.auth-showcase { min-height: 650px; padding: 44px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 50% 32%, rgba(0, 112, 255, .36), transparent 36%), linear-gradient(145deg, #06183a, #020817); }
.auth-showcase::after { content: ""; position: absolute; width: 460px; height: 460px; right: -80px; bottom: 10px; background: url('../img/icon-512.png') center/contain no-repeat; opacity: .46; filter: drop-shadow(0 0 45px rgba(0, 118, 255, .6)); }
.auth-logo { width: 310px; max-width: 78%; mix-blend-mode: screen; position: relative; z-index: 2; }
.auth-copy { position: relative; z-index: 2; max-width: 510px; }
.auth-copy h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); letter-spacing: -.06em; line-height: .95; margin: 0 0 18px; }
.auth-copy h1 span { color: var(--lime); }
.auth-copy p { color: #c1cce0; line-height: 1.65; max-width: 450px; }
.auth-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.auth-badges span { padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(3, 17, 39, .58); color: #cde0ff; font-size: .72rem; }
.auth-card { padding: 36px; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; box-shadow: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.18); }
.auth-tab { min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.auth-tab.is-active { color: #fff; background: linear-gradient(135deg, #074bbb, #0a80f2); }
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-card h2 { margin: 0 0 7px; font-size: 1.55rem; }
.auth-card > p, .auth-panel > p { color: var(--muted); margin: 0 0 22px; }
.auth-legal { color: var(--muted); font-size: .69rem; line-height: 1.45; margin-top: 15px; }
.register-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.register-progress span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(8, 28, 57, .45);
    font-weight: 900;
}
.register-progress span.is-active, .register-progress span.is-complete { color: #fff; border-color: rgba(19, 133, 255, .6); background: rgba(19, 133, 255, .22); }
.register-step { display: none; }
.register-step.is-active { display: grid; gap: 14px; }
.register-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 22, 46, .78); }
.summary-card span, .summary-card strong { display: block; }
.summary-card span { color: var(--muted); font-size: .72rem; }
.summary-card strong { font-size: 1.35rem; margin-top: 8px; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.admin-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 18px; }
.detail-score { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; gap: 14px; padding: 25px; border-radius: 14px; background: radial-gradient(circle at center, rgba(0, 102, 255, .28), transparent 42%), rgba(3, 13, 31, .65); border: 1px solid var(--line); }
.detail-score .team-badge { width: 82px; height: 82px; font-size: 1.15rem; }
.score-box { text-align: center; font-size: 2.4rem; font-weight: 950; color: var(--lime); }
.detail-side { display: grid; gap: 14px; align-content: start; }

.proof-preview { max-width: 230px; max-height: 160px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.upload-box { border: 1px dashed rgba(87, 151, 237, .45); border-radius: 10px; padding: 18px; text-align: center; background: rgba(6, 24, 50, .48); }
.upload-box .icon { width: 32px; height: 32px; color: var(--blue); margin: 0 auto 7px; }

.mobile-bottom-nav { display: none; }

@media (max-width: 1180px) {
    .tickets-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-hero { grid-template-columns: 1fr; }
    .hero-card__content { max-width: 60%; }
    .admin-grid, .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    :root { --sidebar-width: 250px; }
    .app-shell { display: block; }
    .sidebar { transform: translateX(-105%); box-shadow: 20px 0 70px rgba(0,0,0,.55); }
    .sidebar.is-open { transform: translateX(0); }
    .main-column { width: 100%; }
    .mobile-menu { display: inline-grid; }
    .page-content { padding: 20px 18px 105px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-showcase { min-height: 320px; padding: 28px; }
    .auth-copy h1 { font-size: 2.8rem; }
    .auth-showcase::after { width: 300px; height: 300px; right: -50px; bottom: -40px; }
    .two-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .topbar { height: 64px; padding: 0 13px; }
    .topbar-title span { display: none; }
    .page-content { padding: 14px 12px 100px; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .dashboard-hero { gap: 12px; }
    .hero-card { min-height: 230px; padding: 22px; }
    .hero-card__content { max-width: 68%; }
    .hero-card::after { width: 230px; height: 230px; right: -70px; top: 5px; }
    .hero-card h1 { font-size: 1.75rem; }
    .hero-card p { font-size: .82rem; }
    .pix-card { padding: 18px; }
    .pix-key-row { margin-left: 0; margin-top: 15px; }
    .pix-key-row strong { font-size: 1.2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { min-height: 100px; padding: 15px; }
    .tickets-grid { grid-template-columns: 1fr; gap: 12px; }
    .ticket-card { border-radius: 13px; padding: 15px; }
    .ticket-actions { grid-template-columns: 1fr 1fr; }
    .ticket-actions .btn-gradient, .ticket-actions .btn-success, .ticket-actions .btn-disabled { grid-column: 1 / -1; }
    .ticket-metrics span { font-size: .58rem; }
    .ticket-metrics strong { font-size: .75rem; }
    .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .panel, .form-card, .table-card { padding: 15px; }
    .summary-grid { grid-template-columns: 1fr; }
    .detail-score { grid-template-columns: 1fr 82px 1fr; padding: 15px; }
    .detail-score .team-badge { width: 64px; height: 64px; }
    .score-box { font-size: 1.6rem; }
    .auth-card { padding: 24px 20px; }
    .auth-showcase { min-height: 285px; padding: 22px; }
    .auth-logo { width: 230px; }
    .auth-copy h1 { font-size: 2.1rem; }
    .auth-copy p { font-size: .82rem; max-width: 80%; }
    .auth-badges { display: none; }
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 9px;
        right: 9px;
        bottom: max(9px, env(safe-area-inset-bottom));
        z-index: 80;
        min-height: 66px;
        padding: 6px;
        background: rgba(3, 11, 27, .94);
        border: 1px solid rgba(85, 132, 201, .35);
        border-radius: 17px;
        backdrop-filter: blur(18px);
        box-shadow: 0 15px 50px rgba(0,0,0,.5);
    }
    .mobile-bottom-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: .59rem; }
    .mobile-bottom-nav .icon { width: 20px; height: 20px; }
    .mobile-bottom-nav .mobile-action { color: #fff; background: linear-gradient(145deg, #0062ff, #15399f); border-radius: 14px; transform: translateY(-12px); box-shadow: 0 10px 30px rgba(0, 95, 255, .35); }
    .pwa-install { top: 8px; }
    .pwa-install .btn { min-height: 36px; padding: 0 12px; }
    .modal { align-items: end; padding: 0; }
    .modal-card { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .flash { right: 12px; top: 75px; }
}
.selection-form-row { display: grid; grid-template-columns: 1.3fr 1.3fr .55fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 17, 38, .55); }
@media (max-width: 700px) { .selection-form-row { grid-template-columns: 1fr; } }
