:root {
  --ink: #24231f;
  --muted: #6f6a5f;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --sand: #ded1ba;
  --sand-dark: #ab8f6a;
  --olive: #52604d;
  --olive-soft: #dfe6da;
  --rust: #9b503f;
  --line: #ded8cb;
  --shadow: 0 18px 45px rgba(74, 62, 43, .1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(119,103,78,.16); background: rgba(244,239,228,.94); backdrop-filter: blur(14px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.03em; font-size: 20px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--sand-dark); border-radius: 50%; font-family: Georgia, serif; color: var(--olive); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: var(--olive); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--olive); border-radius: 999px; background: var(--olive); color: white; text-decoration: none; font: inherit; font-weight: 730; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(55,72,49,.16); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--sand-dark); }
.button-small { min-height: 38px; padding-inline: 16px; font-size: 13px; }
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 15px; color: var(--olive); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1,h2,h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 780px; font-size: clamp(48px, 7.3vw, 86px); }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 24px; }
.lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-card, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.hero-card { padding: 34px; }
.hero-card p { color: var(--muted); }
.domain-form { display: flex; gap: 10px; margin-top: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 720; }
input, select, textarea { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 11px 14px; font: inherit; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--sand-dark); box-shadow: 0 0 0 4px rgba(171,143,106,.12); }
.domain-form input { min-width: 0; }
.check-result { display: grid; gap: 5px; margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--cream); }
.check-result[hidden] { display: none; }
.check-result strong { font-size: 15px; }
.check-result span { color: var(--muted); font-size: 14px; }
.check-result .button { margin-top: 8px; justify-self: start; }
.check-result.is-quarantine { background: var(--olive-soft); }
.check-result.is-registered, .check-result.is-unknown { background: #efe5df; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.trust-item { padding-top: 18px; border-top: 1px solid var(--line); }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: 14px; }
.section { padding: 76px 0; }
.section-alt { background: #eae1d2; }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading p { color: var(--muted); font-size: 18px; }
.steps, .feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step, .feature-card { padding: 28px; border: 1px solid rgba(119,103,78,.2); border-radius: var(--radius); background: rgba(255,253,248,.72); }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 28px; border: 1px solid var(--sand-dark); border-radius: 50%; color: var(--olive); font-weight: 800; }
.step p, .feature-card p { margin-bottom: 0; color: var(--muted); }
.price-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 38px; }
.price { font-family: Georgia, serif; font-size: 52px; line-height: 1; }
.price small { display: block; margin-top: 10px; color: var(--muted); font: 14px/1.4 Inter, sans-serif; }
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 20px; }

