@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #111820;
  --navy: #101d2d;
  --navy-2: #18283b;
  --orange: #f37021;
  --yellow: #ffc928;
  --paper: #f3f1eb;
  --line: #d9d7d1;
  --white: #fff;
  --muted: #69717c;
  --green: #1d9b61;
  --red: #d74343;
  --shadow: 0 12px 32px rgba(17, 24, 32, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: Inter, system-ui, sans-serif; background: var(--paper); }
h1, h2, h3, h4, .eyebrow, .btn, .status-badge { font-family: "Barlow Condensed", Impact, sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }
.eyebrow { margin: 0 0 .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .16em; color: var(--orange); }
.brand-mark { width: 62px; height: 62px; display: inline-grid; place-items: center; color: var(--navy); background: var(--yellow); font: 800 1.5rem/1 "Barlow Condensed"; transform: skew(-7deg); box-shadow: 7px 7px 0 var(--orange); }
.brand-mark span, .brand-mark-sm { transform: skew(7deg); }
.brand-mark-sm { width: 38px; height: 38px; font-size: 1rem; box-shadow: 4px 4px 0 var(--orange); }
.btn { font-weight: 700; letter-spacing: .04em; border-radius: 4px; }
.btn-champion { color: #111; background: var(--yellow); border: 1px solid var(--yellow); box-shadow: 4px 4px 0 var(--orange); }
.btn-champion:hover, .btn-champion:focus { color: #111; background: #ffdc5f; border-color: #ffdc5f; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--orange); }
.form-control, .form-select { border-radius: 3px; border-color: #c9c7c1; min-height: 45px; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(243, 112, 33, .14); }
.form-label { color: #2c333b; font-size: .8rem; font-weight: 700; }

/* Login */
.login-body { min-height: 100vh; background: var(--navy); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); }
.login-brand { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; padding: clamp(3rem, 8vw, 8rem); color: #fff; background: var(--navy); }
.login-brand::before { content: "FINAL"; position: absolute; left: -1.5rem; bottom: -6rem; color: rgba(255,255,255,.025); font: 800 26vw/1 "Barlow Condensed"; }
.brand-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 20%, transparent 90%); }
.brand-content { position: relative; z-index: 1; max-width: 740px; }
.brand-content .brand-mark { margin-bottom: 3rem; }
.brand-content h1 { margin: 0; font-size: clamp(4rem, 7.2vw, 8.2rem); line-height: .82; letter-spacing: -.055em; }
.brand-content h1 span { color: var(--yellow); }
.brand-copy { max-width: 500px; margin: 2.2rem 0 2.5rem; color: #aeb8c4; font-size: 1.08rem; }
.brand-metrics { display: flex; gap: 3.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); font: 700 1.1rem "Barlow Condensed"; color: var(--orange); }
.brand-metrics small { color: #fff; font-size: .7rem; letter-spacing: .16em; }
.login-panel { display: grid; place-items: center; padding: 3rem; background: #fff; }
.login-card { width: min(100%, 420px); }
.login-card h2 { margin: 0; font-size: 2.6rem; }
.login-card .form-control { background: #f7f7f5; }
.login-support { margin-top: 2rem; color: #8a8f96; text-align: center; font-size: .75rem; }

/* Admin shell */
.app-body { min-height: 100vh; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; padding: 1.5rem; color: #fff; background: var(--navy); }
.sidebar-brand { display: flex; align-items: center; gap: .9rem; color: #fff; font: 700 1.15rem/1 "Barlow Condensed"; text-decoration: none; }
.sidebar-brand small, .competitor-brand small { display: block; margin-top: .25rem; color: var(--yellow); font-size: .7rem; letter-spacing: .09em; }
.sidebar-nav { display: grid; gap: .45rem; margin-top: 4rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .8rem; padding: .85rem .95rem; color: #aeb8c4; border-left: 3px solid transparent; text-decoration: none; font-size: .88rem; }
.sidebar-nav a span { width: 20px; color: var(--yellow); text-align: center; font-size: 1.1rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--orange); }
.sidebar-footer { margin-top: auto; padding: 1.1rem; border: 1px solid rgba(255,255,255,.12); }
.sidebar-footer small { display: block; color: var(--orange); font: 700 .66rem "Barlow Condensed"; letter-spacing: .13em; }
.sidebar-footer strong { display: block; margin: .3rem 0 .75rem; font-size: .82rem; }
.btn-link-light { padding: 0; color: #aeb8c4; background: none; border: 0; font-size: .75rem; text-decoration: underline; }
.main-column { grid-column: 2; min-width: 0; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 2.5rem; color: #fff; background: var(--navy-2); border-bottom: 4px solid var(--orange); }
.topbar h1 { margin: 0; font-size: 1.35rem; letter-spacing: .03em; }
.topbar .eyebrow { color: #aeb8c4; font-size: .63rem; }
.live-chip { padding: .5rem .75rem; color: #d8f6e9; border: 1px solid rgba(255,255,255,.17); font: 700 .68rem "Barlow Condensed"; letter-spacing: .08em; }
.live-chip i { display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: #43d591; box-shadow: 0 0 0 5px rgba(67,213,145,.1); }
.mobile-menu { display: none; color: #fff; background: none; border: 0; font-size: 1.5rem; }
.dashboard-content { max-width: 1500px; margin: 0 auto; padding: 2.3rem 2.5rem 4rem; }
.dashboard-section { display: none; }
.dashboard-section.active-section { display: block; animation: sectionIn .22s ease-out; }
@keyframes sectionIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.section-heading { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3.3vw, 3rem); line-height: .9; }
.date-label { padding-top: 1.6rem; color: var(--muted); font-size: .78rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card { position: relative; overflow: hidden; min-height: 165px; padding: 1.35rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38px; height: 6px; background: var(--orange); }
.stat-card.stat-primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.stat-card small { display: block; color: var(--muted); font: 700 .7rem "Barlow Condensed"; letter-spacing: .13em; }
.stat-card.stat-primary small, .stat-card.stat-primary p { color: #9da9b5; }
.stat-card strong { display: block; margin: .55rem 0 0; font: 800 3rem/1 "Barlow Condensed"; }
.stat-card p { margin: .15rem 0 0; color: #8a8f96; font-size: .72rem; }
.stat-index { position: absolute; right: 1.2rem; top: 1rem; color: #d7d9d9; font: 700 .75rem "Barlow Condensed"; }
.stat-primary .stat-index { color: #526174; }
.panel { padding: 1.4rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-head { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; }
.panel-head h3 { margin: 0; font-size: 1.4rem; }
.panel-head .eyebrow { font-size: .64rem; }
.step-chip { padding: .35rem .55rem; color: var(--orange); background: #fff3e9; font: 700 .66rem "Barlow Condensed"; letter-spacing: .1em; }
.muted-note { color: var(--muted); font-size: .72rem; }
.compact-list { display: grid; }
.compact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid #ecebe8; }
.compact-row strong { display: block; font-size: .88rem; }
.compact-row small { color: var(--muted); font-size: .7rem; }
.status-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; font-size: .68rem; letter-spacing: .08em; border-radius: 2px; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-bloqueada { color: #69717c; background: #eceff1; }
.status-ativa { color: #13794a; background: #e2f5eb; }
.status-encerrada, .status-tempo-esgotado { color: #9b3434; background: #f9e7e7; }
.status-liberada-extra { color: #9b5b08; background: #fff1d4; }
.status-excluida { color: #5a4a8f; background: #ece7f9; }
.proof-table-wrap { overflow-x: auto; }
.proof-table { width: 100%; border-collapse: collapse; }
.proof-table th { padding: .65rem .75rem; color: var(--muted); background: #f5f4f1; font: 700 .68rem "Barlow Condensed"; letter-spacing: .1em; text-align: left; white-space: nowrap; }
.proof-table td { padding: .9rem .75rem; border-bottom: 1px solid #ecebe8; vertical-align: middle; font-size: .79rem; }
.proof-table td strong { display: block; max-width: 300px; }
.proof-table td small { color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.table-actions .btn { padding: .3rem .55rem; font-size: .68rem; }
.split-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 1rem; align-items: start; }
.people-list { max-height: 570px; overflow-y: auto; }
.person-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-top: 1px solid #ecebe8; }
.person-avatar { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--navy); font: 700 .9rem "Barlow Condensed"; }
.person-row strong { display: block; font-size: .82rem; }
.person-row small { color: var(--muted); font-size: .7rem; }
.select-compact { width: min(100%, 320px); }
.empty-state { margin: 0; padding: 2.2rem; color: var(--muted); background: #f7f6f3; text-align: center; font-size: .82rem; }
.warning-box { padding: .9rem; color: #7d4d0c; background: #fff5df; border-left: 4px solid var(--yellow); font-size: .78rem; }
.champion-modal { border: 0; border-radius: 4px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.champion-modal .modal-header { border-top: 5px solid var(--orange); }

/* Competitor */
.competitor-body { min-height: 100vh; background: #f5f3ed; }
.page-container { max-width: 1360px; padding-left: clamp(1.2rem, 4vw, 3rem); padding-right: clamp(1.2rem, 4vw, 3rem); }
.competitor-header { height: 76px; display: flex; align-items: center; color: #fff; background: var(--navy); border-bottom: 4px solid var(--orange); }
.competitor-brand { display: flex; align-items: center; gap: .8rem; color: #fff; font: 700 1.05rem/1 "Barlow Condensed"; text-decoration: none; }
.competitor-account { display: flex; align-items: center; gap: 1.5rem; }
.competitor-account span { text-align: right; }
.competitor-account small, .competitor-account strong { display: block; }
.competitor-account small { color: var(--orange); font: 700 .6rem "Barlow Condensed"; letter-spacing: .13em; }
.competitor-account strong { font-size: .8rem; }
.competitor-hero { position: relative; overflow: hidden; padding: 4.2rem 0 3.6rem; color: #fff; background: var(--navy-2); }
.competitor-hero::after { content: "CHAMPION"; position: absolute; top: -2.7rem; right: -1rem; color: rgba(255,255,255,.025); font: 800 12vw "Barlow Condensed"; pointer-events: none; }
.hero-line { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.hero-line h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: .82; letter-spacing: -.05em; }
.hero-line h1 span { color: var(--yellow); }
.hero-line p { max-width: 560px; margin: 1.7rem 0 0; color: #aeb8c4; }
.server-time { flex: 0 0 280px; padding: 1.2rem; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.12); }
.server-time small, .server-time strong, .server-time span { display: block; }
.server-time small { color: var(--orange); font: 700 .64rem "Barlow Condensed"; letter-spacing: .12em; }
.server-time strong { margin: .35rem 0; color: var(--yellow); font: 700 2.5rem "Barlow Condensed"; letter-spacing: .05em; }
.server-time span { color: #8f9baa; font-size: .62rem; line-height: 1.4; }
.competition-content { padding-top: 2.6rem; padding-bottom: 5rem; }
.content-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.content-heading h2 { margin: 0; font-size: 2rem; }
.competitor-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.proof-card { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 1.45rem; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.proof-card::after { content: attr(data-index); position: absolute; right: -.2rem; bottom: -2.3rem; color: rgba(16,29,45,.04); font: 800 9rem "Barlow Condensed"; }
.proof-card.blocked { color: #6f757c; background: #ebeae6; box-shadow: none; }
.proof-card.blocked::before { content: ""; position: absolute; inset: 0; opacity: .3; background: repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(16,29,45,.05) 15px, rgba(16,29,45,.05) 16px); }
.proof-card > * { position: relative; z-index: 1; }
.proof-topline { display: flex; justify-content: space-between; gap: 1rem; }
.proof-number { color: #b9bdc1; font: 700 .72rem "Barlow Condensed"; letter-spacing: .12em; }
.proof-card h3 { margin: 2rem 0 1rem; font-size: 2rem; line-height: .95; }
.proof-description { display: -webkit-box; margin-bottom: 1.3rem; overflow: hidden; color: #626a73; font-size: .8rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.proof-description-full { color: #444b52; font-size: .9rem; line-height: 1.7; white-space: pre-wrap; }
.btn-expand-proof { margin: -.9rem 0 1rem; padding: 0; }
.locked-message { display: grid; place-items: center; flex: 1; padding: 2rem 0; text-align: center; }
.lock-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: .8rem; color: #788089; border: 1px solid #b7babd; border-radius: 50%; font-size: 1.5rem; }
.locked-message p { max-width: 220px; font-size: .75rem; }
.countdown-box { display: flex; align-items: center; justify-content: space-between; padding: .85rem; color: #fff; background: var(--navy); }
.countdown-box small { color: #9ca8b6; font: 700 .62rem "Barlow Condensed"; letter-spacing: .11em; }
.countdown-box strong { color: var(--yellow); font: 700 1.65rem "Barlow Condensed"; letter-spacing: .04em; }
.upload-zone { margin-top: 1rem; padding: 1rem; border: 1px dashed #aeb4ba; background: #fafaf8; }
.upload-zone label { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 700; }
.upload-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.upload-actions .form-control { min-height: 38px; font-size: .7rem; }
.upload-actions .btn { white-space: nowrap; }
.submission-note { margin: .8rem 0 0; color: var(--green); font-size: .68rem; font-weight: 600; }
.expired-message { margin-top: auto; padding: .9rem; color: #8c3737; background: #f9e7e7; border-left: 4px solid var(--red); font-size: .72rem; }
.extra-message { margin-bottom: 1rem; padding: .75rem; color: #77510f; background: #fff1d4; border-left: 4px solid var(--yellow); font-size: .7rem; }
.skeleton-card { gap: 1.3rem; }
.skeleton-card div { height: 40px; background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton-card div:nth-child(2) { height: 110px; }
.skeleton-card div:nth-child(3) { margin-top: auto; height: 70px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.competitor-footer { padding: 1.3rem 0; color: #98a3af; background: var(--navy); }
.competitor-footer .page-container { display: flex; justify-content: space-between; gap: 1rem; }
.competitor-footer span { color: #fff; font: 700 .8rem "Barlow Condensed"; }
.competitor-footer small { font-size: .68rem; }

@media (max-width: 1100px) {
  .stats-grid, .competitor-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { grid-template-columns: 1fr 420px; }
  .brand-content h1 { font-size: 5.2rem; }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 380px; padding: 3rem 2rem; }
  .brand-content h1 { font-size: clamp(3.4rem, 14vw, 5rem); }
  .brand-content .brand-mark { margin-bottom: 2rem; }
  .brand-metrics { display: none; }
  .login-panel { padding: 3rem 1.3rem; }
  .app-layout { display: block; }
  .main-column { min-width: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 40px rgba(0,0,0,.25); }
  .sidebar.open { transform: none; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 1.2rem; }
  .topbar .live-chip { display: none; }
  .dashboard-content { padding: 2rem 1.2rem; }
  .split-grid { grid-template-columns: 1fr; }
  .hero-line { align-items: stretch; flex-direction: column; }
  .server-time { flex-basis: auto; width: min(100%, 330px); }
}
@media (max-width: 580px) {
  .stats-grid, .competitor-proof-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 1rem; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .date-label { padding-top: 0; }
  .panel { padding: 1rem; }
  .competitor-account span { display: none; }
  .competitor-hero { padding: 3rem 0; }
  .hero-line h1 { font-size: 3.6rem; }
  .competitor-footer .page-container { flex-direction: column; }
  .upload-actions { grid-template-columns: 1fr; }
}

