/* OG Network — Admin Dashboard */
.ac-wrap{position:fixed;inset:0;z-index:400;overflow-y:auto;display:flex;min-height:100vh;background:#0c0c0d;color:#f4f1e9;font-family:inherit}
.ac-side{width:210px;flex:0 0 210px;background:linear-gradient(180deg,#161616,#0a0a0a);border-right:1px solid rgba(255,255,255,.06);padding:20px 14px;display:flex;flex-direction:column;gap:6px;position:sticky;top:0;height:100vh}
.ac-brand{display:block;margin:2px 4px 8px}
.ac-brand img{height:40px;width:auto;display:block}
.ac-side-t{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#8a7d60;margin:6px 6px 4px}
.ac-nav{display:flex;flex-direction:column;gap:2px}
.ac-navi{appearance:none;border:0;background:transparent;color:#cdc7ba;text-align:left;padding:10px 12px;border-radius:9px;font-size:14px;font-weight:600;cursor:pointer;transition:.15s}
.ac-navi:hover{background:rgba(255,255,255,.05);color:#fff}
.ac-navi.active{background:linear-gradient(90deg,rgba(246,209,104,.16),rgba(246,209,104,.04));color:#f6d168;box-shadow:inset 2px 0 0 #f6d168}
.ac-exit{margin-top:auto;color:#8a7d60;font-size:13px;text-decoration:none;padding:10px 12px;border-radius:9px}
.ac-exit:hover{color:#f6d168;background:rgba(255,255,255,.04)}
.ac-main{flex:1;min-width:0;display:flex;flex-direction:column}
.ac-topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 26px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.3);position:sticky;top:0;z-index:5;backdrop-filter:blur(8px)}
.ac-topbar-t{font-weight:700;letter-spacing:.02em}
.ac-who{font-size:13px;color:#a89e86;display:flex;align-items:center;gap:8px}
.ac-who-tag{font-size:10px;font-weight:800;letter-spacing:.1em;color:#0c0c0d;background:linear-gradient(90deg,#c68c48,#f6d168);padding:3px 8px;border-radius:5px}
.ac-body{padding:26px;max-width:1200px;width:100%}
.ac-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.ac-head h1{font-size:26px;font-weight:800;margin:0}
.ac-src{font-size:12.5px;color:#8a7d60}
.ac-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:18px}
.ac-kpis--sm{grid-template-columns:repeat(3,minmax(0,1fr));max-width:640px}
.ac-kpi{background:linear-gradient(180deg,#17171a,#101012);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:16px}
.ac-kpi-v{font-size:26px;font-weight:800;background:linear-gradient(90deg,#c68c48,#f6d168);-webkit-background-clip:text;background-clip:text;color:transparent}
.ac-kpi-l{font-size:12px;color:#c9c2b3;margin-top:2px;font-weight:600}
.ac-kpi-s{font-size:11px;color:#7fbf7f;margin-top:3px}
.ac-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.ac-card{background:linear-gradient(180deg,#161618,#101012);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:18px}
.ac-card h3{margin:0 0 12px;font-size:15px;font-weight:700;color:#efe7d5}
.ac-card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.ac-card-h h3{margin:0}
.ac-hint{font-size:11.5px;color:#8a7d60}
.ac-note{font-size:12.5px;color:#9c937d;margin:10px 0 0}
.ac-big{font-size:40px;font-weight:800;color:#f6d168;line-height:1}
.ac-chart{width:100%;height:170px;display:block}
.ac-bl{fill:#cdc7ba;font-size:12px;font-weight:700}
.ac-ax{fill:#7d745e;font-size:11px}
.ac-list{display:flex;flex-direction:column}
.ac-li{display:grid;grid-template-columns:24px 1fr 120px 46px;align-items:center;gap:10px;padding:7px 2px;border-bottom:1px solid rgba(255,255,255,.04)}
.ac-li:last-child{border-bottom:0}
.ac-rank{color:#8a7d60;font-weight:700;font-size:12px;text-align:center}
.ac-li-t{font-size:13px;color:#e6dfce;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-li-bar{height:6px;background:rgba(255,255,255,.06);border-radius:4px;overflow:hidden}
.ac-li-bar i{display:block;height:100%;background:linear-gradient(90deg,#c68c48,#f6d168)}
.ac-li-v{text-align:right;font-weight:700;font-size:13px;color:#f6d168}
.ac-table{display:flex;flex-direction:column}
.ac-tr{display:grid;grid-template-columns:1fr 80px minmax(240px,auto);align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid rgba(255,255,255,.05)}
.ac-tr-h{color:#8a7d60;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.ac-td-t{font-size:13.5px;color:#e6dfce}
.ac-td-v{font-weight:700;color:#f6d168;font-size:13px}
.ac-chips{display:flex;flex-wrap:wrap;gap:6px}
.ac-chip{appearance:none;border:1px solid rgba(255,255,255,.14);background:transparent;color:#8a8272;font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;cursor:pointer;transition:.12s}
.ac-chip:hover{border-color:rgba(246,209,104,.5)}
.ac-chip.on{background:linear-gradient(90deg,#c68c48,#f6d168);color:#141414;border-color:transparent}
.ac-chip-all{border-style:dashed;color:#cdc7ba}
.ac-search{background:#0e0e10;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#fff;padding:9px 12px;font-size:13px;min-width:220px}
.ac-search::placeholder{color:#6f6753}
.ac-banners{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.ac-banner{background:linear-gradient(180deg,#17171a,#101012);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:15px}
.ac-banner h3{margin:8px 0 6px;font-size:16px}
.ac-banner-top{display:flex;align-items:center;justify-content:space-between}
.ac-banner-type{font-size:11px;color:#8a7d60;text-transform:uppercase;letter-spacing:.08em}
.ac-banner-meta{font-size:12px;color:#9c937d;margin-bottom:8px}
.ac-banner-meta b{color:#7fbf7f;font-weight:700}
.ac-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.ac-tags span{font-size:10.5px;color:#cdb98a;border:1px solid rgba(203,182,130,.35);border-radius:5px;padding:2px 6px}
.ac-badge{font-size:10px;font-weight:800;letter-spacing:.06em;padding:3px 8px;border-radius:5px}
.ac-badge-ok{color:#0c0c0d;background:linear-gradient(90deg,#7fce8c,#b6e6b6)}
.ac-badge-off{color:#eee;background:rgba(255,255,255,.14)}
.ac-plats{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.ac-plat{background:linear-gradient(180deg,#17171a,#101012);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:16px}
.ac-plat-h{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
.ac-plat-n{font-size:16px;font-weight:800}
.ac-plat-s{font-size:11.5px;color:#8a7d60}
.ac-plat-kv{display:flex;justify-content:space-between;font-size:12.5px;color:#9c937d;padding:4px 0;border-top:1px solid rgba(255,255,255,.05)}
.ac-plat-kv b{color:#e6dfce;font-weight:700}
.ac-plat-actions{display:flex;gap:8px;margin-top:12px}
.ac-btn{appearance:none;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:#e6dfce;font-size:12.5px;font-weight:700;padding:8px 12px;border-radius:9px;cursor:pointer;transition:.12s}
.ac-btn:hover{border-color:rgba(246,209,104,.55);color:#f6d168}
.ac-btn-primary{background:linear-gradient(90deg,#c68c48,#f6d168);color:#141414;border-color:transparent}
.ac-btn-primary:hover{filter:brightness(1.06);color:#141414}
.ac-token{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.ac-token input{flex:1;min-width:220px;background:#0e0e10;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#fff;padding:9px 12px;font-size:13px}
.ac-toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:#1c1c1f;border:1px solid rgba(246,209,104,.4);color:#f6d168;padding:11px 18px;border-radius:12px;font-size:13.5px;font-weight:600;opacity:0;pointer-events:none;transition:.25s;z-index:500;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.ac-toast.show{opacity:1;transform:translate(-50%,0)}
.ac-deny{max-width:520px;margin:16vh auto;text-align:center;padding:40px}
.ac-deny h1{font-size:28px;margin:0 0 10px}
.ac-deny p{color:#9c937d;margin-bottom:20px}
@media(max-width:900px){
  .ac-side{position:fixed;left:-260px;transition:.2s}
  .ac-kpis{grid-template-columns:repeat(2,1fr)}
  .ac-grid2{grid-template-columns:1fr}
  .ac-tr{grid-template-columns:1fr 60px;grid-auto-rows:min-content}
  .ac-tr span:last-child{grid-column:1/-1}
}

/* ===================== UI/UX EDITOR ===================== */
.ed-actions{display:flex;gap:8px;flex-wrap:wrap}
.ed-rails{display:flex;flex-direction:column;gap:14px}
.ed-rail{background:#1c1813;border:1px solid rgba(203,182,130,.16);border-radius:14px;padding:14px 16px}
.ed-rail--auto{opacity:.72}
.ed-rail-h{display:flex;align-items:center;gap:10px}
.ed-move{display:flex;flex-direction:column;gap:2px}
.ed-move button{font-size:10px;line-height:1;padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.07);color:#e9dbbd;cursor:pointer}
.ed-move button:disabled{opacity:.25;cursor:default}
.ed-move button:not(:disabled):hover{background:#cbb682;color:#101010}
.ed-title{flex:1;min-width:120px;background:rgba(0,0,0,.35);border:1px solid rgba(160,140,91,.25);border-radius:8px;padding:9px 12px;color:#e9dbbd;font-size:15px;font-weight:700}
.ed-title:focus{outline:none;border-color:#cbb682}
.ed-title:disabled{background:transparent;border-color:transparent}
.ed-kind{background:#241e15;border:1px solid rgba(160,140,91,.3);border-radius:8px;color:#e9dbbd;font-size:12.5px;padding:8px 10px}
.ed-kind-tag{font-size:12px;color:#8a7d60;white-space:nowrap}
.ed-count{font-size:12px;color:#8a7d60;white-space:nowrap}
.ed-del{width:30px;height:30px;border-radius:8px;color:#8a7d60;font-size:13px;cursor:pointer}
.ed-del:hover{background:rgba(255,80,80,.15);color:#ff9c9c}
.ed-items{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 6px}
.ed-thumb{position:relative;flex:0 0 132px;max-width:132px;min-width:0;text-align:center}
.ed-thumb img{width:132px;height:198px;object-fit:cover;border-radius:10px;border:1px solid rgba(203,182,130,.18);background:#241e15}
.ed-thumb-t{display:block;max-width:100%;font-size:12px;color:#c9bd9d;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-rank{position:absolute;top:6px;left:6px;z-index:2;font-size:14px;font-weight:900;color:#101010;background:linear-gradient(135deg,#e9dbbd,#cbb682);border-radius:6px;padding:3px 9px}
.ed-thumb-c{position:absolute;left:0;right:0;top:156px;display:flex;justify-content:center;gap:6px;opacity:0;transition:opacity .15s}
.ed-thumb:hover .ed-thumb-c{opacity:1}
.ed-thumb-c button{width:31px;height:31px;border-radius:50%;background:rgba(0,0,0,.78);border:1px solid rgba(203,182,130,.5);color:#e9dbbd;font-size:12.5px;cursor:pointer}
.ed-thumb-c button:disabled{opacity:.3;cursor:default}
.ed-thumb-c button:not(:disabled):hover{background:#cbb682;color:#101010}
.ed-add{flex:0 0 132px;height:198px;border:1.5px dashed rgba(203,182,130,.4);border-radius:10px;color:#cbb682;font-size:26px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.ed-add span{font-size:12.5px}
.ed-add:hover{border-color:#cbb682;background:rgba(203,182,130,.08)}
.ed-picker{margin-top:10px;background:rgba(0,0,0,.3);border:1px solid rgba(203,182,130,.2);border-radius:10px;padding:12px}
.ed-picker input{width:100%;background:#101010;border:1px solid rgba(160,140,91,.3);border-radius:8px;padding:10px 12px;color:#e9dbbd;font-size:14px;margin-bottom:10px}
.ed-picker input:focus{outline:none;border-color:#cbb682}
.ed-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;max-height:380px;overflow-y:auto;margin-bottom:10px}
.ed-pick{cursor:pointer;text-align:center;border-radius:8px;padding:4px;background:transparent}
.ed-pick:hover{background:rgba(203,182,130,.12)}
.ed-pick img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:6px;background:#241e15}
.ed-pick span{display:block;font-size:10px;color:#c9bd9d;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===================== UI/UX EDITOR — full-width, responsive, friendly ===================== */
.ac-body--full{max-width:none;padding:18px clamp(14px,2vw,28px)}
.ac-menu{display:none;appearance:none;border:0;background:rgba(255,255,255,.06);color:#e6dfce;font-size:17px;width:38px;height:38px;border-radius:10px;cursor:pointer;margin-right:12px}
.ac-menu:hover{color:#f6d168}

/* sticky action bar — Publish is always reachable while scrolling long layouts */
.ed-head{position:sticky;top:0;z-index:30;background:rgba(12,12,13,.94);backdrop-filter:blur(10px);padding:12px 0;margin:-18px 0 10px;border-bottom:1px solid rgba(255,255,255,.05)}
.ed-note{margin:0 0 14px}
.ed-tip{display:block;margin-top:4px;color:#7d745e}
.ed-unsaved{color:#f6d168}
.ed-pub-dirty{animation:edpulse 1.6s ease-in-out infinite}
@keyframes edpulse{0%,100%{box-shadow:0 0 0 0 rgba(246,209,104,.45)}50%{box-shadow:0 0 0 7px rgba(246,209,104,0)}}

/* roomy, edge-to-edge sections (tight poster gaps, generous cards) */
.ed-rails{gap:18px}
.ed-rail{padding:18px 20px;border-radius:14px}
.ed-items{gap:10px;padding:14px 2px 6px}
.ed-title{font-size:17px;padding:11px 14px}
.ed-kind{font-size:13.5px;padding:10px 12px}
.ed-count{font-size:13px}
.ed-move button{font-size:11px;padding:4px 8px}
.ed-del{width:34px;height:34px;font-size:15px}

/* drag & drop affordances */
.ed-thumb{cursor:grab}
.ed-thumb:active{cursor:grabbing}
.ed-dragging{opacity:.35}
.ed-thumb.ed-dropover{outline:2px dashed #f6d168;outline-offset:2px;border-radius:8px}
.ed-items.ed-dropover{background:rgba(246,209,104,.06);border-radius:10px}
.ed-empty{align-self:center;color:#8a7d60;font-size:12.5px;padding:0 6px}

/* touch devices: controls always visible (no hover) */
@media (hover:none){.ed-thumb-c{opacity:1}}

/* ---- responsive breakpoints ---- */
@media (max-width:1100px){
  .ed-thumb,.ed-add{flex-basis:108px}
  .ed-thumb{max-width:108px}
  .ed-thumb img{width:108px;height:162px}
  .ed-add{height:162px}
  .ed-thumb-c{top:124px}
}
@media (max-width:760px){
  .ac-body--full{padding:14px 12px}
  .ed-head{padding:10px 0}
  .ed-head h1{font-size:20px}
  .ed-actions{width:100%}
  .ed-actions .ac-btn{flex:1 1 auto;text-align:center}
  .ed-rail-h{flex-wrap:wrap}
  .ed-title{flex:1 1 160px}
  .ed-kind{flex:0 1 auto}
  .ed-count{display:none}
  .ed-thumb,.ed-add{flex-basis:88px}
  .ed-thumb{max-width:88px}
  .ed-thumb img{width:88px;height:132px}
  .ed-add{height:132px;font-size:20px}
  .ed-thumb-c{top:98px;opacity:1}
  .ed-thumb-c button{width:26px;height:26px;font-size:11px}
  .ed-picker-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
}

/* mobile sidebar: hamburger opens it as a drawer */
@media (max-width:900px){
  .ac-menu{display:grid;place-items:center}
  .ac-side{z-index:60;box-shadow:0 0 60px rgba(0,0,0,.7)}
  .ac-side.open{left:0}
}

/* square (1:1) rails — live channels etc.: full logo visible, never cropped */
.ed-rail--sq .ed-thumb img{height:132px;object-fit:cover}
.ed-rail--sq .ed-add{height:132px}
.ed-rail--sq .ed-thumb-c{top:96px}
@media (max-width:1100px){
  .ed-rail--sq .ed-thumb img{height:108px}
  .ed-rail--sq .ed-add{height:108px}
  .ed-rail--sq .ed-thumb-c{top:74px}
}
@media (max-width:760px){
  .ed-rail--sq .ed-thumb img{height:88px}
  .ed-rail--sq .ed-add{height:88px}
  .ed-rail--sq .ed-thumb-c{top:56px}
}
