:root {
  --bg-primary: #f5f3ee;
  --bg-surface: #fffaf0;
  --bg-surface-2: #ebe7de;
  --bg-input: #fffdf7;
  --accent: #087f5b;
  --accent-hover: #06664a;
  --accent-soft: rgba(8, 127, 91, 0.11);
  --accent-soft-border: rgba(8, 127, 91, 0.28);
  --accent-glow: rgba(8, 127, 91, 0.16);
  --gold: #a16207;
  --gold-soft: #f7e7bf;
  --ink: #111827;
  --text-primary: #111827;
  --text-body: #27303f;
  --text-secondary: #536071;
  --text-muted: #768193;
  --text-placeholder: #9ca3af;
  --border: #ded8ca;
  --border-hover: #cfc7b8;
  --border-focus: #087f5b;
  --error: #dc2626;
  --error-soft: #fef2f2;
  --success: #0b664b;
  --success-soft: #e7f5ee;
  --warning: #92400e;
  --warning-soft: #fffbeb;
  --whatsapp: #128c7e;
  --whatsapp-hover: #075e54;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 2px rgba(58, 47, 31, 0.08);
  --shadow-md: 0 14px 34px rgba(58, 47, 31, 0.10);
  --shadow-lg: 0 24px 70px rgba(58, 47, 31, 0.15);
  --transition: 0.22s cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(8, 127, 91, 0.10), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(161, 98, 7, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf8ef 0%, var(--bg-primary) 44%, #ffffff 100%);
  color: var(--text-body);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(17,24,39,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
}

a { color: #059669; text-decoration: none; }
a:hover { color: var(--accent-hover); }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px;
}

.mono { font-family: "JetBrains Mono", Consolas, monospace; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.logo-accent, .title-accent { color: var(--accent); }

.live-bar {
  background: #102018;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #d8f5e7;
  font-size: 13px;
  text-align: center;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-bar strong {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
}

.live-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #74d99f;
}

.pulse-dollar {
  display: inline-block;
  color: #74d99f;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  animation: pulse-scale 1.5s ease-in-out infinite;
}

@keyframes pulse-scale {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.live-divider, .live-bar .divider { color: rgba(216,245,231,0.38); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(251,248,239,0.82);
  border-bottom: 1px solid rgba(222,216,202,0.78);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo, .footer-logo {
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.nav-links, .footer-links, .mobile-menu ul, .sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a, .footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.nav-links a:hover, .nav-links a.active, .footer-links a:hover {
  color: var(--text-primary);
}

.nav-auth { display: flex; gap: 12px; align-items: center; }

.btn-primary, .btn-ghost, .btn-whatsapp, .btn-soft, .btn-danger, .btn-info {
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 160ms ease-out, color 160ms ease-out, box-shadow 200ms ease-out, border-color 160ms ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(8,127,91,.18);
  }
}
.btn-primary:active, .btn-whatsapp:active, .network-btn:active, .calc-tab:active { transform: scale(0.97); }
.btn-primary.full { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(17,24,39,.12);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.84);
  color: var(--text-primary);
}

.btn-soft {
  background: var(--success-soft);
  color: var(--success);
  border-color: #bbf7d0;
}

.hamburger {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  padding: 9px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text-primary);
}

.mobile-menu {
  display: block;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: #ffffff;
  transition: max-height 300ms var(--ease-drawer);
}

.mobile-menu.open { max-height: 500px; }
.mobile-menu ul { padding: 14px 24px 24px; }
.mobile-menu li { padding: 10px 0; }
.mobile-menu a { color: var(--text-body); font-weight: 500; }
.mobile-auth { display: grid; gap: 10px; }
.mobile-auth .mobile-logout {
  width: 100%;
  justify-content: center;
}
.mobile-account-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
}

.account-menu { position: relative; }
.account-button { background: #ffffff; color: var(--text-primary); border: 1.5px solid var(--border); }
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.97) translateY(-4px);
  transform-origin: top right;
  transition: opacity 140ms ease-out, visibility 140ms ease-out, transform 140ms var(--ease-out);
}
.account-menu.open .account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.account-dropdown a, .account-dropdown button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 10px;
  color: var(--text-body);
  border-radius: 7px;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--success-soft); color: var(--text-primary); }

.hero-showcase {
  padding: 54px 24px 42px;
}

.hero-showcase-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: start;
  gap: 52px;
  width: 100%;
}

.hero-copy {
  min-width: 0;
  padding-top: 56px;
  order: 1;
}

.hero-title, .page-title, .section-title {
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  letter-spacing: 0;
}

.hero-title {
  margin: 0;
  max-width: 560px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}

