/* =========================================================
   KORAXMC FORMULÁRIOS — MUSH-LIKE / FORUM CENTER UI
   Baseado no visual das referências: fundo preto, sidebars
   fixas, logo central, listas lineares, tipografia pesada.
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;760;800;900&display=swap');

:root{
  color-scheme: dark;
  --bg:#030303;
  --bg-2:#060606;
  --side:#1f2123;
  --side-line:#45484b;
  --surface:#080808;
  --surface-2:#101010;
  --surface-3:#222222;
  --line:#6b6b6b;
  --line-soft:#2b2f34;
  --line-softer:#171a1d;
  --text:#f7f7f7;
  --muted:#a6afb8;
  --muted-2:#7e8790;
  --brand:#ffd05c;
  --blue:#2ca7df;
  --blue-2:#0a77e8;
  --green:#03d789;
  --red:#ff4e56;
  --yellow:#ffd047;
  --purple:#4b16d8;
  --radius:4px;
  --side-w:63px;
  --content-max:1508px;
  --font:Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--text);
  font-family:var(--font);
  background:var(--bg);
  letter-spacing:-.01em;
  text-rendering:optimizeLegibility;
}
body:has(dialog[open]){overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
::selection{background:rgba(44,167,223,.32);color:#fff}

*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#050505}
*::-webkit-scrollbar-thumb{background:#2d3237;border:2px solid #050505;border-radius:999px}
*::-webkit-scrollbar-thumb:hover{background:#40474f}

/* Sidebars iguais à referência */
.sidebar{
  position:fixed;
  top:0;
  left:0;
  width:var(--side-w);
  height:100vh;
  margin:0;
  padding:11px 9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
  background:var(--side);
  border-right:1px solid var(--side-line);
  z-index:100;
}
.sidebar-right{
  left:auto;
  right:0;
  border-right:0;
  border-left:1px solid var(--side-line);
}
.side-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:4px;
  background:transparent;
  color:#b7c0c7;
  opacity:.95;
  transition:background .14s ease,color .14s ease,border-color .14s ease;
}
.side-icon svg{width:23px;height:23px;stroke-width:2.45;color:currentColor}
.side-icon:hover,.side-icon.active{background:rgba(255,255,255,.06);color:#eef5fb;border-color:rgba(255,255,255,.08)}

.content{
  width:min(var(--content-max), calc(100% - 286px));
  max-width:var(--content-max);
  margin:0 auto;
  padding:36px 0 74px;
  position:relative;
  z-index:1;
}
.brand-header{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:0 0 33px;
  padding:0;
}
.wordmark{
  margin:0;
  color:var(--brand);
  text-shadow:none;
  font-size:42px;
  line-height:1;
  letter-spacing:-.065em;
  font-weight:900;
}
.divider{
  width:100%;
  height:1px;
  margin:0 0 58px;
  background:var(--line);
  opacity:.82;
  border:0;
}

/* Textos gerais */
.home-intro{
  width:min(720px,100%);
  margin:-14px 0 26px 78px;
}
.intro-kicker,.eyebrow,.card-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--blue);
  font-size:13px;
  font-weight:760;
  line-height:1;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.intro-kicker::before,.eyebrow::before,.card-kicker::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--blue);
}
.home-intro h1{
  margin:12px 0 8px;
  color:#fff;
  font-size:42px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.06em;
}
.home-intro p,.notice-panel p{
  margin:0;
  color:var(--muted);
  font-size:17px;
  line-height:1.5;
}

