/* Mega UniTv 1.5 — aprimoramento visual aditivo sem alteração do app.css original. */
body{--brand-gradient:linear-gradient(115deg,#0cb5f5 0%,#056af8 54%,#6736f1 100%);font-weight:500;letter-spacing:.005em}
h1,h2,h3,h4,.page-head h1,.record-head h3,.record-info b,.metric b,.quick-grid a b,.nav{font-weight:800}
label,.record-contact,.record-head small,.package-row b,.page-head p{font-weight:600}
.btn,.quick-test b,.access-code{font-weight:800}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal;text-align:center}
.btn svg{width:17px;height:17px;flex-shrink:0}
.nav svg{width:23px;height:23px;stroke-width:2.1}
.bottom-nav svg{stroke-width:2.25}
.metric svg,.quick-grid svg{stroke-width:2.2}
.record-card{background:linear-gradient(145deg,#07122d,#070e25 90%);border:1px solid #285596;border-radius:20px;box-shadow:0 8px 25px #02081d42,inset 0 1px 0 #ffffff0c;transition:border-color .15s,transform .15s}
.record-card:hover{border-color:#4080e9}
.record-card.state-active{border-color:#1c807d}
.record-card.state-blocked,.record-card.state-suspended{border-color:#963d65}
.record-head h3{font-size:19px;line-height:1.3;color:#eaf5ff}
.record-head small{display:block;margin-top:5px;color:#aebddd}
.record-kicker{font-size:10px;letter-spacing:.12em;color:#71c8ff;font-weight:800;margin-bottom:6px}
.balance-badge{min-width:76px;text-align:right}.balance-badge strong{font-size:28px;color:#ecf7ff;font-weight:900}.balance-badge small{font-weight:700;letter-spacing:.07em}
.status-line{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:14px 0}.status-line>small{margin-left:auto;font-size:11px}
.record-info{border-top:1px dashed #30446f;border-bottom:1px dashed #30446f;padding:15px 0;margin:16px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
.record-info small{letter-spacing:.07em;font-weight:700}.record-info b{font-size:14px}
.record-contact{display:flex;align-items:center;gap:8px;word-break:break-word}.record-contact svg{width:17px;height:17px;color:#56caff}.record-contact a{color:#80ceff}
.record-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.record-actions>.btn,.record-actions>form>.btn{min-height:40px}
.admin-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.admin-action-grid form{margin:0}
.danger-zone{border-top:1px solid #773551;margin-top:24px;padding-top:16px}.danger-zone h3{color:#ffacb7}
.unlock-panel{background:linear-gradient(120deg,#201849,#081739);border-color:#6258c7}.unlock-panel h2{display:flex;align-items:center;gap:12px}.unlock-panel h2 svg{color:#aa92ff}
.notice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,335px),1fr));gap:15px}.notice-card{margin:0;overflow:hidden}.notice-body{white-space:normal;line-height:1.7;color:#d4e0f6;font-weight:500}.notice-image{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:13px;border:1px solid #345088;margin:16px 0}
.dashboard-notices .section-heading h2{display:flex;align-items:center;gap:12px}.dashboard-notices .section-heading h2 svg{color:#69d3ff}.notices-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.notices-preview a{border:1px solid #2a4889;background:#0b1b40;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px}.notices-preview strong{font-weight:800;color:#e6eeff}.notices-preview small{font-size:11px;color:#9db9e6}
.topbar-tools{display:flex;gap:12px;align-items:center;margin-left:auto}.account-menu{margin-left:0}.notification-bell,.theme-switch{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid #2d4b8e;background:#122552;color:#d1e6ff;position:relative;cursor:pointer;text-decoration:none}.notification-bell:hover,.theme-switch:hover{background:#183978;border-color:#469bff}.notification-bell svg,.theme-switch svg{width:22px;height:22px;stroke-width:2.2}.notification-bell>span{position:absolute;right:-5px;top:-6px;border-radius:20px;min-width:19px;height:19px;padding:0 4px;background:#6545ee;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900}.theme-icon-moon{display:none}.panel-installed .install-panel-link{display:none!important}
.result-box textarea,.login-body textarea{font-size:14px;line-height:1.55;resize:vertical}.result-box h2{font-weight:900}.result-box p{font-weight:600}.result-icon{display:grid;place-items:center}.result-box .modal-actions>.whatsapp{flex-basis:100%}
/* Tema claro: troca toda a interface de gestão, preservando azul/roxo e o contraste dos textos. */
body[data-theme="light"]{color-scheme:light;--ink:#172744;--muted:#526783;--line:#ccdbed;background:radial-gradient(ellipse at 90% 0,#e8e4ff,transparent 50%),linear-gradient(130deg,#f0f6ff,#f9fbff);color:#172744}
body[data-theme="light"] h1,body[data-theme="light"] h2,body[data-theme="light"] h3,body[data-theme="light"] h4,body[data-theme="light"] .record-head h3{color:#142644}
body[data-theme="light"] p,body[data-theme="light"] small,body[data-theme="light"] .record-head small,body[data-theme="light"] .page-head p{color:#506882}
body[data-theme="light"] .sidebar,body[data-theme="light"] .topbar{background:linear-gradient(145deg,#fff,#f0f5ff);border-color:#d3dfee;box-shadow:0 3px 15px #172d5812}
body[data-theme="light"] .nav{color:#38516e}body[data-theme="light"] .nav.active,body[data-theme="light"] .nav:hover{background:linear-gradient(100deg,#dcecff,#ebe2ff);color:#174390;box-shadow:inset 0 0 0 1px #aacaff}
body[data-theme="light"] .side-section{color:#667994}body[data-theme="light"] .top-brand{color:#172944}
body[data-theme="light"] .panel,body[data-theme="light"] .quick,body[data-theme="light"] .record-card,body[data-theme="light"] .table-card,body[data-theme="light"] .reset-card{background:#fff;border-color:#ceddf2;box-shadow:0 9px 26px #1c3d7210}
body[data-theme="light"] .hero{background:radial-gradient(ellipse at 100% 0,#e3d7ff,transparent 60%),linear-gradient(120deg,#dbeeff,#eef1ff);border-color:#a5baf8;box-shadow:0 10px 35px #244ca31c}
body[data-theme="light"] .hero-kicker{color:#244b7e;background:#ecf6ff;border-color:#a4cbfa}body[data-theme="light"] .hero p{color:#4a6485}
body[data-theme="light"] .metric{background:linear-gradient(120deg,#e7f3ff,#fff);border-color:#c1dcff}body[data-theme="light"] .metric.purple{background:linear-gradient(120deg,#f1e9ff,#fff);border-color:#dbc9f7}body[data-theme="light"] .metric.green{background:linear-gradient(120deg,#e1faf2,#fff);border-color:#b0e4d6}body[data-theme="light"] .metric.amber{background:linear-gradient(120deg,#fff2dd,#fff);border-color:#f0d7ac}
body[data-theme="light"] .metric b{color:#102642}body[data-theme="light"] .metric span{color:#476583}
body[data-theme="light"] .quick-grid a,body[data-theme="light"] .notices-preview a{background:#f1f6ff;border-color:#c5d9f4}body[data-theme="light"] .quick-grid a b,body[data-theme="light"] .notices-preview strong{color:#23426d}body[data-theme="light"] .quick-grid a span{color:#5c7190}
body[data-theme="light"] .record-info{border-color:#cddbef}body[data-theme="light"] .record-info b,body[data-theme="light"] .balance-badge strong{color:#1c3558}body[data-theme="light"] .record-contact a{color:#116ac5}
body[data-theme="light"] .btn:not(.primary):not(.whatsapp):not(.danger-outline){background:#ecf3ff;color:#244974;border-color:#b9cdec}body[data-theme="light"] .btn:not(.primary):not(.whatsapp):hover{background:#e0ebfe}
body[data-theme="light"] input,body[data-theme="light"] select,body[data-theme="light"] textarea{background:#f8fbff;color:#173050;border-color:#b8cce6}body[data-theme="light"] input::placeholder,body[data-theme="light"] textarea::placeholder{color:#778ba5}
body[data-theme="light"] label,body[data-theme="light"] .notice-body{color:#304a6b}body[data-theme="light"] .modal-box{background:linear-gradient(130deg,#fff,#f3f5ff);border-color:#a5baf8;box-shadow:0 20px 60px #0b296940}body[data-theme="light"] .modal-x{color:#23466e}
body[data-theme="light"] .bottom-nav{background:#f5f8ffed;border-color:#b9c9e0;box-shadow:0 10px 28px #102e5427}body[data-theme="light"] .bottom-nav>a,body[data-theme="light"] .bottom-nav button{color:#466080}body[data-theme="light"] .bottom-nav .selected{background:#dbe8ff;color:#174aa2}
body[data-theme="light"] .notification-bell,body[data-theme="light"] .theme-switch,body[data-theme="light"] .account-menu>div{background:#e9f0ff;border-color:#c7d7ee;color:#23527f}body[data-theme="light"] .account-menu>div b{color:#1d3455}
body[data-theme="light"] .info-box{background:#ebf2ff;border-color:#c8d8f1;color:#33557c}body[data-theme="light"] .pill.active{color:#08765c;background:#e4f8f0;border-color:#96d7c2}body[data-theme="light"] .pill.blocked,body[data-theme="light"] .pill.suspended{color:#a32e54;background:#ffedf3;border-color:#edb4c8}
body[data-theme="light"] .status-line>small{color:#546d89}body[data-theme="light"] .unlock-panel{background:linear-gradient(110deg,#e5e7ff,#fff)}
body[data-theme="light"] .theme-icon-sun{display:none}body[data-theme="light"] .theme-icon-moon{display:inline-flex}
body[data-theme="light"] .login-card{background:linear-gradient(130deg,#f9fbff,#ecf2ff)}body[data-theme="light"].login-page{background:radial-gradient(ellipse at 0 3%,#bddaff,transparent 36%),#eef4ff}body[data-theme="light"] .login-body h2{color:#172944}
@media(max-width:600px){
 .topbar{padding:0 12px;gap:8px}.top-brand{gap:7px;font-size:19px}.top-brand img{width:36px;height:36px}.topbar-tools{gap:5px}.notification-bell,.theme-switch{width:35px;height:35px;border-radius:11px}.notification-bell svg,.theme-switch svg{width:19px;height:19px}.account-menu summary{width:35px;height:35px}.menu-btn{font-size:23px;margin:0}
 .record-head h3{font-size:17px}.record-info b{font-size:12px}.balance-badge strong{font-size:22px}.record-actions .btn{font-size:11px}
 .admin-action-grid{grid-template-columns:1fr}.notice-grid{grid-template-columns:1fr}.status-line>small{flex-basis:100%;margin-left:0}
}
@media(max-width:370px){.top-brand{font-size:16px}.topbar-tools{gap:3px}.notification-bell,.theme-switch{width:32px;height:32px}.account-menu summary{width:33px;height:33px}}
