/* ============================================================
   FESTIOESTE — Design System v2
   Identidade: Vibrante, quente, energia de festival
   Fontes: Bebas Neue (display) + Outfit (corpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --fr:  #c8380a;
  --fo:  #e8760a;
  --fa:  #f0a830;
  --fy:  #f5c842;
  --dk:  #180800;
  --dkm: #2c1200;
  --dkl: #4a2200;
  --cr:  #fdf6ee;
  --crm: #f5e8d0;
  --crd: #e8d4b0;
  --tx:  #1a0800;
  --txm: #5a3010;
  --txl: #9a7050;
  --wh:  #ffffff;
  --grad: linear-gradient(135deg, var(--fr), var(--fo));
  --grad2: linear-gradient(135deg, var(--fo), var(--fa));
  --grad-dark: linear-gradient(160deg, var(--dk) 0%, var(--dkm) 60%, var(--dkl) 100%);
  --sh-sm: 0 2px 8px rgba(200,56,10,.12);
  --sh-md: 0 6px 24px rgba(200,56,10,.18);
  --sh-lg: 0 16px 48px rgba(200,56,10,.22);
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px;
  --fm: 'Outfit', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --t: .22s var(--ease);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--fm); color: var(--tx); background: var(--cr); line-height: 1.65; min-height: 100vh; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--fr); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--fo); }
button,input,select,textarea { font-family: inherit; }
ul,ol { list-style: none; }

.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: .06em; line-height: 1; }
h1,h2,h3,h4,h5,h6 { font-family: var(--fm); font-weight: 800; line-height: 1.2; color: var(--dk); }

.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.wrap-lg { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 200; background: var(--dk); border-bottom: 2px solid rgba(240,168,48,.15); }
.nav-wrap  { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 0; font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--fa); letter-spacing: .08em; }
.nav-brand small { font-family: var(--fm); font-size: .7rem; font-weight: 500; color: rgba(255,255,255,.4); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; padding: 7px 13px; border-radius: var(--r-sm); transition: all var(--t); }
.nav-links a:hover,.nav-links a.on { color: var(--fa); background: rgba(240,168,48,.1); }
.nav-cta { background: var(--grad) !important; color: var(--wh) !important; box-shadow: var(--sh-sm); font-weight: 700 !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--wh); border-radius: 2px; transition: all var(--t); }
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: rgba(24,8,0,.97); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; border-bottom: 2px solid rgba(240,168,48,.2); }
  .nav-links.open { display: flex; }
}

/* HERO */
.hero { background: var(--grad-dark); padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 60%, rgba(232,118,10,.18) 0%, transparent 60%), radial-gradient(ellipse 40% 60% at 80% 30%, rgba(200,56,10,.12) 0%, transparent 55%); pointer-events: none; }
.hero::after  { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 64px; background: var(--cr); clip-path: ellipse(55% 100% at 50% 100%); }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(240,168,48,.15); border: 1px solid rgba(240,168,48,.3); color: var(--fa); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 18px; border-radius: 20px; margin-bottom: 20px; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem,10vw,7.5rem); color: var(--fa); letter-spacing: .06em; text-shadow: 0 4px 32px rgba(200,56,10,.4); margin-bottom: 4px; }
.hero-subtitle { font-size: clamp(.9rem,2vw,1.2rem); color: rgba(255,255,255,.7); font-weight: 300; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.hero-theme    { font-size: clamp(1rem,2.2vw,1.35rem); color: var(--fo); font-weight: 700; font-style: italic; margin-bottom: 32px; }
.hero-meta     { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 36px; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500; }
.hero-meta-icon { width: 32px; height: 32px; background: rgba(240,168,48,.12); border: 1px solid rgba(240,168,48,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.countdown     { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.cd-box        { background: rgba(255,255,255,.06); border: 1px solid rgba(240,168,48,.25); border-radius: var(--r-md); padding: 12px 18px; min-width: 76px; text-align: center; }
.cd-n          { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; color: var(--fa); line-height: 1; display: block; }
.cd-l          { font-size: .62rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; display: block; }
.hero-actions  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: none; border-radius: var(--r-sm); font-family: var(--fm); font-size: .9rem; font-weight: 700; cursor: pointer; transition: all var(--t); line-height: 1; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 15px 36px; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-fire { background: var(--grad); color: var(--wh); box-shadow: 0 4px 20px rgba(200,56,10,.3); }
.btn-fire:hover:not(:disabled) { background: linear-gradient(135deg,#a82e08,var(--fr)); color: var(--wh); box-shadow: 0 6px 28px rgba(200,56,10,.45); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--wh); border: 2px solid rgba(255,255,255,.35); }
.btn-ghost:hover:not(:disabled) { border-color: var(--fa); color: var(--fa); background: rgba(240,168,48,.08); }
.btn-outline { background: transparent; color: var(--fr); border: 2px solid var(--fr); }
.btn-outline:hover:not(:disabled) { background: var(--fr); color: var(--wh); }
.btn-soft  { background: var(--crm); color: var(--tx); border: 2px solid var(--crd); }
.btn-soft:hover:not(:disabled) { background: var(--crd); }
.btn-success { background: linear-gradient(135deg,#1b5e20,#2e7d32); color: var(--wh); }
.btn-danger  { background: linear-gradient(135deg,#880e4f,#c62828); color: var(--wh); }

/* SECTIONS */
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--dk); }
.section-mid  { background: var(--dkm); }
.section-warm { background: linear-gradient(180deg,var(--cr) 0%,var(--crm) 100%); }
.sec-head  { text-align: center; margin-bottom: 48px; }
.sec-label { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; color: var(--fr); margin-bottom: 8px; }
.sec-title { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 900; margin-bottom: 12px; }
.sec-rule  { width: 52px; height: 4px; background: var(--grad); border-radius: 2px; margin: 0 auto 16px; }
.sec-sub   { font-size: 1rem; color: var(--txm); max-width: 520px; margin: 0 auto; }

/* CARDS */
.card { background: var(--wh); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; transition: box-shadow var(--t),transform var(--t); }
.card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.card-head { background: var(--grad); color: var(--wh); padding: 14px 22px; font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.card-body  { padding: 22px; }
.card-foot  { padding: 14px 22px; background: var(--crm); border-top: 1px solid var(--crd); }

/* NEWS GRID */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: var(--wh); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; transition: all var(--t); }
.news-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.news-card-img { height: 188px; background: var(--dkm); overflow: hidden; position: relative; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-ph  { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; background: linear-gradient(135deg,var(--dkm),var(--dkl)); }
.news-card-cat { position: absolute; top: 12px; left: 12px; background: var(--fr); color: var(--wh); font-size: .68rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .08em; }
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: .76rem; color: var(--txl); font-weight: 600; margin-bottom: 8px; }
.news-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.news-card-title a { color: var(--dk); }
.news-card-title a:hover { color: var(--fr); }
.news-card-excerpt { font-size: .87rem; color: var(--txm); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.news-read-more { font-size: .82rem; font-weight: 700; color: var(--fr); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--t); }
.news-read-more:hover { gap: 8px; color: var(--fr); }

/* PREMIAÇÃO */
.premio-wrap { background: var(--wh); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.premio-table { width: 100%; border-collapse: collapse; }
.premio-table th { background: var(--grad); color: var(--wh); padding: 12px 18px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; text-align: left; }
.premio-table td { padding: 13px 18px; border-bottom: 1px solid var(--crm); font-size: .93rem; }
.premio-table tr:nth-child(even) td { background: #fffbf5; }
.premio-table tr:hover td { background: #fff3e8; }
.premio-table tr:last-child td { border-bottom: none; }
.premio-pos { font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem; color: var(--fr); }
.premio-val { font-weight: 800; color: var(--dk); }
.premio-dest td { background: linear-gradient(90deg,#fff8e1,var(--wh)) !important; }
.premio-dest .premio-pos { color: var(--fo); font-size: 1.65rem; }

/* TIMELINE */
.timeline { padding-left: 28px; border-left: 3px solid var(--crm); }
.tl-item { position: relative; padding: 0 0 28px 24px; }
.tl-item::before { content: ''; position: absolute; left: -14px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--fo); border: 2px solid var(--wh); box-shadow: 0 0 0 2px var(--fo); }
.tl-item.done::before    { background: #2e7d32; box-shadow: 0 0 0 2px #2e7d32; }
.tl-item.now::before     { background: var(--fr); width: 15px; height: 15px; left: -16px; box-shadow: 0 0 0 3px var(--fr); }
.tl-item.upcoming::before{ background: var(--crm); box-shadow: 0 0 0 2px var(--crd); }
.tl-date  { font-size: .76rem; font-weight: 700; color: var(--txl); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.tl-title { font-size: .98rem; font-weight: 800; color: var(--dk); margin-bottom: 3px; }
.tl-desc  { font-size: .84rem; color: var(--txm); }

/* INFO STRIP */
.info-strip { background: var(--dkm); border-top: 3px solid var(--fo); border-bottom: 3px solid rgba(240,168,48,.15); padding: 28px 0; }
.info-strip-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.info-strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 32px; border-right: 1px solid rgba(255,255,255,.08); min-width: 150px; }
.info-strip-item:last-child { border-right: none; }
.info-strip-icon { font-size: 1.4rem; margin-bottom: 6px; }
.info-strip-val  { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--fa); letter-spacing: .06em; line-height: 1; }
.info-strip-lbl  { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.4); margin-top: 3px; }

/* GALERIA */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.gallery-item { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; background: var(--dkm); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(24,8,0,.5); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity var(--t); font-size: 1.8rem; color: var(--wh); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* REGULAMENTO */
.reg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.reg-toc { position: sticky; top: 84px; background: var(--wh); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.reg-toc-head { background: var(--grad); color: var(--wh); padding: 14px 18px; font-size: .85rem; font-weight: 800; }
.reg-toc-list a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: .84rem; font-weight: 500; color: var(--txm); transition: all var(--t); border-left: 3px solid transparent; }
.reg-toc-list a:hover,.reg-toc-list a.on { color: var(--fr); background: #fff3e8; border-left-color: var(--fr); }
.reg-toc-num { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--fo); min-width: 20px; }
.reg-block { margin-bottom: 52px; scroll-margin-top: 88px; }
.reg-block h2 { font-size: 1.2rem; font-weight: 900; color: var(--fr); padding-bottom: 10px; border-bottom: 2px solid var(--crm); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.reg-block h2 .rn { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--fo); }
.reg-block h3 { font-size: .98rem; font-weight: 800; color: var(--dkm); margin: 22px 0 10px; }
.reg-block p  { font-size: .94rem; color: var(--txm); line-height: 1.75; margin-bottom: 12px; }
.inciso { padding: 7px 0 7px 20px; border-left: 3px solid var(--crm); margin: 6px 0; font-size: .93rem; color: var(--txm); line-height: 1.65; }
.inciso strong { color: var(--fr); font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .04em; margin-right: 6px; }
.reg-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.reg-info-item { background: var(--crm); border-radius: var(--r-sm); padding: 12px 16px; border-left: 3px solid var(--fo); }
.reg-info-item dt { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--txl); margin-bottom: 3px; }
.reg-info-item dd { font-size: .95rem; font-weight: 700; color: var(--dk); }
.reg-alert { background: #fff8e1; border-left: 4px solid var(--fa); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; font-size: .9rem; color: #5d4037; margin: 14px 0; }
@media (max-width: 900px) { .reg-layout { grid-template-columns: 1fr; } .reg-toc { position: static; } }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--txm); margin-bottom: 7px; }
.req { color: var(--fr); }
.form-ctrl { width: 100%; padding: 11px 14px; border: 2px solid var(--crd); border-radius: var(--r-sm); font-family: var(--fm); font-size: .95rem; color: var(--tx); background: var(--wh); outline: none; transition: border-color var(--t),box-shadow var(--t); }
.form-ctrl:focus { border-color: var(--fo); box-shadow: 0 0 0 3px rgba(232,118,10,.14); }
.form-ctrl.err { border-color: #d32f2f; }
.form-ctrl::placeholder { color: #c0a888; }
select.form-ctrl { appearance: none; background: var(--wh) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a7050'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
textarea.form-ctrl { resize: vertical; min-height: 96px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint  { font-size: .76rem; color: var(--txl); margin-top: 4px; }
.form-error { font-size: .76rem; color: #c62828; margin-top: 4px; font-weight: 600; }
@media (max-width: 600px) { .form-row-2,.form-row-3 { grid-template-columns: 1fr; } }

/* ALERTS */
.alert { padding: 13px 18px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 18px; border-left: 4px solid; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.alert div { flex: 1; }
.alert-ok   { background: #e8f5e9; color: #1b5e20; border-color: #2e7d32; }
.alert-err  { background: #fce4ec; color: #880e4f; border-color: #c62828; }
.alert-warn { background: #fff3e0; color: #e65100; border-color: #fa8c16; }
.alert-info { background: #e3f2fd; color: #0d47a1; border-color: #1565c0; }

/* BADGES */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.badge-pending  { background: #fff3e0; color: #e65100; }
.badge-analysis { background: #e3f2fd; color: #0d47a1; }
.badge-ok       { background: #e8f5e9; color: #1b5e20; }
.badge-confirm  { background: #e8f5e9; color: #1b5e20; border: 1px solid #2e7d32; }
.badge-no       { background: #fce4ec; color: #880e4f; }
.badge-giveup   { background: #f5f5f5; color: #616161; }
.badge-edit     { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* TABLE */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.tbl { width: 100%; border-collapse: collapse; background: var(--wh); font-size: .88rem; }
.tbl th { background: var(--grad); color: var(--wh); padding: 12px 14px; text-align: left; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--crm); vertical-align: middle; }
.tbl tr:nth-child(even) td { background: #fffbf5; }
.tbl tr:hover td { background: #fff3e8; }
.tbl tr:last-child td { border-bottom: none; }

/* PORTAL LAYOUT */
.portal { display: flex; min-height: 100vh; background: #f5efe8; }
.sidebar { width: 256px; background: var(--dk); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; overflow-y: auto; z-index: 100; transition: transform var(--t); }
.sb-logo { padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sb-logo-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--fa); letter-spacing: .1em; }
.sb-logo-sub  { font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .1em; margin-top: 1px; }
.sb-nav { flex: 1; padding: 12px 0; }
.sb-sec { padding: 14px 22px 4px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.25); }
.sb-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 22px; color: rgba(255,255,255,.6); font-size: .86rem; font-weight: 500; transition: all var(--t); border-right: 3px solid transparent; }
.sb-nav a:hover { color: var(--fa); background: rgba(240,168,48,.08); }
.sb-nav a.on   { color: var(--fa); background: rgba(240,168,48,.13); border-right-color: var(--fa); }
.sb-nav a .ic  { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sb-cnt { margin-left: auto; background: var(--fr); color: var(--wh); font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 10px; }
.sb-user { padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.07); }
.sb-user-name  { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.7); }
.sb-user-email { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 1px; word-break: break-all; }
.portal-main { flex: 1; margin-left: 256px; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { background: var(--wh); height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--crm),0 4px 16px rgba(0,0,0,.05); }
.topbar-left  { display: flex; align-items: center; gap: 14px; }
.topbar-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 4px; color: var(--txm); }
.topbar-title  { font-size: 1rem; font-weight: 800; color: var(--dk); }
.topbar-bread  { font-size: .78rem; color: var(--txl); }
.topbar-bread a { color: var(--fr); }
.topbar-right  { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 7px; padding: 6px 14px; background: var(--cr); border: 1px solid var(--crd); border-radius: 24px; font-size: .82rem; font-weight: 700; color: var(--tx); }
.portal-body { padding: 24px; flex: 1; }
@media (max-width: 900px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .portal-main { margin-left: 0; } }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card  { background: var(--wh); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-sm); display: flex; align-items: center; gap: 16px; border-left: 4px solid var(--fo); }
.stat-icon  { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-val   { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--dk); line-height: 1; }
.stat-lbl   { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--txl); margin-top: 2px; }

/* LOGIN */
.login-page { min-height: 100vh; background: var(--grad-dark); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.login-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 15% 40%,rgba(232,118,10,.22) 0%,transparent 60%),radial-gradient(ellipse 35% 55% at 85% 70%,rgba(200,56,10,.15) 0%,transparent 55%); pointer-events: none; }
.login-card { background: var(--wh); border-radius: var(--r-xl); box-shadow: 0 32px 80px rgba(0,0,0,.5); width: 100%; max-width: 440px; overflow: hidden; position: relative; z-index: 1; }
.login-card-wide { max-width: 640px; }
.login-head { background: linear-gradient(160deg,var(--dk) 0%,var(--dkm) 100%); padding: 32px; text-align: center; border-bottom: 3px solid var(--fo); }
.login-logo { font-family: 'Bebas Neue', sans-serif; font-size: 3.2rem; color: var(--fa); letter-spacing: .1em; line-height: 1; }
.login-sub  { font-size: .75rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .16em; margin-top: 6px; }
.login-body { padding: 32px; }
.login-body h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 24px; }
.login-foot { padding: 16px 32px; background: var(--cr); border-top: 1px solid var(--crm); text-align: center; font-size: .85rem; color: var(--txl); }
.login-foot a { color: var(--fr); font-weight: 700; }

/* FILE UPLOAD */
.file-zone { border: 2px dashed var(--crd); border-radius: var(--r-sm); padding: 20px; text-align: center; cursor: pointer; transition: all var(--t); background: var(--cr); position: relative; }
.file-zone:hover,.file-zone.drag { border-color: var(--fo); background: #fff8f0; }
.file-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-zone-icon { font-size: 2rem; margin-bottom: 8px; }
.file-zone-text { font-size: .85rem; color: var(--txm); }
.file-zone-text strong { color: var(--fr); }
.file-preview { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--crm); border-radius: var(--r-sm); margin-top: 8px; font-size: .84rem; color: var(--txm); }
.file-preview-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* FOOTER */
.site-footer { background: var(--dk); color: rgba(255,255,255,.6); padding: 56px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--fa); letter-spacing: .1em; }
.footer-brand-desc { font-size: .88rem; line-height: 1.7; margin-top: 10px; }
.footer-col h4 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: var(--fa); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color var(--t); }
.footer-col ul li a:hover { color: var(--fa); }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: .87rem; margin-bottom: 10px; }
.footer-contact-item a { color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--fa); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* MISC */
.divider  { border: none; border-top: 1px solid var(--crm); margin: 24px 0; }
.text-c   { text-align: center; }
.text-mut { color: var(--txl); }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.d-flex{display:flex} .ai-c{align-items:center} .jc-b{justify-content:space-between} .gap-1{gap:8px} .gap-2{gap:16px}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease),transform .5s var(--ease); }
.reveal.vis { opacity: 1; transform: none; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(200,56,10,.2); border-top-color: var(--fr); border-radius: 50%; animation: rot .65s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(1.4); } }
@media print { .site-nav,.site-footer,.no-print{display:none!important} body{background:#fff!important} .sidebar,.topbar{display:none!important} .portal-main{margin-left:0!important} }
