:root{
  --bg:#f3f7fc;
  --bg-2:#edf3fa;
  --panel:#ffffff;
  --panel-2:#f8fbff;
  --line:#d8e3f0;
  --line-2:#c7d5e6;
  --text:#13243b;
  --text-2:#28415f;
  --muted:#667d9a;
  --brand:#173c72;
  --brand-2:#2d67bb;
  --accent:#f0cb56;
  --accent-text:#182536;
  --shadow:0 18px 44px rgba(20,47,92,.08);
  --shadow-sm:0 8px 20px rgba(20,47,92,.05);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --wrap:1360px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(52,106,191,.08), transparent 24%),
    radial-gradient(circle at top right, rgba(240,203,86,.13), transparent 18%),
    linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
}

a{
  color:var(--brand);
  text-decoration:none;
}

a:hover{
  color:var(--brand-2);
}

img{
  display:block;
  max-width:100%;
  height:auto;
}

.wrap{
  width:min(calc(100% - 40px), var(--wrap));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(22,60,114,.08);
}

.topbar-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  font-size:34px;
  font-weight:950;
  letter-spacing:-.05em;
  color:#12243c;
}

.nav{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}

.nav a{
  font-size:17px;
  font-weight:700;
  color:#29476e;
}

main.wrap{
  padding:28px 0 56px;
}

.hero-shell,
.portal-hero,
.hero,
.portal-section,
.section-panel,
.list-block,
.article,
.portal-card,
.portal-feature-card,
.portal-utility-card,
.portal-side-card,
.card,
.match-card,
.cms-brand-card,
.cms-nav,
.cms-stat-card,
.cms-form-card,
.cms-table-wrap{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
}

.portal-hero{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);
  gap:22px;
  margin-bottom:24px;
}

.portal-hero__main,
.portal-hero__side{
  display:grid;
  gap:20px;
}

.portal-hero__main,
.hero-panel,
.article{
  padding:34px;
}

.portal-kicker,
.hero-kicker,
.section-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:#edf4fb;
  border:1px solid #d8e4f2;
  color:#4d6c92;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.portal-hero__main h1,
.hero-panel h1,
.article h1{
  margin:18px 0 0;
  color:#12263f;
  font-size:58px;
  line-height:1.03;
  letter-spacing:-.055em;
  text-wrap:balance;
}

.portal-hero__main p,
.hero-panel p,
.article p,
.portal-section__head p,
.section-head p,
.portal-card__head p,
.portal-feature-card span,
.portal-utility-card span,
.portal-side-card p,
.meta,
.small-note{
  color:var(--muted);
  line-height:1.75;
  font-size:18px;
}

.portal-hero__actions,
.hero-actions,
.portal-card__actions,
.contest-nav,
.cms-form-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn,
button,
input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 20px;
  border-radius:18px;
  border:1px solid var(--line-2);
  font-size:17px;
  font-weight:900;
  letter-spacing:-.02em;
  cursor:pointer;
}

.btn,
.btn-primary,
button.btn-primary,
input[type="submit"]{
  background:var(--accent);
  color:var(--accent-text);
  border-color:transparent;
}

.btn-secondary{
  background:#f5f8fc;
  color:#173b72;
  border-color:#d9e3ef;
}

.portal-hero__utilities{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}

.portal-utility-card{
  display:grid;
  gap:8px;
  padding:18px 20px;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%, #f7fbff 100%);
  border:1px solid #dce6f2;
  box-shadow:var(--shadow-sm);
}

.portal-utility-card strong{
  font-size:22px;
  line-height:1.08;
  letter-spacing:-.03em;
  color:#15355f;
}

.portal-side-card,
.portal-feature-card,
.portal-card,
.card,
.match-card{
  padding:22px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}

.portal-side-card h2,
.portal-feature-card strong,
.portal-card__head h3,
.card h2,
.match-card h2{
  display:block;
  margin:0 0 10px;
  color:#173459;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.035em;
}

.portal-side-links,
.portal-side-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.portal-side-links a,
.portal-side-list__item{
  display:block;
  padding:14px 16px;
  border-radius:14px;
  background:#f7fbff;
  border:1px solid #dce6f2;
  color:#274668;
}

.portal-side-list__item strong{
  display:block;
  margin-bottom:4px;
}

.portal-section,
.section-panel,
.list-block{
  margin-top:24px;
  padding:28px;
}

.portal-section__head,
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:22px;
  margin-bottom:22px;
}

