/* ============================================================
   Curlec Payments — design system
   Aesthetic: a precise payments "ledger". Mono tabular figures
   for money, ink-navy command rail, disciplined emerald/amber
   status system. Everything else stays quiet.
   ============================================================ */

:root {
  /* palette */
  --ink: #0e1a2b;
  --ink-2: #16263c;
  --ink-rail: #0d1726;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --line: #e7eaef;
  --line-strong: #d6dbe3;
  --text: #1a2433;
  --text-soft: #5b6675;
  --text-faint: #8a93a1;

  --emerald: #0e9f6e;
  --emerald-ink: #066b49;
  --emerald-bg: #e7f6ef;
  --amber: #d97706;
  --amber-bg: #fdf2e3;
  --rose: #c0392b;
  --rose-bg: #fbecea;
  --blue: #2f6df6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 43, 0.06);
  --shadow: 0 6px 24px rgba(16, 26, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 26, 43, 0.16);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* numbers that should align like a ledger */
.fig {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------------- Admin shell ---------------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.rail {
  background: var(--ink-rail);
  color: #cdd6e3;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 22px;
}
.rail__logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--emerald), #0b7a55);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.rail__brand b { font-family: var(--font-display); color: #fff; font-size: 15px; letter-spacing: -0.01em; }
.rail__brand span { display: block; font-size: 11px; color: #6f7e92; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5b6a7e; padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 9px;
  color: #aeb9c9; font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.05); color: #e6ecf4; }
.nav a.is-active { background: rgba(14,159,110,.16); color: #fff; }
.nav a.is-active svg { opacity: 1; }

.rail__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.rail__foot a { color: #8b97a8; font-size: 13px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; }
.rail__foot a:hover { background: rgba(255,255,255,.05); color: #dbe2ec; }

.main { padding: 30px 36px 56px; max-width: 1180px; width: 100%; }

/* ---------------- Page header ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.page-head p { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.page-head__actions { display: flex; gap: 10px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .04s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); }
.btn--accent { background: var(--emerald); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: #0c8a60; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: #b9c1cd; background: #fbfcfd; }
.btn--danger { background: var(--surface); color: var(--rose); border-color: #ecc9c5; }
.btn--danger:hover { background: var(--rose-bg); }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------------- Stat cards ---------------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat__label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); display: flex; align-items: center; gap: 7px; }
.stat__dot { width: 7px; height: 7px; border-radius: 50%; }
.stat__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 600; color: var(--ink); margin-top: 10px; letter-spacing: -0.02em; }
.stat--revenue .stat__value { color: var(--emerald-ink); }

/* ---------------- Card + filters ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card__head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.field select, .field input {
  font-family: var(--font-body); font-size: 13px; color: var(--text);
  padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); min-width: 130px;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,26,43,.08); }

/* ---------------- Ledger table ---------------- */
.table-wrap { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ledger thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); font-weight: 600; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap;
}
.ledger tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger tbody tr:last-child td { border-bottom: none; }
.ledger tbody tr:hover { background: #fafbfc; }
.ledger .amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger .muted { color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }
.cust { font-weight: 600; color: var(--ink); }
.cust small { display: block; font-weight: 400; color: var(--text-soft); font-size: 12px; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--paid { color: var(--emerald-ink); background: var(--emerald-bg); }
.pill--unpaid { color: var(--amber); background: var(--amber-bg); }
.pill--initiated { color: #2f6db5; background: #e8f0fb; }

/* empty state */
.empty { padding: 56px 24px; text-align: center; }
.empty__icon { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--text-faint); }
.empty h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.empty p { color: var(--text-soft); font-size: 14px; }

/* ---------------- Plans grid ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.plan__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.plan__desc { font-size: 13px; color: var(--text-soft); margin-top: 3px; }
.plan__amount { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--emerald-ink); letter-spacing: -0.02em; }
.plan__link { display: flex; align-items: center; gap: 8px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; }
.plan__link code { font-family: var(--font-mono); color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.copy-btn { cursor: pointer; color: var(--text-faint); background: none; border: none; padding: 2px; display: grid; place-items: center; }
.copy-btn:hover { color: var(--ink); }
.plan__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge--on { color: var(--emerald-ink); background: var(--emerald-bg); }
.badge--off { color: var(--text-soft); background: #eef0f3; }

/* ---------------- Forms ---------------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); max-width: 760px; }
.form-section { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: none; }
.form-section h2 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.form-section p.hint { font-size: 12.5px; color: var(--text-soft); margin-bottom: 16px; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.input-group label .opt { font-weight: 400; color: var(--text-faint); }
.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="number"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group textarea,
.input-group select {
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface);
  width: 100%;
}
.input-group textarea { resize: vertical; min-height: 88px; }
.input-group textarea.code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,26,43,.08);
}
.prefix-field { display: flex; }
.prefix-field .prefix { display: flex; align-items: center; padding: 0 12px; background: #f3f5f8; border: 1px solid var(--line-strong); border-right: none; border-radius: 9px 0 0 9px; font-family: var(--font-mono); font-size: 14px; color: var(--text-soft); }
.prefix-field input { border-radius: 0 9px 9px 0 !important; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch__track { width: 42px; height: 24px; border-radius: 999px; background: #cdd3dc; position: relative; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--emerald); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }

.form-foot { padding: 18px 26px; display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc; border-radius: 0 0 var(--radius) var(--radius); }

.alert { padding: 12px 16px; border-radius: 9px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 9px; align-items: center; }
.alert--error { background: var(--rose-bg); color: #9a2c20; border: 1px solid #efcfca; }
.alert--ok { background: var(--emerald-bg); color: var(--emerald-ink); border: 1px solid #c4e7d6; }

/* ---------------- Login ---------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 500px at 50% -10%, #14263d 0%, #0d1726 55%); }
.auth__card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 34px 32px; }
.auth__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.auth h1 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.auth p.sub { color: var(--text-soft); font-size: 13.5px; margin-top: 2px; }

/* ---------------- Public payment page (clean light) ---------------- */
.pay-body { background: #eef1f6; }
.pay-stage { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  background: linear-gradient(180deg, #f3f5f9 0%, #e9edf3 100%); }
.pay-card { width: 100%; max-width: 416px; background: #fff; border-radius: 20px;
  box-shadow: 0 12px 40px rgba(20,33,54,.10), 0 2px 6px rgba(20,33,54,.05);
  border: 1px solid #edf0f4; padding: 30px 30px 22px; text-align: center; }
.pay-card__top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.pay-logo { width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), #0b7a55); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 24px;
  box-shadow: 0 6px 16px rgba(14,159,110,.32); }
.pay-company { font-size: 13px; font-weight: 600; color: var(--text-soft); letter-spacing: .01em; }
.pay-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.pay-sub { font-size: 14px; color: var(--text-soft); margin-top: 7px; line-height: 1.55; }
.pay-amount-chip { display: inline-block; margin: 18px 0 22px; padding: 8px 18px; border-radius: 999px;
  background: var(--emerald-bg); color: var(--emerald-ink);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

.pay-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld label { font-size: 13px; font-weight: 600; color: var(--text); }
.fld input {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  padding: 13px 14px; border: 1px solid #d9dee6; border-radius: 11px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.fld input::placeholder { color: #aab2be; }
.fld input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14,159,110,.14); }

.phone-row { display: grid; grid-template-columns: 116px 1fr; gap: 10px; }

.cc { position: relative; }
.cc__btn { width: 100%; height: 100%; display: flex; align-items: center; gap: 6px;
  padding: 13px 11px; border: 1px solid #d9dee6; border-radius: 11px; background: #fff; cursor: pointer; font-size: 15px; }
.cc__btn:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14,159,110,.14); }
.cc__flag { font-size: 19px; line-height: 1; }
.cc__dial { font-family: var(--font-mono); color: var(--text-soft); font-size: 14px; }
.cc__btn svg { margin-left: auto; color: var(--text-faint); }
.cc__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid #e2e7ee; border-radius: 13px; box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 30; display: none; }
.cc__menu.open { display: block; }
.cc__search { width: 100%; padding: 10px 12px; border: 1px solid #e2e7ee; border-radius: 9px; font-size: 14px; margin-bottom: 6px; }
.cc__search:focus { outline: none; border-color: var(--emerald); }
.cc__list { max-height: 248px; overflow-y: auto; }
.cc__opt { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.cc__opt:hover, .cc__opt.active { background: #eef6f1; }
.cc__nm { color: var(--text); }
.cc__opt .cc__dial { margin-left: auto; }

.pay-btn { margin-top: 6px; width: 100%; padding: 15px; border: none; border-radius: 12px;
  background: var(--emerald); color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 16px rgba(14,159,110,.28); transition: background .15s, transform .04s; }
.pay-btn:hover { background: #0c8a60; }
.pay-btn:active { transform: translateY(1px); }
.pay-btn:disabled { opacity: .65; cursor: not-allowed; }

.pay-msg { text-align: center; font-size: 13px; color: var(--text-soft); min-height: 16px; }
.pay-msg.error { color: var(--rose); }

.pay-secure { display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; color: var(--text-faint); margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.pay-secure svg { width: 14px; height: 14px; }

/* ---------------- Result pages ---------------- */
.result-stage { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: var(--canvas); }
.result-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 40px 34px; text-align: center; border: 1px solid var(--line); }
.result-emblem { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; }
.result-emblem svg { width: 34px; height: 34px; }
.result-emblem--ok { background: var(--emerald-bg); color: var(--emerald-ink); }
.result-emblem--fail { background: var(--rose-bg); color: var(--rose); }
.result-card h1 { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--ink); margin-bottom: 9px; letter-spacing: -0.01em; }
.result-card p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.result-pid { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); background: #f6f7f9; border-radius: 8px; padding: 8px 12px; word-break: break-all; }
.result-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.btn--whatsapp { background: #25d366; color: #06301a; }
.btn--whatsapp:hover { background: #1fc25c; }

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rail__brand { padding: 0 8px 0 0; }
  .nav { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .nav__label, .rail__foot { display: none; }
  .main { padding: 22px 18px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
}

/* accessibility */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ============================================================
   Public site: brand, header/footer, homepage, legal
   ============================================================ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.site { background: #fff; color: var(--text); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand--stack { flex-direction: column; gap: 9px; }
.brand__img { object-fit: contain; border-radius: 10px; background: #fff; }
.brand--sm .brand__img { height: 26px; max-width: 120px; }
.brand--md .brand__img { height: 36px; max-width: 170px; }
.brand--lg .brand__img { height: 56px; max-width: 220px; }
.brand__fallback { display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), #0b7a55); color: #fff; font-family: var(--font-display); font-weight: 700; }
.brand--sm .brand__fallback { width: 30px; height: 30px; font-size: 15px; }
.brand--md .brand__fallback { width: 40px; height: 40px; font-size: 19px; }
.brand--lg .brand__fallback { width: 56px; height: 56px; font-size: 26px; }
.brand__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 16px; letter-spacing: -0.01em; }
.brand--lg .brand__name { font-size: 15px; color: var(--text-soft); font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 14.5px; font-weight: 500; color: var(--text-soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav__cta { padding: 9px 16px; border-radius: 9px; background: var(--ink); color: #fff !important; }
.site-nav__cta:hover { background: var(--ink-2); }

/* hero */
.hero { background:
  radial-gradient(900px 400px at 80% -10%, rgba(14,159,110,.10), transparent 60%),
  radial-gradient(700px 380px at 10% 0%, rgba(47,109,246,.08), transparent 55%),
  #fff; padding: 76px 0 64px; border-bottom: 1px solid var(--line); }
.hero__inner { max-width: 760px; }
.hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--emerald-ink); background: var(--emerald-bg); padding: 6px 13px; border-radius: 999px; }
.hero__title { font-family: var(--font-display); font-size: 46px; line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin: 20px 0 16px; }
.hero__lead { font-size: 18px; color: var(--text-soft); line-height: 1.6; max-width: 580px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn--lg { padding: 14px 24px; font-size: 15.5px; border-radius: 11px; }
.hero__trust { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: var(--text-faint); }
.hero__trust svg { width: 15px; height: 15px; }

/* section + home cards */
.section { padding: 60px 22px; }
.section__head { text-align: center; max-width: 560px; margin: 0 auto 38px; }
.section__head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.section__head p { color: var(--text-soft); margin-top: 8px; font-size: 15.5px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.home-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3dae3; }
.home-card__img { width: 100%; height: 140px; object-fit: cover; border-radius: 11px; margin-bottom: 6px; }
.home-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.home-card p { font-size: 14px; color: var(--text-soft); flex: 1; }
.home-card__price { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--emerald-ink); }
.home-card__go { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.home-card--custom { background: linear-gradient(160deg, #0e1a2b, #16263c); border: none; color: #fff; }
.home-card--custom h3 { color: #fff; }
.home-card--custom p { color: #aebaccd9; color: rgba(255,255,255,.7); }
.home-card--custom .home-card__go { color: #fff; }
.home-card__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; margin-bottom: 6px; }
.home-card__icon svg { width: 22px; height: 22px; color: #fff; }

/* footer */
.site-footer { background: #0e1a2b; color: #aebacc; margin-top: 30px; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 52px 22px 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer__tag { font-size: 14px; color: #93a1b5; margin-top: 12px; max-width: 280px; }
.site-footer__addr { font-size: 13px; color: #7c8aa0; margin-top: 10px; max-width: 280px; line-height: 1.6; }
.site-footer__col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer__col a { display: block; color: #9aa7bb; font-size: 14px; padding: 5px 0; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #7c8aa0; }

/* legal */
.legal { padding: 48px 0 64px; }
.legal__inner { max-width: 760px; }
.legal__back { font-size: 14px; color: var(--text-soft); }
.legal__back:hover { color: var(--ink); }
.legal h1 { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 16px 0 6px; }
.legal__meta { font-size: 13px; color: var(--text-faint); margin-bottom: 26px; }
.legal h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.legal p { font-size: 15.5px; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.legal a { color: var(--emerald-ink); text-decoration: underline; }

/* custom amount input + chips */
.amount-input { display: flex; align-items: center; border: 1px solid #d9dee6; border-radius: 11px; background: #fff; overflow: hidden; }
.amount-input:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14,159,110,.14); }
.amount-input__cur { padding: 0 14px; font-family: var(--font-mono); font-size: 16px; color: var(--text-soft); border-right: 1px solid #e7eaef; align-self: stretch; display: flex; align-items: center; }
.amount-input input { border: none !important; box-shadow: none !important; font-family: var(--font-mono); font-size: 20px; font-weight: 600; padding: 13px 14px; width: 100%; }
.amount-input input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 8px 14px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .12s; }
.chip:hover { border-color: var(--emerald); color: var(--emerald-ink); }
.chip.active { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.fld__hint { font-size: 12px; color: var(--text-faint); margin-top: 8px; }

/* plan image on pay page */
.pay-plan-img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 13px; margin: 4px 0 16px; }

/* logo preview (admin) */
.logo-preview { display: inline-flex; align-items: center; justify-content: center; padding: 14px 18px; background: #f4f6f9; border: 1px dashed #cfd6e0; border-radius: 12px; margin-bottom: 16px; min-width: 120px; }
.logo-preview img { max-height: 56px; max-width: 200px; object-fit: contain; }
.logo-preview span { color: var(--text-faint); font-size: 13px; }
.input-group input[type="file"] { font-size: 13px; padding: 9px 11px; }

@media (max-width: 820px) {
  .hero__title { font-size: 34px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
}
