:root{
  /* Day / Light (DEFAULT) */
  --bg0:#f6f8fc;
  --bg1:#eef3fb;
  --card:#ffffff;
  --card2:#f7fafc;

  --text:#0b1220;
  --muted:rgba(11,18,32,.68);
  --soft:rgba(11,18,32,.10);
  --soft2:rgba(11,18,32,.14);

  /* Branding fallback (apply-brand.js can override these via CSS vars) */
  --brand-primary:#31d07f;
  --brand-accent:#2f7cff;

  --radius:18px;
  --radius2:22px;

  --shadow: 0 14px 44px rgba(2,6,23,.10);
  --shadow2: 0 10px 24px rgba(2,6,23,.08);

  --ring: 0 0 0 3px rgba(47,124,255,.18);
  --border: rgba(2,6,23,.10);
}

/* Dark mode (toggle) */
:root[data-theme="dark"]{
  --bg0:#0b0f16;
  --bg1:#0a1220;
  --card:#0f1724;
  --card2:#0c1422;

  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --soft:rgba(234,240,255,.12);
  --soft2:rgba(234,240,255,.18);

  --shadow: 0 14px 44px rgba(0,0,0,.35);
  --shadow2: 0 10px 24px rgba(0,0,0,.30);

  --ring: 0 0 0 3px rgba(49,208,127,.20);
  --border: rgba(234,240,255,.14);
}

/* Wizard behavior: only show active step */
.wow-step-page{display:none;}
.wow-step-page.wow-active{display:block;}

/* Improve day contrast (inputs / labels) */
.wow-field label, .wow-label{color:var(--text); font-weight:600;}
.wow-input, .wow-select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:none;
}
.wow-input::placeholder, input::placeholder, textarea::placeholder{color:rgba(11,18,32,.45);}
:root[data-theme="dark"] .wow-input::placeholder,
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{color:rgba(234,240,255,.45);}

.wow-input:focus, .wow-select:focus, input:focus, select:focus, textarea:focus{
  outline:none;
  border-color:rgba(47,124,255,.45);
  box-shadow:var(--ring);
}