.portal-section__head h2,
.section-head h2,
.list-block h2{
  margin:12px 0 0;
  color:#16355d;
  font-size:42px;
  line-height:1.04;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.portal-grid--results{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.portal-grid--updates{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.portal-feature-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.match-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.portal-card{
  display:grid;
  gap:16px;
}

.portal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  width:max-content;
  padding:0 10px;
  border-radius:999px;
  background:#eef4fb;
  border:1px solid #dbe6f2;
  color:#4d6c92;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.draw-balls,
.balls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 0;
}

.draw-ball,
.ball{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  height:48px;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(180deg,#eef4ff,#dce8fb);
  border:1px solid #c7d8ef;
  color:#153b73;
  font-weight:900;
  font-size:16px;
  line-height:1;
}

.draw-balls--compact .draw-ball{
  min-width:42px;
  height:42px;
  font-size:14px;
}

.list{
  display:grid;
  gap:12px;
  padding-left:18px;
}

.card,
.match-card{
  display:grid;
  gap:12px;
}

.tip{
  padding:14px 16px;
  border-radius:16px;
  background:#f7fbff;
  border:1px solid #dbe6f2;
  color:#264566;
  line-height:1.7;
}

.stats-window-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}

.stats-window-grid--bottom{
  grid-template-columns:1.3fr .7fr;
}

.stats-box{
  padding:18px;
  border-radius:18px;
  background:#fbfdff;
  border:1px solid #dde7f4;
}

.stats-box h3{
  margin:0 0 12px;
  color:#18375e;
  font-size:24px;
  letter-spacing:-.02em;
}

.stat-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.stat-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  background:#f6f9fd;
  border:1px solid #dde7f2;
  color:#244265;
}

.range-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.range-card{
  display:grid;
  gap:8px;
  padding:16px 14px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid #dde7f3;
  text-align:center;
}

.range-card strong{
  color:#1d395f;
  font-size:15px;
}

/* CMS */
.cms-shell{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:24px;
  padding-top:8px;
}

.cms-sidebar{
  position:sticky;
  top:94px;
  align-self:start;
  display:grid;
  gap:16px;
}

.cms-brand-card{
  padding:24px;
}

.cms-brand-card h1{
  margin:12px 0 10px;
  color:#10243d;
  font-size:46px;
  line-height:1.02;
  letter-spacing:-.045em;
}

.cms-brand-card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}

.cms-nav{
  padding:18px;
  display:grid;
  gap:10px;
}

.cms-nav a{
  display:block;
  padding:13px 14px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #dce6f2;
  color:#224366;
  font-weight:800;
}

.cms-main{
  display:grid;
  gap:22px;
}

.cms-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.cms-stat-card{
  padding:20px;
  display:grid;
  gap:10px;
}

.cms-stat-card__label{
  color:#617a99;
  font-size:12px;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.08em;
}

.cms-stat-card__value{
  font-size:36px;
  line-height:1;
  letter-spacing:-.05em;
  color:#17355a;
}

.cms-stat-card__desc{
  color:var(--muted);
  line-height:1.65;
}

.cms-form-card{
  padding:24px;
}

.cms-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.cms-form-grid__full{
  grid-column:1 / -1;
}

.cms-form-card label{
  display:grid;
  gap:8px;
}

.cms-form-card label span{
  font-weight:800;
  color:#1f3d63;
}

.cms-form-card input,
.cms-form-card select,
.cms-form-card textarea{
  width:100%;
  min-height:54px;
  border:1px solid #d6e2f0;
  border-radius:16px;
  padding:0 16px;
  background:#fbfdff;
  color:#17355b;
  font-size:16px;
}

.cms-table-wrap{
  overflow:auto;
}

.cms-table{
  width:100%;
  border-collapse:collapse;
}

.cms-table th,
.cms-table td{
  padding:14px 16px;
  border-bottom:1px solid #e3ebf5;
  text-align:left;
  vertical-align:top;
}

.cms-table th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#647b99;
}

.portal-card:hover,
.portal-feature-card:hover,
.portal-utility-card:hover,
.portal-side-links a:hover,
.portal-side-list__item:hover,
.cms-nav a:hover,
.cms-stat-card:hover,
.card:hover,
.match-card:hover{
  transform:translateY(-2px);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
  border-color:#c4d6ec;
  box-shadow:0 18px 40px rgba(21,57,106,.1);
}