.hero-emphasis {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-brand {
  color: var(--accent);
  font-weight: 600;
}

.hero-sub, .section-subtitle, .page-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.hero-sub {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-proof {
  max-width: 560px;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.hero-proof-metric,
.hero-testimonial {
  background: rgba(255, 252, 244, 0.82);
  border: 1px solid rgba(222, 216, 202, 0.86);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.hero-proof-metric {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 16px;
}

.proof-number {
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.proof-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-testimonial {
  min-height: 104px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease-out, transform 220ms var(--ease-out);
}

.hero-testimonial.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-testimonial p {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
}

.hero-testimonial span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.calculator-section { padding: 0; min-width: 0; order: 2; }

.calc-card {
  max-width: 410px;
  min-width: 0;
  margin: 0;
  scroll-margin-top: 96px;
  background: rgba(255, 252, 244, 0.92);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.calc-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.calc-stepper-btn {
  appearance: none;
  border: 1px solid #d8d2c6;
  background: #f4f0e8;
  color: var(--text-secondary);
  border-radius: 10px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.calc-stepper-btn.active {
  background: #e6f4ee;
  border-color: rgba(8, 127, 91, 0.24);
  color: var(--text-primary);
}

.calc-stepper-btn:active { transform: scale(0.98); }

.calc-step-action {
  width: 100%;
  margin-top: 14px;
}

.calc-step-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.26s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.26s cubic-bezier(0.23, 1, 0.32, 1);
}

.calc-step-panel > .panel-inner {
  overflow: hidden;
  min-height: 0;
}

.calc-step-panel.is-active {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.calc-summary {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f2ea;
  border: 1px solid #ddd5c7;
}

.calc-summary .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.calc-summary .summary-row strong {
  color: var(--text-primary);
  text-align: right;
}

.step-head {
  margin-bottom: 14px;
}

.step-tag {
  display: inline-flex;
  padding: 4px 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #e8f4ef;
  color: #0d6b4b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.step-head h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text-primary);
}

.step-head p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.calc-auth-gate {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 0;
  padding: 20px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 14px;
  background: rgba(240, 249, 244, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text-body);
}

.gate-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.gate-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gate-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gate-benefits strong {
  color: var(--text-primary);
}

.gate-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent);
}

.calc-auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.calc-auth-actions .btn-primary,
.calc-auth-actions .btn-ghost {
  min-height: 36px;
  padding: 10px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.calc-auth-actions .btn-ghost {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(17,24,39,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}

.calc-auth-actions .btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(17,24,39,.22);
}

.calc-auth-actions .btn-primary {
  box-shadow: 0 10px 24px rgba(8,127,91,.16);
}

.calc-locked .calc-auth-gate {
  display: flex;
}

.calc-locked .calc-step-panel {
  grid-template-rows: 0fr !important;
  opacity: 0 !important;
  pointer-events: none;
}


.hero-checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 15px;
}

.hero-checks li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-soft);
  border: 1px solid #9be7ba;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%23087f5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.calc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.calc-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -62px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(8,127,91,.10);
  filter: blur(4px);
  pointer-events: none;
}

.calc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e7e1d4;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.calc-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}

.calc-tab.active {
  background: #fffdf7;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .calc-tab:hover { color: var(--text-primary); }
}

.calc-field, .form-group { display: grid; gap: 8px; }

.calc-field label, .network-selector label, .form-group label {
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-input-wrap {
  background: #fffdf7;
  border: 1.5px solid #d8d0bf;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, border-width 160ms ease-out;
}

.field-input-wrap:focus-within {
  border-color: var(--accent);
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-currency, .field-badge {
  color: var(--text-secondary);
  font-weight: 700;
}

.field-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: #ffffff;
}

.field-badge.accent { color: var(--success); background: var(--success-soft); border-color: #6ee7b7; }

input, select, textarea {
  width: 100%;
  color: var(--text-primary);
  background: #fffdf7;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.field-input-wrap input {
  border: 0;
  min-width: 0;
  min-height: 56px;
  background: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  padding: 0 12px;
  outline: 0;
}

input::placeholder, textarea::placeholder { color: var(--text-placeholder); opacity: 1; }
input[readonly] { color: var(--accent); }
select { color: var(--text-primary); background-color: var(--bg-surface); }
select option { color: var(--text-primary); background: #ffffff; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: 0;
}

.calc-swap { display: flex; justify-content: center; margin: 14px 0; }
.calc-swap button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #102018;
  color: var(--text-primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  transition: transform 280ms var(--ease-out), border-color 160ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .calc-swap button:hover { transform: rotate(180deg); border-color: #102018; }
}
.calc-swap button:active { transform: rotate(180deg) scale(0.92); }

.network-selector { margin-top: 22px; display: grid; gap: 10px; }
.network-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.network-btn {
  border: 1.5px solid #d8d0bf;
  border-radius: 10px;
  background: #fffdf7;
  color: var(--text-body);
  min-height: 42px;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.network-btn.active {
  background: #102018;
  border-color: #102018;
  color: var(--success);
  color: #ffffff;
}
@media (hover: hover) and (pointer: fine) {
  .network-btn:hover { border-color: var(--accent); }
}
.network-warn {
  margin: 0;
  color: var(--warning);
  font-size: 13px;
}

.fee-breakdown {
  margin-top: 22px;
  background: #f3eee4;
  border: 1px solid #ded6c6;
  border-radius: var(--radius);
  padding: 16px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #374151;
  font-size: 13px;
  padding: 8px 0;
}

.fee-value { color: var(--error); font-family: "JetBrains Mono", monospace; font-weight: 500; }
.fee-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  color: var(--text-primary);
  font-weight: 700;
}
.fee-total-value { color: var(--accent); font-family: "JetBrains Mono", monospace; }
.fee-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.calc-estimate {
  color: var(--text-secondary);
  margin: 18px 0;
  text-align: center;
  font-size: 14px;
}
.calc-estimate strong { color: var(--success); }
.client-fields { display: grid; gap: 12px; margin-bottom: 18px; }
.panel-inner { display: flex; flex-direction: column; gap: 0; }
.field-error { color: var(--error); font-size: 12px; min-height: 16px; }
.field-hint { color: var(--text-muted); font-size: 11px; margin-top: 4px; display: block; line-height: 1.4; }

.btn-whatsapp {
  width: 100%;
  background: var(--whatsapp);
  color: #ffffff;
  border-color: var(--whatsapp);
  min-height: 52px;
}
@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover:not(:disabled) {
    background: var(--whatsapp-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(18,140,126,.20);
  }
}
.btn-whatsapp:disabled {
  background: #c7ced9;
  border-color: #b8c1cf;
  color: #4b5563;
  box-shadow: none;
}
.btn-whatsapp.btn-sent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

.calc-min-note {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  margin: 12px 0 0;
}
.after-request-box {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.45;
}
.after-request-box strong {
  color: var(--success);
  font-family: "Outfit", sans-serif;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--text-secondary);
  padding: 4px 20px 76px;
  font-size: 14px;
}
.badge-item {
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(222,216,202,.78);
  border-radius: 999px;
  padding: 8px 13px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  font-weight: 600;
}
.badge-item strong { color: var(--accent); }
.badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  background: var(--success-soft);
  border: 1px solid #9be7ba;
  color: var(--accent);
}
.badge-icon::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-brief {
  padding: 28px 24px 76px;
  background: linear-gradient(180deg, rgba(247,242,232,0.4), #ffffff 72%);
}

.home-brief-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.brief-panel {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(222,216,202,.88);
  box-shadow: var(--shadow-sm);
}

.brief-panel.primary {
  background: rgba(255,255,255,.76);
}

.brief-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-panel h2,
.brief-panel h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  line-height: 1.12;
}

.brief-panel h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 520px; }
.brief-panel h3 { font-size: 22px; }

.brief-panel p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.trust-ops-section {
  padding: 58px 24px;
  background: #102018;
  color: #e9f8ef;
}
.trust-ops-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
}
.trust-ops-copy h2 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.02;
  text-wrap: balance;
}
.trust-ops-copy p {
  margin: 0;
  color: rgba(233, 248, 239, .78);
}
.trust-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.trust-ops-grid article {
  min-height: 112px;
  padding: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
}
.trust-ops-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
}
.trust-ops-grid span {
  display: block;
  color: rgba(233, 248, 239, .74);
  font-size: 14px;
}

