/* ==========================================================================
   Tipografía — Self-hosted
   Hurme Geometric Sans 4: fuente principal oficial del brandbook Aló Credit.
   Montserrat: fuente secundaria / presentaciones / datos.
   ========================================================================== */

@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-Thin.ttf') format('truetype');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-ThinObl.ttf') format('truetype');
  font-weight: 100; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-Hairline.ttf') format('truetype');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-HairlineObl.ttf') format('truetype');
  font-weight: 200; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-LightObl.ttf') format('truetype');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-RegularObl.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-SemiBoldObl.ttf') format('truetype');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-BoldObl.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-Black.ttf') format('truetype');
  font-weight: 800 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 4';
  src: url('../fonts/hurme-geometric-sans-4/HurmeGeometricSans4-BlackObl.ttf') format('truetype');
  font-weight: 800 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ==========================================================================
   Design Tokens — Brandbook Aló Credit 2025
   ========================================================================== */
:root {
  /* Brand palette */
  --primary:            #FA8514;
  --primary-dark:       #E07010;
  --primary-glow:       rgba(250, 133, 20, 0.28);
  --trust-blue:         #5169b7;
  --trust-blue-dark:    #3d54a0;
  --cloud-blue:         #9aadfc;
  --noir-blue:          #3E4A60;
  --blue-fog:           #e3e8ff;

  /* Semantic */
  --success:            #16a34a;
  --error:              #dc2626;

  /* Glass — light mode */
  --glass-bg:           rgba(255, 255, 255, 0.58);
  --glass-elevated:     rgba(255, 255, 255, 0.78);
  --glass-border:       rgba(255, 255, 255, 0.80);
  --glass-border-inner: rgba(81, 105, 183, 0.12);
  --glass-blur:         blur(32px) saturate(180%);
  --glass-shadow:       0 24px 48px rgba(62, 74, 96, 0.16), 0 0 0 1px rgba(255,255,255,0.70);

  /* Text — dark on light glass */
  --text-primary:       #1e2d50;
  --text-secondary:     #3e4a60;
  --text-muted:         #64748b;

  /* Legacy aliases for JS-injected HTML */
  --primary-hover:      #E07010;
  --trust-blue-hover:   #3d54a0;
  --secondary:          #3E4A60;
  --bg-color:           #dce8ff;
  --white:              #ffffff;
  --text-main:          #3E4A60;

  /* Radius & motion */
  --radius-lg:          24px;
  --radius-md:          14px;
  --radius-sm:          10px;
  --font-main:          'Hurme Geometric Sans 4', 'Montserrat', sans-serif;
  --font-data:          'Montserrat', 'Hurme Geometric Sans 4', sans-serif;
  --transition:         all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Shadows */
  --shadow-soft:        0 15px 35px rgba(0,0,0,0.05);
  --shadow-hover:       0 10px 25px rgba(250,133,20,0.22);
  --shadow-blue:        0 10px 25px rgba(81,105,183,0.22);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 64px;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(145deg,
    #d6e4ff 0%,
    #e8efff 28%,
    #f0f4ff 58%,
    #dce8ff 82%,
    #e6f0ff 100%
  );
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Ambient orb — Orange Nova, top-right */
body::before {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(250,133,20,0.18) 0%, transparent 60%);
  border-radius: 50%;
  top: -200px; right: -200px;
  filter: blur(50px);
  pointer-events: none;
  animation: orb-a 18s ease-in-out infinite alternate;
}

/* Ambient orb — Cloud Blue, bottom-left */
body::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(81,105,183,0.16) 0%, transparent 60%);
  border-radius: 50%;
  bottom: -160px; left: -160px;
  filter: blur(50px);
  pointer-events: none;
  animation: orb-b 22s ease-in-out infinite alternate;
}

@keyframes orb-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, 100px) scale(1.20); }
}
@keyframes orb-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, -80px) scale(1.14); }
}

.container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Glass Card
   ========================================================================== */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  position: relative;
  animation: card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* liquid glass top-edge — bright white highlight */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.95) 60%, transparent);
  pointer-events: none;
  z-index: 2;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header {
  padding: 36px 28px 18px;
  text-align: center;
  position: relative;
}

.card-body { padding: 0 28px 36px; }

/* ==========================================================================
   Brand Logo
   ========================================================================== */