@media (max-width:1280px){
  .portal-grid--results{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .portal-grid--updates{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .portal-feature-grid,
  .cms-stat-grid,
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:980px){
  .portal-hero,
  .cms-shell,
  .match-list{
    grid-template-columns:1fr;
  }

  .cms-sidebar{
    position:static;
  }

  .portal-hero__utilities,
  .cms-form-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:760px){
  .topbar-inner{
    min-height:70px;
    flex-direction:column;
    justify-content:center;
    padding:12px 0;
  }

  .brand{
    font-size:28px;
  }

  .nav{
    gap:14px;
    justify-content:center;
  }

  .nav a{
    font-size:15px;
  }

  .portal-hero__main h1,
  .hero-panel h1,
  .article h1{
    font-size:40px;
  }

  .portal-section__head,
  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .portal-section__head h2,
  .section-head h2,
  .list-block h2{
    font-size:32px;
  }

  .portal-grid--results,
  .portal-grid--updates,
  .portal-feature-grid,
  .portal-hero__utilities,
  .cms-stat-grid,
  .grid,
  .range-grid,
  .stats-window-grid,
  .stats-window-grid--bottom,
  .cms-form-grid{
    grid-template-columns:1fr;
  }

  .portal-card__head h3,
  .portal-feature-card strong,
  .portal-utility-card strong,
  .portal-side-card h2{
    font-size:24px;
  }
}


/* ===== R5 | Estrutura visual portal ===== */

.portal-home-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}

.portal-metric{
  padding:18px;
  border-radius:18px;
  border:1px solid #dce6f2;
  background:#f8fbff;
  box-shadow:var(--shadow-sm);
  display:grid;
  gap:6px;
}

.portal-metric strong{
  font-size:30px;
  line-height:1;
  color:#16355d;
  letter-spacing:-.04em;
}

.portal-metric span{
  color:var(--muted);
  line-height:1.5;
}

.lotto-overview-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.lotto-overview-card{
  padding:24px;
  border-radius:22px;
  background:#fff;
  border:1px solid #d9e4f1;
  box-shadow:var(--shadow-sm);
  display:grid;
  gap:16px;
}

.lotto-overview-card__brand{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:16px;
  align-items:center;
}

.lotto-overview-card__brand img{
  width:88px;
  height:88px;
  border-radius:22px;
  object-fit:contain;
  background:#f7fbff;
  border:1px solid #dce7f3;
  padding:8px;
}

.lotto-overview-card__top h3{
  margin:8px 0 6px;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.03em;
  color:#16355d;
}

.lotto-overview-card__top p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.lotto-overview-card__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.lotto-overview-card__links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.lotto-overview-card__links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 12px;
  border-radius:14px;
  background:#f4f8fd;
  border:1px solid #d9e4f1;
  color:#234264;
  font-size:14px;
  font-weight:800;
}

.portal-card__service-header{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:16px;
  align-items:center;
}

.portal-card__service-header img{
  width:80px;
  height:80px;
  border-radius:18px;
  object-fit:contain;
  background:#f7fbff;
  border:1px solid #dce7f3;
  padding:8px;
}

.portal-card--service{
  display:grid;
  gap:16px;
}

.article--result .result-main-hero{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:18px;
  align-items:center;
  margin-bottom:18px;
}

.result-main-hero__image{
  width:96px;
  height:96px;
  border-radius:22px;
  object-fit:contain;
  background:#f7fbff;
  border:1px solid #dce7f3;
  padding:8px;
}

.result-meta-list{
  display:grid;
  gap:6px;
  margin-top:16px;
}

.result-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.result-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:14px;
  background:#f4f8fd;
  border:1px solid #d9e4f1;
  color:#224264;
  font-weight:800;
  font-size:14px;
}

.result-tab--active{
  background:#173c72;
  border-color:#173c72;
  color:#fff;
}

.nav-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 18px;
  border-radius:18px;
  border:1px dashed #cad9eb;
  background:#f8fbff;
  color:#647b99;
  font-weight:800;
}

.nav-pill--disabled{
  opacity:.9;
}

@media (max-width:1280px){
  .lotto-overview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:980px){
  .portal-home-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .portal-home-metrics,
  .lotto-overview-grid{
    grid-template-columns:1fr;
  }

  .lotto-overview-card__brand,
  .portal-card__service-header,
  .article--result .result-main-hero{
    grid-template-columns:1fr;
  }

  .lotto-overview-card__brand img,
  .portal-card__service-header img,
  .result-main-hero__image{
    margin:0 auto;
  }
}


/* ===== R6 | Editorial + CMS + monetização ===== */

.reader-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.reader-card{
  padding:18px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #dce6f2;
  box-shadow:var(--shadow-sm);
  display:grid;
  gap:8px;
}

.reader-card strong{
  color:#16355d;
  font-size:18px;
  line-height:1.2;
}

.reader-card span{
  color:var(--muted);
  line-height:1.65;
}

.stats-box__explain{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.65;
}

.rateio-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.rateio-item{
  padding:18px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #dde7f3;
  display:grid;
  gap:8px;
}

.rateio-item strong{
  color:#16355d;
  font-size:18px;
}

.rateio-item span{
  color:#28415f;
  line-height:1.6;
}

.cms-form-card textarea{
  width:100%;
  min-height:150px;
  padding:14px 16px;
  resize:vertical;
}

@media (max-width:980px){
  .reader-grid,
  .rateio-list{
    grid-template-columns:1fr;
  }
}
\n\n
/* ===== CMS saved notice ===== */
.cms-alert{
  display:grid;
  gap:6px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid #cfe6d7;
  background:#edf9f1;
  color:#1c5a35;
  box-shadow:var(--shadow-sm);
}
.cms-alert strong{
  font-size:16px;
}
.cms-alert span{
  line-height:1.6;
}
