/* Unified UI theme (2026-04) */
:root {
  --ui-bg-1: #070b1e;
  --ui-bg-2: #121b4a;
  --ui-bg-3: #08102d;
  --ui-card: rgba(255, 255, 255, 0.04);
  --ui-card-strong: rgba(255, 255, 255, 0.07);
  --ui-border: rgba(180, 202, 255, 0.14);
  --ui-border-strong: rgba(70, 213, 255, 0.36);
  --ui-text: #e9f0fb;
  --ui-subtext: rgba(232, 242, 255, 0.64);
  --ui-accent: #29d7ff;
  --ui-accent-2: #11b7e8;
  --ui-success: #25d8a3;
  --ui-warn: #ffb454;
  --ui-danger: #ff8f7a;
  --ui-radius: 16px;
  --ui-radius-sm: 10px;
  --ui-shadow: 0 12px 34px rgba(4, 9, 28, 0.45);
  --ui-shadow-soft: 0 8px 22px rgba(41, 215, 255, 0.12);
}

body.ui-shell {
  color: var(--ui-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 520px at 96% -20%, rgba(41, 215, 255, 0.12), transparent 60%),
    radial-gradient(900px 420px at -10% -10%, rgba(28, 255, 184, 0.09), transparent 55%),
    linear-gradient(145deg, var(--ui-bg-1) 0%, var(--ui-bg-2) 52%, var(--ui-bg-3) 100%);
}

body.ui-shell .container {
  max-width: 1560px;
}

body.ui-shell .header {
  background: linear-gradient(135deg, rgba(41, 215, 255, 0.14), rgba(17, 183, 232, 0.08));
  border: 1px solid var(--ui-border-strong);
  box-shadow: var(--ui-shadow-soft);
  border-radius: calc(var(--ui-radius) + 2px);
}

body.ui-shell .header h1 {
  background: linear-gradient(92deg, #5ee2ff 0%, #3df0bf 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.ui-shell .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: none;
}

body.ui-shell .nav-links a {
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ui-subtext);
  transition: all 0.2s ease;
}

body.ui-shell .nav-links a:hover {
  border-color: rgba(41, 215, 255, 0.42);
  color: var(--ui-accent);
  background: rgba(41, 215, 255, 0.12);
}

body.ui-shell .nav-links a.active {
  color: var(--ui-accent);
  background: rgba(41, 215, 255, 0.14);
  border-color: rgba(41, 215, 255, 0.45);
}

body.ui-shell .platform-tab,
body.ui-shell .status-btn,
body.ui-shell .status-tab,
body.ui-shell .filter-tab {
  border-color: var(--ui-border);
  background: rgba(255, 255, 255, 0.05);
}

body.ui-shell .platform-tab:hover,
body.ui-shell .status-btn:hover,
body.ui-shell .status-tab:hover,
body.ui-shell .filter-tab:hover {
  border-color: rgba(41, 215, 255, 0.4);
  box-shadow: 0 4px 14px rgba(41, 215, 255, 0.14);
}

body.ui-shell .filter-box,
body.ui-shell .batch-actions,
body.ui-shell .table-container,
body.ui-shell .order-card,
body.ui-shell .glass,
body.ui-shell .glass-card,
body.ui-shell .card {
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow);
  border-radius: var(--ui-radius);
  backdrop-filter: blur(14px);
}

body.ui-shell .order-card:hover,
body.ui-shell .glass-card:hover,
body.ui-shell .card:hover {
  background: var(--ui-card-strong);
  border-color: rgba(41, 215, 255, 0.33);
}

body.ui-shell .btn,
body.ui-shell .btn-action,
body.ui-shell button.btn,
body.ui-shell button[class*="btn-"] {
  border-radius: var(--ui-radius-sm);
}

body.ui-shell input,
body.ui-shell select,
body.ui-shell textarea,
body.ui-shell .form-input,
body.ui-shell .form-select,
body.ui-shell .form-textarea {
  border-radius: var(--ui-radius-sm);
  border-color: var(--ui-border);
  background: rgba(255, 255, 255, 0.055);
}

body.ui-shell input:focus,
body.ui-shell select:focus,
body.ui-shell textarea:focus,
body.ui-shell .form-input:focus,
body.ui-shell .form-select:focus,
body.ui-shell .form-textarea:focus {
  border-color: rgba(41, 215, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(41, 215, 255, 0.18);
}

body.ui-shell .table-container table th,
body.ui-shell .data-table th {
  background: rgba(41, 215, 255, 0.11);
  color: #87e9ff;
}

body.ui-shell .table-container table td,
body.ui-shell .data-table td {
  border-bottom-color: rgba(166, 196, 255, 0.12);
}

body.ui-shell .table-container table tr:hover td,
body.ui-shell .data-table tr:hover {
  background: rgba(41, 215, 255, 0.08);
}

.ui-top-nav {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.26);
  border-radius: 14px;
}

@media (max-width: 960px) {
  body.ui-shell {
    padding: 14px !important;
  }
  body.ui-shell .header {
    padding: 18px !important;
  }
  body.ui-shell .nav-links a {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}