.brand-logo-wrap {
  position: relative;
  width: 100px; height: 100px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--trust-blue) 0%, var(--primary) 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 27px;
  background: linear-gradient(135deg, var(--trust-blue) 0%, var(--primary) 100%);
  filter: blur(16px);
  opacity: 0.35;
  z-index: -1;
  animation: logo-pulse 4s ease-in-out infinite alternate;
}
@keyframes logo-pulse {
  from { opacity: 0.20; filter: blur(10px); }
  to   { opacity: 0.45; filter: blur(22px); }
}
.brand-logo-inner {
  width: 94px; height: 94px;
  border-radius: 19px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-logo { width: 100%; height: 100%; display: block; object-fit: cover; }

.brand-logo-wrap--sm { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 6px; }
.brand-logo-wrap--sm::after { border-radius: 20px; }
.brand-logo-wrap--sm .brand-logo-inner { width: 58px; height: 58px; border-radius: 12px; }

/* ==========================================================================
   Spinner
   ========================================================================== */
.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { display: flex; align-items: center; justify-content: center; cursor: not-allowed; opacity: 0.80; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--text-primary);
  text-wrap: balance;
  line-height: 1.2;
}
h2 { font-size: 1.5rem; margin-bottom: 6px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4 { font-size: 0.97rem; }
p  { font-size: 0.92rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 0; }

/* ==========================================================================
   Document Input Group — Login
   ========================================================================== */
.doc-input-group {
  display: flex;
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(81,105,183,0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(62,74,96,0.06);
}
.doc-input-group:focus-within {
  border-color: rgba(250,133,20,0.55);
  box-shadow: 0 0 0 3px rgba(250,133,20,0.12);
}
.doc-input-group select {
  width: 142px;
  flex-shrink: 0;
  padding: 16px 26px 16px 16px;
  background: rgba(227,232,255,0.50);
  border: none;
  border-right: 1.5px solid rgba(81,105,183,0.14);
  border-radius: 0;
  color: var(--trust-blue);
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235169b7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.doc-input-group select option { background: #f0f4ff; color: #1e2d50; }
.doc-input-group input {
  flex: 1;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.doc-input-group input::placeholder { color: var(--text-muted); font-weight: 400; }

/* ==========================================================================
   Form Controls — generic
   ========================================================================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
input.form-control,
select.form-control {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(81,105,183,0.16);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.97rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 2px 6px rgba(62,74,96,0.05);
}
input.form-control::placeholder { color: var(--text-muted); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235169b7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
select.form-control option { background: #f0f4ff; color: #1e2d50; }
input.form-control:focus,
select.form-control:focus {
  border-color: rgba(250,133,20,0.55);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 0 0 3px rgba(250,133,20,0.12);
}
input[type="date"].form-control::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(250,133,20,0.36), inset 0 1px 0 rgba(255,255,255,0.22);
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: normal;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 50px;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(250,133,20,0.48), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled {
  background: rgba(100,116,139,0.20);
  box-shadow: none;
  cursor: not-allowed;
  color: var(--text-muted);
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.btn-trust {
  background: linear-gradient(135deg, var(--trust-blue) 0%, var(--trust-blue-dark) 100%);
  box-shadow: 0 8px 24px rgba(81,105,183,0.36), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-trust:hover:not(:disabled) {
  box-shadow: 0 14px 32px rgba(81,105,183,0.48), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 14px;
  margin-top: 4px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
  display: block;
}
.btn-link:hover { color: var(--text-secondary); }
.btn-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Turnstile & Security Note
   ========================================================================== */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.security-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-data);
  line-height: 1.55;
}

/* ==========================================================================
   Dashboard Welcome
   ========================================================================== */
#welcomeMsg {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}
.dashboard-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

/* ==========================================================================
   Selection Grid — Payment Options
   ========================================================================== */
.selection-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.select-option {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(227,232,255,0.90);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(62,74,96,0.06);
}
/* liquid glass top edge */
.select-option::before {
  content: '';
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 50%, transparent);
  pointer-events: none;
}
.select-option:hover {
  background: rgba(255,255,255,0.78);
  border-color: rgba(250,133,20,0.30);
  box-shadow: 0 6px 18px rgba(62,74,96,0.10);
}
.select-option.selected {
  background: rgba(255,255,255,0.88);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250,133,20,0.12), 0 8px 22px rgba(62,74,96,0.14);
}
.select-option:focus-visible { outline: 2px solid var(--primary); }

.select-option--col { flex-direction: column; align-items: stretch; }
.option-header { display: flex; align-items: center; }

.radio-indicator {
  width: 20px; height: 20px;
  border: 2px solid rgba(81,105,183,0.30);
  border-radius: 50%;
  position: relative;
  margin-right: 13px;
  flex-shrink: 0;
  transition: var(--transition);
}
.select-option:hover .radio-indicator { border-color: var(--primary); }
.selected .radio-indicator { border-color: var(--primary); background: var(--primary); }
.selected .radio-indicator::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.option-details { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.option-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.option-hint  { font-size: 0.74rem; color: var(--text-muted); }
.amount {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  display: block;
}
.amount-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.80rem;
  font-variant-numeric: tabular-nums;
  display: block;
}
.amount-save { color: var(--success); font-size: 0.76rem; font-weight: 700; display: block; }

#liq-discount-box { display: none; flex-direction: column; gap: 2px; margin-bottom: 4px; }

/* ==========================================================================
   Sub Options
   ========================================================================== */
.sub-options {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(81,105,183,0.12);
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-btn {
  padding: 12px;
  border: 1.5px solid rgba(81,105,183,0.16);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.55);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 0.80rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  flex: 1;
  min-width: 128px;
  max-width: calc(50% - 4px);
}
.sub-btn:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(250,133,20,0.35);
}
.sub-btn.active {
  background: rgba(255,255,255,0.90);
  border-color: var(--primary);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(250,133,20,0.10);
}
.sub-btn strong { font-variant-numeric: tabular-nums; color: var(--primary); font-size: 0.93rem; }
.sub-btn:focus-visible { outline: 2px solid var(--primary); }

