:root {
  color-scheme: dark;
}

.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
[data-theme-icon] {
  font-size: 17px;
  line-height: 1;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4fa;
  --panel: #ffffff;
  --panel2: #f6f9fd;
  --line: rgba(35, 65, 105, 0.2);
  --cyan: #08748a;
  --blue: #356ee6;
  --purple: #7651d6;
  --text: #10213d;
  --muted: #60748f;
  --good: #087a50;
  --danger: #c63855;
  --warning: #9a6500;
  --shadow: 0 18px 48px rgba(30, 58, 92, 0.11);
  background: var(--bg);
}
html[data-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0, rgba(76, 126, 210, 0.1), transparent 30%),
    linear-gradient(145deg, #f8fafc, #edf3f8 58%, #f7f9fc);
}
html[data-theme="light"] .gradient {
  background: linear-gradient(90deg, #12325c 0%, #08748a 46%, #7255d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .eyebrow {
  border-color: rgba(8, 116, 138, 0.22);
  background: #e8f6f7;
  color: #075f72;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(8, 116, 138, 0.08);
}
html[data-theme="light"] .card,
html[data-theme="light"] .selector,
html[data-theme="light"] .price-card,
html[data-theme="light"] .order,
html[data-theme="light"] .feature,
html[data-theme="light"] .stat,
html[data-theme="light"] .content-section,
html[data-theme="light"] .rental-item {
  background: linear-gradient(145deg, #ffffff, #f7faff);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .top {
  border-color: var(--line);
}
html[data-theme="light"] .account-tabs a,
html[data-theme="light"] .auth-link,
html[data-theme="light"] .pill,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .account-trigger {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(35, 65, 105, 0.2);
  box-shadow: 0 4px 14px rgba(30, 58, 92, 0.05);
}
html[data-theme="light"] .account-tabs a:hover,
html[data-theme="light"] .account-tabs a.active,
html[data-theme="light"] .auth-link:hover,
html[data-theme="light"] .auth-link.active,
html[data-theme="light"] .theme-toggle:hover {
  color: #086d83;
  border-color: rgba(8, 116, 138, 0.42);
  background: #eaf7f8;
}
html[data-theme="light"] .product-tabs,
html[data-theme="light"] .quick-info div,
html[data-theme="light"] .sms,
html[data-theme="light"] .code,
html[data-theme="light"] .toast,
html[data-theme="light"] .message,
html[data-theme="light"] .pagination a,
html[data-theme="light"] .pagination span {
  background: #f7faff;
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .selectbox,
html[data-theme="light"] .dropdown,
html[data-theme="light"] .option,
html[data-theme="light"] .info,
html[data-theme="light"] .duration-button,
html[data-theme="light"] .mode-button {
  background: #f7faff;
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="light"] .mode-button.active {
  border-color: #08748a;
  background: #e5f5f7;
  color: #075f72;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 138, 0.12), 0 5px 16px rgba(8, 116, 138, 0.08);
}
html[data-theme="light"] .duration-button.active {
  border-color: #7651d6;
  background: #f0ecff;
  color: #5d3eb8;
}
html[data-theme="light"] .buy {
  color: #ffffff;
  background: linear-gradient(100deg, #087f98, #356ee6 54%, #7651d6);
  box-shadow: 0 14px 30px rgba(53, 110, 230, 0.2);
}
html[data-theme="light"] table th {
  background: #eaf2fc;
  color: var(--text);
}
html[data-theme="light"] table td {
  border-color: var(--line);
}
html[data-theme="light"] .modal {
  background: rgba(31, 48, 70, 0.38);
}
html[data-theme="light"] .modal-card,
html[data-theme="light"] .sms-dialog,
html[data-theme="light"] .account-panel {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 24px 70px rgba(38, 65, 98, 0.22);
}
html[data-theme="light"] .auth-tabs,
html[data-theme="light"] .sms-dialog-head {
  border-color: var(--line);
}
html[data-theme="light"] .sms-dialog pre,
html[data-theme="light"] .sms-preview {
  color: var(--text);
}
html[data-theme="light"] .account-menu-links a,
html[data-theme="light"] .quick-info > div,
html[data-theme="light"] .message,
html[data-theme="light"] .renewal-history table {
  background: #f7faff;
  color: var(--text);
}
html[data-theme="light"] .support-window,
html[data-theme="light"] .support-panel {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 28px 75px rgba(38, 65, 98, 0.24);
}
html[data-theme="light"] .support-header,
html[data-theme="light"] .support-status,
html[data-theme="light"] .support-composer,
html[data-theme="light"] .support-form {
  background: #f4f8fd;
  border-color: var(--line);
}
html[data-theme="light"] .support-header small,
html[data-theme="light"] .support-customer,
html[data-theme="light"] .support-message time,
html[data-theme="light"] .support-form-note,
html[data-theme="light"] .support-loading {
  color: var(--muted);
}
html[data-theme="light"] .support-header button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="light"] .support-customer {
  background: #edf5fb;
  border-color: var(--line);
}
html[data-theme="light"] .support-customer strong {
  color: #147891;
}
html[data-theme="light"] .support-messages,
html[data-theme="light"] .support-composer textarea,
html[data-theme="light"] .support-form textarea {
  background: #ffffff;
  color: var(--text);
}
html[data-theme="light"] .support-form textarea {
  border-color: #c8d8e8;
}
html[data-theme="light"] .support-form textarea:focus {
  border-color: #168aa6;
  box-shadow: 0 0 0 3px rgba(22, 138, 166, 0.12);
}
html[data-theme="light"] .support-welcome,
html[data-theme="light"] .support-message.admin .support-bubble {
  background: #edf5fb;
  border-color: #d4e2ef;
  color: var(--text);
}
html[data-theme="light"] .support-message.customer .support-bubble {
  background: linear-gradient(135deg, #168da7, #467fda);
  color: #ffffff;
}
html[data-theme="light"] .support-image-button span {
  background: #ffffff;
  border-color: #c8d8e8;
  color: #526b88;
}
html[data-theme="light"] .support-file-preview {
  background: #e4f4f7;
  color: #147891;
}
html[data-theme="light"] .support-message.customer {
  color: #ffffff;
}
html[data-theme="light"] .support-empty,
html[data-theme="light"] .support-time,
html[data-theme="light"] .support-hint {
  color: var(--muted);
}
html[data-theme="light"] .site-footer-bottom {
  border-color: var(--line);
}

@media (max-width: 760px) {
  .theme-label {
    display: none;
  }
  .theme-toggle {
    width: 38px;
    padding: 0;
  }
}
