/* ZENTA standalone light theme - loaded only for html[data-theme="light"] */
html[data-theme="light"] {
  --ink: #172238;
  --ink-strong: #101827;
  --muted: #66758a;
  --muted-2: #7e8ba0;
  --line: #dbe3ee;
  --line-strong: #cbd7e6;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-elevated: #ffffff;
  --surface-tint: #edf4ff;
  --page: #edf2f7;
  --accent: #246bfd;
  --accent-strong: #1558d6;
  --accent-soft: #eaf2ff;
  --success: #087a55;
  --success-soft: #e4f6ef;
  --danger: #b42338;
  --danger-soft: #fdecef;
  --warning: #9a6700;
  --warning-soft: #fff3d6;
  color-scheme: light;
}
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] #root,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .main-area,
html[data-theme="light"] .content-area,
html[data-theme="light"] main {
  background: var(--page) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] body { min-height: 100vh; }
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar,
html[data-theme="light"] .app-shell > .topbar,
html[data-theme="light"] .main-area > .topbar {
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] .sidebar {
  box-shadow: 1px 0 0 rgba(122, 146, 174, .12), 8px 0 24px rgba(34, 61, 91, .025);
}
html[data-theme="light"] .brand,
html[data-theme="light"] .topbar .page-title,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] strong,
html[data-theme="light"] b { color: var(--ink-strong) !important; }
html[data-theme="light"] p,
html[data-theme="light"] small,
html[data-theme="light"] label,
html[data-theme="light"] legend,
html[data-theme="light"] figcaption,
html[data-theme="light"] .muted { color: var(--muted) !important; }
html[data-theme="light"] .sidebar .nav-item,
html[data-theme="light"] .topbar button,
html[data-theme="light"] .topbar [role="button"] {
  color: #53647a !important;
}
html[data-theme="light"] .sidebar .nav-item:hover,
html[data-theme="light"] .sidebar .nav-item.active {
  color: #174ea6 !important;
  background: #edf4ff !important;
  box-shadow: inset 0 0 0 1px #d6e4fa !important;
}
html[data-theme="light"] .sidebar .nav-item.active svg,
html[data-theme="light"] .sidebar .nav-item:hover svg,
html[data-theme="light"] .topbar svg { color: #58799f !important; }
html[data-theme="light"] .sidebar .support-link,
html[data-theme="light"] .sidebar .user-card,
html[data-theme="light"] .sidebar .account-menu { border-color: var(--line) !important; }
html[data-theme="light"] .panel,
html[data-theme="light"] [class*="card"],
html[data-theme="light"] [class*="-panel"],
html[data-theme="light"] [class*="-box"],
html[data-theme="light"] [class*="-section"] {
  background-color: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] .account-overview-grid .panel,
html[data-theme="light"] .account-overview-side .panel,
html[data-theme="light"] .market-summary-card,
html[data-theme="light"] .chart-panel,
html[data-theme="light"] .orderbook-panel,
html[data-theme="light"] .order-panel,
html[data-theme="light"] .markets-full,
html[data-theme="light"] .trade-history-panel,
html[data-theme="light"] .token-form-section,
html[data-theme="light"] .token-preview-card,
html[data-theme="light"] .token-fee-card,
html[data-theme="light"] .token-help-card,
html[data-theme="light"] .wallet-conversion-panel,
html[data-theme="light"] .admin-user-panel,
html[data-theme="light"] .earn-position-row {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 8px 24px rgba(43, 72, 112, .07) !important;
}
html[data-theme="light"] .panel:hover,
html[data-theme="light"] [class*="card"]:hover { box-shadow: 0 12px 28px rgba(43, 72, 112, .10) !important; }
html[data-theme="light"] hr,
html[data-theme="light"] [class*="divider"] { border-color: var(--line) !important; }
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .input,
html[data-theme="light"] [role="combobox"] {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #9aa5b5 !important; }
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] [role="combobox"]:focus { border-color: #77a0de !important; box-shadow: 0 0 0 3px rgba(36, 107, 253, .10) !important; }
html[data-theme="light"] table,
html[data-theme="light"] thead,
html[data-theme="light"] tbody,
html[data-theme="light"] tr,
html[data-theme="light"] th,
html[data-theme="light"] td {
  background-color: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] th { background: #f3f6fa !important; color: #637187 !important; }
html[data-theme="light"] tbody tr:nth-child(even) { background: #fafcff !important; }
html[data-theme="light"] tbody tr:hover { background: #f1f6ff !important; }
html[data-theme="light"] .button,
html[data-theme="light"] button:not(.sidebar .nav-item) {
  color: #314158;
}
html[data-theme="light"] .button-primary,
html[data-theme="light"] .button-primary:hover,
html[data-theme="light"] button.primary,
html[data-theme="light"] button[class*="primary"] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
html[data-theme="light"] .button-secondary,
html[data-theme="light"] .button-ghost,
html[data-theme="light"] button.secondary {
  background: #fff !important;
  border-color: var(--line-strong) !important;
  color: #385173 !important;
}
html[data-theme="light"] .notice-banner,
html[data-theme="light"] .wallet-flow-instructions,
html[data-theme="light"] .history-filters,
html[data-theme="light"] .account-history-ui,
html[data-theme="light"] .deposit-modal,
html[data-theme="light"] .modal,
html[data-theme="light"] [role="dialog"] {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .deposit-modal-overlay,
html[data-theme="light"] [class*="overlay"] {
  background: rgba(30, 45, 66, .32) !important;
  backdrop-filter: blur(6px);
}
html[data-theme="light"] .deposit-modal-heading,
html[data-theme="light"] .wallet-action-modal header,
html[data-theme="light"] .modal-header,
html[data-theme="light"] [role="dialog"] header {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .error-banner,
html[data-theme="light"] [role="alert"] { background: var(--danger-soft) !important; color: var(--danger) !important; border-color: #f1b9c2 !important; }
html[data-theme="light"] .success,
html[data-theme="light"] .status-success,
html[data-theme="light"] [data-status="success"] { background: var(--success-soft) !important; color: var(--success) !important; }
html[data-theme="light"] .change-up,
html[data-theme="light"] [class*="positive"] { color: var(--success) !important; }
html[data-theme="light"] .change-down,
html[data-theme="light"] [class*="negative"] { color: var(--danger) !important; }
html[data-theme="light"] .coin-icon,
html[data-theme="light"] .asset-icon { background: #fff; border: 1px solid #e7edf5; }
html[data-theme="light"] .wallet-flow-instructions h4,
html[data-theme="light"] .wallet-flow-instructions ol,
html[data-theme="light"] .wallet-flow-instructions p { color: var(--ink) !important; }
html[data-theme="light"] .wallet-accordion-table tbody > tr:not(.wallet-accordion-detail) > td { background: #fff !important; border-color: var(--line) !important; }
html[data-theme="light"] .wallet-accordion-panel { background: #fff !important; border-color: var(--line) !important; box-shadow: 0 8px 24px rgba(43,72,112,.07) !important; }
html[data-theme="light"] .wallet-accordion-metric span { color: var(--muted) !important; }
html[data-theme="light"] .wallet-accordion-toggle { color: #6d7d94 !important; }
html[data-theme="light"] .wallet-accordion-toggle[aria-expanded="true"] { background: #eaf2ff !important; color: #246bfd !important; }
html[data-theme="light"] .search-box,
html[data-theme="light"] .topbar-search,
html[data-theme="light"] [class*="search"] input { background: #f5f8fc !important; border-color: #dde6f1 !important; }
html[data-theme="light"] .tab,
html[data-theme="light"] [role="tab"] { color: #607087 !important; }
html[data-theme="light"] [role="tab"][aria-selected="true"],
html[data-theme="light"] .tab.active { color: #174ea6 !important; background: #edf4ff !important; }
@media (max-width: 760px) {
  html[data-theme="light"] .sidebar { background: #fff !important; }
  html[data-theme="light"] .main-area > .topbar { background: #fff !important; }
  html[data-theme="light"] .content-area { background: var(--page) !important; }
  html[data-theme="light"] .panel,
  html[data-theme="light"] [class*="card"] { border-radius: 13px !important; }
}/* ZENTA light theme - section-specific refinement */
html[data-theme="light"] .earn-strategy-card,
html[data-theme="light"] .earn-card-hero,
html[data-theme="light"] .earn-card-facts,
html[data-theme="light"] .earn-invest-form,
html[data-theme="light"] .earn-open-plans {
  background: #fff !important;
  border-color: #dbe3ee !important;
}
html[data-theme="light"] .earn-card-icon,
html[data-theme="light"] .earn-card-fact {
  background: #f3f7fc !important;
  border: 1px solid #e3eaf3 !important;
  color: #5d718c !important;
}
html[data-theme="light"] .markets-full,
html[data-theme="light"] .markets-header,
html[data-theme="light"] .markets-filter-bar,
html[data-theme="light"] .markets-table-wrap,
html[data-theme="light"] .markets-pagination,
html[data-theme="light"] .chart-panel,
html[data-theme="light"] .orderbook-panel,
html[data-theme="light"] .order-panel,
html[data-theme="light"] .trade-history-panel,
html[data-theme="light"] .market-toolbar,
html[data-theme="light"] .token-form-section,
html[data-theme="light"] .token-preview-card,
html[data-theme="light"] .token-fee-card,
html[data-theme="light"] .token-help-card,
html[data-theme="light"] .token-table-wrap,
html[data-theme="light"] .token-card,
html[data-theme="light"] .admin-page,
html[data-theme="light"] .admin-account-panel,
html[data-theme="light"] .admin-account-card,
html[data-theme="light"] .admin-news-editor,
html[data-theme="light"] .admin-news-card,
html[data-theme="light"] .admin-table-wrap,
html[data-theme="light"] .admin-user-panel,
html[data-theme="light"] .admin-futures-summary {
  background: #fff !important;
  border-color: #dbe3ee !important;
  color: #172238 !important;
  box-shadow: 0 8px 24px rgba(43,72,112,.07) !important;
}
html[data-theme="light"] .markets-table th,
html[data-theme="light"] .admin-table th,
html[data-theme="light"] .admin-user-table th,
html[data-theme="light"] .admin-withdrawal-table th,
html[data-theme="light"] .admin-deposit-table th { background: #f3f6fa !important; color: #637187 !important; }
html[data-theme="light"] .markets-table td { border-color: #e7edf4 !important; color: #26354a !important; }
html[data-theme="light"] .markets-table tbody tr:nth-child(even) { background: #fafcff !important; }
html[data-theme="light"] .markets-table tbody tr:hover { background: #eef5ff !important; }
html[data-theme="light"] .chart-heading,
html[data-theme="light"] .orderbook-header,
html[data-theme="light"] .trade-history-tabs,
html[data-theme="light"] .order-form-tabs,
html[data-theme="light"] .market-picker-button,
html[data-theme="light"] .market-toolbar { background: #fff !important; border-color: #dbe3ee !important; }
html[data-theme="light"] .order-form-tabs button,
html[data-theme="light"] .trade-history-tabs button,
html[data-theme="light"] .chart-heading button { color: #607087 !important; }
html[data-theme="light"] .order-form-tabs button.active,
html[data-theme="light"] .trade-history-tabs button.active,
html[data-theme="light"] .chart-heading button.active { color: #174ea6 !important; background: #edf4ff !important; }
html[data-theme="light"] .admin-account-tabs,
html[data-theme="light"] .admin-news-tabs { background: #f3f6fa !important; }
html[data-theme="light"] .admin-account-tabs button,
html[data-theme="light"] .admin-news-tabs button { color: #607087 !important; }
html[data-theme="light"] .admin-account-tabs button[aria-selected="true"],
html[data-theme="light"] .admin-news-tabs button.active,
html[data-theme="light"] .admin-account-button.primary { color: #fff !important; background: #246bfd !important; }
html[data-theme="light"] .deposit-modal,
html[data-theme="light"] .wallet-action-modal,
html[data-theme="light"] .settings-modal,
html[data-theme="light"] .notification-popover,
html[data-theme="light"] [role="dialog"],
html[data-theme="light"] [role="menu"] { background: #fff !important; color: #172238 !important; border: 1px solid #dbe3ee !important; box-shadow: 0 24px 70px rgba(31,51,78,.18) !important; }
html[data-theme="light"] [role="dialog"] input,
html[data-theme="light"] [role="dialog"] select,
html[data-theme="light"] [role="dialog"] textarea,
html[data-theme="light"] [role="dialog"] [role="combobox"] { background: #fff !important; border-color: #cbd7e6 !important; color: #172238 !important; }
html[data-theme="light"] [role="menu"] button:hover,
html[data-theme="light"] [role="listbox"] [role="option"]:hover { background: #edf4ff !important; color: #174ea6 !important; }
html[data-theme="light"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #edf2f7; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #bac7d8; border: 2px solid #edf2f7; border-radius: 10px; }
/* ZENTA light markets: 24h change pills */
html[data-theme= light] .markets-table .change-pill,
html[data-theme=light] .change-pill:not(.down) {
  background: #e3f4ec !important;
  color: #087a55 !important;
  border: 1px solid #c7ead9 !important;
  box-shadow: none !important;
}
html[data-theme=light] .markets-table .change-pill.down,
html[data-theme=light] .change-pill.down {
  background: #fdecef !important;
  color: #b42338 !important;
  border: 1px solid #f4cbd4 !important;
  box-shadow: none !important;
}
html[data-theme=light] .markets-table td.change-up,
html[data-theme=light] .markets-table td .change-up { color: #087a55 !important; }
html[data-theme=light] .markets-table td.change-down,
html[data-theme=light] .markets-table td .change-down { color: #b42338 !important; }

/* ZENTA light markets: sign-aware text pills for the markets table */
html[data-theme="light"] .markets-table td.market-change-positive,
html[data-theme="light"] table td.market-change-positive,
html[data-theme="light"] .markets-table td.market-change-negative,
html[data-theme="light"] table td.market-change-negative {
  color: inherit !important;
}
html[data-theme="light"] .market-change-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 7px;
  font-weight: 750;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  box-shadow: none;
}
html[data-theme="light"] .market-change-pill.positive {
  background: #e3f4ec !important;
  color: #087a55 !important;
  border-color: #c7ead9 !important;
}
html[data-theme="light"] .market-change-pill.negative {
  background: #fdecef !important;
  color: #b42338 !important;
  border-color: #f4cbd4 !important;
}