/* ==========================================================================
   Plan Section
   ========================================================================== */
.plan-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--trust-blue);
  display: block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(81,105,183,0.12);
}
.legal-text {
  background: rgba(227,232,255,0.45);
  border: 1px solid rgba(81,105,183,0.12);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: var(--font-data);
  font-size: 0.70rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
#installments-hint { font-size: 0.78rem; color: var(--success); margin-top: 5px; font-weight: 600; }

/* ==========================================================================
   Timeline — payment schedule pills
   ========================================================================== */
#timeline-container { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 4px; }

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(81,105,183,0.12);
  border-radius: var(--radius-sm);
}
.timeline-item.final {
  background: rgba(250,133,20,0.07);
  border-color: rgba(250,133,20,0.30);
}
.timeline-marker {
  width: 26px; height: 26px;
  background: rgba(250,133,20,0.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.74rem;
  flex-shrink: 0;
  border: 1px solid rgba(250,133,20,0.28);
}
.timeline-item.final .timeline-marker { background: var(--primary); color: #fff; border-color: var(--primary); }
.t-title { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; display: block; }
.t-date  { font-weight: 600; color: var(--text-secondary); font-size: 0.88rem; }
.t-amount { margin-left: auto; font-weight: 800; color: var(--primary); font-size: 0.97rem; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Success View
   ========================================================================== */
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: rgba(250,133,20,0.10);
  border: 1.5px solid rgba(250,133,20,0.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: pop-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.payment-methods-grid { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 18px; }
.payment-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(227,232,255,0.90);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.90rem;
  box-shadow: 0 2px 6px rgba(62,74,96,0.05);
}
.pm-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pm-dot--yellow { background: #f59e0b; }
.pm-dot--red    { background: #ef4444; }
.pm-dot--blue   { background: var(--trust-blue); }
.payment-method-row span   { color: var(--text-muted); }
.payment-method-row strong { color: var(--text-primary); font-weight: 700; }

.info-banner {
  background: rgba(227,232,255,0.65);
  border: 1.5px solid rgba(81,105,183,0.20);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}
.info-banner-title {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--trust-blue);
  display: block;
  margin-bottom: 12px;
}
.info-banner p { font-size: 0.86rem; margin-bottom: 8px; color: var(--text-secondary); }
.info-banner p:last-child { margin-bottom: 0; }
.info-banner a { color: var(--trust-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.info-banner strong { color: var(--text-primary); }

/* ==========================================================================
   Nexxus Block Modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 80, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.90);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(62,74,96,0.28);
  padding: 36px 28px 28px;
  max-width: 350px;
  width: 90%;
  text-align: center;
}
.modal-content h3 { color: var(--primary); margin-bottom: 12px; }
.modal-content p  { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.97rem; }
.modal-content .btn { width: 100%; margin: 0; }

/* ==========================================================================
   Confirm Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 80, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255,255,255,0.90);
  width: 90%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(62,74,96,0.26);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  position: relative;
  overflow: hidden;
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.95) 60%, transparent);
  pointer-events: none;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-box h3 { color: var(--primary); margin-bottom: 14px; }

#modalSummary p { font-size: 0.90rem; color: var(--text-secondary); margin-bottom: 7px; }
#modalSummary p strong { color: var(--text-primary); }
#modalSummary table { width: 100%; border-collapse: collapse; margin-top: 10px; }
#modalSummary th {
  text-align: left;
  padding: 5px 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-data);
}
#modalSummary td { padding: 5px 0; font-size: 0.88rem; color: var(--text-secondary); border-bottom: 1px solid rgba(81,105,183,0.08); }
#modalSummary td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 700; }

.terms-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(227,232,255,0.40);
  border: 1px solid rgba(81,105,183,0.14);
  border-radius: 10px;
  padding: 14px;
  margin: 18px 0;
}
.terms-check input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.terms-check label { font-size: 0.80rem; line-height: 1.55; color: var(--text-secondary); cursor: pointer; font-family: var(--font-data); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-container { position: fixed; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; z-index: 2000; padding: 0 16px; }
.toast {
  background: rgba(30, 45, 80, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.90rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 32px rgba(30,45,80,0.30);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 340px;
  text-align: center;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error   { background: rgba(180, 30, 30, 0.95); border-color: rgba(220,80,80,0.30); }
.toast.success { background: rgba(16, 120, 60, 0.95); border-color: rgba(52,211,153,0.30); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease-out both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.text-center { text-align: center; }

.version-tag {
  text-align: center;
  margin-top: 18px;
  font-size: 0.58rem;
  color: rgba(62,74,96,0.35);
  letter-spacing: 1.5px;
  font-family: var(--font-data);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 400px) {
  body { padding: 18px 12px 48px; }
  .card-header { padding: 28px 20px 14px; }
  .card-body  { padding: 0 20px 28px; }
  .modal-box  { padding: 24px 20px; }
  .doc-input-group select { width: 118px; }
  .sub-btn { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