/* Make page feel less 'empty white' */
.wow-body{
  background:
    radial-gradient(1100px 520px at 12% 0%, rgba(47,124,255,.10), transparent 60%),
    radial-gradient(900px 480px at 88% 10%, rgba(49,208,127,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* Top theme toggle */
.wow-theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  box-shadow:var(--shadow2);
  cursor:pointer;
  user-select:none;
  font-weight:600;
}
.wow-theme-toggle:hover{transform:translateY(-1px);}
.wow-theme-ico{width:18px;height:18px;display:inline-block;}



* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 20% 5%,
      rgba(90, 167, 255, 0.2),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 90% 20%,
      rgba(49, 208, 127, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Container */
.wow-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Splash */
.wow-splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      900px 600px at 35% 30%,
      rgba(90, 167, 255, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, #0a0e15, #090f1a);
  z-index: 9999;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.wow-splash-card {
  width: min(420px, calc(100% - 44px));
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
}
.wow-splash-logo {
  width: 78px;
  height: auto;
  display: block;
  margin: 2px auto 10px;
}
.wow-splash-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.wow-splash-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}
.wow-splash-bar {
  margin: 14px auto 2px;
  width: 180px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.wow-splash-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  animation: wowLoad 1.15s ease forwards;
}
@keyframes wowLoad {
  to {
    width: 100%;
  }
}
.wow-splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Alert */
.wow-alert {
  margin: 14px auto 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow2);
}
.wow-alert-title {
  font-weight: 800;
  margin-bottom: 6px;
}
.wow-alert-text {
  color: var(--muted);
  line-height: 1.5;
}

/* Top */
.wow-main {
  padding: 16px 0 32px;
}
.wow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 12px;
}
.wow-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wow-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px;
}
.wow-brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wow-brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
}
.wow-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wow-pill {
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
.wow-link {
  color: rgba(234, 240, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
}
.wow-link:hover {
  text-decoration: underline;
}

/* Shell layout */
.wow-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

/* Rail */
.wow-rail-card {
  border-radius: var(--radius2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.wow-rail-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(234, 240, 255, 0.8);
  background: rgba(49, 208, 127, 0.12);
  border: 1px solid rgba(49, 208, 127, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}
.wow-rail-title {
  margin: 10px 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.wow-rail-sub {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* Fee */
.wow-fee {
  margin: 10px 0 12px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wow-fee-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.wow-fee-value {
  font-weight: 800;
  font-size: 1.35rem;
  margin-top: 2px;
}
.wow-fee-currency {
  opacity: 0.85;
  font-weight: 700;
}
.wow-fee-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Details */
.wow-details {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
}
.wow-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.wow-details summary::-webkit-details-marker {
  display: none;
}
.wow-details ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.55;
}
.wow-muted {
  color: var(--muted);
}

/* Stepper */
.wow-stepper {
  margin-top: 12px;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow2);
  padding: 10px;
}
.wow-step {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  border: 1px solid transparent;
}
.wow-step + .wow-step {
  margin-top: 6px;
}
.wow-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(234, 240, 255, 0.85);
  font-weight: 800;
}
.wow-step-title {
  font-weight: 800;
}
.wow-step-sub {
  color: var(--muted);
  font-size: 0.88rem;
}
.wow-step-active {
  background: rgba(49, 208, 127, 0.12);
  border-color: rgba(49, 208, 127, 0.18);
}
.wow-step-active .wow-step-dot {
  background: linear-gradient(
    180deg,
    rgba(49, 208, 127, 0.35),
    rgba(49, 208, 127, 0.12)
  );
  border-color: rgba(49, 208, 127, 0.25);
}
.wow-step-done {
  background: rgba(90, 167, 255, 0.1);
  border-color: rgba(90, 167, 255, 0.14);
}
.wow-step-done .wow-step-dot {
  background: rgba(90, 167, 255, 0.16);
  border-color: rgba(90, 167, 255, 0.2);
}

/* Form Card */
.wow-card {
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wow-mobile-step {
  display: none;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}
.wow-mobile-step-title {
  font-weight: 800;
}
.wow-mobile-step-hint {
  color: var(--muted);
  font-size: 0.92rem;
}
.wow-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.wow-progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  transition: width 0.25s ease;
}

/* Form */
.wow-form {
  padding: 16px;
}
.wow-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.wow-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Steps */
.wow-step-page {
  display: none;
  animation: wowIn 0.18s ease;
}
.wow-step-page.wow-active {
  display: block;
}
@keyframes wowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid */
.wow-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.wow-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wow-field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: rgba(234, 240, 255, 0.86);
}
.wow-field input,
.wow-field select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}
.wow-field input::placeholder {
  color: rgba(234, 240, 255, 0.4);
}
.wow-field input:focus,
.wow-field select:focus {
  border-color: rgba(49, 208, 127, 0.35);
  box-shadow: var(--ring);
}
.wow-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Upload */
.wow-upload {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wow-upload-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wow-upload-title {
  font-weight: 800;
}
.wow-upload-meta {
  color: var(--muted);
  font-size: 0.88rem;
}
.wow-upload input {
  margin-top: 10px;
  width: 100%;
  color: rgba(234, 240, 255, 0.88);
}
.wow-upload-foot {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Nav */
.wow-nav {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}
.wow-save {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Buttons */
.wow-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}
.wow-btn:active {
  transform: translateY(1px);
}
.wow-btn-primary {
  color: #04110b;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  box-shadow: 0 14px 26px rgba(49, 208, 127, 0.16);
}
.wow-btn-primary:hover {
  box-shadow: 0 18px 32px rgba(49, 208, 127, 0.22);
}
.wow-btn-ghost {
  color: rgba(234, 240, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.wow-btn-wide {
  width: 100%;
  margin-top: 14px;
}

/* Payment card */
.wow-pay-card {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wow-pay-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.wow-pay-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.wow-pay-amount {
  font-weight: 900;
  font-size: 1.25rem;
  margin-top: 2px;
}
.wow-badge {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(90, 167, 255, 0.14);
  border: 1px solid rgba(90, 167, 255, 0.2);
}
.wow-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.wow-footer {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 980px) {
  .wow-shell {
    grid-template-columns: 1fr;
  }
  .wow-rail {
    display: none;
  }
  .wow-mobile-step {
    display: block;
  }
  .wow-grid-2 {
    grid-template-columns: 1fr;
  }
}
