html[data-ui="pro-max"] {
  color-scheme: light;
  --bg: #d7f0ff;
  --bg2: #86c8ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(255, 255, 255, 0.82);
  --surface-3: rgba(255, 255, 255, 0.70);
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.62);
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
  --shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.18);
  --primary: #4f46e5;
  --primary2: #6366f1;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --ring: 0 0 0 3px rgba(79, 70, 229, 0.22);
  --ring-danger: 0 0 0 3px rgba(220, 38, 38, 0.20);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", "微软雅黑", sans-serif;
}

html[data-ui="pro-max"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg2: #0f1a3a;
  --surface: rgba(2, 6, 23, 0.86);
  --surface-2: rgba(2, 6, 23, 0.72);
  --surface-3: rgba(2, 6, 23, 0.55);
  --text: rgba(226, 232, 240, 0.94);
  --muted: rgba(226, 232, 240, 0.62);
  --border: rgba(148, 163, 184, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.60);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 3px rgba(99, 102, 241, 0.32);
  --ring-danger: 0 0 0 3px rgba(248, 113, 113, 0.30);
}

html[data-ui="pro-max"] * {
  font-family: var(--font);
}

html[data-ui="pro-max"] body {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

html[data-ui="pro-max"] a {
  color: rgba(56, 189, 248, 0.95);
}

html[data-ui="pro-max"] a:hover {
  text-decoration: underline;
}

html[data-ui="pro-max"] .wrapper,
html[data-ui="pro-max"] .layout {
  width: 100%;
}

html[data-ui="pro-max"] .card,
html[data-ui="pro-max"] .login-container,
html[data-ui="pro-max"] .register-container,
html[data-ui="pro-max"] .recharge-container,
html[data-ui="pro-max"] .card-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  color: #0b1220;
}

html[data-ui="pro-max"][data-theme="dark"] .card,
html[data-ui="pro-max"][data-theme="dark"] .login-container,
html[data-ui="pro-max"][data-theme="dark"] .register-container,
html[data-ui="pro-max"][data-theme="dark"] .recharge-container,
html[data-ui="pro-max"][data-theme="dark"] .card-container {
  color: rgba(226, 232, 240, 0.94);
}

html[data-ui="pro-max"] .header {
  gap: 14px;
}

html[data-ui="pro-max"] .title,
html[data-ui="pro-max"] .title-block h1,
html[data-ui="pro-max"] .login-title,
html[data-ui="pro-max"] .register-title,
html[data-ui="pro-max"] .recharge-title {
  letter-spacing: 0.02em;
}

html[data-ui="pro-max"] .subtitle,
html[data-ui="pro-max"] .title-block p,
html[data-ui="pro-max"] .login-subtitle,
html[data-ui="pro-max"] .register-subtitle,
html[data-ui="pro-max"] .recharge-subtitle,
html[data-ui="pro-max"] .card-subtitle {
  color: var(--muted);
}

html[data-ui="pro-max"] .panel-section,
html[data-ui="pro-max"] .side-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: #0b1220;
}

html[data-ui="pro-max"][data-theme="dark"] .panel-section,
html[data-ui="pro-max"][data-theme="dark"] .side-section {
  color: rgba(226, 232, 240, 0.94);
}

html[data-ui="pro-max"] .panel-section h2,
html[data-ui="pro-max"] .panel-section h3,
html[data-ui="pro-max"] .side-section h3,
html[data-ui="pro-max"] .card-title {
  color: var(--text);
}

html[data-ui="pro-max"] .status-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

html[data-ui="pro-max"] .status-text,
html[data-ui="pro-max"] .info-list {
  color: var(--muted);
}

html[data-ui="pro-max"] .info-value {
  color: var(--text);
}

html[data-ui="pro-max"] input[type="text"],
html[data-ui="pro-max"] input[type="password"],
html[data-ui="pro-max"] input[type="number"],
html[data-ui="pro-max"] select,
html[data-ui="pro-max"] textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0b1220;
}

html[data-ui="pro-max"][data-theme="dark"] input[type="text"],
html[data-ui="pro-max"][data-theme="dark"] input[type="password"],
html[data-ui="pro-max"][data-theme="dark"] input[type="number"],
html[data-ui="pro-max"][data-theme="dark"] select,
html[data-ui="pro-max"][data-theme="dark"] textarea {
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.94);
}

html[data-ui="pro-max"] input:focus,
html[data-ui="pro-max"] select:focus,
html[data-ui="pro-max"] textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: rgba(79, 70, 229, 0.55);
}

html[data-ui="pro-max"] .btn,
html[data-ui="pro-max"] .btn-login,
html[data-ui="pro-max"] .btn-submit {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

html[data-ui="pro-max"] .btn:hover:not(:disabled),
html[data-ui="pro-max"] .btn-login:hover:not(:disabled),
html[data-ui="pro-max"] .btn-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.42);
}

html[data-ui="pro-max"] .btn:active:not(:disabled),
html[data-ui="pro-max"] .btn-login:active:not(:disabled),
html[data-ui="pro-max"] .btn-submit:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.34);
}

html[data-ui="pro-max"] .btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

html[data-ui="pro-max"] .btn-secondary {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.92), rgba(51, 65, 85, 0.92));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.20);
}

html[data-ui="pro-max"] .category-btn {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(15, 23, 42, 0.75);
  box-shadow: none;
}

html[data-ui="pro-max"][data-theme="dark"] .category-btn {
  color: rgba(226, 232, 240, 0.78);
}

html[data-ui="pro-max"] .category-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

html[data-ui="pro-max"] .server-switch {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

html[data-ui="pro-max"][data-theme="dark"] .server-switch {
  background: rgba(2, 6, 23, 0.40);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

html[data-ui="pro-max"] .server-switch-item.active {
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.35);
}

html[data-ui="pro-max"] .log-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

html[data-ui="pro-max"] table {
  width: 100%;
  border-collapse: collapse;
}

html[data-ui="pro-max"] th,
html[data-ui="pro-max"] td {
  border-bottom: 1px solid var(--border);
}

html[data-ui="pro-max"] tbody tr:nth-child(odd) {
  background: rgba(148, 163, 184, 0.06);
}

html[data-ui="pro-max"][data-theme="dark"] tbody tr:nth-child(odd) {
  background: rgba(148, 163, 184, 0.08);
}

html[data-ui="pro-max"] .announcement-bar {
  background: linear-gradient(135deg, rgba(254, 249, 195, 0.95), rgba(255, 251, 235, 0.95));
  border-color: rgba(245, 158, 11, 0.75);
}

html[data-ui="pro-max"][data-theme="dark"] .announcement-bar {
  background: linear-gradient(135deg, rgba(254, 249, 195, 0.12), rgba(255, 251, 235, 0.06));
  border-color: rgba(245, 158, 11, 0.40);
  color: rgba(226, 232, 240, 0.88);
}

html[data-ui="pro-max"] #ui-theme-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.95);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

html[data-ui="pro-max"] #ui-theme-toggle:hover {
  filter: brightness(1.06);
}