/* Botões */
.btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 16px;
  border:0;
  border-radius:4px;
  background:#101010;
  color:#d7e1e9;
  box-shadow:none;
  text-shadow:none;
  font-weight:780;
  font-size:15px;
  line-height:1;
  letter-spacing:-.01em;
  transition:background .13s ease,color .13s ease,border-color .13s ease,opacity .13s ease;
}
.btn:hover{background:#181818;color:#fff}
.btn:disabled{opacity:.58;cursor:not-allowed}
.btn-primary{
  background:var(--blue);
  color:#fff;
}
.btn-primary:hover{background:#38b5ee;color:#fff}
.btn-secondary,.btn-muted,.btn-ghost,.btn-card{
  background:#101010;
  color:#c9d2da;
  border:1px solid #555;
}
.btn-danger{
  background:rgba(255,78,86,.12);
  color:#ffcbd0;
  border:1px solid rgba(255,78,86,.4);
}
.btn-danger:hover{background:rgba(255,78,86,.18)}
.btn-submit.loading .btn-text{opacity:.68}
.btn-loader{
  display:none;
  width:15px;
  height:15px;
  border:2px solid rgba(255,255,255,.32);
  border-top-color:#fff;
  border-radius:999px;
  animation:spin .75s linear infinite;
}
.btn-submit.loading .btn-loader{display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}

/* Home como lista de fórum */
.forum-list{display:flex;flex-direction:column;gap:0}
.forum-category{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 306px 314px;
  align-items:center;
  gap:20px;
  width:100%;
  min-height:132px;
  padding:28px 0 30px;
  margin:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  transition:background .13s ease,border-color .13s ease;
}
.forum-category:hover{background:rgba(255,255,255,.018);border-bottom-color:#858585}
.cat-main{display:flex;align-items:center;gap:18px;min-width:0}
.cat-icon{
  flex:0 0 50px;
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:var(--cat-icon-bg,var(--red));
  color:#fff;
  overflow:hidden;
}
.cat-icon svg{width:28px;height:28px;color:#fff;stroke-width:2.75}
.cat-info{min-width:0}
.cat-info h2{
  margin:0;
  color:#fff;
  font-size:38px;
  line-height:1.02;
  letter-spacing:-.055em;
  font-weight:800;
  text-shadow:none;
}
.cat-info p{
  margin:9px 0 0;
  color:#a7b0b9;
  font-size:17px;
  line-height:1.43;
  font-weight:430;
}
.cat-sub{
  display:grid;
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:12px 46px;
  width:min(560px,100%);
  margin:22px 0 0;
}
.cat-sub a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  color:#d3dce4;
  font-size:17px;
  font-weight:700;
  line-height:1.2;
}
.cat-sub a svg{
  flex:0 0 auto;
  width:16px;
  height:16px;
  color:var(--blue);
  stroke-width:2.75;
}
.cat-sub a:hover{color:#fff}
.cat-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  min-width:0;
}
.cat-stats div{
  min-height:69px;
  padding:10px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  background:#070707;
  text-align:center;
}
.cat-stats strong{
  display:block;
  color:#9da8b1;
  font-size:30px;
  line-height:1;
  font-weight:420;
  letter-spacing:-.05em;
  text-transform:lowercase;
}
.cat-stats span{
  display:block;
  margin-top:7px;
  color:#a7b0b9;
  font-size:14px;
  line-height:1;
  font-weight:450;
}
.cat-last{
  min-width:0;
  padding-left:14px;
  border-left:3px solid var(--cat-accent,var(--red));
  color:#cfd7df;
}
.cat-last .time{
  display:block;
  color:#aab3bc;
  font-size:14px;
  line-height:1.24;
  margin:0 0 6px;
}
.cat-last p{
  margin:0;
  color:#d8e0e8;
  font-size:15px;
  line-height:1.32;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.notice-panel{
  margin:42px 0 0;
  padding:28px 0 30px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line);
  border-top:1px solid var(--line);
}
.notice-panel h2{
  margin:9px 0 8px;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.055em;
}
.site-footer{
  width:min(var(--content-max), calc(100% - 286px));
  margin:0 auto 34px;
  color:#78828b;
  font-size:14px;
}

/* Breadcrumb e hero de formulário */
.breadcrumb-bar{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:-38px 0 26px;
  padding:0 18px;
  color:#b3bbc3;
  background:#242424;
  border:1px solid rgba(255,255,255,.03);
  border-radius:4px;
}
.breadcrumb-bar a,.breadcrumb-bar span{
  color:#b9c0c7;
  font-size:16px;
  font-weight:680;
}
.breadcrumb-bar a:hover{color:#fff}
.breadcrumb-bar .sep{color:#7d848b;font-weight:700}
.category-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:0 0 56px;
  padding:0;
}
.category-hero .hero-icon{
  width:72px;
  height:72px;
  margin:0 0 18px;
  border-radius:6px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--red);
}
.category-hero .hero-icon svg{width:38px;height:38px;stroke-width:2.8}
.category-hero h1{
  margin:8px 0 0;
  color:#fff;
  font-size:50px;
  line-height:1.06;
  letter-spacing:-.055em;
  font-weight:800;
  text-shadow:none;
}
.category-hero p{
  max-width:720px;
  margin:12px 0 0;
  color:#68717a;
  font-size:17px;
  line-height:1.45;
}
.hero-pills{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 0;
}
.hero-pills span{
  min-height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 10px;
  color:#dce5ec;
  font-size:14px;
  font-weight:720;
  line-height:1;
  border:1px solid #d9e4ef;
  border-radius:5px;
  background:transparent;
}

/* Formulários */
.form-layout{
  display:grid;
  grid-template-columns:286px minmax(0,1fr);
  gap:42px;
  align-items:start;
}
.form-aside{
  position:sticky;
  top:28px;
  padding:0 22px 0 0;
  border-right:1px solid var(--line);
}
.back-link{
  display:inline-flex;
  margin:0 0 22px;
  color:#d3dce4;
  font-size:15px;
  font-weight:700;
}
.back-link:hover{color:#fff}
.form-aside h2{
  margin:0 0 10px;
  color:#fff;
  font-size:27px;
  line-height:1.05;
  letter-spacing:-.055em;
}
.form-aside p,.aside-list{color:#a7b0b9;font-size:15px;line-height:1.48}
.aside-list{display:grid;gap:10px;margin:20px 0 0;padding:0;list-style:none}
.aside-list li{position:relative;padding-left:18px}
.aside-list li::before{content:"›";position:absolute;left:0;color:var(--blue);font-weight:800}
.form-shell{min-width:0}
.application-form{display:grid;gap:26px}
.fields-grid{display:grid;gap:34px}
.field-section{
  padding:0 0 34px;
  border-bottom:1px solid var(--line);
}
.field-section-head{
  margin:0 0 18px;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.field-section-head h2{
  margin:0;
  color:#fff;
  font-size:25px;
  line-height:1.05;
  letter-spacing:-.05em;
  font-weight:800;
}
.field-section-head p{
  margin:2px 0 0;
  color:#828c95;
  font-size:15px;
  line-height:1.42;
}
.field-section-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.field{display:grid;gap:8px;min-width:0}
.field.full-field{grid-column:1/-1}
.field>span{
  color:#dce5ec;
  font-size:14px;
  font-weight:720;
}
.required-mark{color:var(--red);font-weight:800}
input,textarea,select{
  width:100%;
  background:#090909;
  color:#eef5fb;
  border:1px solid #343b42;
  border-radius:4px;
  box-shadow:none;
  outline:none;
  font-family:var(--font);
  transition:border-color .13s ease,box-shadow .13s ease,background .13s ease;
}
input,select{height:45px;padding:0 13px}
textarea{min-height:132px;padding:12px 13px;resize:vertical;line-height:1.55}
input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(44,167,223,.12);background:#0d0d0d}
input::placeholder,textarea::placeholder{color:#6f7a83}
.field-error input,.field-error textarea,.field-error select{border-color:var(--red);box-shadow:0 0 0 3px rgba(255,78,86,.10)}
.error-message{margin:0;color:#ff98a0;font-size:12px;line-height:1.35}
.form-alert{
  padding:14px 16px;
  border:1px solid rgba(255,78,86,.4);
  border-radius:4px;
  background:rgba(255,78,86,.08);
  color:#ffcdd1;
  font-size:15px;
}
.form-alert.success{border-color:rgba(3,215,137,.36);background:rgba(3,215,137,.08);color:#bdf5df}
.form-footer-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 0 22px;
}
.form-note{margin:0;color:#828c95;font-size:14px}.form-note strong{color:#cfd7df}

/* Toast */
.toast-root{
  position:fixed;
  right:82px;
  bottom:24px;
  z-index:250;
  display:grid;
  gap:10px;
  width:min(360px,calc(100% - 32px));
}
.toast{
  padding:13px 14px;
  border:1px solid #303740;
  border-left:3px solid var(--blue);
  border-radius:4px;
  background:#0b0b0b;
  color:#dce5ec;
  box-shadow:0 18px 60px rgba(0,0,0,.45);
  font-size:14px;
}
.toast.error{border-left-color:var(--red)}
.toast.success{border-left-color:var(--green)}

.hidden{display:none!important}

@media (max-width:1280px){
  .content,.site-footer{width:min(calc(100% - 170px),var(--content-max))}
  .forum-category{grid-template-columns:minmax(0,1fr) 250px 260px}
  .cat-info h2{font-size:32px}
  .home-intro{margin-left:0}
}
@media (max-width:980px){
  .content{width:100%;padding:28px 18px 104px}
  .site-footer{width:100%;padding:0 18px 86px;margin-bottom:0}
  .sidebar{top:auto;bottom:14px;left:50%;right:auto;width:auto;height:58px;flex-direction:row;padding:8px 10px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:var(--side);transform:translateX(-50%)}
  .sidebar-right{display:none}
  .divider{margin-bottom:42px}
  .forum-category{grid-template-columns:1fr;gap:16px;min-height:0;padding:22px 0}
  .cat-stats{max-width:360px}
  .cat-last{border-left:0;border-top:1px solid var(--line-soft);padding:14px 0 0}
  .cat-sub{grid-template-columns:1fr;gap:9px}
  .breadcrumb-bar{margin:-24px 0 24px;overflow-x:auto;justify-content:flex-start}
  .category-hero h1{font-size:40px}
  .form-layout{grid-template-columns:1fr;gap:28px}
  .form-aside{position:static;border-right:0;border-bottom:1px solid var(--line);padding:0 0 22px}
  .field-section-head{grid-template-columns:1fr;gap:6px}
  .toast-root{right:16px;bottom:88px}
  .notice-panel{grid-template-columns:1fr}
}
@media (max-width:620px){
  .content{padding-inline:14px}
  .wordmark{font-size:34px}
  .category-hero h1{font-size:32px}
  .cat-main{align-items:flex-start}
  .cat-icon{width:46px;height:46px;flex-basis:46px}
  .cat-info h2{font-size:25px}
  .cat-info p,.cat-sub a{font-size:14px}
  .cat-stats{grid-template-columns:1fr 1fr}
  .cat-stats strong{font-size:24px}
  .home-intro h1{font-size:32px}
  .field-section-grid{grid-template-columns:1fr}
  .form-footer-actions{align-items:stretch;flex-direction:column}.form-footer-actions .btn{width:100%}
}
[hidden]{display:none!important}

/* ===================== CONTAS DE USUÁRIO ===================== */
.account-content{padding-bottom:92px}
.account-hero .account-hero-icon{background:#259ed5}
.account-layout{
  display:grid;
  grid-template-columns:286px minmax(0,1fr);
  gap:42px;
  align-items:start;
}
.account-card{
  width:min(720px,100%);
  border-bottom:1px solid var(--line);
  padding:0 0 34px;
}
.account-tabs{
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  margin:0 0 24px;
  background:#121212;
  border:1px solid var(--line-soft);
  border-radius:4px;
  overflow:hidden;
}
.account-tab{
  min-height:42px;
  padding:0 18px;
  border:0;
  background:transparent;
  color:#a7b0b9;
  font-weight:800;
}
.account-tab.active{background:#242424;color:#fff}
.account-form{display:grid;gap:15px}
.account-section-head{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:22px;
  margin:0 0 5px;
}
.account-avatar-preview{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border:1px solid #242b32;
  border-radius:4px;
  background:#080808;
}
.account-avatar-preview img{
  width:58px;
  height:58px;
  border-radius:5px;
  image-rendering:pixelated;
  background:#111820;
}
.account-avatar-preview strong{display:block;color:#fff;font-size:18px;line-height:1.1}
.account-avatar-preview span{display:block;margin-top:5px;color:#828c95;font-size:13px}
.profile-view{
  display:grid;
  grid-template-columns:286px minmax(0,1fr);
  gap:42px;
  align-items:start;
}
.profile-box{
  position:sticky;
  top:28px;
  padding:0 22px 0 0;
  border-right:1px solid var(--line);
  display:grid;
  gap:16px;
}
.profile-avatar{
  width:96px;
  height:96px;
  border-radius:6px;
  image-rendering:pixelated;
  background:#0b0b0b;
  border:1px solid #303740;
}
.profile-box h2{margin:9px 0 5px;color:#fff;font-size:32px;line-height:1;letter-spacing:-.055em}
.profile-box p{margin:0;color:#8d96a0;font-size:14px;overflow-wrap:anywhere}
.profile-details-card{min-width:0;border-bottom:1px solid var(--line);padding:0 0 28px}
.table-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 0 14px;
  border-bottom:1px solid var(--line);
}
.table-header h2{margin:0;color:#fff;font-size:22px;line-height:1.05;letter-spacing:-.045em;font-weight:800}
.answers-list{
  padding:18px 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.answer-item{
  padding:12px;
  border:1px solid #242b32;
  border-radius:4px;
  background:#080808;
}
.answer-item.full{grid-column:1/-1}
.answer-item span{display:block;margin:0 0 7px;color:#7e8790;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.answer-item p{margin:0;color:#dce5ec;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-answers{padding-bottom:0}
@media (max-width:980px){
  .account-layout,.profile-view{grid-template-columns:1fr;gap:28px}
  .profile-box{position:static;border-right:0;border-bottom:1px solid var(--line);padding:0 0 22px}
  .account-section-head{grid-template-columns:1fr;gap:6px}
}
@media (max-width:620px){
  .account-tabs{width:100%}
  .answers-list{grid-template-columns:1fr}
  .profile-table-head{align-items:stretch;flex-direction:column}
  .profile-table-head .btn{width:100%}
}
.linked-account-box{
  margin:24px 0 0;
  padding:15px;
  border:1px solid #242b32;
  border-radius:4px;
  background:#080808;
}
.linked-account-box p{margin:8px 0 12px;color:#8d96a0;font-size:14px;line-height:1.45}
.mini-user{display:flex;align-items:center;gap:10px;margin-top:10px}
.mini-user img{width:36px;height:36px;border-radius:4px;image-rendering:pixelated;background:#111820}
.mini-user strong{color:#fff;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media (max-width:980px){.notice-actions{justify-content:flex-start}}
.side-icon.mobile-only-link{display:none}
@media (max-width:980px){.side-icon.mobile-only-link{display:grid}}
.field-help{
  display:block;
  margin-top:7px;
  color:#747e87;
  font-size:12px;
  line-height:1.45;
}
