/* =========================================================
   Santander Select — Bolão
   ========================================================= */

@font-face{ font-family:'SantanderHeadline'; font-style:normal; font-weight:300; font-display:swap; src:url('fonts/SantanderHeadline-Light.ttf') format('truetype'); }
@font-face{ font-family:'SantanderHeadline'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/SantanderHeadline-Regular.ttf') format('truetype'); }
@font-face{ font-family:'SantanderHeadline'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/SantanderHeadline-Bold.ttf') format('truetype'); }
@font-face{ font-family:'SantanderText'; font-style:normal; font-weight:300; font-display:swap; src:url('fonts/SantanderText-Light.ttf') format('truetype'); }
@font-face{ font-family:'SantanderText'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/SantanderText-Regular.ttf') format('truetype'); }
@font-face{ font-family:'SantanderText'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/SantanderText-Bold.ttf') format('truetype'); }
@font-face{ font-family:'SantanderMicro'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/SantanderMicro-Regular.ttf') format('truetype'); }
@font-face{ font-family:'SantanderMicro'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/SantanderMicro-Bold.ttf') format('truetype'); }

:root{
  --red:#EC0000;
  --red-splash:#CC0000;
  --red-dark:#D40000;
  --red-deep:#8F0018;
  --teal:#0E9F8F;
  --ink:#1F2124;
  --ink-soft:#3B3B3B;
  --gray:#5B6166;
  --gray-l:#767B80;
  --line:#E3E6E8;
  --dark:#2B2C2E;
  --dark-2:#3A3B3F;
  --white:#fff;
  --font-head:'SantanderHeadline','Roboto',sans-serif;
  --font-text:'SantanderText','Roboto','Helvetica Neue',Arial,sans-serif;
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--font-text);
  background:#dfe2e7;
  color:var(--ink);
  font-size:15px;
  line-height:1.45;
}
button{ font-family:inherit; }
.ic{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.ic-xs{ width:16px; height:16px; }
.flame{ width:26px; height:26px; fill:var(--red); flex:none; }
.flame.sm{ width:20px; height:20px; }

.frame{
  max-width:430px;
  margin:0 auto;
  min-height:100vh; min-height:100dvh;
  background:#fff;
  position:relative;
}
@media (max-width:520px){ body{ background:#fff; } .frame{ max-width:none; box-shadow:none; } }
@media (min-width:521px){ .frame{ box-shadow:0 0 44px rgba(0,0,0,.22); } }

.view{ display:none; min-height:100vh; min-height:100dvh; flex-direction:column; background:#fff; }
.view.active{ display:flex; }

/* ======================= SPLASH ======================= */
#view-splash{ background:var(--red-splash); }
.splash{ flex:1; position:relative; animation:splashout .4s ease .7s forwards; }
.splash-flame{
  position:absolute; left:50%; top:47.7%;
  width:36.5%; max-width:250px; height:auto;
  transform:translate(-50%,-50%);
}
@keyframes splashout{ to{ opacity:0; visibility:hidden; } }

/* ======================= LANDING ======================= */
.landing{
  flex:1; position:relative; overflow:hidden; background:#171310;
  background:url('landing-bg.webp') center/cover no-repeat;
}
.landing-ui{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:0 0 calc(18px + env(safe-area-inset-bottom));
}
.landing-ui h1{
  margin:0 16px 50px; color:#fff;
  font-family:var(--font-head); font-weight:700;
  font-size:39.5px; line-height:59.6px;
}
.btn-enter{
  width:100%; height:42px; border:0; border-radius:999px; cursor:pointer;
  background:var(--red); color:#fff;
  font-family:var(--font-text); font-size:14.5px; font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:transform .06s ease, background .15s;
}
.btn-enter:active{ transform:scale(.985); background:var(--red-dark); }
.fineprint{ color:#8A8F94; font-size:10.5px; text-align:center; margin:16px 0 0; }
.fineprint code{ font-family:ui-monospace,Consolas,monospace; }
.center{text-align:center;}

/* ======================= BOTÕES / LINKS ======================= */
.btn-cta{
  margin-top:26px; width:100%; height:43px; border:0; border-radius:999px; cursor:pointer;
  background:#E4E4E4; color:#9AA0A5; font-family:var(--font-text); font-size:14.5px; font-weight:700;
  transition:background .2s, color .2s, transform .06s ease;
}
.btn-cta:not(:disabled){ background:var(--red); color:#fff; box-shadow:0 8px 20px rgba(236,0,0,.3); }
.btn-cta:not(:disabled):hover{ background:var(--red-dark); }
.btn-cta:active{ transform:scale(.985); }
.link-teal{
  margin-top:16px; align-self:center; background:none; border:0; cursor:pointer;
  color:var(--teal); font-size:14px; font-weight:600; text-decoration:underline; padding:8px 10px;
  display:inline-flex; align-items:center; gap:6px;
}
.link-teal:active{ opacity:.7; }
.spin{
  display:inline-block; width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,.45); border-top-color:#fff;
  animation:rot .7s linear infinite; vertical-align:-3px; margin-right:8px;
}
@keyframes rot{ to{ transform:rotate(360deg); } }

/* ======================= LOGIN ======================= */
.login-head{
  position:relative; display:flex; align-items:center; justify-content:center;
  padding:calc(26px + env(safe-area-inset-top)) 16px 0;
}
.brand-lockup{ display:flex; align-items:center; gap:4px; }
.lock-word{ display:block; height:22px; width:auto; }
.ic-btn{ background:none; border:0; cursor:pointer; width:40px; height:40px; display:grid; place-items:center; border-radius:50%; color:inherit; transition:background .12s; }
.ic-btn:active{ background:rgba(0,0,0,.06); }
.ic-btn.red{ color:var(--red); position:absolute; left:7px; top:calc(16px + env(safe-area-inset-top)); }
.ic-btn.on-dark{ color:#fff; }
.ic-btn.on-dark:active{ background:rgba(255,255,255,.1); }
.ic-burger{ width:22px; height:14px; stroke-width:2; stroke-linecap:butt; }

.login-body{ flex:1; padding:0 15px calc(40px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; }
.login-body > .btn-cta{ margin-top:auto; }
.red-title{ text-align:center; color:var(--red); font-family:var(--font-head); font-size:21px; font-weight:700; margin:37px 0 0; }
.field-label{ color:#3B3B3B; font-size:15px; font-weight:400; line-height:14px; margin:27px 0 -2px 1px; }
.field-label.left{ text-align:left; margin-bottom:6px; }
.field{ position:relative; }
.field input{
  width:100%; height:56px; border:1px solid #9A9A9A; border-radius:12px;
  padding:0 48px 0 14px; font-size:17px; outline:none; background:#fff; color:var(--ink);
  transition:border-color .15s;
}
.field input::placeholder{ color:#B3B3B3; }
.field input:focus{ border-color:#5B5B5B; }
.field-clear{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%; border:0; cursor:pointer;
  background:#E8EAED; color:#5B6166; display:grid; place-items:center;
}
.field-clear:active{ background:#DDE0E3; }
.field-eye{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border-radius:50%; border:0; cursor:pointer;
  background:none; color:#767B80; display:grid; place-items:center;
}
.form-error{ min-height:18px; color:#D93025; font-size:13px; text-align:center; margin:10px 0 0; font-weight:500; }
.shake{ animation:shake .4s; }
@keyframes shake{ 20%,60%{ transform:translateX(-6px);} 40%,80%{ transform:translateX(6px);} }

.cpf-line{ text-align:center; color:#3B3B3B; font-size:14px; margin:26px 0 0; }
.cpf-line b{ color:#1F2124; font-weight:700; font-variant-numeric:tabular-nums; }
.pencil{
  margin-left:6px; vertical-align:-3px; width:26px; height:26px; border-radius:50%;
  border:1px solid var(--line); background:#fff; color:var(--gray); cursor:pointer;
  display:inline-grid; place-items:center;
}
.key-link{ justify-content:center; }

/* ======================= HOME ======================= */
.darkbar{ background:linear-gradient(180deg,var(--dark-2),var(--dark)); color:#fff; }
.appbar{ display:flex; align-items:center; justify-content:space-between; padding:12px 12px 8px; gap:4px; }
.appbrand{ display:flex; align-items:center; gap:8px; margin-left:4px; }
.appbrand .flame{ width:24px; height:24px; fill:#fff; }
.appbrand-sep{ width:1px; height:17px; background:rgba(255,255,255,.32); }
.appbrand-name{ font-size:15px; font-weight:600; color:#E9EBEE; letter-spacing:.1px; }
.appbar-actions{ display:flex; gap:2px; }
.eye-off{ display:none; }
body.revealed .eye-on{ display:none; }
body.revealed .eye-off{ display:block; }

.tabbar{ display:flex; align-items:center; padding:2px 0 0; position:relative; }
.tabbar::before{ content:""; position:absolute; left:0; bottom:0; width:56%; height:3px; border-radius:2px; background:#fff; }
.tab{ background:none; border:0; cursor:pointer; color:#9AA0A6; font-size:15px; font-weight:600; padding:10px 0 12px; position:relative; }
.tab:first-child{ margin-left:62px; }
.tab:nth-child(2){ margin-left:96px; }
.tab.active{ color:#fff; }

.home-scroll{ flex:1; display:flex; flex-direction:column; }
.dark-zone{ padding:20px 22px 28px; color:#fff; background:var(--dark); }
.saldo-head{ display:flex; align-items:center; gap:6px; color:#A7ACB2; font-size:13px; font-weight:500; }
.info{ border:0; background:none; color:#A7ACB2; cursor:pointer; display:grid; place-items:center; width:20px; height:20px; }
.money{ color:#fff; font-weight:300; font-variant-numeric:tabular-nums; }
.money-big{
  font-size:38px; letter-spacing:.5px; margin:8px 0 2px; cursor:pointer; user-select:none;
  transition:opacity .2s;
}
.money-big:active{ opacity:.7; }
.saldo-sub{ color:#A7ACB2; font-size:13px; }
.saldo-sub b{ font-weight:600; color:#D3D6DA; }
.link-light{ background:none; border:0; color:#E8EAED; font-size:14px; text-decoration:underline; margin-top:10px; padding:4px 0; cursor:pointer; }
.link-light:active{ opacity:.7; }

.quickrow{ display:flex; justify-content:space-between; margin-top:28px; gap:4px; }
.qa{ display:flex; flex-direction:column; align-items:center; gap:9px; width:25%; cursor:pointer; border:0; background:none; padding:0; }
.qa-ic{
  width:56px; height:56px; border-radius:50%; border:1.6px solid #6E7378;
  display:grid; place-items:center; color:#fff; transition:background .12s;
}
.qa:active .qa-ic{ background:rgba(255,255,255,.1); }
.qa span{ font-size:11.5px; color:#D3D6DA; text-align:center; line-height:1.25; max-width:92px; }
.tealrow{ margin-top:24px; }
.qa.teal .qa-ic{ border-color:var(--teal); color:var(--teal); }
.qa.teal:active .qa-ic{ background:rgba(14,159,143,.08); }
.qa.teal span{ color:#3C4043; }

.light-zone{ flex:1; background:#fff; padding:20px 18px 10px; box-shadow:0 -10px 24px rgba(0,0,0,.14); }
.minhas-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.minhas-head h3{ margin:0; font-size:18px; font-weight:800; letter-spacing:-.2px; }
.total-inline{ font-size:12.5px; color:var(--gray); }
.total-inline b{ color:var(--ink); font-weight:700; }

.acct-card{
  border:1px solid var(--line); border-radius:14px; padding:15px 16px;
  box-shadow:0 1px 3px rgba(16,24,40,.06); margin-bottom:6px;
}
.cards-track{ display:flex; gap:12px; overflow-x:auto; overflow-y:hidden; margin-right:-18px; scrollbar-width:none; scroll-snap-type:x proximity; }
.cards-track::-webkit-scrollbar{ display:none; }
.cards-track .acct-card{ flex:0 0 calc(100% - 23px); scroll-snap-align:start; margin-bottom:0; }
.acct-row1{ display:flex; align-items:center; gap:12px; cursor:pointer; }
.acct-row1 > .ic{ width:24px; height:24px; color:var(--ink); }
.acct-id{ font-size:13px; font-weight:700; }
.acct-type{ font-size:12px; color:var(--gray-l); margin-top:2px; }
.chev{ margin-left:auto; width:18px !important; height:18px !important; color:var(--red) !important; stroke-width:2.2 !important; }
.acct-div{ height:1px; background:var(--line); margin:13px 0; }
.acct-row2{ display:flex; justify-content:space-between; align-items:flex-end; }
.acct-row2 span{ display:block; font-size:12px; color:var(--gray-l); margin-bottom:5px; }
.acct-row2 b{ font-size:16.5px; font-weight:700; color:var(--ink); }
.acct-row2 .end{ text-align:right; }
.money-card{ color:var(--ink) !important; font-weight:700 !important; }

.dots{ display:flex; gap:5px; justify-content:center; margin:18px 0 10px; }
.dots i{ width:7px; height:7px; border-radius:50%; background:#D5DADF; }
.dots i.on{ background:var(--ink); }

/* ======================= PÁGINAS SECUNDÁRIAS ======================= */
.subbar{
  display:flex; align-items:center; gap:8px;
  background:linear-gradient(180deg,var(--dark-2),var(--dark)); color:#fff;
  padding:calc(12px + env(safe-area-inset-top)) 10px 12px; position:sticky; top:0; z-index:5;
}
.subbar h2{ margin:0; font-size:17px; font-weight:700; }
.subbar-spacer{ flex:1; }
.chat-on{ font-size:11.5px; color:#7EE2A8; font-weight:600; }
.padpage{ flex:1; padding:18px 18px 24px; display:flex; flex-direction:column; }

.movlist{ padding:6px 0 90px; }
.mov-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:15px 20px; border-bottom:1px solid #F0F2F4; }
.mov-desc{ font-size:14px; font-weight:600; }
.mov-date{ font-size:12px; color:var(--gray-l); margin-top:3px; }
.mov-val{ font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.mov-val.pos{ color:#0B8043; }
.empty{ text-align:center; color:#9AA0A5; padding:64px 34px; font-size:14px; }
.empty .ic{ width:46px; height:46px; color:#C6CBD0; margin-bottom:10px; }

.pix-card{ border:1px solid var(--line); border-radius:14px; padding:16px; box-shadow:0 1px 3px rgba(16,24,40,.05); margin-bottom:8px; }
.pix-row{ display:flex; justify-content:space-between; align-items:flex-end; gap:10px; }
.pix-chave{ font-size:16.5px; font-weight:700; font-variant-numeric:tabular-nums; }
.pix-emv-label{ margin-top:16px; }
.pix-emv{
  margin-top:6px; font-family:ui-monospace,Consolas,monospace; font-size:11px; color:#5B6166;
  background:#F6F7F8; border:1px dashed #D5DADF; border-radius:10px; padding:10px 12px;
  word-break:break-all; max-height:74px; overflow:hidden;
}
.mini-label{ font-size:11.5px; color:var(--gray-l); font-weight:600; display:block; margin-bottom:4px; }
.pixgrid{ margin-top:26px; }

.credit-card{
  margin:4px auto 10px; width:100%; max-width:340px; aspect-ratio:1.62;
  border-radius:18px; padding:20px; color:#fff;
  background:radial-gradient(130% 170% at 85% -5%, #FF5A72 0%, var(--red) 38%, var(--red-deep) 100%);
  box-shadow:0 14px 30px rgba(143,0,24,.4);
  display:flex; flex-direction:column; justify-content:space-between;
  position:relative; overflow:hidden;
}
.credit-card::after{
  content:""; position:absolute; inset:auto -60px -120px auto; width:280px; height:280px; border-radius:50%;
  background:rgba(255,255,255,.07);
}
.cc-top{ display:flex; justify-content:space-between; align-items:center; }
.cc-brand{ display:flex; align-items:center; gap:7px; font-weight:800; font-size:15px; letter-spacing:-.2px; }
.cc-brand .flame{ width:20px; height:20px; fill:#fff; }
.cc-wave{ opacity:.85; }
.cc-chip{
  width:42px; height:31px; border-radius:6px;
  background:linear-gradient(135deg,#F8DE7E 0%,#E4B54A 55%,#C89228 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -8px 10px rgba(0,0,0,.12);
  position:relative;
}
.cc-chip::after{ content:""; position:absolute; inset:8px 10px; border:1px solid rgba(0,0,0,.25); border-radius:3px; }
.cc-num{ font-size:19px; letter-spacing:2.5px; font-weight:600; font-variant-numeric:tabular-nums; margin-top:14px; }
.cc-bot{ display:flex; justify-content:space-between; align-items:flex-end; position:relative; z-index:1; }
.cc-label{ font-size:9.5px; letter-spacing:1px; text-transform:uppercase; color:#FFD3DB; margin-bottom:3px; }
.cc-name{ font-size:12.5px; letter-spacing:1px; text-transform:uppercase; font-weight:600; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-right{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cc-val{ font-size:10.5px; line-height:1.3; color:#FFD3DB; text-align:right; }
.mc{ display:flex; }
.mc i{ width:26px; height:26px; border-radius:50%; }
.mc i:first-child{ background:#EB001B; }
.mc i:last-child{ background:#F79E1B; margin-left:-10px; mix-blend-mode:screen; }

.chatview{ overflow:hidden; }
.chat-log{ flex:1; overflow-y:auto; padding:16px 16px 8px; display:flex; flex-direction:column; gap:10px; }
.bub{ max-width:80%; padding:10px 14px; border-radius:16px; font-size:14.5px; line-height:1.35; animation:bubin .22s ease; }
.bub.bot{ background:#F1F3F4; border-bottom-left-radius:5px; align-self:flex-start; }
.bub.me{ background:var(--red); color:#fff; border-bottom-right-radius:5px; align-self:flex-end; }
@keyframes bubin{ from{ transform:translateY(6px); opacity:0; } to{ transform:none; opacity:1; } }
.chat-form{ display:flex; gap:8px; padding:10px 14px calc(78px + env(safe-area-inset-bottom)); }
.chat-form input{
  flex:1; height:46px; border:1.5px solid #D5DADF; border-radius:999px;
  padding:0 18px; font-size:15px; outline:none; background:#F6F7F8;
}
.chat-form input:focus{ border-color:var(--teal); background:#fff; }
.chat-send{
  width:46px; height:46px; border-radius:50%; border:0; cursor:pointer;
  background:var(--red); color:#fff; display:grid; place-items:center; flex:none;
}
.chat-send:active{ background:var(--red-dark); }

/* ======================= NAVEGAÇÃO INFERIOR ======================= */
.bottomnav{
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:min(430px,100%); z-index:30;
  display:none; background:#fff; border-top:1px solid #E5E7EA;
  padding:6px 4px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns:repeat(3,1fr);
}
body[data-navvis="1"] .bottomnav{ display:grid; }
.bottomnav button{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:0; cursor:pointer; padding:6px 2px;
  color:#5B6166; font-size:10.5px; font-weight:600;
}
.bottomnav button.active{ color:var(--red); }
.bottomnav .ic{ width:23px; height:23px; }

/* espaço para a navegação fixa */
#view-home.home-padded .home-scroll{ padding-bottom:70px; }
.view.sub{ padding-bottom:0; }
#view-extrato #extrato-list{ padding-bottom:86px; }
.padpage{ padding-bottom:86px; }

/* ======================= DRAWER ======================= */
.scrim{
  position:fixed; inset:0; background:rgba(18,20,22,.5); z-index:40;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.drawer{
  position:fixed; top:0; bottom:0; left:0; z-index:45;
  width:min(320px,86vw); background:#fff;
  transform:translateX(-103%); transition:transform .28s cubic-bezier(.3,.8,.3,1);
  box-shadow:10px 0 34px rgba(0,0,0,.2); display:flex; flex-direction:column;
  padding-top:env(safe-area-inset-top);
}
@media (min-width:521px){ .drawer{ left:calc(50% - 215px); transform:translateX(calc(-100% - 14px)); } }
body.drawer-open .scrim{ opacity:1; pointer-events:auto; }
body.drawer-open .drawer{ transform:none; }
.drawer-head{ display:flex; align-items:center; gap:12px; padding:22px 18px 16px; }
.avatar{
  width:48px; height:48px; border-radius:50%; background:var(--red); color:#fff;
  display:grid; place-items:center; font-size:20px; font-weight:800; flex:none;
}
.drawer-id b{ display:block; font-size:15.5px; max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.drawer-id span{ font-size:12px; color:var(--gray-l); font-variant-numeric:tabular-nums; }
.drawer-sep{ height:1px; background:var(--line); margin:2px 0; }
.drawer-item{
  display:flex; align-items:center; gap:14px; width:100%; text-align:left;
  background:none; border:0; cursor:pointer; padding:13px 18px;
  font-size:14.5px; font-weight:600; color:var(--ink); text-decoration:none;
}
.drawer-item .ic{ color:var(--gray); width:21px; height:21px; }
.drawer-item:active{ background:#F4F5F6; }
.drawer-item.danger, .drawer-item.danger .ic{ color:var(--red); }

/* ======================= ADMIN ======================= */
.adm-gate{ flex:1; display:flex; align-items:center; justify-content:center; padding:24px; background:linear-gradient(180deg,#FFF6F7 0%, #fff 34%); }
.gate-card{ width:100%; max-width:340px; display:flex; flex-direction:column; align-items:stretch; }
.gate-icon{
  width:66px; height:66px; border-radius:50%; background:#FFEDEF; color:var(--red);
  display:grid; place-items:center; margin:0 auto 16px;
}
.gate-title{ margin:0; text-align:center; font-size:21px; font-weight:800; }
.gate-sub{ text-align:center; color:var(--gray-l); font-size:13.5px; margin:6px 0 20px; }
.gate-card .btn-cta{ margin-top:8px; }
.gate-card .fineprint{ margin-top:18px; }

.adm-dash{ flex:1; flex-direction:column; background:#F4F5F7; }
.adm-bar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  background:linear-gradient(120deg,var(--red-deep) 0%, var(--red) 78%);
  color:#fff; padding:12px 14px;
}
.adm-brand{ display:flex; align-items:center; gap:9px; font-weight:800; font-size:16px; letter-spacing:-.2px; }
.adm-brand .flame{ width:22px; height:22px; fill:#fff; }
.adm-brand small{ display:block; font-size:10.5px; font-weight:600; opacity:.85; letter-spacing:.2px; }
.adm-bar-actions{ display:flex; gap:8px; }
.btn-white{
  display:inline-flex; align-items:center; gap:5px;
  background:#fff; color:var(--red); height:38px; border-radius:999px; padding:0 15px;
  font-weight:700; font-size:13px; border:0; cursor:pointer;
}
.btn-white:active{ transform:scale(.97); }
.btn-ghost{
  display:inline-flex; align-items:center; gap:5px;
  background:rgba(255,255,255,.14); color:#fff; height:38px; border-radius:999px; padding:0 14px;
  font-weight:600; font-size:13px; border:1px solid rgba(255,255,255,.4); cursor:pointer;
}
.btn-ghost:active{ background:rgba(255,255,255,.24); }

.adm-scroll{ padding:14px 14px 46px; display:flex; flex-direction:column; gap:14px; }
.adm-mode{
  font-size:11.5px; font-weight:600; border-radius:10px; padding:9px 12px;
  background:#FFF4F5; border:1px solid #FFD3DA; color:#9A0019;
}
.adm-mode.local{ background:#FFF9E8; border-color:#F1E3AC; color:#7A5B00; }
.adm-stats{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stat{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:13px 14px; }
.stat b{ display:block; font-size:19px; font-weight:800; font-variant-numeric:tabular-nums; }
.stat span{ font-size:11.5px; color:var(--gray-l); font-weight:600; }

.adm-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:15px; }
.adm-card-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.adm-card-head b{ font-size:14.5px; }
.adm-set-title{ display:block; font-size:14.5px; margin-bottom:12px; }
.adm-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:11px; margin-top:13px; }
.adm-form-grid label{ font-size:11.5px; color:var(--gray-l); font-weight:600; display:flex; flex-direction:column; gap:5px; }
.adm-form-grid .full{ grid-column:1/-1; }
.mini-input{
  width:100%; height:44px; border:1.5px solid #D5DADF; border-radius:10px;
  padding:0 12px; font-size:14.5px; outline:none; background:#fff; color:var(--ink);
}
.mini-input:focus{ border-color:var(--red); box-shadow:0 0 0 3px rgba(234,0,40,.1); }
.adm-hint{ grid-column:1/-1; font-size:11px; color:#9AA0A5; margin:0; }
.adm-form-actions{ display:flex; gap:8px; }
.btn-small{
  height:40px; padding:0 16px; border-radius:999px; font-size:13.5px; font-weight:700; cursor:pointer; border:0;
}
.btn-small.red{ background:var(--red); color:#fff; }
.btn-small.red:active{ background:var(--red-dark); }
.btn-small.ghost{ background:#EDF0F2; color:var(--gray); }

.adm-list{ display:flex; flex-direction:column; gap:12px; }
.cliente{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:15px; }
.cliente.editing{ border-color:var(--red); box-shadow:0 0 0 3px rgba(234,0,40,.12); }
.cliente-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.cliente-top b{ font-size:15.5px; }
.cliente-cpf{ font-size:12px; color:var(--gray-l); font-variant-numeric:tabular-nums; margin-top:2px; }
.cliente-senha{ font-size:11px; color:var(--teal); font-weight:700; margin-top:3px; }
.cliente-vals{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.pill{
  font-size:12px; font-weight:700; border-radius:999px; padding:6px 11px;
  background:#F4F5F7; color:var(--ink); font-variant-numeric:tabular-nums;
}
.pill span{ color:var(--gray-l); font-weight:600; }
.cliente-actions{ display:flex; gap:8px; margin-top:13px; flex-wrap:wrap; }
.mini-btn{
  display:inline-flex; align-items:center; gap:5px;
  height:34px; padding:0 12px; border-radius:999px; cursor:pointer;
  background:#fff; border:1.5px solid #D5DADF; color:var(--ink);
  font-size:12.5px; font-weight:700;
}
.mini-btn:active{ background:#F4F5F6; }
.mini-btn.danger{ color:#D93025; border-color:#F0BEB7; }
.mini-btn.danger:active{ background:#FDF1EF; }

.movbox{ margin-top:13px; border-top:1px dashed var(--line); padding-top:12px; }
.movbox h5{ margin:0 0 8px; font-size:12.5px; color:var(--gray-l); text-transform:uppercase; letter-spacing:.6px; }
.mov-admin{ display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #F0F2F4; font-size:13px; }
.mov-admin .del-mov{ border:0; background:none; color:#B99; color:#C2C6CA; cursor:pointer; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; }
.mov-admin .del-mov:active{ background:#FBE9E7; color:#D93025; }
.mov-add{ display:grid; grid-template-columns:1fr 92px 110px; gap:8px; margin-top:10px; }
.mov-add input[type=text], .mov-add input[type=date], .mov-add select{
  height:40px; border:1.5px solid #D5DADF; border-radius:10px; padding:0 10px; font-size:13px; outline:none; background:#fff;
}
.mov-add input:focus, .mov-add select:focus{ border-color:var(--red); }
.mov-add-row{ display:grid; grid-template-columns:1fr 92px; gap:8px; margin-top:8px; }
.mov-add-submit{ grid-column:1/-1; height:38px; }

/* ======================= TOAST ======================= */
.toast{
  position:fixed; left:50%; bottom:calc(86px + env(safe-area-inset-bottom));
  transform:translateX(-50%) translateY(10px);
  background:#232629; color:#fff; font-size:13.5px; font-weight:500;
  padding:12px 18px; border-radius:12px; opacity:0; pointer-events:none;
  transition:opacity .25s, transform .25s; z-index:99;
  max-width:min(88vw,380px); text-align:center;
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.toast.show{ opacity:1; transform:translateX(-50%); }

/* entrada suave das views */
.view.active{ animation:viewin .22s ease; }
@keyframes viewin{ from{ opacity:.4; transform:translateY(4px);} to{ opacity:1; transform:none;} }

/* elementos com display explícito (ex.: .adm-gate) ignoram o atributo hidden
   sem esta regra — força a ocultação em todo o app */
[hidden]{ display:none !important; }

/* ===== ADMIN EM MODO PC: em desktop o painel abre em largura web (as telas do
   cliente continuam com a largura de celular). Navegadores sem suporte a :has()
   apenas mantêm o layout antigo de 430px — nada quebra. ===== */
@media (min-width:521px){
  .frame:has(#view-admin.active){ max-width:1240px; }
  .frame:has(#view-admin.active) .adm-scroll{ padding:22px 36px 80px; gap:18px; align-items:center; }
  .frame:has(#view-admin.active) .adm-scroll > *{ width:min(100%, 1000px); }
  .frame:has(#view-admin.active) .adm-stats{ grid-template-columns:repeat(2, minmax(220px, 1fr)); }
  .frame:has(#view-admin.active) .adm-form-grid{ grid-template-columns:repeat(3, 1fr); gap:13px 16px; }
  /* menu lateral e escurecida do cliente não fazem sentido no painel (em PC a
     largura ampliada deixava o drawer "estacionado" visível por cima do painel) */
  .frame:has(#view-admin.active) .drawer,
  .frame:has(#view-admin.active) .scrim{ display:none; }
}