.section-band { padding: 84px 24px; background: #ffffff; }
.section-band.alt { background: #f7f2e8; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 800;
  text-wrap: balance;
}
.section-subtitle { max-width: 650px; margin: 0 auto 34px; }

.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid #e3dccf;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  scrollbar-color: var(--accent) var(--bg-surface-2);
}
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: #f1eadc; color: #374151; font-weight: 700; }
tbody td { color: var(--text-body); }
tbody tr:hover { background: #f0fdf4; }
tbody tr:last-child td { border-bottom: 0; }
.ps-col { background: #f0fdf4; color: #065f46; font-weight: 700; }
.check { color: #059669; font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }
.table-note, .small-note { color: var(--text-muted); font-size: 12px; margin-top: 12px; }

.testimonial-grid, .values-grid, .rank-grid, .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card, .testimonial-card, .value-card, .rank-card, .stat-card, .transaction-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.testimonial-card {
  display: grid;
  gap: 14px;
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  color: var(--success);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.testimonial-card p { color: #374151; font-size: 14px; line-height: 1.7; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.person { color: var(--text-primary); font-weight: 600; }
.country { color: var(--text-muted); font-size: 13px; }

.cta-final {
  background: var(--success-soft);
  border-top: 1px solid #bbf7d0;
  text-align: center;
  padding: 58px 24px;
}
.cta-final h2 {
  font-family: "Outfit", sans-serif;
  color: #065f46;
  font-size: 32px;
  margin: 0 0 10px;
}
.cta-final p { color: #047857; margin: 0 0 20px; }

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 38px 24px;
  color: var(--text-secondary);
}
.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.footer-contact { color: var(--text-secondary); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 12px;
  max-width: 620px;
  margin: 18px auto 0;
}
.footer-copy { color: var(--text-placeholder); font-size: 12px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease-out, visibility 200ms ease-out;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 220ms ease-out;
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal como bottom-sheet en móviles pequeños */
@media (max-width: 480px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 36px;
    transform: translateY(40px);
  }
  .modal-overlay.open .modal-card {
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-primary);
}
.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.modal-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form { display: grid; gap: 13px; }
.human-check {
  padding: 12px;
  background: #fffdf7;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.human-check label {
  color: var(--text-primary);
}
.human-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.forgot-link, .terms-note { color: var(--text-muted); font-size: 12px; }
.auth-error {
  display: none;
  color: var(--error);
  background: var(--error-soft);
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
}
.auth-error.show { display: block; }
.auth-error.success {
  color: var(--success);
  background: var(--success-soft);
  border-color: #bbf7d0;
  line-height: 1.45;
}
.auth-error.success strong,
.auth-error.success span {
  display: block;
}
.auth-error.success strong {
  margin-bottom: 2px;
  font-weight: 700;
}
.checkbox-label {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  align-items: flex-start;
}
.checkbox-label input { width: auto; min-height: auto; margin-top: 4px; }

.page-hero { padding: 78px 24px 48px; text-align: center; }
.page-title {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
}
.page-subtitle { max-width: 680px; margin: 0 auto; }
.copy-block p {
  color: #374151;
  font-size: 17px;
  line-height: 1.75;
}
.value-card { border-top: 3px solid var(--accent); background: var(--bg-surface); }
.value-icon { color: var(--accent); margin-bottom: 14px; }
.value-card h3, .rank-card h3, .step-content h3 {
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.value-card p, .rank-card p, .step-content p { color: var(--text-secondary); font-size: 14px; }
.operation-card {
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  color: #065f46;
  padding: 24px;
}
.contact-card { text-align: center; color: #374151; margin-top: 28px; }

.rank-grid { grid-template-columns: repeat(2, 1fr); }
.rank-card.bronze { border: 1.5px solid #d97706; }
.rank-card.silver { border: 1.5px solid #9ca3af; }
.rank-card.gold { background: #fffbeb; border: 1.5px solid #f59e0b; }
.rank-card.vip { background: #f0fdf4; border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.rank-card.bronze h3, .rank-card.gold h3 { color: #92400e; }
.rank-card.silver h3 { color: #374151; }
.rank-card.vip h3 { color: #065f46; }
.rank-fee {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  margin: 4px 0 12px;
  line-height: 1;
}
.rank-card.bronze .rank-fee { color: #d97706; }
.rank-card.silver .rank-fee { color: #6b7280; }
.rank-card.gold   .rank-fee { color: #d97706; }
.rank-card.vip    .rank-fee { color: var(--accent); }

/* ── Rank Simulator ──────────────────────────────────────── */
.rank-simulator { display: flex; flex-direction: column; gap: 24px; }
.sim-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-result {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 220ms ease-out;
}
.sim-result.hidden { display: none; }
.sim-rank-pill {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.sim-rank-bronze { background: #fef3c7; color: #92400e; border: 1.5px solid #d97706; }
.sim-rank-silver { background: #f3f4f6; color: #374151; border: 1.5px solid #9ca3af; }
.sim-rank-gold   { background: #fffbeb; color: #92400e; border: 1.5px solid #f59e0b; }
.sim-rank-vip    { background: #f0fdf4; color: #065f46; border: 2px solid var(--accent); }
.sim-details p { margin: 0; font-size: 15px; color: var(--text-secondary); }
.sim-details strong { color: var(--text-primary); }
.sim-next { font-size: 13px; margin-top: 4px !important; }
@media (max-width: 520px) {
  .sim-fields { grid-template-columns: 1fr; }
  .sim-result { flex-direction: column; align-items: flex-start; }
}

.rank-badge {
  display: inline-flex;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}
.notice {
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #92400e;
}

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 500;
  transition: color 180ms ease-out;
}
.faq-question span {
  display: inline-block;
  font-size: 18px;
  transition: transform 240ms var(--ease-out);
}
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #374151;
  line-height: 1.7;
  opacity: 0;
  transition: max-height 320ms var(--ease-out), padding 280ms ease-out, opacity 200ms ease-out;
}
.faq-item.open { border-left: 3px solid var(--accent); background: var(--bg-surface); }
.faq-item.open .faq-question { color: var(--accent); }
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
  opacity: 1;
}

.steps { max-width: 760px; margin: 0 auto; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  position: relative;
  padding-bottom: 34px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -4px;
  border-left: 2px solid var(--border);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  z-index: 1;
}
.network-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.network-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.net-badge { border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; background: var(--bg-surface-2); color: #374151; font-weight: 600; }
.net-badge.trc { background: var(--success-soft); color: #065f46; border-color: #6ee7b7; }
.important-warning {
  background: var(--warning-soft);
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}
.compact-cta .section-title,
.compact-cta .section-subtitle {
  margin-left: 0;
  text-align: left;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(8, 127, 91, 0.10), transparent 32%),
    linear-gradient(135deg, #f7f4ec 0%, #ffffff 54%, #eef6f1 100%);
}
.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: rgba(255, 250, 240, 0.82);
  border-right: 1px solid rgba(222, 216, 202, 0.92);
  padding: 24px;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-user {
  margin: 26px 0;
  padding: 18px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(222,216,202,.78);
  border-radius: 14px;
}
.sidebar-user h2 { font-family: "Outfit", sans-serif; color: var(--text-primary); font-size: 20px; margin: 0; }
.sidebar-user p { color: var(--text-muted); font-size: 13px; margin: 4px 0 10px; }
.rank-pill, .status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #6ee7b7;
  background: var(--success-soft);
  color: #065f46;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.sidebar-nav { display: grid; gap: 6px; }
.sidebar-nav a {
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--success-soft); color: var(--text-primary); }
.sidebar-logout {
  margin-top: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.sidebar-logout:hover { background: #fff0f0; color: #c0392b; }
.app-main {
  flex: 1;
  min-width: 0;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 34px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 22px;
}
.app-header h1 {
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  margin: 0;
}
.dashboard-hero {
  padding: 28px;
  border: 1px solid rgba(222,216,202,.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(240,249,244,.78)),
    radial-gradient(circle at 12% 18%, rgba(161, 98, 7, 0.10), transparent 30%);
  box-shadow: 0 18px 50px rgba(58, 47, 31, 0.10);
  overflow: hidden;
  position: relative;
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 240px;
  height: 160px;
  border-radius: 999px;
  background: rgba(8,127,91,.10);
  filter: blur(18px);
  pointer-events: none;
}
.dashboard-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.dashboard-kicker,
.panel-label {
  display: inline-flex;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dashboard-hero h1 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: .96;
  text-wrap: balance;
}
.dashboard-hero .page-subtitle {
  margin: 16px 0 0;
  max-width: 56ch;
  line-height: 1.65;
}
.dashboard-hero-panel {
  position: relative;
  z-index: 1;
  min-width: 290px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 30px rgba(58,47,31,.08);
}
.dashboard-hero-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dashboard-hero-panel p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}
.dashboard-hero-panel .actions {
  margin-top: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  padding: 20px;
  border-color: rgba(222,216,202,.84);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(58,47,31,.07);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease-out, border-color 180ms ease-out;
}
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -42px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(8,127,91,.08);
}
.metric-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  color: var(--success);
  font-weight: 800;
  margin-bottom: 16px;
}
.stat-card h3 {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .02em;
  margin: 0 0 8px;
}
.stat-card strong {
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.metric-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 16px;
  margin: 16px 0 30px;
}
.progress-card,
.account-quality-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(222,216,202,.84);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(58,47,31,.07);
}
.progress-card { margin: 0; }
.progress-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.progress-card-header h2,
.account-quality-card h2 {
  margin: 8px 0 0;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 24px;
}
.progress-card-header > strong {
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 36px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.progress-stack {
  display: grid;
  gap: 16px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #374151;
  font-weight: 600;
  margin-bottom: 8px;
}
.progress-label strong {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 12px;
  background: #e5dfd3;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #10a66f);
  border-radius: inherit;
  width: 0%;
  transform-origin: left;
}
.progress-fill--volume {
  background: linear-gradient(90deg, #a16207, #d8a13a);
}
.quality-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.quality-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.quality-list li:last-child { border-bottom: 0; }
.quality-list span {
  color: var(--text-muted);
  font-size: 13px;
}
.quality-list strong {
  color: var(--text-primary);
  font-size: 13px;
  text-align: right;
}
.account-quality-card .btn-soft { width: 100%; }
.dashboard-section {
  animation: fade-up 420ms var(--ease-out) 150ms both;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}
.section-head .section-title {
  margin-bottom: 6px;
}
.section-head .section-subtitle {
  margin: 0;
  max-width: 620px;
  text-align: left;
}
.text-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-empty {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px 0;
}
.dashboard-empty strong { color: var(--text-primary); }
.dashboard-empty span { color: var(--text-secondary); }
.dashboard-empty a {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 700;
}
.empty-row:hover { background: transparent; }
.dashboard-section table { min-width: 920px; }
.dashboard-section .table-wrap--empty table { min-width: 0; }
.dashboard-section .table-wrap--empty td { border-bottom: 0; }
.dashboard-section .table-wrap--empty .dashboard-empty span {
  max-width: 100%;
  overflow-wrap: break-word;
}
@media (hover: hover) and (pointer: fine) {
  .metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8,127,91,.24);
    box-shadow: 0 16px 38px rgba(58,47,31,.10);
  }
  .sidebar-nav a:hover {
    transform: translateX(2px);
  }
  .text-link:hover {
    color: var(--accent-hover);
  }
}
.metric-card:active,
.account-quality-card .btn-soft:active {
  transform: scale(.985);
}
.status-pending { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.status-processing { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-completed { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.status-cancelled { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* ── Dashboard config card ───────────────────────────────── */
.config-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
}
.config-field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.config-field-row input {
  flex: 1;
}
.config-field-row .btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}

.tx-hash-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.tx-hash-link:hover { text-decoration: underline; }

.admin-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 127, 91, 0.09), transparent 28%),
    linear-gradient(180deg, #fbf8ef 0%, #f4efe4 100%);
}
.admin-header {
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid rgba(222, 216, 202, 0.86);
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
}
.admin-header h1 {
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  margin: 4px 0 8px;
  text-wrap: balance;
}
.admin-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-session {
  min-width: 180px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.admin-session span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-session strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-refresh-pill {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-stat-card {
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease-out), border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.admin-stat-card span {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}
.admin-stat-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
.admin-stat-card small {
  color: var(--text-muted);
  font-size: 12px;
}
.admin-stat-card.active,
.admin-stat-card:hover {
  border-color: var(--accent-soft-border);
  box-shadow: 0 14px 36px rgba(58, 47, 31, 0.11);
  transform: translateY(-1px);
}
.admin-stat-card--pending strong { color: #b45309; }
.admin-stat-card--processing strong { color: #1d4ed8; }
.admin-stat-card--completed strong { color: var(--success); }
.admin-section {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.admin-section--transactions {
  padding: 20px;
  margin-bottom: 22px;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.admin-section-head h2 {
  margin: 0 0 2px;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 24px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.admin-tab {
  background: #fffdf7;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  padding: 10px 12px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-tab span {
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.admin-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.admin-tab.active span { color: #ffffff; }
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  background: #fffdf7;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-earnings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-earning-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.admin-earning-card span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.admin-earning-card strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.admin-earning-card small {
  color: var(--text-muted);
  font-size: 12px;
}
.admin-earning-card--usdt strong { color: #1d4ed8; }
.admin-earning-card--profit strong { color: var(--success); }
.admin-earning-card--dop strong { color: var(--gold); }
@media (max-width: 980px) { .admin-earnings-grid { grid-template-columns: repeat(2, 1fr); } }
.manual-tx-preview {
  background: var(--bg-surface-2);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.manual-tx-preview:empty { display: none; }
.manual-tx-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
.manual-tx-preview-grid div { display: flex; flex-direction: column; gap: 2px; }
.manual-tx-preview-grid span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.manual-tx-preview-grid strong { font-size: 14px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.manual-tx-preview-grid .preview-total strong { color: #1d4ed8; }
.manual-tx-preview-grid .preview-profit strong { color: var(--success); font-size: 15px; }
@media (max-width: 600px) { .manual-tx-preview-grid { grid-template-columns: 1fr 1fr; } }
.edit-amounts-row {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.edit-amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.edit-amounts-grid .form-group {
  margin: 0;
}
.edit-amounts-grid label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.edit-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-primary);
  transition: border-color 180ms ease;
}
.edit-input:focus {
  outline: none;
  border-color: var(--border-focus);
}
@media (max-width: 600px) {
  .edit-amounts-grid { grid-template-columns: 1fr 1fr; }
}
/* ── Manual transaction form ── */
.admin-manual-tx-section { padding: 24px; margin-bottom: 22px; }
.admin-manual-tx-form { display: grid; gap: 20px; }
.manual-tx-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0;
}
.manual-tx-fieldset legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  padding: 0 6px;
}
.manual-tx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.manual-tx-grid .form-group.full { grid-column: 1 / -1; }
.manual-tx-client-search { position: relative; margin-bottom: 14px; }
.manual-client-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 40;
  overflow: hidden;
}
.manual-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  transition: background 120ms ease;
}
.manual-suggestion-item:last-child { border-bottom: none; }
.manual-suggestion-item:hover { background: var(--bg-surface-2); }
.manual-suggestion-item strong { color: var(--text-primary); flex: 1; }
.manual-suggestion-item span { color: var(--text-muted); font-size: 12px; }
.manual-suggestion-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.manual-client-linked-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--success-soft);
  border: 1px solid rgba(8,127,91,.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  flex-wrap: wrap;
}
.manual-client-linked-card strong { color: var(--text-primary); }
.manual-client-linked-card span { color: var(--text-secondary); }
#manual-tx-error.show {
  display: block;
  padding: 10px 14px;
  background: var(--error-soft);
  border: 1px solid #fecaca;
  border-radius: var(--radius-xs);
  color: var(--error);
  font-size: 13px;
}
#manual-tx-error { display: none; }
@media (max-width: 860px) {
  .manual-tx-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .manual-tx-grid { grid-template-columns: 1fr; }
}
/* ── end manual tx ── */
.admin-proof-panel {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-proof-panel h2 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 22px;
}
.admin-metric-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.admin-testimonial-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.admin-testimonial-form .full,
.admin-testimonial-form .checkbox-label,
.admin-testimonial-form .actions {
  grid-column: 1 / -1;
}
.admin-testimonials-list {
  display: grid;
  gap: 12px;
}
.admin-testimonial-item p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}
.admin-empty {
  display: grid;
  gap: 4px;
  padding: 24px;
  color: var(--text-secondary);
}
.admin-empty strong {
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 20px;
}
.transaction-card label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  display: block;
}
.transaction-card strong { color: var(--text-primary); font-weight: 500; }
.wallet-address,
.copy-chip {
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
}
.copy-chip {
  background: #fffdf7;
  border-color: var(--border);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
}
.wallet-address:hover,
.copy-chip:hover {
  border-color: var(--accent-soft-border);
  color: var(--accent);
}
.btn-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger-confirm {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

@media (max-width: 980px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-header-tools {
    justify-content: flex-start;
    width: 100%;
  }
  .admin-stats-grid,
  .admin-earnings-grid {
    grid-template-columns: 1fr;
  }
  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-header {
    padding: 18px 16px;
  }
  .admin-header-tools > *,
  .admin-header-tools .btn-ghost,
  .admin-header-tools .btn-whatsapp,
  .admin-header-tools .btn-danger {
    width: 100%;
  }
  .admin-session {
    min-width: 0;
  }
  .admin-section--transactions,
  .admin-proof-panel {
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  .hero-showcase-inner { grid-template-columns: 1fr; max-width: 720px; }
  .calc-card { margin: 0 auto; }
  .home-brief-inner { grid-template-columns: 1fr; max-width: 720px; }
  .trust-ops-inner { grid-template-columns: 1fr; max-width: 720px; }
  .stats-grid, .testimonial-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-split { grid-template-columns: 1fr; }
  .dashboard-hero { flex-direction: column; }
  .dashboard-hero-panel { min-width: 0; }
}

@media (max-width: 900px) {
  .nav-links, .nav-auth { display: none; }
  .hamburger { display: block; }
  .hero-showcase { padding: 42px 18px 32px; }
  .hero-showcase-inner {
    gap: 30px;
    max-width: calc(100vw - 36px);
    width: 100%;
    overflow: hidden;
  }
  .hero-copy {
    padding-top: 0;
    width: 100%;
    max-width: calc(100vw - 36px);
    min-width: 0;
  }
  .hero-title {
    font-size: clamp(22px, 7.2vw, 30px);
    line-height: 1.18;
    width: 100%;
    max-width: calc(100vw - 36px);
    overflow-wrap: break-word;
    white-space: normal;
  }
  .hero-sub {
    font-size: 16px;
    width: 100%;
    max-width: calc(100vw - 36px);
    overflow-wrap: break-word;
    white-space: normal;
  }
  .hero-proof {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: calc(100vw - 36px);
  }
  .hero-testimonial { min-height: 0; }
  .calculator-section {
    width: 100%;
    max-width: calc(100vw - 36px);
    min-width: 0;
    order: 1;
  }
  .calc-card { width: 100%; max-width: 100%; padding: 20px; }
  .hero-copy { order: 2; }
  .calc-auth-gate { padding: 16px; }
  .calc-auth-actions { width: 100%; justify-content: stretch; }
  .calc-auth-actions .btn-primary,
  .calc-auth-actions .btn-ghost { flex: 1; }
  .field-input-wrap { grid-template-columns: auto minmax(0, 1fr) auto; }
  .field-input-wrap input { font-size: 20px; }
  .network-options { grid-template-columns: 1fr; }
  .trust-badges { flex-direction: column; }
  .home-brief { padding: 20px 18px 58px; }
  .trust-ops-section { padding: 46px 18px; }
  .trust-ops-grid { grid-template-columns: 1fr; }
  .brief-panel { padding: 19px; }
  .section-band { padding: 56px 20px; }
  .testimonial-grid, .values-grid, .rank-grid, .stats-grid { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 40;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .sidebar > .nav-logo { display: none; }
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
  }
  .sidebar-user h2 { font-size: 15px; margin: 0; }
  .sidebar-user p  { display: none; }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    overflow: visible;
    padding-bottom: 1px;
  }
  .sidebar-nav a {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    white-space: nowrap;
  }
  .sidebar-nav a.active {
    border-color: var(--accent);
    background: var(--success-soft);
  }
  .sidebar-logout {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1.5px solid #fecaca;
    margin-top: 0;
    width: auto;
    text-align: center;
  }
  .dashboard-hero,
  .dashboard-split,
  .dashboard-section {
    scroll-margin-top: 160px;
  }
  .app-main { padding: 20px 16px 40px; }
  .app-header, .admin-header { align-items: flex-start; flex-direction: column; }
  .dashboard-hero { padding: 18px 16px; }
  .dashboard-hero h1 { font-size: 28px; }
  .dashboard-hero-panel strong { font-size: 2.4rem; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric-card { padding: 16px; }
  .dashboard-split { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .progress-card-header { align-items: flex-start; flex-direction: column; }
  .quality-list li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .quality-list strong { text-align: left; }
  .admin-header { padding: 18px 20px; }
  .config-field-row { flex-direction: column; align-items: stretch; }
  .config-field-row .btn-primary { width: 100%; justify-content: center; }
  .admin-metric-form,
  .admin-testimonial-form {
    grid-template-columns: 1fr;
  }
  th, td { padding: 12px; }
  .table-wrap::before {
    content: "Desliza para ver más";
    position: sticky;
    left: 0;
    display: block;
    padding: 10px 12px;
    background: var(--bg-surface);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
  }
  .table-wrap--empty::before,
  .table-wrap--empty thead {
    display: none;
  }
  .table-wrap--empty table,
  .table-wrap--empty tbody,
  .table-wrap--empty tr,
  .table-wrap--empty td {
    display: block;
    width: 100%;
  }
  .table-wrap--empty td {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .admin-header {
    position: static;
  }
}

/* ── Entrance animations ─────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-title {
  animation: fade-up 520ms var(--ease-out) both;
}
.hero-sub {
  animation: fade-up 520ms var(--ease-out) 80ms both;
}
.trust-badges {
  animation: fade-in 400ms ease-out 200ms both;
}
.calc-card {
  animation: fade-up 560ms var(--ease-out) 40ms both;
}

.testimonial-card:nth-child(1) { animation: fade-up 400ms var(--ease-out) 0ms both; }
.testimonial-card:nth-child(2) { animation: fade-up 400ms var(--ease-out) 60ms both; }
.testimonial-card:nth-child(3) { animation: fade-up 400ms var(--ease-out) 120ms both; }
.dashboard-hero { animation: fade-up 460ms var(--ease-out) both; }
.metric-card:nth-child(1) { animation: fade-up 360ms var(--ease-out) 40ms both; }
.metric-card:nth-child(2) { animation: fade-up 360ms var(--ease-out) 80ms both; }
.metric-card:nth-child(3) { animation: fade-up 360ms var(--ease-out) 120ms both; }
.metric-card:nth-child(4) { animation: fade-up 360ms var(--ease-out) 160ms both; }
.rank-progress-card { animation: fade-up 420ms var(--ease-out) 170ms both; }
.account-quality-card { animation: fade-up 420ms var(--ease-out) 220ms both; }

.progress-fill {
  animation: progress-grow 800ms var(--ease-out) 300ms both;
}

/* ── Sidebar nav hover ───────────────────────────────────── */
.sidebar-nav a {
  transition: transform 160ms var(--ease-out), background-color 140ms ease-out, color 140ms ease-out;
}

/* ── Table row hover ─────────────────────────────────────── */
tbody tr {
  transition: background-color 120ms ease-out;
}

/* ── Admin/modal tab underline transition ────────────────── */
.modal-tab {
  transition: color 160ms ease-out, border-bottom-color 160ms ease-out;
}
.admin-tab {
  transition: color 160ms ease-out, border-bottom-color 160ms ease-out;
}

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

/* ── Rank notice in calculator ───────────────────────────── */
.calc-rank-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  margin: 4px 0;
  line-height: 1.5;
}
.calc-rank-notice a { color: var(--accent); text-decoration: underline; }
.calc-rank-notice--active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft-border);
}
.calc-rank-notice--decay {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.summary-row--rank strong { color: var(--accent); }

/* ── Full-width ghost button ─────────────────────────────── */
.btn-ghost.full { width: 100%; }

/* ── Footer legal links ──────────────────────────────────── */
.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-links a:hover { color: var(--text-secondary); }

/* ── Auth page (reset-password, 404) ────────────────────── */
.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-page-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.auth-page-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.auth-page-icon--error {
  background: #fff1f2;
  color: #be123c;
}
.auth-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-page-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.auth-page-card .form-group { text-align: left; }
.auth-page-card .form-group:last-of-type { margin-bottom: 20px; }

/* ── Legal content pages ─────────────────────────────────── */
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { border-top: none; margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.legal-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 16px 20px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* ── Standalone calculator page ──────────────────────────── */
.calc-page-hero {
  padding: 48px 0 0;
}
.calc-page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: start;
}
.calc-page-copy {
  min-width: 0;
}
.calc-page-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}
.calc-page-copy > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
}
.calc-page-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-page-facts li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.calc-page-facts li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.calc-security-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 12px;
  line-height: 1.45;
}
.calc-register-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.calc-register-note a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Calculator explainer section ────────────────────────── */
.calc-explainer {
  padding: 48px 0 64px;
}
.calc-explainer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.explainer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.explainer-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.explainer-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.explainer-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.explainer-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.explainer-warn {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .calc-page-hero {
    padding-top: 24px;
  }
  .calc-page-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 18px;
  }
  .calc-page-hero .calculator-section {
    order: 1;
  }
  .calc-page-copy {
    order: 2;
  }
  .calc-page-copy h1 { font-size: 1.75rem; }
  .calc-explainer-inner { grid-template-columns: 1fr; }
}

/* ── Freelancer band (index.html comparison section) ─────── */
.freelancer-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  overflow: hidden;
}
.freelancer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}
.freelancer-copy {
  min-width: 0;
}
.freelancer-label {
  display: inline-block;
  margin-bottom: 12px;
}
.freelancer-copy h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 12px;
}
.freelancer-copy p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 24px;
  overflow-wrap: break-word;
}
.freelancer-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.freelancer-cta:hover { background: var(--accent-hover); }

.rate-compare {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.rate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 130px;
}
.rate-other {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.rate-ours {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
}
.rate-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.rate-other .rate-label { color: #64748b; }
.rate-ours .rate-label { color: var(--accent); }
.rate-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}
.rate-ours .rate-value { color: var(--accent); }
.rate-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.rate-vs {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .freelancer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rate-compare {
    justify-content: center;
  }
}
