@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
*{box-sizing:border-box}
:root{
  --bg:#05080d;
  --bg2:#080d14;
  --panel:#0d131c;
  --panel2:#111a26;
  --surface:#121c28;
  --surface2:#172231;
  --line:rgba(130,162,196,.18);
  --line2:rgba(130,162,196,.10);
  --text:#e8eef6;
  --soft:#b6c2d1;
  --muted:#748398;
  --brand:#2f6fed;
  --brand2:#1d9bf0;
  --cyan:#21d4fd;
  --green:#20c997;
  --red:#ef5350;
  --yellow:#d6a23a;
}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif;
  background:
    linear-gradient(180deg,rgba(10,18,28,.96),rgba(4,7,12,1) 55%),
    radial-gradient(circle at 80% -10%,rgba(33,212,253,.10),transparent 34%),
    radial-gradient(circle at 8% 8%,rgba(47,111,237,.11),transparent 28%);
  font-feature-settings:"cv01","ss03";
}
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:
    linear-gradient(rgba(130,162,196,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(130,162,196,.035) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.72),transparent 82%);
}
.top{
  height:68px;background:rgba(7,12,18,.92);backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;
  padding:0 28px;position:sticky;top:0;z-index:9;box-shadow:0 12px 36px rgba(0,0,0,.22)
}
.brand{font-size:18px;font-weight:600;letter-spacing:.2px;display:flex;align-items:center;gap:12px;color:#f2f6fb}
.brand:before{content:"";width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#17335a,#1d9bf0);box-shadow:0 0 18px rgba(29,155,240,.28);border:1px solid rgba(91,185,255,.34)}
.user{font-size:13px;color:var(--soft);background:rgba(18,28,40,.9);border:1px solid var(--line);border-radius:999px;padding:8px 12px}.top a{color:#fff;text-decoration:none}
.wrap{display:flex;min-height:calc(100vh - 110px)}
.side{width:248px;background:rgba(8,13,20,.86);border-right:1px solid var(--line2);padding:18px 14px;position:sticky;top:68px;height:calc(100vh - 68px)}
.side a{display:flex;align-items:center;gap:10px;color:var(--soft);text-decoration:none;padding:12px 13px;border-radius:8px;font-size:14px;font-weight:500;margin-bottom:4px;border:1px solid transparent;transition:.18s ease}
.side a:before{content:"";width:7px;height:7px;border-radius:50%;background:#425066}.side a:hover{background:rgba(21,33,48,.94);border-color:rgba(62,123,206,.32);color:#fff}.side a:hover:before{background:var(--cyan);box-shadow:0 0 12px rgba(33,212,253,.45)}
.main{flex:1;padding:28px;max-width:1500px}.main h1{font-size:32px;line-height:1.05;letter-spacing:-.4px;font-weight:600;margin:0 0 22px;color:#f0f5fb}.main h3{margin:0 0 16px;font-weight:600;color:var(--text)}
.card,.panel{background:linear-gradient(180deg,rgba(17,26,38,.96),rgba(10,16,24,.96));border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 45px rgba(0,0,0,.30);margin-bottom:18px}
.msg{padding:12px 14px;border-radius:10px;margin:12px 0;border:1px solid var(--line)}.ok{background:rgba(32,201,151,.10);color:#9be7cb}
.btn,button{background:linear-gradient(180deg,#245fc6,#184a9d);color:white;border:1px solid rgba(102,169,255,.28);border-radius:9px;padding:10px 15px;font-weight:600;text-decoration:none;display:inline-block;cursor:pointer;box-shadow:0 10px 24px rgba(24,74,157,.22);font-family:inherit}.btn:hover,button:hover{filter:brightness(1.08)}.btn.gray{background:rgba(19,29,42,.96);border:1px solid var(--line);box-shadow:none;color:var(--soft)}
input,textarea,select{width:100%;background:rgba(6,11,18,.72);border:1px solid rgba(130,162,196,.20);color:var(--text);border-radius:9px;padding:11px 12px;outline:none;margin:7px 0 14px;font-family:inherit}input:focus,textarea:focus,select:focus{border-color:rgba(33,212,253,.58);box-shadow:0 0 0 3px rgba(33,212,253,.10)}label{color:var(--muted);font-size:13px}
table{width:100%;border-collapse:separate;border-spacing:0;background:rgba(10,16,24,.72);border:1px solid var(--line);border-radius:13px;overflow:hidden;margin-top:16px}th,td{padding:13px 14px;border-bottom:1px solid var(--line2);text-align:left;font-size:14px}th{color:#9fb0c5;font-weight:600;background:rgba(17,26,38,.92)}td{color:var(--soft)}tr:hover td{background:rgba(33,48,66,.42)}.actions a{color:#72b7ff;margin-right:12px;text-decoration:none}.search{display:flex;gap:10px}.search input{margin:0}.search button{width:auto}footer{color:#59677a;padding:18px 28px;border-top:1px solid var(--line2);font-size:12px}
.hero{position:relative;overflow:hidden;border-radius:18px;padding:28px;background:linear-gradient(135deg,rgba(17,31,48,.98),rgba(9,15,23,.98));border:1px solid var(--line);margin-bottom:22px}.hero:after{content:"";position:absolute;right:-110px;top:-100px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(33,212,253,.16),transparent 64%);filter:blur(4px)}.hero .eyebrow{color:#75caff;font-size:12px;font-weight:600;letter-spacing:.13em;text-transform:uppercase}.hero h1{font-size:40px;margin:10px 0 10px}.hero p{color:var(--muted);max-width:760px;line-height:1.7}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.kpi{background:linear-gradient(180deg,rgba(18,28,40,.96),rgba(10,16,24,.96));border:1px solid var(--line);border-radius:14px;padding:18px;position:relative;overflow:hidden}.kpi:after{content:"";position:absolute;right:14px;top:14px;width:42px;height:42px;border-radius:10px;background:rgba(33,212,253,.08);border:1px solid rgba(33,212,253,.16)}.kpi .label{color:var(--muted);font-size:13px}.kpi .num{font-size:31px;font-weight:600;letter-spacing:-.5px;margin:10px 0 6px}.kpi .trend{font-size:12px;color:#8adfca}.dash-grid{display:grid;grid-template-columns:1.45fr .9fr;gap:18px}.chart-card{min-height:310px}.chart-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.pill{font-size:12px;color:var(--soft);border:1px solid var(--line);border-radius:999px;padding:5px 9px;background:rgba(6,11,18,.6)}.bar-chart{display:flex;align-items:end;gap:12px;height:210px;padding:16px 6px 0;border-bottom:1px solid var(--line)}.bar{flex:1;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#2fa7e8,#1d5fb8);min-height:28px;position:relative;box-shadow:0 0 18px rgba(29,155,240,.12)}.bar span{position:absolute;bottom:-28px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted)}.donut-wrap{display:flex;gap:24px;align-items:center}.donut{width:180px;height:180px;border-radius:50%;background:conic-gradient(#2f6fed 0 42%,#21d4fd 42% 67%,#20c997 67% 84%,#d6a23a 84% 100%);position:relative;box-shadow:0 0 32px rgba(33,212,253,.10)}.donut:after{content:"";position:absolute;inset:28px;border-radius:50%;background:#0d131c;border:1px solid var(--line)}.legend{flex:1}.legend div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line2);padding:10px 0;color:var(--soft);font-size:13px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}.line-chart{height:220px;position:relative;background:linear-gradient(rgba(130,162,196,.06) 1px,transparent 1px);background-size:100% 44px;border-radius:12px}.line-chart svg{width:100%;height:100%}.quick{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick a{padding:15px;border-radius:12px;border:1px solid var(--line);background:rgba(11,18,27,.82);text-decoration:none;color:var(--soft)}.quick strong{display:block;color:var(--text);margin-bottom:6px}.activity{list-style:none;padding:0;margin:0}.activity li{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line2);color:var(--soft);font-size:13px}.activity li:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--green);margin-top:4px;box-shadow:0 0 12px rgba(32,201,151,.35)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}.stat span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}.stat strong{display:block;font-size:30px;line-height:1;color:#fff;margin-bottom:8px}.stat small{color:#8ea0bd;font-size:12px}.detail-panel{border:1px solid rgba(33,212,253,.22);box-shadow:0 18px 50px rgba(0,0,0,.28)}.detail-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:12px 0 14px}.detail-grid div{padding:14px;border-radius:12px;background:rgba(8,14,22,.72);border:1px solid var(--line2)}.detail-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.detail-grid strong{color:var(--text);font-size:14px}
.search-panel{padding:18px 20px;margin:0 0 18px;background:linear-gradient(180deg,rgba(17,26,38,.98),rgba(9,15,23,.98));border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 38px rgba(0,0,0,.25)}.search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid var(--line2)}.search-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:#eff5fb}.search-title:before{content:"";width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,#163861,#1d9bf0);border:1px solid rgba(97,183,255,.28);box-shadow:0 0 16px rgba(29,155,240,.20)}.search-desc{font-size:12px;color:var(--muted)}.advanced-search{display:flex;align-items:flex-end;gap:14px;flex-wrap:nowrap;width:100%}.search-field{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.search-field label{width:92px;min-width:92px;margin:0;color:#9fb0c5;font-weight:500}.search-field input{height:42px;margin:0;flex:1}.search-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 174px;width:174px;min-width:174px;white-space:nowrap;margin:0}.search-actions .btn{height:42px;line-height:42px;padding:0 18px;margin:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;white-space:nowrap}.search-actions .search-primary{width:86px;min-width:86px}.search-actions .search-reset{width:78px;min-width:78px;background:rgba(19,29,42,.96);border:1px solid var(--line);box-shadow:none;color:var(--soft)}
@media(max-width:1000px){.kpis,.dash-grid,.stats-grid{grid-template-columns:1fr}.side{display:none}.main{padding:18px}.hero h1{font-size:30px}.advanced-search{flex-wrap:wrap}.search-actions{justify-content:flex-start}}


/* white + technology blue theme override */
:root{
  --bg:#f4f8ff;
  --bg2:#eef5ff;
  --panel:#ffffff;
  --panel2:#f8fbff;
  --surface:#ffffff;
  --surface2:#eef6ff;
  --line:rgba(22,88,180,.16);
  --line2:rgba(22,88,180,.09);
  --text:#142033;
  --soft:#344966;
  --muted:#6d7f95;
  --brand:#1677ff;
  --brand2:#00a3ff;
  --cyan:#00c2ff;
  --green:#16a878;
  --red:#d93025;
  --yellow:#b7791f;
}
html{background:#f4f8ff!important}
body{
  color:var(--text)!important;
  background:
    radial-gradient(circle at 88% -8%,rgba(0,163,255,.14),transparent 30%),
    radial-gradient(circle at 8% 0%,rgba(22,119,255,.10),transparent 28%),
    linear-gradient(180deg,#f7fbff 0%,#eef5ff 54%,#f7fbff 100%)!important;
}
body:before{
  background-image:
    linear-gradient(rgba(22,119,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(22,119,255,.055) 1px,transparent 1px)!important;
  background-size:42px 42px!important;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.42),transparent 82%)!important;
}
.top{
  background:rgba(255,255,255,.88)!important;
  border-bottom:1px solid rgba(22,88,180,.14)!important;
  box-shadow:0 10px 28px rgba(22,88,180,.08)!important;
}
.brand{color:#10243d!important}
.brand:before{
  background:linear-gradient(135deg,#1677ff,#00c2ff)!important;
  border:1px solid rgba(22,119,255,.24)!important;
  box-shadow:0 0 18px rgba(22,119,255,.22)!important;
}
.user{color:#344966!important;background:rgba(239,246,255,.86)!important;border:1px solid rgba(22,88,180,.16)!important}.top a{color:#1677ff!important}
.side{
  background:rgba(255,255,255,.78)!important;
  border-right:1px solid rgba(22,88,180,.12)!important;
  box-shadow:12px 0 30px rgba(22,88,180,.04)!important;
}
.side a{color:#405773!important;border-color:transparent!important}.side a:before{background:#b6c9df!important}.side a:hover{background:#eef6ff!important;border-color:rgba(22,119,255,.18)!important;color:#0f3d73!important}.side a:hover:before{background:#1677ff!important;box-shadow:0 0 12px rgba(22,119,255,.34)!important}
.main h1{color:#10243d!important}.main h3{color:#142033!important}
.card,.panel,.search-panel,.stat,.kpi,.chart-card{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,251,255,.96))!important;
  border:1px solid rgba(22,88,180,.14)!important;
  box-shadow:0 14px 36px rgba(22,88,180,.08),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
.search-panel:before,.card:before,.panel:before{background:linear-gradient(90deg,#1677ff,#00c2ff)!important}
.search-title strong,.stat strong,.kpi .num{color:#10243d!important}.search-title em,.stat span,.stat small,.kpi .label,.kpi .trend,label,.pill,td,.legend div,.quick a,.activity li{color:#5f728b!important}
input,textarea,select{
  background:#ffffff!important;
  border:1px solid rgba(22,88,180,.18)!important;
  color:#142033!important;
  box-shadow:inset 0 1px 2px rgba(22,88,180,.04)!important;
}
input::placeholder,textarea::placeholder{color:#8da0b8!important}
input:focus,textarea:focus,select:focus{border-color:#1677ff!important;box-shadow:0 0 0 4px rgba(22,119,255,.12)!important}
.btn,button,.search-primary{
  background:linear-gradient(180deg,#2492ff,#1677ff)!important;
  color:#fff!important;
  border:1px solid rgba(22,119,255,.26)!important;
  box-shadow:0 10px 22px rgba(22,119,255,.20)!important;
}
.btn.gray,.search-reset{
  background:#ffffff!important;
  color:#1677ff!important;
  border:1px solid rgba(22,119,255,.24)!important;
  box-shadow:0 8px 18px rgba(22,88,180,.06)!important;
}
table{background:#fff!important;border:1px solid rgba(22,88,180,.14)!important;box-shadow:0 12px 28px rgba(22,88,180,.06)!important}th{background:#f0f7ff!important;color:#526a86!important;border-bottom:1px solid rgba(22,88,180,.12)!important}td{color:#344966!important;border-bottom:1px solid rgba(22,88,180,.08)!important}tr:hover td{background:#f7fbff!important}.actions a{color:#1677ff!important}
.hero{background:linear-gradient(135deg,#ffffff 0%,#edf6ff 58%,#f8fbff 100%)!important;border:1px solid rgba(22,88,180,.14)!important;box-shadow:0 18px 42px rgba(22,88,180,.09)!important}.hero:after{background:radial-gradient(circle,rgba(0,194,255,.22),transparent 65%)!important}.hero .eyebrow{color:#1677ff!important}.hero h1{color:#10243d!important}.hero p{color:#5f728b!important}
.donut:after{background:#fff!important;border:1px solid rgba(22,88,180,.12)!important}.line-chart{background:linear-gradient(rgba(22,119,255,.07) 1px,transparent 1px)!important;background-size:100% 44px!important}.bar{background:linear-gradient(180deg,#35b9ff,#1677ff)!important;box-shadow:0 0 18px rgba(22,119,255,.18)!important}.quick a{background:#fff!important;border:1px solid rgba(22,88,180,.14)!important}.quick strong{color:#10243d!important}
footer{color:#7e90a6!important;border-top:1px solid rgba(22,88,180,.10)!important}
.detail-panel{border:1px solid rgba(22,119,255,.20)!important;box-shadow:0 14px 36px rgba(22,119,255,.09)!important}.detail-grid div{background:#f7fbff!important;border:1px solid rgba(22,88,180,.12)!important}.detail-grid span{color:#6d7f95!important}.detail-grid strong{color:#10243d!important}
.search-panel .advanced-search{display:flex!important;align-items:flex-end!important;gap:14px!important;flex-wrap:nowrap!important;width:100%!important}.search-panel .search-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:0 0 174px!important;width:174px!important;min-width:174px!important;white-space:nowrap!important;margin:0!important}.search-panel .search-actions .btn{height:42px!important;line-height:42px!important;padding:0 18px!important;margin:0!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;box-sizing:border-box!important;white-space:nowrap!important}.search-panel .search-actions .search-primary{width:86px!important;min-width:86px!important}.search-panel .search-actions .search-reset{width:78px!important;min-width:78px!important}


/* system settings and brand logo */
.brand:before{display:none!important}
.brand-logo-text{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#1677ff,#00c2ff);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;letter-spacing:.5px;box-shadow:0 8px 18px rgba(22,119,255,.20)}
.brand-logo-img{width:34px;height:34px;border-radius:9px;background:#fff;border:1px solid rgba(22,119,255,.18);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 8px 18px rgba(22,119,255,.12)}
.brand-logo-img img{width:100%;height:100%;object-fit:contain;display:block}
.settings-card{max-width:980px}.settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.settings-head strong{font-size:18px;color:#10243d}.settings-head p{margin:8px 0 0;color:#6d7f95;line-height:1.7}.settings-badge{font-size:12px;color:#1677ff;background:#eef6ff;border:1px solid rgba(22,119,255,.18);border-radius:999px;padding:7px 10px;white-space:nowrap}.form-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}.settings-preview{margin:4px 0 18px;padding:16px;border-radius:14px;background:linear-gradient(180deg,#f8fbff,#eef6ff);border:1px solid rgba(22,119,255,.14);display:flex;align-items:center;gap:16px}.settings-preview>span{font-size:12px;color:#6d7f95}.preview-brand{display:flex;align-items:center;gap:10px;color:#10243d}.preview-brand strong{font-size:16px}.side a[href="/admin/users.php"]{margin-top:16px;border-top:1px solid rgba(22,119,255,.12);padding-top:14px}
@media(max-width:900px){.form-grid.two{grid-template-columns:1fr}.settings-head{display:block}.settings-badge{display:inline-block;margin-top:12px}}


/* ad management data presentation */
.ad-overview{position:relative;overflow:hidden;padding:24px!important}
.ad-overview:after{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(22,119,255,.13),transparent 68%);pointer-events:none}
.overview-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px;position:relative;z-index:1}
.section-kicker{display:inline-flex;color:#1677ff;font-size:12px;font-weight:700;letter-spacing:.16em;margin-bottom:8px}
.overview-head h3{font-size:24px;margin:0 0 10px!important;color:#10243d!important}
.overview-head p{margin:0;max-width:820px;line-height:1.8;color:#5f728b;font-size:14px}
.overview-chip{flex:0 0 auto;border:1px solid rgba(22,119,255,.20);background:#eef6ff;color:#1677ff;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:700}
.ad-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0;position:relative;z-index:1}
.metric-card{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid rgba(22,88,180,.13);border-radius:16px;padding:18px;box-shadow:0 10px 24px rgba(22,88,180,.07)}
.metric-card.primary{background:linear-gradient(135deg,#1677ff,#00a3ff);color:#fff;border-color:rgba(22,119,255,.28)}
.metric-card span{display:block;color:#6d7f95;font-size:13px;margin-bottom:10px}.metric-card.primary span,.metric-card.primary small{color:rgba(255,255,255,.82)}
.metric-card strong{display:block;font-size:34px;line-height:1;color:#10243d;margin-bottom:8px}.metric-card.primary strong{color:#fff}
.metric-card small{color:#7b8da3;font-size:12px}
.ad-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;position:relative;z-index:1}
.data-panel{background:#fff;border:1px solid rgba(22,88,180,.13);border-radius:16px;padding:18px;box-shadow:0 10px 24px rgba(22,88,180,.06)}
.panel-title{font-size:16px;font-weight:700;color:#10243d;margin-bottom:14px}
.progress-row{display:flex;justify-content:space-between;align-items:center;color:#5f728b;font-size:13px;margin:12px 0 8px}.progress-row b{color:#1677ff}
.progress{height:10px;background:#edf4ff;border-radius:999px;overflow:hidden;border:1px solid rgba(22,119,255,.08)}
.progress i{display:block;height:100%;background:linear-gradient(90deg,#1677ff,#00c2ff);border-radius:999px}.progress i.warn{background:linear-gradient(90deg,#f5a623,#ffd166)}.progress i.mute{background:linear-gradient(90deg,#91a4ba,#c5d2e1)}
.info-panel p{color:#5f728b;line-height:1.8;margin:0 0 12px}.info-panel dl{display:grid;grid-template-columns:84px 1fr;gap:10px 12px;margin:0}.info-panel dt{color:#7b8da3}.info-panel dd{margin:0;color:#10243d;font-weight:600}
.status-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid rgba(22,88,180,.14);background:#f1f6ff;color:#1677ff}.status-active{background:#e9fbf5;color:#0b8f67;border-color:rgba(22,168,120,.20)}.status-draft{background:#fff8e8;color:#9a6500;border-color:rgba(183,121,31,.22)}.status-inactive{background:#f2f5f9;color:#607089;border-color:rgba(96,112,137,.18)}
@media(max-width:1000px){.ad-metrics,.ad-data-grid{grid-template-columns:1fr}.overview-head{flex-direction:column}}


/* ad menu and ad module tabs */
.side-group{margin:2px 0 6px}.side-parent{font-weight:600!important}.side-child{margin-left:18px!important;padding:9px 12px!important;font-size:13px!important;color:#5f728b!important;background:rgba(255,255,255,.42)!important}.side-child:before{width:5px!important;height:5px!important;background:#7bbcff!important}.subnav{display:flex;gap:12px;margin:-6px 0 18px}.subnav a{padding:10px 16px;border-radius:999px;text-decoration:none;color:#3d5878;background:#fff;border:1px solid rgba(22,119,255,.18);box-shadow:0 8px 18px rgba(22,88,180,.06)}.subnav a.active{color:#fff;background:linear-gradient(180deg,#2492ff,#1677ff);box-shadow:0 10px 22px rgba(22,119,255,.20)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.form-grid .full{grid-column:1/-1}.status-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#eef7ff;border:1px solid rgba(22,119,255,.18);color:#1677ff;font-weight:600;font-size:12px}.analysis-grid{grid-template-columns:1fr 1fr;margin-bottom:18px}@media(max-width:900px){.form-grid,.analysis-grid{grid-template-columns:1fr}.subnav{flex-wrap:wrap}.side-child{margin-left:8px!important}}


/* sidebar nested menu: make ad children clearly appear under 广告管理 */
.side .side-group{
  display:block!important;
  margin:2px 0 8px!important;
  padding:0!important;
}
.side .side-group .side-parent{
  margin-bottom:3px!important;
  font-weight:700!important;
  color:#0f3d73!important;
  background:linear-gradient(90deg,rgba(22,119,255,.10),rgba(0,194,255,.04))!important;
  border-color:rgba(22,119,255,.18)!important;
}
.side .side-group .side-parent:before{
  background:#1677ff!important;
  box-shadow:0 0 10px rgba(22,119,255,.30)!important;
}
.side .side-group .side-child{
  position:relative!important;
  margin:0 0 3px 22px!important;
  padding:9px 10px 9px 26px!important;
  min-height:34px!important;
  font-size:13px!important;
  color:#5f728b!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
}
.side .side-group .side-child:before{
  content:""!important;
  position:absolute!important;
  left:9px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:6px!important;
  height:6px!important;
  border-radius:50%!important;
  background:#9ab2cc!important;
}
.side .side-group .side-child:after{
  content:""!important;
  position:absolute!important;
  left:-12px!important;
  top:-7px!important;
  width:14px!important;
  height:24px!important;
  border-left:1px solid rgba(22,119,255,.20)!important;
  border-bottom:1px solid rgba(22,119,255,.20)!important;
  border-radius:0 0 0 8px!important;
}
.side .side-group .side-child:hover{
  background:#eef6ff!important;
  border-color:rgba(22,119,255,.18)!important;
  color:#1677ff!important;
}
.side .side-group .side-child:hover:before{background:#1677ff!important;box-shadow:0 0 10px rgba(22,119,255,.32)!important}

/* news/ads tab navigation */
.subnav{display:flex;gap:10px;margin:0 0 18px;align-items:center;flex-wrap:wrap}
.subnav a{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;border-radius:10px;text-decoration:none;color:#1677ff;background:#fff;border:1px solid rgba(22,119,255,.18);box-shadow:0 8px 18px rgba(22,88,180,.06);font-size:14px;font-weight:600}
.subnav a.active,.subnav a:hover{background:linear-gradient(180deg,#2492ff,#1677ff);color:#fff;border-color:rgba(22,119,255,.26);box-shadow:0 10px 22px rgba(22,119,255,.18)}
.detail-content{margin-top:18px;padding:16px;border-radius:12px;background:#f7fbff;border:1px solid rgba(22,88,180,.12);color:#344966;line-height:1.8}.detail-content h4{margin:0 0 10px;color:#10243d}

/* news analysis chart panels */
.analysis-chart-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:18px}.chart-panel{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid rgba(22,88,180,.14);border-radius:14px;padding:18px;box-shadow:0 12px 28px rgba(22,88,180,.06)}.chart-panel.wide{grid-row:span 2}.bar-chart{height:260px;display:flex;align-items:flex-end;gap:14px;padding:18px 8px 4px;border-bottom:1px solid rgba(22,88,180,.12)}.bar-item{flex:1;min-width:54px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;color:#5f728b;font-size:12px}.bar-value{color:#1677ff;font-weight:700}.bar-track{height:190px;width:100%;max-width:42px;background:#eef6ff;border-radius:12px;display:flex;align-items:flex-end;overflow:hidden;border:1px solid rgba(22,119,255,.10)}.bar-track i{display:block;width:100%;background:linear-gradient(180deg,#00c2ff,#1677ff);border-radius:12px 12px 0 0;box-shadow:0 -6px 18px rgba(22,119,255,.18)}.bar-item span{max-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.donut-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px dashed rgba(22,88,180,.12);color:#5f728b}.donut-row span{display:flex;align-items:center;gap:8px}.donut-row i{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#1677ff,#00c2ff);display:inline-block}.donut-row b{color:#10243d}.analysis-table-wrap{margin-top:16px}.empty-state{padding:24px;color:#8da0b8;text-align:center;background:#f7fbff;border-radius:12px;border:1px dashed rgba(22,88,180,.18)}@media(max-width:1000px){.analysis-chart-grid{grid-template-columns:1fr}.chart-panel.wide{grid-row:auto}}
/* video module table helpers */
.clip-text{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* layout fix: footer belongs to right content area and never overlaps sidebar */
.wrap{align-items:stretch!important;min-height:calc(100vh - 68px)!important}
.main{display:flex!important;flex-direction:column!important;min-height:calc(100vh - 68px)!important;width:calc(100% - 248px)!important}
.main footer{margin-top:auto!important;margin-left:0!important;width:100%!important;border-top:1px solid rgba(22,88,180,.12)!important;background:transparent!important;color:#6d7f95!important;padding:20px 0 0!important;text-align:center!important}
.side{overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:28px!important}

/* collapsible sidebar menu override */
.side .side-group{display:block!important;margin:2px 0 8px!important;padding:0!important}
.side .side-group .side-parent{position:relative!important;margin-bottom:3px!important;font-weight:700!important;color:#0f3d73!important;background:linear-gradient(90deg,rgba(22,119,255,.10),rgba(0,194,255,.04))!important;border-color:rgba(22,119,255,.18)!important;cursor:pointer!important;padding-right:34px!important}
.side .side-group .side-parent:after{content:"▸"!important;position:absolute!important;right:13px!important;top:50%!important;transform:translateY(-50%)!important;color:#1677ff!important;font-size:12px!important;transition:.18s ease!important;border:0!important;width:auto!important;height:auto!important;background:transparent!important}
.side .side-group.open .side-parent:after{transform:translateY(-50%) rotate(90deg)!important}
.side .side-group .side-children{display:none!important;margin:2px 0 8px!important;padding:0!important}
.side .side-group.open .side-children{display:block!important}
.side .side-group .side-child{position:relative!important;display:flex!important;margin:0 0 3px 22px!important;padding:9px 10px 9px 26px!important;min-height:34px!important;font-size:13px!important;color:#5f728b!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px!important}
.side .side-group .side-child:before{content:""!important;position:absolute!important;left:9px!important;top:50%!important;transform:translateY(-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#9ab2cc!important}
.side .side-group .side-child:after{content:""!important;position:absolute!important;left:-12px!important;top:-7px!important;width:14px!important;height:24px!important;border-left:1px solid rgba(22,119,255,.20)!important;border-bottom:1px solid rgba(22,119,255,.20)!important;border-radius:0 0 0 8px!important;background:transparent!important}
.side .side-group .side-child:hover{background:#eef6ff!important;border-color:rgba(22,119,255,.18)!important;color:#1677ff!important}
.side .side-group .side-child:hover:before{background:#1677ff!important;box-shadow:0 0 10px rgba(22,119,255,.32)!important}

/* search form button alignment fix: keep 查询/重置 in one clean row */
.search-panel-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-bottom:16px!important;
  padding-bottom:13px!important;
  border-bottom:1px solid var(--line2)!important;
}
.search-panel-title .search-icon{
  width:26px!important;
  height:26px!important;
  border-radius:7px!important;
  background:linear-gradient(135deg,#1677ff,#00c2ff)!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-style:normal!important;
  flex:0 0 26px!important;
}
.search-panel-title strong{color:#10243d!important;font-size:15px!important;white-space:nowrap!important}
.search-panel-title em{font-style:normal!important;color:#6d7f95!important;font-size:12px!important;white-space:nowrap!important}
.search-panel .advanced-search{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) auto!important;
  align-items:end!important;
  gap:14px!important;
  width:100%!important;
}
.search-panel .advanced-search .search-field{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  width:100%!important;
}
.search-panel .advanced-search .search-field label{
  width:auto!important;
  min-width:auto!important;
  margin:0!important;
  white-space:nowrap!important;
}
.search-panel .advanced-search .search-field input,
.search-panel .advanced-search .search-field select{
  min-width:0!important;
  width:100%!important;
  height:42px!important;
  margin:0!important;
}
.search-panel .advanced-search .search-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  width:auto!important;
  min-width:174px!important;
  flex:none!important;
  white-space:nowrap!important;
  margin:0!important;
}
.search-panel .advanced-search .search-actions .btn{
  height:42px!important;
  min-height:42px!important;
  line-height:1!important;
  padding:0 18px!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
}
.search-panel .advanced-search .search-actions .search-primary{width:86px!important;min-width:86px!important}
.search-panel .advanced-search .search-actions .search-reset{width:78px!important;min-width:78px!important}
@media(min-width:901px){
  .search-panel .advanced-search{grid-template-columns:minmax(0,1fr) auto!important}
}
@media(max-width:900px){
  .search-panel-title{flex-wrap:wrap!important}
  .search-panel .advanced-search{grid-template-columns:1fr!important}
  .search-panel .advanced-search .search-actions{justify-content:flex-start!important;width:100%!important;min-width:0!important}
}
