/* Valmuntra client pages (2026-11-30): rounder corners, and the light
   theme. Loaded LAST in <head> so it wins over each page's own styles. Dark stays the default;
   html.light is set by theme.js (sun / moon button, remembered per visitor). Every page defines the
   same colour names (--bg, --bg2, --bg3, --line, --white, --text, --text-mid, --text-muted, --red...),
   so the light theme only changes those, plus the few places that paint their own colours. */

/* ── The sun / moon button */
.theme-slot { display: inline-flex; align-items: center; }
.theme-btn { width: 34px; height: 34px; padding: 0; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-mid); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s; }
.theme-btn:hover { border-color: var(--red-lt); color: var(--white); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-sun { display: none; }
html.light .theme-btn .ic-sun { display: block; }
html.light .theme-btn .ic-moon { display: none; }

/* ── Rounder corners, both themes ("boxes with no corners") */
.status-card, .mt5-card, .referral-card, .funding-card, .login-box, .signup-box, .success-box, .form-section.active, .cal-card { border-radius: 14px; }
.status-card, .login-box, .signup-box { overflow: hidden; }   /* the coloured edge follows the corner */
.btn-primary, .btn-outline, .btn-back, .form-submit, .google-btn, .form-input, .form-select, .phone-code,
.funding-input, .funding-select, .funding-method-btn, .funding-tab-btn, .funding-phone-display,
.rejection-reason, .global-error, .warning-note, .success-note, .upload-area { border-radius: 10px; }
.referral-link-box { border-radius: 10px; overflow: hidden; }
.referral-copy-btn { border-radius: 0; }
.copy-btn, .warning-note button { border-radius: 8px; }
.lang-toggle { border-radius: 8px; overflow: hidden; }
.status-badge, .history-status, .funding-soon { border-radius: 999px; }
.history-status { padding: 3px 10px; }

/* ── Light theme: a cool off-white page, white cards, near-black text; Valmuntra red stays the accent */
html.light {
  --bg:        #F2F3F6;
  --bg2:       #FFFFFF;
  --bg3:       #ECEEF2;
  --line:      rgba(22,24,32,0.10);
  --white:     #15161A;   /* "white" is the strongest text colour on every page */
  --text:      #23252B;
  --text-mid:  #565A64;
  --text-muted:#7B7F88;
  --red:       #6A0C0E;
  --red-lt:    #8B1517;
  --red-dim:   rgba(106,12,14,0.07);
  --red-border:rgba(106,12,14,0.28);
  --red-err:   #C62828;
  --green:     #15803D;
  --green-dim: rgba(21,128,61,0.10);
  --yellow:    #B45309;
  --yellow-dim:rgba(180,83,9,0.10);
  --grey:      #3A3D45;
  color-scheme: light;
}
html.light body { background: var(--bg); color: var(--text); }
/* Words on Valmuntra red stay white */
html.light .btn-primary, html.light .lang-btn.active, html.light .referral-copy-btn, html.light .funding-tab-btn.active,
html.light .form-submit, html.light .step-num.active, html.light .nav-tag, html.light .cal-chip.on { color: #fff; }
html.light .btn-primary:hover, html.light .form-submit:hover { color: #fff; }
/* Cards lift a little off the page instead of relying on a dark edge */
html.light .status-card, html.light .mt5-card, html.light .referral-card, html.light .funding-card,
html.light .login-box, html.light .signup-box, html.light .form-section.active, html.light .cal-card { box-shadow: 0 1px 2px rgba(20,22,30,0.04), 0 6px 22px rgba(20,22,30,0.05); }
html.light nav { background: rgba(255,255,255,0.92); }
html.light .form-select option, html.light .funding-select option { background: #fff; color: #15161A; }
html.light .whatsapp-float { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
html.light .rejection-reason { background: rgba(198,40,40,0.06); border-color: rgba(198,40,40,0.2); color: #9B1C1C; }
html.light input::placeholder { color: #9A9EA6; }

@media (max-width: 600px) {
  .theme-btn { width: 32px; height: 32px; }
}
