/* ALI BUSINESS presentation: blue and gold, shared by the app and public site. */
:root {
  --brand-blue: #1676ce;
  --brand-gold: #f4c548;
  --gold-ink: #192943;
  --bg: #081529;
  --panel: #11223a;
  --panel-alt: #192e4a;
  --line: #2a4260;
  --text: #f3f7ff;
  --muted: #a0b3ce;
  --accent: #82c5ff;
  --secondary: #f4c548;
  --blue-soft: #1676ce24;
  --gold-soft: #f4c54816;
  --surface-shadow: 0 12px 36px #020b181a;
}
[data-theme=light] {
  --bg: #f4f8ff;
  --panel: #ffffff;
  --panel-alt: #eaf1fc;
  --line: #cddcee;
  --text: #172d4c;
  --muted: #526a8a;
  --accent: #135fa7;
  --secondary: #a9770b;
  --blue-soft: #1676ce10;
  --gold-soft: #f4c54824;
  --surface-shadow: 0 12px 36px #153f7510;
}
body,.landing,[data-theme=light] .landing { background: var(--bg); }
.landing { --landing-accent: var(--brand-gold); }
[data-theme=light] .landing { --accent: #135fa7; }
a,[data-theme=light] a { color: var(--accent); }
.card,.feature-card,.catalog-card { border-radius: 20px; box-shadow: var(--surface-shadow); }
input,select,textarea { background: #0b1b31; border-color: var(--line); border-radius: 12px; }
input:focus,select:focus,textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px #1676ce24; }
[data-theme=light] input,[data-theme=light] select,[data-theme=light] textarea { background: #fff; border-color: #bdcfe5; }
[data-theme=light] input:focus,[data-theme=light] select:focus,[data-theme=light] textarea:focus { border-color: #1676ce; }
.button,[data-theme=light] .button,.landing .button,[data-theme=light] .landing .button {
  background: var(--brand-gold); color: var(--gold-ink); border-color: #d8a830; border-radius: 12px;
  box-shadow: 0 4px 12px #c9991814;
}
.button:hover { filter: brightness(1.04); }
.button.secondary,.button.ghost,[data-theme=light] .button.secondary,[data-theme=light] .button.ghost {
  background: var(--panel-alt); color: var(--text); border-color: var(--line); box-shadow: none;
}
.button.ghost { background: transparent; }
.icon-button { background: var(--panel); border-color: var(--line); color: var(--text); border-radius: 12px; }
.sidebar,[data-theme=light] .sidebar { background: var(--panel); }
.topbar,[data-theme=light] .topbar { background: var(--bg); }
.sidebar nav a.active,[data-theme=light] .sidebar nav a.active { background: var(--blue-soft); color: var(--accent); box-shadow: inset 3px 0 var(--brand-gold); }
.sidebar nav a:hover,[data-theme=light] .sidebar nav a:hover { background: var(--panel-alt); }
.bottom-nav { background: #102139f5; border-color: var(--line); }
[data-theme=light] .bottom-nav { background: #fffffffa; }
.bottom-nav a.active,[data-theme=light] .bottom-nav a.active { color: var(--accent); }
.bottom-nav .deposit-action>span { background: var(--brand-gold); color: var(--gold-ink); border-color: #d8a830; box-shadow: 0 0 0 6px var(--bg); }
.brand,.landing .brand,[data-theme=light] .brand { color: var(--text); }
.brand-mark,[data-theme=light] .brand-mark,.greeting-dot { color: var(--brand-gold); }
.balance-hero { background: linear-gradient(125deg,#173f70,#112b4e 62%,#1e3350); border-color: #365c8a; }
.hero-top { color: #d9e8ff; }
.balance-hero .hero-amount { color: #fff; }
.balance-hero .hero-amount small,[data-theme=light] .balance-hero .hero-amount small { color: #c1d7f4; }
.hero-amount small,[data-theme=light] .hero-amount small { color: var(--muted); }
.hero-art { color: #f4c54814; }
.balance-hero .pill,[data-theme=light] .balance-hero .pill { color: #d8e8ff; border-color: #58769d; }
.balance-hero .button.ghost,[data-theme=light] .balance-hero .button.ghost { background: #0b203840; color: #fff; border-color: #7694b4; }
.balance-icon,.install-emblem,.notification-mark.unread,[data-theme=light] .balance-icon,[data-theme=light] .install-emblem,[data-theme=light] .notification-mark.unread { background: var(--blue-soft); color: var(--accent); }
.balance-icon.tone-1,[data-theme=light] .tone-1 { color: var(--secondary); background: var(--gold-soft); }
.tone-2 { color: var(--accent); background: var(--blue-soft); }
.pill.success,[data-theme=light] .pill.success { background: var(--blue-soft); color: var(--accent); border-color: var(--line); }
.notice,[data-theme=light] .notice { background: var(--blue-soft); border-color: var(--line); color: var(--text); }
.notice.success,[data-theme=light] .notice.success { background: var(--blue-soft); color: var(--accent); }
.notice.warning,[data-theme=light] .notice.warning { background: var(--gold-soft); border-color: #9f782b; color: var(--text); }
.tabs a.active,[data-theme=light] .tabs a.active { background: var(--blue-soft); color: var(--accent); border-color: var(--brand-blue); }
.invite-card { background: linear-gradient(120deg,#173759,#182b42); border-color: var(--line); }
[data-theme=light] .invite-card { background: linear-gradient(120deg,#edf4ff,#fffae9); }
.vip-badge,.shop-glyph,[data-theme=light] .vip-badge { color: var(--secondary); }
.shop-glyph { background: var(--gold-soft); }
.accent,[data-theme=light] .accent { color: var(--accent); }
.auth-orbit,.auth-orbit:before,.auth-orbit:after { border-color: #1676ce40; }
.preview-card { background: linear-gradient(145deg,#18385e,#11243e); border-color: #375d8b; box-shadow: 0 28px 65px #04102666; }
.preview-wallet { background: linear-gradient(110deg,#1b5486,#153c65); border-color: #4486b6; }
.preview-wallet>svg,.preview-dot,.preview-bottom svg:first-child,.phone-silhouette>div { color: var(--brand-gold); }
.preview-dot { background: var(--brand-gold); }
.preview-wallet small { color: #c9def4; }
.preview-icon { color: #8bcaff; background: #1a416b; }
.preview-icon.purple { color: var(--brand-gold); background: #4a3c20; }
.feature-icon { color: var(--accent); background: var(--blue-soft); border-color: var(--line); }
.hero-copy em,.step-number,.cta-star,.overline { color: var(--secondary); }
.overline i { background: var(--brand-gold); box-shadow: 0 0 14px #f4c54844; }
.mobile-section,[data-theme=light] .landing .mobile-section { background: linear-gradient(120deg,var(--panel-alt),var(--panel)); border-color: var(--line); }
.catalog-art { background: radial-gradient(ellipse at 50% 100%,#205888,#10243e 80%); color: #8bcaff; }
.catalog-art.tone-1 { background: radial-gradient(ellipse at 50% 100%,#625122,#1e293b 80%); color: var(--brand-gold); }
.catalog-art.tone-2 { background: radial-gradient(ellipse at 50% 100%,#244970,#10243e 80%); color: #8bcaff; }
.landing .catalog-body .button,[data-theme=light] .landing .catalog-body .button { background: var(--blue-soft); border-color: var(--line); color: var(--accent); box-shadow: none; }
.landing .site-nav a,.landing .quiet-link,.landing .header-login { color: var(--text); }
.landing .site-languages a[aria-current] { border-color: var(--brand-gold); }
/* Withdrawal sources stay paired with their input at every screen width. */
.withdrawal-layout { align-items: start; gap: 28px; }
.withdrawal-form-card { padding: clamp(20px,3vw,32px); }
.withdrawal-sources legend { font-size: 16px; margin-bottom: 4px; }
.withdrawal-sources>p { font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
.withdrawal-source-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.92fr); align-items: center; gap: 18px; margin: 0 0 12px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--blue-soft); }
.withdrawal-source-label { min-width: 0; overflow-wrap: anywhere; }
.withdrawal-source-label label { margin: 0 0 7px; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.4; }
.withdrawal-source-label small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.withdrawal-source-label strong { color: var(--text); }
.withdrawal-source-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.withdrawal-source-control input { width: 100%; flex: 1; min-width: 0; padding: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.withdrawal-max { width: 44px; height: 46px; color: var(--accent); background: var(--panel); }
.withdrawal-max:hover { border-color: var(--brand-gold); background: var(--gold-soft); color: var(--secondary); }
.withdrawal-max svg { width: 22px; height: 22px; }
.withdrawal-total-row { display: flex; gap: 18px; align-items: center; padding: 16px 0 24px; border-top: 1px solid var(--line); }
.withdrawal-total-row label { flex: 1; min-width: 0; margin: 0; color: var(--text); }
.withdrawal-total-row label span { display: block; color: var(--muted); font-size: 12px; }
.withdrawal-total-row input { max-width: 180px; text-align: right; border-color: var(--line); background: var(--blue-soft); color: var(--accent); font-size: 20px; font-weight: 650; }
.withdrawal-summary { padding: 28px; border-top: 3px solid var(--brand-gold); }
.withdrawal-summary .hero-amount { margin: 24px 0 30px; }
.withdrawal-summary .detail-list dd { font-weight: 600; }
@media (max-width: 1250px) and (min-width: 801px) {
  .withdrawal-layout { grid-template-columns: 1.2fr 1fr; gap: 20px; }
  .withdrawal-source-row { grid-template-columns: minmax(0,1fr) minmax(132px,1fr); padding: 14px 12px; gap: 12px; }
}
@media (max-width: 800px) {
  .withdrawal-layout { grid-template-columns: 1fr; gap: 0; }
  .withdrawal-source-row { grid-template-columns: minmax(0,1fr) minmax(130px,1fr); gap: 12px; padding: 16px 12px; }
  .withdrawal-source-label label { font-size: 13px; }
  .withdrawal-source-label small { font-size: 11px; }
  .withdrawal-source-control { gap: 6px; }
  .withdrawal-source-control input { padding: 10px 8px; }
  .withdrawal-max { width: 38px; height: 44px; border-radius: 10px; }
  .withdrawal-max svg { width: 19px; }
  .withdrawal-summary { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .button:hover { transform: none; } }

.referral-settings{margin:12px 0;border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0}.referral-settings legend{font-weight:650;padding:0 8px}.referral-settings .notice{margin-bottom:0}