.auth-shell { min-height: calc(100vh - 154px); display: grid; place-items: center; padding: 64px 0; }
.auth-card { width: min(520px, 100%); padding: 36px; }
.auth-card h1 { font-size: 42px; }
.auth-card form { display: grid; gap: 18px; margin-top: 28px; }
.form-note { color: var(--muted); font-size: 14px; }
.form-error { padding: 12px 14px; border-radius: 10px; background: #f3dfd9; color: #763b2e; font-size: 14px; }
.flash { margin: 20px auto 0; padding: 14px 18px; border-radius: 12px; }
.flash-success { background: var(--olive-soft); color: #33412f; }
.flash-error { background: #f3dfd9; color: #763b2e; }

.dashboard { padding: 48px 0 80px; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dashboard-head h1 { font-size: 48px; }
.page-intro { max-width: 720px; margin: 10px 0 0; color: var(--muted); }
.dashboard-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 28px; }
.sidebar { align-self: start; position: sticky; top: 100px; padding: 16px; }
.sidebar a { display: block; padding: 11px 13px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 680; }
.sidebar a:hover, .sidebar a.is-active { background: var(--cream); color: var(--ink); }
.content-stack { display: grid; gap: 20px; }
.card { padding: 26px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stat { padding: 22px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 34px; }
.stat small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.stats-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-four .stat-value { font-size: clamp(26px, 2.6vw, 35px); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th,td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td { font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #eee8dc; color: var(--muted); font-size: 12px; font-weight: 750; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-state="completed_success"] { color: #375c3c; background: #dfeadb; }
.status[data-state="monitoring"], .status[data-state="scheduled"] { color: #695b32; background: #efe7c8; }
.status[data-state="completed_failed"], .status[data-state="cancelled"] { color: #814235; background: #f2ddd7; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 24px 30px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 1px var(--olive); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 3px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: 12px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.wallet-balance { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.token-orb { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; border: 1px solid var(--sand-dark); background: var(--cream); font-family: Georgia, serif; font-size: 32px; }
.notice { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--muted); font-size: 14px; }
.notice strong { color: var(--ink); }
.inline-form { display: flex; align-items: center; gap: 8px; min-width: 230px; }
.inline-form input { width: 110px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meta-list { display: grid; gap: 12px; }
.meta-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.meta-row:last-child { border: 0; padding-bottom: 0; }
.meta-row span:first-child { color: var(--muted); }

.admin-dashboard .dashboard-layout { grid-template-columns: 220px minmax(0, 1fr); }
.admin-sidebar a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav-badge { min-width: 24px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 999px; background: var(--rust); color: white; font-size: 11px; }
.admin-overview-split { grid-template-columns: 1.08fr .92fr; }
.service-list { display: grid; gap: 2px; }
.service-list > div { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-list > div:last-child { border-bottom: 0; }
.service-list span:nth-child(2) { color: var(--muted); }
.service-dot { width: 9px; height: 9px; border-radius: 50%; background: #aaa397; }
.service-dot.is-ok { background: #4f7754; box-shadow: 0 0 0 4px rgba(79,119,84,.12); }
.service-dot.is-warn { background: #a8643d; box-shadow: 0 0 0 4px rgba(168,100,61,.12); }
.table-subline { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .35fr) auto; align-items: end; gap: 14px; padding: 18px 20px; }
.filter-bar-simple { grid-template-columns: minmax(260px, 1fr) auto; }
.filter-bar input, .filter-bar select { min-height: 42px; }
.filter-bar .button { min-height: 42px; }
.section-tabs { display: flex; gap: 8px; padding: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.section-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 10px; color: var(--muted); font-weight: 750; white-space: nowrap; }
.section-tabs a span { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #eee8dc; color: var(--muted); text-align: center; font-size: 11px; }
.section-tabs a.is-active { background: var(--ink); color: white; }
.section-tabs a.is-active span { background: rgba(255,255,255,.18); color: white; }
.sales-filter { margin: 18px -20px; border-width: 1px 0; border-radius: 0; box-shadow: none; }
.table-total { color: var(--muted); font-size: 13px; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination > :last-child { justify-self: end; }
.status-large { padding: 9px 13px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
.status[data-state="manual_review"], .status[data-state="reconciliation_required"], .status[data-state="refunded"], .status[data-state="charged_back"] { color: #814235; background: #f2ddd7; }
.status[data-state="active"], .status[data-state="paid"], .status[data-state="credited"] { color: #375c3c; background: #dfeadb; }
.status[data-state="failed"], .status[data-state="expired"], .status[data-state="canceled"], .status[data-state="suspended"] { color: #814235; background: #f2ddd7; }
.settings-form { display: grid; gap: 18px; }
.compact-form { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field small { color: var(--muted); font-size: 12px; }
.money-input { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: stretch; }
.money-input span { display: grid; place-items: center; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--cream); color: var(--muted); }
.money-input input { border-radius: 0 12px 12px 0; }
.check-line { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.check-line input { flex: 0 0 auto; width: auto; min-height: auto; margin-top: 5px; }
.settings-checks { display: grid; gap: 12px; margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #faf7f0; }
.danger-check { color: var(--rust); }
.settings-summary { margin-bottom: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.connection-pill { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #eee8dc; color: var(--muted); font-size: 12px; font-weight: 750; }
.connection-pill.is-connected { color: #375c3c; background: #dfeadb; }
.security-confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr) auto; align-items: end; gap: 20px; }
.notice-compact { padding: 8px 11px; }
code { padding: 3px 7px; border-radius: 6px; background: var(--cream); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 900px) {
  .hero-grid, .dashboard-layout, .admin-dashboard .dashboard-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-card { max-width: 650px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; overflow-x: auto; }
  .sidebar a { white-space: nowrap; }
  .stats-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-split, .security-confirm { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1160px); }
  .nav { min-height: 68px; }
  .nav-links a:not(.button) { display: none; }
  .hero-grid { gap: 38px; }
  .domain-form, .dashboard-head, .wallet-balance, .footer-grid { align-items: stretch; flex-direction: column; }
  .domain-form { display: grid; }
  .trust-row, .stats, .split, .stats-four, .form-grid, .filter-bar, .filter-bar-simple { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .card, .hero-card, .auth-card { padding: 22px; }
  .pagination { grid-template-columns: auto 1fr auto; gap: 10px; }
  .pagination .button { padding-inline: 12px; }
}
