:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --bg: #070d1c;
  --text: #e8eefc;
  --muted: #8b9bb8;
  --border: rgba(120, 160, 255, 0.16);
  --success: #22c55e;
  --panel: #121c3a;
  --card: rgba(18, 28, 58, 0.92);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
}
body {
  font-family: var(--db-font, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(59, 130, 246, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 0%, rgba(139, 92, 246, 0.16), transparent 50%),
    linear-gradient(160deg, #050816, #0a1024 45%, #0d1530);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}
body:has(.login-page) {
  overflow: auto;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a1024; }
::-webkit-scrollbar-thumb { background: rgba(99, 140, 255, 0.35); border-radius: 10px; }

.app-shell {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: 220px; flex-shrink: 0; color: #fff;
  background: linear-gradient(180deg, #070d1f 0%, #0c1530 50%, #080e1c 100%);
  border-right: 1px solid rgba(120, 160, 255, 0.12);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  height: 100%;
  overflow: hidden;
}
.sidebar-logo {
  height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.12));
  font-weight: 700; border-bottom: 1px solid rgba(120, 160, 255, 0.14); font-size: 14px;
  letter-spacing: 0.02em; color: #f0f4ff;
  text-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
}
.sidebar-logo-img {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover;
  background: #fff; box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}
.login-brand-logo {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  margin-bottom: 16px; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.sidebar-menu { list-style: none; padding: 12px 8px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; color: rgba(232, 238, 252, 0.72); font-size: 14px;
  border-radius: 10px; margin-bottom: 2px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.sidebar-menu a i { width: 18px; text-align: center; opacity: .9; }
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.14));
  border-color: rgba(99, 140, 255, 0.28);
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
}
.topbar-left { color: #fff; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.topbar-toggle {
  width: 34px; height: 34px; border: 0; background: transparent; color: #fff;
  cursor: pointer; font-size: 18px; border-radius: 8px;
}
.topbar-toggle:hover { background: rgba(99, 140, 255, 0.15); }
.main-area { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 54px; flex-shrink: 0;
  background: linear-gradient(90deg, rgba(7, 13, 31, 0.95), rgba(16, 26, 54, 0.92));
  border-bottom: 1px solid rgba(120, 160, 255, 0.14);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; position: relative; z-index: 20;
  backdrop-filter: blur(10px);
}
.points-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 1px solid rgba(99, 140, 255, 0.45); border-radius: 16px; font-size: 13px;
  background: linear-gradient(90deg, #2563eb, #7c3aed); color: #fff;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}
.points-limit i { font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-link { color: rgba(255,255,255,.88); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.topbar-link:hover { color: #fff; }
.topbar-logout { opacity: .75; }
.user-trigger { display: flex; align-items: center; gap: 8px; color: #fff; }
.user-trigger img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.content-wrap {
  padding: 16px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #0f172a;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.panel-body { padding: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: filter .15s, box-shadow .15s, transform .1s;
}
.btn-primary { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35); }
.btn-success { background: #16a34a; color: #fff; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-default { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.btn-brand {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #d946ef);
  background-size: 160% 160%;
  color: #fff; width: 100%; height: 42px; border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.btn-brand:hover { filter: brightness(1.08); }
.btn-link-enter {
  color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.55); padding: 6px 8px; border-radius: 6px;
  font-size: 13px; background: transparent; cursor: pointer;
}
.btn-article {
  color: #fff; background: linear-gradient(135deg, #2563eb, #8b5cf6);
  padding: 6px 8px; border-radius: 6px; font-size: 13px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.table-wrap { overflow: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap;
}
table.data th, table.data td {
  border: 1px solid #e8eef8; padding: 10px 12px; text-align: left; vertical-align: middle;
}
table.data th { background: linear-gradient(180deg, #f8faff, #eef2ff); font-weight: 600; color: #334155; }
table.data tbody tr:nth-child(even) { background: #f8fafc; }
table.data tbody tr:hover { background: #eef4ff; }
.avatar-sm { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; color: #fff; }
.badge-normal, .badge-done { background: #18bc9c; }
.badge-hidden { background: #95a5a6; }
.badge-wait { background: #f39c12; }
.badge-pub { background: #3498db; }
.badge-reject { background: #e74c3c; }
.badge-after { background: #9b59b6; }
.status-query {
  color: #fff; background: linear-gradient(168deg,#238edc,#75c21c);
  padding: 6px 8px; border-radius: 5px; font-size: 13px;
}
.status-idle { color: #ccc; }
.toggle { border: none; background: none; cursor: pointer; font-size: 18px; }
.toggle.on { color: #18bc9c; }
.toggle.off { color: #bbb; }

.alert {
  padding: 10px 12px; border-radius: 4px; margin-bottom: 12px; font-size: 13px;
}
.alert-success { background: #e8f8f5; color: #0f766e; }
.alert-error { background: #fee2e2; color: #b91c1c; }

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(59, 130, 246, 0.35), transparent 45%),
    radial-gradient(ellipse at 90% 0%, rgba(217, 70, 239, 0.22), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(160deg, #050816, #0a1024 50%, #101a36);
}
.login-container {
  width: 100%; max-width: 880px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  border: 1px solid rgba(140, 180, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.2);
  display: flex; overflow: hidden;
}
.login-aside {
  width: 48%; color: #fff; padding: 56px 40px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.92) 55%, rgba(217, 70, 239, 0.85)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 45%);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.login-aside::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.login-aside h2 { font-size: 26px; margin-bottom: 12px; }
.login-aside p { font-size: 14px; opacity: .9; margin-bottom: 32px; line-height: 1.6; }
.login-aside li { list-style: none; margin-bottom: 12px; font-size: 13px; display: flex; align-items: center; }
.login-aside li::before {
  content: ""; width: 4px; height: 4px; background: #fff; border-radius: 50%; margin-right: 8px;
}
.login-section { width: 52%; padding: 56px 48px; color: #0f172a; background: #fff; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h3 { font-size: 22px; margin-bottom: 4px; color: #0f172a; }
.section-header p { font-size: 13px; color: #64748b; }
.input-group { display: flex; margin-bottom: 16px; }
.input-group-addon {
  width: 42px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: 1px solid #e5e7eb; border-right: none; border-radius: 4px 0 0 4px; color: #6b7280;
}
.input-group input {
  flex: 1; height: 38px; padding: 0 12px; border: 1px solid #e5e7eb; border-left: none;
  border-radius: 0 4px 4px 0; outline: none;
}
.keep-row { margin-bottom: 20px; font-size: 13px; color: #64748b; display: flex; gap: 6px; align-items: center; }
.errtips {
  padding: 8px 12px; background: #fee2e2; color: #b91c1c; border-radius: 4px;
  margin-bottom: 16px; font-size: 13px;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-bottom: 24px;
}
.stat-card {
  position: relative; overflow: hidden;
  border-radius: 12px; padding: 22px; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); min-height: 120px;
}
.stat-card .stat-body { position: relative; z-index: 1; max-width: 78%; }
.stat-card .label { font-size: 20px; }
.stat-card .value { font-size: 2.2rem; font-weight: 700; margin: 6px 0 8px; }
.stat-card .desc { font-size: 12px; opacity: .92; }
.stat-card .stat-ico {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 54px; opacity: .28;
}
.stat-card.white { background: #fff; color: var(--text); }
.stat-card.white .label { color: var(--muted); font-size: 14px; }
.stat-card.white .desc { color: #52c41a; }
.chart-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-bottom: 24px; }
.chart-card {
  background: #fff; border-radius: 12px; padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.chart-card-hd { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.chart-card-hd h3 { margin: 0; }
.platform-pills { display:flex; flex-wrap:wrap; gap:6px; }
.platform-pills .ppill {
  display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:999px;
  color:#fff; font-size:11px; font-weight:600;
}
.chart-card h3 { margin-bottom: 16px; }
.legend { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }

.form-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 24px; }
.form-title {
  text-align: center; color: #4e73df; font-weight: 700; margin: 18px 0 20px; font-size: 14px;
}
.form-title.main { font-size: 18px; margin-top: 0; }
.form-group { display: flex; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.form-group > label {
  width: 140px; text-align: right; padding-top: 8px; font-size: 13px; flex-shrink: 0;
}
.form-group .ctrl { flex: 1; }
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=number],
.form-group input[type=date],
.form-group textarea {
  width: 100%; max-width: 520px; height: 38px; padding: 0 12px;
  border: 1px solid #e5e7eb; border-radius: 4px;
}
.form-group textarea { height: 80px; padding: 10px 12px; }
.red { color: red; margin-right: 4px; }
.hint { color: #777; font-size: 12px; margin-top: 5px; }
.hint-center { text-align: center; font-size: 13px; margin: 8px 0; }
.inline-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inline-3 .item label { display: block; margin-bottom: 6px; font-size: 13px; }
.radio-row { display: flex; gap: 18px; padding-top: 8px; }
.profile-avatar { text-align: center; margin-bottom: 24px; }
.profile-avatar img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.profile-avatar-wrap { text-align: center; margin-bottom: 20px; }
.profile-avatar-click {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin: 0 auto;
  position: relative; cursor: pointer; border: 2px solid #e5e7eb;
}
.profile-avatar-click img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-mask {
  display: none; position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff;
  align-items: center; justify-content: center; font-size: 12px;
}
.profile-avatar-click:hover .profile-avatar-mask { display: flex; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .form-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.form-grid .form-row input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 4px;
}

.notice-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.notice-mask.show { display: flex; }
.notice-box { background: #fff; width: min(560px, 100%); border-radius: 6px; overflow: hidden; }
.notice-title { padding: 14px 18px; border-bottom: 1px solid #eee; font-weight: 600; }
.notice-body { padding: 20px 24px; font-size: 16px; line-height: 1.8; }
.notice-body p { color: #666; font-size: 13px; margin-top: 8px; }
.notice-footer { padding: 12px 18px; border-top: 1px solid #eee; text-align: right; }

.search-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.search-bar input, .search-bar select {
  height: 34px; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0 10px;
}

.ag-page {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.chart-card, .stat-card, .form-box {
  border: 1px solid rgba(120, 160, 255, 0.14);
}
.stat-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), 0 0 20px rgba(59, 130, 246, 0.12);
}
.ag-toolbar { margin-bottom: 12px; }
.ag-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ag-search input { height: 34px; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0 10px; min-width: 220px; }
.ag-table-wrap { overflow: auto; }
.ag-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ag-table th, .ag-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; text-align: left; white-space: nowrap; }
.ag-table th { background: #fafafa; color: #666; font-weight: 600; }
.ag-table .empty { text-align: center; color: #999; padding: 28px !important; }
.ag-table .cell-wrap { max-width: 180px; white-space: normal; }
.ag-table .col-check { width: 36px; }
.ag-table .col-idx { width: 48px; color: #999; }
.ag-table .col-ops { min-width: 120px; }
.ag-pager { margin-top: 10px; color: #888; font-size: 12px; }

/* 代理企业管理（对齐仿站截图） */
.eu-page { padding: 14px 14px 18px; border-radius: 6px; }
.eu-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.eu-toolbar-left, .eu-toolbar-right { display: flex; align-items: center; gap: 8px; }
.eu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 6px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
}
.eu-btn-refresh {
  width: 34px; padding: 0; border-radius: 50%; background: #3b82f6;
}
.eu-btn-add { background: #7c3aed; }
.eu-btn-del { background: #ef4444; }
.eu-icon-btn {
  width: 34px; height: 34px; border: 1px solid #e5e7eb; border-radius: 6px;
  background: #fff; color: #64748b; cursor: pointer;
}
.eu-search { display: flex; align-items: center; gap: 6px; }
.eu-search input {
  height: 34px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0 10px; width: 180px;
}
.eu-table-wrap { overflow: auto; }
.eu-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eu-table th, .eu-table td {
  padding: 14px 10px; border-bottom: 1px solid #f1f5f9; text-align: left; white-space: nowrap;
  vertical-align: middle;
}
.eu-table th { color: #64748b; font-weight: 600; background: #fff; }
.eu-table .empty { text-align: center; color: #999; padding: 36px !important; }
.eu-table .col-check { width: 40px; }
.eu-table .col-ops { min-width: 120px; }
.eu-avatar {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; display: block;
  border: 1px solid #eef2f7;
}
.eu-status { display: inline-flex; align-items: center; gap: 6px; color: #334155; font-size: 13px; }
.eu-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block;
}
.eu-status.is-ok .dot { background: #22c55e; }
.eu-status.is-off .dot { background: #94a3b8; }
.eu-enter {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 12px; border: 1px solid #5eead4; border-radius: 4px;
  color: #0f766e; background: #ecfdf9; font-size: 12px; font-weight: 600;
}
.eu-enter:hover { background: #d1fae5; }
.eu-op {
  width: 30px; height: 30px; border-radius: 50%; border: 0; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; cursor: pointer; margin-right: 6px;
  text-decoration: none;
}
.eu-op-edit { background: #6366f1; }
.eu-op-del { background: #ef4444; }
.eu-op-money { background: #10b981; }
.eu-pager { margin-top: 14px; color: #94a3b8; font-size: 12px; }

.profile-submit {
  width: 30%; min-width: 160px; height: 40px; border: 0; border-radius: 10px; color: #fff;
  background: linear-gradient(83deg, #927af4, #399ce4); font-weight: 600; cursor: pointer;
}
.profile-submit:hover { opacity: .92; }
.profile-avatar-wrap { display:flex; flex-direction:column; align-items:center; margin-bottom:18px; }
.profile-avatar-click {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; position: relative; cursor: pointer;
  border: 2px solid #e5e7eb;
}
.profile-avatar-click img { width:100%; height:100%; object-fit:cover; display:block; }
.profile-avatar-mask {
  position:absolute; inset:0; background:rgba(0,0,0,.45); color:#fff; font-size:12px;
  display:none; align-items:center; justify-content:center;
}
.profile-avatar-click:hover .profile-avatar-mask { display:flex; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; }
.ag-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.ag-tab { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px; color: #666; text-decoration: none; font-size: 13px; background: #f7f8fa; }
.ag-tab.active, .ag-tab:hover { background: #4d6bfe; color: #fff; }
.ag-title { margin: 0 0 14px; font-size: 16px; font-weight: 600; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal { background: #fff; width: min(520px, 100%); border-radius: 6px; overflow: hidden; }
.modal-lg { width: min(720px, 100%); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eee; font-weight: 600; }
.modal-header button { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #999; }
.modal-body { padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 8px; }
.modal-body .form-row label { display: block; margin-bottom: 6px; font-size: 13px; }
.modal-body .form-row input, .modal-body .form-row select, .modal-body .form-row textarea {
  width: 100%; height: 36px; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0 10px;
}

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  html, body { height: auto; overflow: auto; }
  .app-shell { flex-direction: column; height: auto; max-height: none; overflow: visible; }
  .sidebar { width: 100%; height: auto; }
  .main-area { overflow: visible; }
  .content-wrap { overflow: visible; }
  .login-container { flex-direction: column; }
  .login-aside, .login-section { width: 100%; }
  .form-group { flex-direction: column; }
  .form-group > label { width: auto; text-align: left; }
  .form-grid, .inline-3 { grid-template-columns: 1fr; }
}
/* ===== GEO Tech UI polish v2 ===== */
.content-wrap {
  background:
    radial-gradient(ellipse 60% 35% at 100% 0%, rgba(139, 92, 246, 0.08), transparent 50%),
    transparent;
}
.panel, .ag-page, .form-box, .chart-card {
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(241,245,255,.96)) !important;
  border: 1px solid rgba(140, 180, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
.btn {
  border-radius: 10px !important;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease !important;
}
.btn-primary, .btn-brand {
  background: linear-gradient(135deg, #3b82f6, #6366f1 45%, #8b5cf6) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
  border: none !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-brand:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-article, .status-query {
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}
table.data th, .ag-table th {
  background: linear-gradient(180deg, #f8faff, #eef2ff) !important;
}
.stat-card {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(0,0,0,.25), 0 0 24px rgba(59,130,246,.15) !important;
  transition: transform .15s ease;
}
.stat-card:hover { transform: translateY(-2px); }
.modal {
  border-radius: 16px !important;
  border: 1px solid rgba(140, 180, 255, 0.28) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.45) !important;
}
.modal-mask { background: rgba(4, 7, 15, .6) !important; backdrop-filter: blur(4px); }
.notice-box { border-radius: 14px !important; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.sidebar-logo span {
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px;
}
.login-aside h2 {
  text-shadow: 0 0 24px rgba(255,255,255,.25);
}
.form-row input:focus, .form-group input:focus, .input-group input:focus,
.search-bar input:focus, .ag-search input:focus {
  outline: none;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.input-group input, .form-group input, .form-group textarea, .search-bar input, .ag-search input {
  border-radius: 10px;
}
.input-group-addon { border-radius: 10px 0 0 10px !important; }
.input-group input { border-radius: 0 10px 10px 0 !important; }
