:root{--admin-navy:#0d2f4f;--admin-navy-2:#133f69;--admin-blue:#0d66c2;--admin-blue-soft:#eef6ff;--admin-gold:#d6aa4f;--admin-bg:#f3f7fb;--admin-card:#fff;--admin-text:#17314e;--admin-muted:#72859a;--admin-line:#dfe8f0;--admin-shadow:0 18px 55px rgba(20,58,94,.09)}
body{background:radial-gradient(circle at 80% 0,#eef7ff 0,transparent 28%),var(--admin-bg);color:var(--admin-text)}
.auth-shell{background:linear-gradient(145deg,#eaf4ff,#f8fbfe 48%,#eef5fb)}
.premium-auth{border:1px solid rgba(207,222,236,.9);border-radius:30px;padding:38px;box-shadow:0 30px 90px rgba(18,61,101,.14)}
.auth-kicker,.modal-kicker,.top-eyebrow{display:block;font-size:9px;letter-spacing:.16em;font-weight:900;color:var(--admin-blue);margin-bottom:6px}
.auth-card h1{font-size:34px;letter-spacing:-.035em}.auth-message{color:#b23a3a;font-weight:700}
.app{grid-template-columns:286px 1fr}
.sidebar{background:linear-gradient(180deg,#0c2d4b 0%,#123b61 65%,#0b2945 100%);padding:22px 14px;color:#fff;box-shadow:14px 0 45px rgba(17,49,78,.08)}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:5px 10px 25px}.sidebar-brand .brand-mark{background:rgba(255,255,255,.11);color:#fff;border:1px solid rgba(255,255,255,.12)}.sidebar-brand div{display:grid}.sidebar-brand strong{font-size:15px}.sidebar-brand small{font-size:10px;color:#91abc1;margin-top:3px;letter-spacing:.06em;text-transform:uppercase}
.sidebar nav{gap:3px}.nav-group{font-size:9px;letter-spacing:.14em;font-weight:900;color:#7392ad;padding:18px 12px 7px}
.sidebar button{min-height:44px;padding:10px 12px;border-radius:12px;color:#bcd0e1;font-weight:750;transition:.2s ease}
.sidebar button:hover{background:rgba(255,255,255,.08);transform:translateX(2px)}
.sidebar button.active{background:linear-gradient(135deg,rgba(43,128,205,.34),rgba(255,255,255,.09));color:#fff;box-shadow:inset 0 0 0 1px rgba(149,204,255,.17)}
.nav-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.06);font-size:14px;color:#d9ebf8}.sidebar button.active .nav-icon{background:#fff;color:#0c5eb2}
.sidebar-footer{display:flex;align-items:center;gap:10px;margin:24px 8px 4px;padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.04)}.sidebar-footer div{display:grid}.sidebar-footer strong{font-size:11px}.sidebar-footer small{font-size:9px;color:#8ea9c0;margin-top:2px}.system-dot{width:9px;height:9px;border-radius:50%;background:#58c78c;box-shadow:0 0 0 4px rgba(88,199,140,.12)}
.top{height:84px;border-bottom:1px solid rgba(218,228,238,.9);background:rgba(255,255,255,.9);backdrop-filter:blur(18px);padding:0 32px;box-shadow:0 6px 24px rgba(22,57,91,.025)}
.top-context{display:grid}.top-context strong{font-size:16px}.top-context .muted{font-size:11px;margin-top:2px}
.master-tools select{border-radius:12px;background:#f8fbfe;border-color:#d9e5ef}
.top-site-link{padding:10px 13px;border-radius:11px;text-decoration:none;color:#315f88;font-size:12px;font-weight:850;background:#f1f7fc;border:1px solid #dbe7f1}
.content{padding:34px 36px;max-width:1600px}
.page-head{align-items:center;margin-bottom:25px}.page-head h1{font-size:34px;letter-spacing:-.04em}.page-head .muted{font-size:13px;margin-top:5px}
.btn{border-radius:11px;min-height:42px;padding:10px 15px;transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,#0d66c2,#0a56a5);box-shadow:0 10px 22px rgba(13,102,194,.18)}.btn-secondary{background:#fff;border:1px solid #d7e2ec;color:#315774}
.cards{gap:16px}.metric{position:relative;border:1px solid #e1e9f0;border-radius:22px;padding:21px 20px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 12px 32px rgba(22,58,94,.05);overflow:hidden}.metric:after{content:"";position:absolute;right:-22px;top:-26px;width:88px;height:88px;border-radius:50%;background:#eef6ff}.metric strong{position:relative;z-index:1;font-size:34px;color:var(--admin-navy);letter-spacing:-.035em}.metric span{position:relative;z-index:1;color:#708398;font-weight:700}
.panel,.master-panel{border:1px solid #e1e9f0;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 13px 36px rgba(22,58,94,.045);padding:22px}.panel h2,.master-panel h2{font-size:20px;letter-spacing:-.02em}
.table-wrap{border:1px solid #e6edf3;border-radius:16px;overflow:auto}.table{background:#fff}.table th{background:#f7fafc;color:#708397;padding:13px 12px}.table td{padding:14px 12px}.table tr:hover td{background:#fbfdff}.badge{background:#eef6ff;border:1px solid #dcebf8;color:#245f96}
input,select,textarea{border:1px solid #d4e0ea;border-radius:12px;padding:12px 13px;background:#fbfdff;transition:.18s ease}input:focus,select:focus,textarea:focus{outline:0;border-color:#68a9e5;box-shadow:0 0 0 4px rgba(37,130,210,.09);background:#fff}label{color:#3e5870}.form-grid{gap:16px}
.modal{background:rgba(9,34,57,.58);backdrop-filter:blur(6px)}.modal-card{width:min(880px,100%);border-radius:26px;padding:0;overflow:auto;box-shadow:0 35px 90px rgba(5,30,52,.24)}.modal-head{position:sticky;top:0;background:#fff;z-index:2;padding:20px 24px;border-bottom:1px solid #e6edf3;margin:0}.modal-head>div{display:grid}.modal-head strong{font-size:21px}.modal-head button{width:38px;height:38px;border-radius:11px;background:#f2f6fa;color:#49637b}#modalBody{padding:22px 24px 26px}
.toast{border-radius:14px;background:#103653;box-shadow:0 20px 50px rgba(6,34,57,.22)}
.toolbar{background:#f7fafc;border:1px solid #e5edf3;border-radius:14px;padding:10px}
.empty{border:1px dashed #d6e2ec;border-radius:14px;background:#fbfdff}
.master-note{border-radius:14px;padding:13px 15px;background:linear-gradient(135deg,#edf6ff,#f8fbff);border-color:#d6e9fa}
.master-tabs{background:#eef3f7;border:1px solid #e0e8ef;padding:5px;border-radius:14px;width:max-content;max-width:100%}.master-tabs button{border:0;background:transparent;border-radius:10px}.master-tabs button.active{box-shadow:0 5px 14px rgba(17,74,125,.13)}
.premium-section-title{display:flex;align-items:center;gap:10px}.premium-section-title .section-symbol{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf6ff;color:#0c63bd;font-weight:900}
.premium-list-card{display:grid;grid-template-columns:74px 1fr auto;gap:14px;align-items:center;border:1px solid #e2eaf1;border-radius:17px;padding:11px;background:#fff}.premium-list-thumb{width:74px;height:58px;border-radius:12px;background:#eef3f7;overflow:hidden;display:grid;place-items:center;color:#8aa0b2}.premium-list-thumb img,.premium-list-thumb video{width:100%;height:100%;object-fit:cover}
.site-editor-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}.site-map{position:sticky;top:104px;display:grid;gap:9px}.site-map-card{display:grid;grid-template-columns:78px 1fr;gap:12px;align-items:center;border:1px solid #e1e9f0;border-radius:16px;padding:9px;background:#fff;cursor:pointer;text-decoration:none;color:inherit;transition:.18s ease}.site-map-card:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(21,60,95,.08);border-color:#cbddeb}.site-map-card img{width:78px;height:55px;object-fit:cover;border-radius:11px}.site-map-card .map-mini{width:78px;height:55px;border-radius:11px;background:linear-gradient(145deg,#143d64,#0d66c2);display:grid;place-items:center;color:#fff;font-weight:900;font-size:11px}.site-map-card strong{display:block;font-size:12px}.site-map-card small{display:block;color:#7a8da0;font-size:10px;margin-top:3px}
.editor-stack{display:grid;gap:16px}.editor-block{scroll-margin-top:105px;border:1px solid #e0e9f0;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(22,58,94,.04);overflow:hidden}.editor-block-head{display:grid;grid-template-columns:150px 1fr auto;gap:17px;align-items:center;padding:15px 18px;background:linear-gradient(135deg,#f8fbfe,#fff);border-bottom:1px solid #e8eef4}.editor-ref{width:150px;height:92px;border-radius:14px;overflow:hidden;background:#eaf1f7;position:relative}.editor-ref img,.editor-ref video{width:100%;height:100%;object-fit:cover}.editor-ref .ref-fallback{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#123c62,#0d67bc);color:#fff;font-size:12px;font-weight:900}.editor-ref:after{content:"REFERÊNCIA";position:absolute;left:8px;bottom:7px;font-size:8px;letter-spacing:.1em;font-weight:900;color:#fff;background:rgba(5,31,53,.66);padding:4px 6px;border-radius:6px}.editor-block-head h3{margin:0;font-size:18px}.editor-block-head p{margin:5px 0 0;color:#778a9e;font-size:12px}.where-chip{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:999px;background:#edf6ff;color:#286493;font-size:10px;font-weight:850;text-decoration:none}.editor-form{padding:18px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.editor-grid .full{grid-column:1/-1}.editor-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:6px}
.upload-box{border:1px dashed #b9cfdf;border-radius:15px;padding:12px;background:#f9fcff}.upload-preview{height:128px;border-radius:11px;background:#edf3f8;overflow:hidden;display:grid;place-items:center;margin-bottom:10px;color:#8297aa}.upload-preview img,.upload-preview video{width:100%;height:100%;object-fit:cover}.upload-box input[type=file]{margin:0;background:#fff}.upload-note{font-size:10px;color:#7e91a3;margin-top:6px}.media-grid{grid-template-columns:repeat(4,1fr);gap:14px}.media-card{border-radius:17px;box-shadow:0 9px 26px rgba(21,58,92,.05)}.media-preview{height:160px}.media-url{display:none}
.reference-panel{display:flex;align-items:center;gap:14px;border:1px solid #dce8f1;background:#f8fbfe;border-radius:17px;padding:12px;margin-bottom:15px}.reference-panel img{width:120px;height:78px;object-fit:cover;border-radius:12px}.reference-panel strong{display:block;font-size:13px}.reference-panel p{margin:4px 0;color:#708398;font-size:11px}.reference-panel a{font-size:11px;font-weight:850;color:#0d66c2;text-decoration:none}
@media(max-width:1100px){.app{grid-template-columns:238px 1fr}.sidebar{padding-left:10px;padding-right:10px}.site-editor-layout{grid-template-columns:1fr}.site-map{position:static;grid-template-columns:repeat(2,1fr)}.editor-block-head{grid-template-columns:120px 1fr}.where-chip{grid-column:2}.media-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto}.sidebar nav{grid-template-columns:1fr 1fr}.nav-group{grid-column:1/-1}.sidebar-footer{display:none}.top{height:auto;min-height:82px;padding:14px 18px;gap:12px;flex-wrap:wrap}.content{padding:22px 16px}.master-tools{width:100%;justify-content:space-between}.master-tools select{flex:1}.cards{grid-template-columns:1fr 1fr}.site-map{grid-template-columns:1fr}.editor-block-head{grid-template-columns:92px 1fr}.editor-ref{width:92px;height:70px}.editor-grid{grid-template-columns:1fr}.editor-grid .full{grid-column:auto}.media-grid{grid-template-columns:1fr 1fr}.premium-list-card{grid-template-columns:58px 1fr}.premium-list-thumb{width:58px}.premium-list-card .master-actions{grid-column:2}.reference-panel{align-items:flex-start}}
@media(max-width:520px){.sidebar nav{grid-template-columns:1fr}.nav-group{grid-column:auto}.cards,.media-grid{grid-template-columns:1fr}.top-site-link{display:none}.page-head{align-items:flex-start}.editor-block-head{grid-template-columns:1fr}.editor-ref{width:100%;height:130px}.where-chip{grid-column:auto}.site-map-card{grid-template-columns:68px 1fr}.site-map-card img,.site-map-card .map-mini{width:68px}.reference-panel{display:grid}.reference-panel img{width:100%;height:140px}}
.dashboard-welcome{position:relative;display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:20px;padding:28px 30px;border-radius:25px;background:linear-gradient(135deg,#0d365c,#0d67bb);color:#fff;overflow:hidden;box-shadow:0 20px 50px rgba(12,66,113,.15)}.dashboard-welcome:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-80px;top:-100px;background:rgba(255,255,255,.07)}.dashboard-welcome h2{position:relative;z-index:1;font-size:28px;line-height:1.08;letter-spacing:-.035em;margin:4px 0 10px;max-width:720px}.dashboard-welcome p{position:relative;z-index:1;color:#cfdfec;margin:0;max-width:680px}.dashboard-welcome .top-eyebrow{color:#b9dcf8}.dashboard-orb{position:relative;z-index:1;min-width:92px;height:92px;border-radius:28px;display:grid;place-items:center;font-size:28px;font-weight:900;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.09);box-shadow:inset 0 0 30px rgba(255,255,255,.06)}
.metric-link{appearance:none;text-align:left;font:inherit;cursor:pointer}.metric-link small{display:block;margin-top:12px;color:#7990a4;font-size:10px;font-weight:850}.metric-symbol{position:absolute;right:17px;top:18px;z-index:2;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#eef6ff;color:#0d66c2;font-weight:900}.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:16px}.dashboard-help,.dashboard-security{margin-top:0}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.quick-actions button{border:1px solid #dce7f0;background:#f8fbfe;color:#315c82;border-radius:12px;padding:12px;text-align:left;font-weight:800;cursor:pointer}.quick-actions button:hover{background:#eef6ff;border-color:#c8dff2}.security-pill{display:inline-flex;margin-top:13px;padding:7px 10px;border-radius:999px;background:#eef9f3;color:#2e7f54;font-size:10px;font-weight:900}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr 1fr}}@media(max-width:560px){.dashboard-welcome{padding:24px;align-items:flex-start}.dashboard-orb{display:none}.quick-actions{grid-template-columns:1fr}}
