/* NameYarn storefront — Switzer type, one calm "zen" identity end to end:
   warm paper surfaces, a teal accent, blue-tinted slate neutrals, pill
   buttons, soft white cards. The storefront chrome, the buying flow
   (.zen-flow), and the signed-in control panel (.panel-shell) all share
   the same palette so the site reads as one continuous surface. */

:root {
  /* Storefront palette */
  --blue-50: #e6f5fe;
  --blue-100: #b0defd;
  --blue-300: #54b9fa;
  --blue-500: #0096f7;
  --blue-600: #0089e1;
  --blue-700: #006baf;
  --navy-950: #031242;
  --navy-900: #101b4d;
  --navy-800: #1f2c57;
  --slate-50: #f5f8ff;
  --slate-100: #ebf3ff;
  --slate-200: #d6e2f5;
  --slate-300: #b8c9e6;
  --slate-500: #6b84b5;
  --slate-600: #4d6294;
  --slate-700: #344573;
  --green-500: #12b76a;
  --green-700: #0d824b;
  --green-50: #e7f8f0;
  --red-500: #ea4337;
  --red-700: #a63027;
  --red-50: #fdeceb;
  --orange-500: #ff8a00;
  --orange-700: #b56200;
  --orange-50: #fff3e6;

  /* "Zen" palette — calm warm paper + a teal accent, shared by the
     storefront, the buying flow, and the control panel. */
  --zen-50: #eef6f2;
  --zen-100: #d7ebe2;
  --zen-200: #b1d7c8;
  --zen-500: #159a7a;
  --zen-600: #0f8168;
  --zen-700: #0c6552;
  --zen-ink: #14322a;
  --panel-bg: #f4f3ee;
  --panel-line: #e7e4db;
  --panel-line-strong: #d9d5c9;

  /* Semantic tokens */
  --text: var(--navy-950);
  --text-secondary: var(--slate-600);
  --text-subtle: var(--slate-500);
  --bg: #fff;
  --bg-muted: var(--slate-50);
  --border: rgba(3, 18, 66, .25);
  --border-subtle: rgba(3, 18, 66, .10);
  --shadow: 0 12px 32px 4px rgba(3, 18, 66, .04), 0 8px 20px rgba(3, 18, 66, .08);
  --shadow-light: 0 2px 12px rgba(3, 18, 66, .08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --container: 1160px;
  --font: "Switzer", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--zen-700); text-decoration: none; }
a:hover { color: var(--zen-600); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-950);
  margin-right: .5rem;
}
.brand:hover { color: var(--navy-950); }
.brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--zen-500), var(--zen-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}
.brand .brand-zen { color: var(--zen-600); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--zen-600); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.header-actions .user-name { color: var(--text-secondary); font-size: .9rem; font-weight: 500; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--zen-500);
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--zen-600); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--navy-950);
}
.btn-outline:hover { border-color: var(--zen-500); color: var(--zen-700); background: var(--zen-50); }

.btn-sm { padding: .4rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------ */
/* Hero (warm paper, white search card — the panel identity up front)  */
/* ------------------------------------------------------------------ */

.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--zen-600);
  margin-bottom: 1rem;
}

.hero h1 { color: var(--zen-ink); margin-bottom: .4em; }
.hero h1 .accent { color: var(--zen-600); }

.hero-sub { color: var(--text-secondary); font-size: 1.1rem; max-width: 34rem; margin: 0 auto 2rem; }

/* Search panel — a white panel-card sitting on the paper */
.search-panel {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-light);
}

.search-tabs { display: flex; gap: .25rem; margin-bottom: .75rem; }
.search-tabs .tab {
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-600);
}
.search-tabs .tab.active { background: var(--zen-50); color: var(--zen-700); }
.search-tabs .tab.disabled { opacity: .55; cursor: not-allowed; }

.search-bar {
  display: flex;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--panel-line-strong);
  border-radius: var(--radius-pill);
  padding: .4rem .4rem .4rem 1.4rem;
}
.search-bar input[type=text] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: transparent;
  padding: .6rem 0;
}
.search-bar input[type=text]:focus { border: 0; box-shadow: none; }
.search-bar input::placeholder { color: var(--text-subtle); }

/* htmx loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }
.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* TLD price chips — static, and clickable: apply the ending to the    */
/* typed name and re-run the search.                                   */
/* ------------------------------------------------------------------ */

.tld-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 720px;
  margin: 1.25rem auto 0;
}
.tld-chips-label {
  flex: 0 0 100%;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-subtle);
  margin-bottom: .25rem;
}
.tld-chip {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--panel-line);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.tld-chip:hover { border-color: var(--zen-500); background: var(--zen-50); }
.tld-chip .tld-name { font-weight: 700; font-size: .95rem; color: var(--zen-ink); }
.tld-chip .tld-price { color: var(--zen-600); font-weight: 600; font-size: .88rem; }
.tld-chip .tld-was { color: var(--text-subtle); text-decoration: line-through; font-size: .78rem; opacity: .7; }

/* ------------------------------------------------------------------ */
/* Sections, stats, feature cards                                      */
/* ------------------------------------------------------------------ */

.section { padding: 3.5rem 0; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--text-secondary); max-width: 40rem; margin: 0 auto 2.5rem; }

/* Homepage sheet — everything below the search shares one panel-card
   surface, divided by hairlines (the control panel's own anatomy). */
.home-sheet-wrap { padding: 3rem 0 3.5rem; }
.home-sheet {
  background: #fff;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.sheet-head { text-align: center; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--panel-line); }
.home-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--zen-600);
  margin: 0 0 .3rem;
}
.sheet-head h2 { font-size: 1.4rem; margin: 0; color: var(--zen-ink); }

/* Bundle columns — cells of the sheet, not floating cards */
.sheet-bundles { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--panel-line); }
.sheet-bundle { padding: 1.25rem 1.5rem; border-right: 1px solid var(--panel-line); }
.sheet-bundle:last-child { border-right: 0; }
.sheet-bundle.is-featured { background: var(--zen-50); }
.sheet-bundle-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.sheet-bundle h3 { margin: 0; color: var(--zen-ink); font-size: 1rem; }
.sheet-badge {
  font-size: .68rem;
  font-weight: 700;
  color: var(--zen-700);
  background: #fff;
  border: 1px solid var(--zen-200);
  border-radius: var(--radius-pill);
  padding: .1rem .55rem;
  white-space: nowrap;
}
.bundle-items {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  font-size: .9rem;
  color: var(--text-secondary);
}
.bundle-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.bundle-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--panel-line);
  margin-top: .5rem;
  padding-top: .7rem;
  font-weight: 700;
  color: var(--zen-ink);
}
.sheet-bundle.is-featured .bundle-total { border-top-color: var(--zen-200); }
.bundle-total-price { color: var(--zen-700); }
.bundle-renews { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-subtle); margin-top: .15rem; }

/* Full-width hairline rows of the sheet */
.sheet-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--panel-line);
}
.sheet-row-text { flex: 1; min-width: 220px; color: var(--text-secondary); font-size: .95rem; }
.sheet-row a { font-weight: 600; white-space: nowrap; }
.panel-teaser-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--zen-500), var(--zen-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-review {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--panel-line);
}
.review-rating { text-align: center; border-right: 1px solid var(--panel-line); padding-right: 1rem; }
.review-score { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--zen-ink); }
.review-count { font-size: .82rem; color: var(--text-subtle); }
.review-quote p { margin: 0 0 .4rem; color: var(--slate-700); font-style: italic; }
.review-quote span { font-size: .85rem; color: var(--text-subtle); }

.sheet-support { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--panel-line); }
.sheet-support > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  text-align: center;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--panel-line);
  color: var(--text-secondary);
}
.sheet-support > *:last-child { border-right: 0; }
.sheet-support svg { color: var(--zen-600); margin-bottom: .3rem; }
.sheet-support .support-title { font-weight: 700; color: var(--zen-ink); font-size: .95rem; }
.sheet-support .support-sub { font-size: .82rem; color: var(--text-subtle); }
.sheet-support a:hover { background: var(--zen-50); }
.sheet-support a:hover .support-title { color: var(--zen-700); }

/* FAQ rows — native details/summary, no JS */
.sheet-faq details { border-bottom: 1px solid var(--panel-line); }
.sheet-faq details:last-child { border-bottom: 0; }
.sheet-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--slate-700);
}
.sheet-faq summary::-webkit-details-marker { display: none; }
.sheet-faq summary::after { content: "+"; color: var(--zen-600); font-weight: 700; }
.sheet-faq details[open] summary { color: var(--zen-700); }
.sheet-faq details[open] summary::after { content: "–"; }
.sheet-faq details p { margin: 0; padding: 0 1.5rem 1rem; color: var(--text-secondary); font-size: .92rem; }

@media (max-width: 860px) {
  .sheet-bundles { grid-template-columns: 1fr; }
  .sheet-bundle { border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .sheet-bundle:last-child { border-bottom: 0; }
  .sheet-support { grid-template-columns: 1fr; }
  .sheet-support > * { border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .sheet-support > *:last-child { border-bottom: 0; }
  .sheet-review { grid-template-columns: 1fr; }
  .review-rating { border-right: 0; border-bottom: 1px solid var(--panel-line); padding: 0 0 .75rem; }
}

/* ------------------------------------------------------------------ */
/* Cards, tables, results                                              */
/* ------------------------------------------------------------------ */

.card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 1.75rem;
}
.card + .card { margin-top: 1.25rem; }
.card-title { margin-bottom: 1.25rem; }

/* Hosting plan cards — storefront hosting page and the panel hosting tab. */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: .875rem;
  align-items: start;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.25rem;
}
.plan-card.is-featured { border: 2px solid var(--zen-500); padding: calc(1.25rem - 1px); }
.plan-badge {
  display: inline-block;
  padding: .15rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--zen-50);
  color: var(--zen-700);
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.plan-name { font-size: 1.05rem; margin: 0; }
.plan-desc { margin: .2rem 0 .75rem; font-size: .85rem; color: var(--text-subtle); }
.plan-price { margin: 0 0 .8rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.plan-price span { font-size: .8rem; font-weight: 500; color: var(--text-subtle); }
.plan-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: .75rem 0 0;
  border-top: 1px solid var(--border-subtle);
  font-size: .875rem;
  color: var(--text-secondary);
}
.plan-features li { position: relative; padding: .2rem 0 .2rem 1.35rem; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--zen-500); }
.plan-card select { width: 100%; }
.plan-card .btn { width: 100%; margin-top: .6rem; }
.plan-card .checkout-note { margin-top: .75rem; font-size: .78rem; }

.page { padding: 2.5rem 0 4rem; }
.page-narrow { max-width: 720px; margin: 0 auto; }

.page-heading { margin-bottom: 1.5rem; }
.page-heading .kicker {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--zen-600);
}

table.data {
  border-collapse: collapse;
  width: 100%;
}
table.data th, table.data td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .95rem;
}
table.data th { color: var(--text-subtle); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
table.data tr:last-child td { border-bottom: 0; }
table.data.rows-hover tbody tr:hover { background: var(--slate-50); }

/* Search results */
.results-list { display: flex; flex-direction: column; }
.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.result-row:last-child { border-bottom: 0; }
.result-row .result-domain { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.result-row.is-taken .result-domain { color: var(--text-subtle); font-weight: 500; }
.result-row .result-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.result-row .result-price .per { color: var(--text-subtle); font-weight: 500; font-size: .85rem; }

/* Status pills */
.tag {
  display: inline-block;
  padding: .15rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-success { background: var(--green-50); color: var(--green-700); }
.tag-danger { background: var(--red-50); color: var(--red-700); }
.tag-warning { background: var(--orange-50); color: var(--orange-700); }
.tag-muted { background: var(--slate-100); color: var(--slate-600); }
.tag-info { background: var(--zen-50); color: var(--zen-700); }

/* Alerts & messages */
.alert {
  padding: .8rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  margin: 1rem 0;
  border: 1px solid transparent;
}
.alert-error { background: var(--red-50); color: var(--red-700); border-color: rgba(234, 67, 55, .25); }
.alert-success { background: var(--green-50); color: var(--green-700); border-color: rgba(18, 183, 106, .25); }
.alert-info { background: var(--zen-50); color: var(--zen-700); border-color: rgba(21, 154, 122, .25); }

/* Pay-now banner: shown on a pending domain with an unpaid order. */
.pay-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
  background: var(--orange-50);
  border: 1px solid rgba(234, 137, 55, .25);
  border-radius: var(--radius);
}
.pay-banner-body { flex: 1; }
.pay-banner-body h3 { margin: 0 0 .3rem; color: var(--orange-700); font-size: 1rem; }
.pay-banner-body p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.pay-banner .btn { flex-shrink: 0; }

.messages { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.messages li { padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: .5rem; font-size: .95rem; }
.messages .success { background: var(--green-50); color: var(--green-700); }
.messages .error { background: var(--red-50); color: var(--red-700); }
.messages .info, .messages .debug { background: var(--zen-50); color: var(--zen-700); }
.messages .warning { background: var(--orange-50); color: var(--orange-700); }

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

input[type=text], input[type=email], input[type=number], input[type=tel],
input[type=url], input[type=password], select, textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  padding: .6rem .85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--zen-500);
  box-shadow: 0 0 0 3px rgba(21, 154, 122, .15);
}
input[type=checkbox] { width: auto; accent-color: var(--zen-500); }

.form-stack p { margin: 0 0 1.1rem; }
.form-stack label { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-700); margin-bottom: .3rem; }
.form-stack .helptext { display: block; font-size: .8rem; color: var(--text-subtle); margin-top: .3rem; }
.form-stack ul.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--red-700); font-size: .85rem; }

.field-inline { display: flex; align-items: center; gap: .6rem; }
.field-inline label { margin: 0; }

/* Order summary rows */
.summary-row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .95rem; color: var(--text-secondary); }
.summary-row strong { color: var(--text); }
.summary-row.total { border-top: 1px solid var(--border-subtle); margin-top: .5rem; padding-top: .9rem; font-size: 1.05rem; color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Cart                                                                */
/* ------------------------------------------------------------------ */

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--slate-700);
  padding: .35rem;
}
.cart-link:hover { color: var(--zen-600); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--zen-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.cart-badge.is-empty { display: none; }

.logout-form { display: inline; margin: 0; }

/* Two-column cart: items + upsells on the left, sticky summary right */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}
.cart-aside { position: sticky; top: 1.5rem; }
@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-aside { position: static; }
}

.cart-items-card { padding: 0; }
.cart-item { border-bottom: 1px solid var(--border-subtle); padding: 1.1rem 1.25rem; }
.cart-item:last-child { border-bottom: 0; }
.cart-item-head { display: flex; align-items: center; gap: 1rem; }
.cart-item-name { flex: 1; min-width: 0; }
.cart-item-name .result-domain { display: block; }
.cart-price-per { color: var(--text-subtle); font-size: .85rem; }
.cart-item-price { display: flex; align-items: baseline; gap: .5rem; white-space: nowrap; }
.cart-years { margin: 0; }
.cart-years select { width: auto; }
.btn-remove {
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  font-size: 1rem;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
}
.btn-remove:hover { color: var(--red-500); background: var(--red-50); }

/* Value-stack lines under each domain (free privacy, auto-renew) */
.cart-item-extras { margin-top: .8rem; border-top: 1px dashed var(--border-subtle); }
.cart-extra {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0 0;
  font-size: .88rem;
}
.extra-name { font-weight: 600; color: var(--slate-700); white-space: nowrap; }
.extra-desc { flex: 1; color: var(--text-subtle); }

/* Pricing-pressure bits */
.price-was { color: var(--text-subtle); text-decoration: line-through; font-weight: 500; font-size: .88rem; }
.badge-save {
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--radius-pill);
  padding: .15rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.free-label { color: var(--green-700); font-weight: 700; font-size: .78rem; letter-spacing: .04em; white-space: nowrap; }

/* Order summary */
.cart-summary-title { font-size: 1.05rem; margin-bottom: .75rem; }
.summary-term { color: var(--text-subtle); font-size: .85rem; }
.summary-savings, .summary-savings span { color: var(--green-700); font-weight: 600; }
.summary-savings-note {
  margin: .75rem 0 0;
  padding: .6rem .8rem;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--radius-sm);
  font-size: .85rem;
}
.summary-trust { list-style: none; margin: 1.1rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--border-subtle); }
.summary-trust li {
  color: var(--text-secondary);
  font-size: .85rem;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: .45rem;
}
.summary-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--green-500); font-weight: 700; }
.summary-trust li:last-child { margin-bottom: 0; }

.checkout-note { text-align: center; color: var(--text-subtle); font-size: .85rem; margin: .9rem 0 0; }

/* Checkout step: compact form below the order summary for returning
   customers; the full first-order registrant form sits in the wide main
   column instead. */
.cart-aside #checkout-step { display: block; margin-top: 1.25rem; }
.cart-main #checkout-step { display: block; margin-top: 1.25rem; }

/* Payment step: replaces the cart layout, wide enough for Stripe's
   embedded Checkout to use its horizontal layout. */
.payment-flow { max-width: 920px; margin: 0 auto; }
.checkout-form-sub { color: var(--text-secondary); font-size: .88rem; margin: -.75rem 0 1rem; }

@media (max-width: 640px) {
  .cart-item-head { flex-wrap: wrap; }
  .cart-item-name { flex: 1 1 100%; }
  .cart-item-head .badge-save { order: 1; }
  .cart-extra { flex-wrap: wrap; }
  .extra-desc { flex: 0 0 100%; order: 2; }
}

/* Bottom-of-results checkout nudge */
.checkout-prompt {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(21, 154, 122, .25);
  border-radius: var(--radius);
  background: var(--zen-50);
}
.checkout-prompt-text { color: var(--zen-ink); font-size: .95rem; }
.checkout-prompt-total {
  margin-left: .5rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(21, 154, 122, .3);
  color: var(--zen-700);
  font-weight: 700;
}
.checkout-prompt-savings {
  margin-left: .5rem;
  color: var(--green-700);
  font-weight: 700;
  font-size: .85rem;
}
.checkout-prompt-actions { margin-left: auto; display: flex; gap: .6rem; }

@media (max-width: 720px) {
  .checkout-prompt-actions { margin-left: 0; width: 100%; }
  .checkout-prompt-actions .btn { flex: 1; }
}

/* Cart upsells */
.upsell-card { padding: 0; }
.upsell-heading { padding: 1.5rem 1.25rem .75rem; }
.upsell-heading h3 { margin: 0 0 .25rem; }
.upsell-sub { margin: 0; color: var(--text-secondary); font-size: .9rem; }
.upsell-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.upsell-row:first-of-type { border-top: 1px solid var(--border-subtle); }
.upsell-row:last-child { border-bottom: 0; }
.upsell-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  /* Same treatment as the panel's workspace avatar — ties the upsell
     card into the zen surface. */
  background: linear-gradient(140deg, var(--zen-500), var(--zen-700));
}
.upsell-main { flex: 1; min-width: 0; }
.upsell-name { display: block; font-weight: 700; }
.upsell-tagline { display: block; font-weight: 600; font-size: .82rem; color: var(--zen-600); }
.upsell-desc { display: block; color: var(--text-subtle); font-size: .85rem; margin-top: .15rem; }
.upsell-cta {
  flex-shrink: 0;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Auth pages */
.auth-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
}
.auth-card { max-width: 440px; margin: 2rem auto; }
.auth-layout .auth-card { flex: 0 1 440px; margin: 0; }
.auth-cart { flex: 0 1 340px; padding: 1.5rem; }
.auth-cart .summary-row span:first-child { overflow-wrap: anywhere; padding-right: .75rem; }
.auth-title { font-size: 1.75rem; }
.auth-switch { text-align: center; color: var(--text-secondary); font-size: .92rem; margin: 1.25rem 0 0; }

@media (max-width: 860px) {
  .auth-layout { flex-direction: column; align-items: center; }
  .auth-layout .auth-card, .auth-cart { flex: none; width: 100%; max-width: 440px; }
}

/* ------------------------------------------------------------------ */
/* Control panel — the calm "zen" workspace (warm paper + teal accent) */
/* the storefront chrome above now shares.                             */
/* ------------------------------------------------------------------ */

.panel-shell { background: var(--panel-bg); min-height: 70vh; }
.panel-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

/* Sidebar — a self-contained nav card, not an edge-to-edge tree */
.panel-sidebar {
  flex: 0 0 244px;
  position: sticky;
  top: 84px;
  background: #fff;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 1rem .7rem 1.15rem;
}

.sidebar-workspace {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .55rem .95rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--panel-line);
}
.sidebar-workspace-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--zen-500), var(--zen-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}
.sidebar-workspace-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sidebar-workspace-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--zen-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-workspace-sub { font-size: .76rem; color: var(--text-subtle); }

.sidebar-nav { display: flex; flex-direction: column; gap: .1rem; }
.sidebar-section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin: .95rem .6rem .3rem;
}
.sidebar-section-label:first-of-type { margin-top: .35rem; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate-700);
}
.sidebar-item svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--slate-500); }
a.sidebar-item:hover { background: var(--panel-bg); color: var(--zen-ink); }
a.sidebar-item:hover svg { color: var(--zen-600); }
.sidebar-item.is-active { background: var(--zen-50); color: var(--zen-700); font-weight: 700; }
.sidebar-item.is-active svg { color: var(--zen-600); }
.sidebar-item.is-disabled { color: var(--slate-300); cursor: not-allowed; }
.sidebar-item.is-disabled svg { color: var(--slate-200); }
.sidebar-soon {
  margin-left: auto;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-500);
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-pill);
  padding: .08rem .45rem;
}

.panel-main { flex: 1; min-width: 0; }

.panel-heading { margin-bottom: 1.25rem; }
.panel-heading .kicker {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--zen-600);
  margin: 0 0 .35rem;
}
.panel-heading-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.panel-title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0; color: var(--zen-ink); overflow-wrap: anywhere; }
.panel-meta { color: var(--text-subtle); font-size: .9rem; margin: .4rem 0 0; }

.panel-card {
  background: #fff;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}
/* Modifier for cards whose content isn't self-padded (tables/tabs supply
   their own insets; free-form content like the ticket thread needs this). */
.panel-card-pad { padding: 1.5rem; }

/* Keep shared blue-tinted bits (links, info tags, buttons, focus rings) on
   the panel's teal accent so the workspace reads as one calm surface. */
.panel-card a:not(.btn) { color: var(--zen-700); }
.panel-card a:not(.btn):hover { color: var(--zen-600); }
.panel-shell .tag-info { background: var(--zen-50); color: var(--zen-700); }
.panel-shell .btn { background: var(--zen-500); }
.panel-shell .btn:hover { background: var(--zen-600); }
.panel-shell .btn-outline { background: transparent; color: var(--zen-ink); border-color: var(--panel-line-strong); }
.panel-shell .btn-outline:hover { color: var(--zen-700); border-color: var(--zen-500); background: var(--zen-50); }
.panel-shell input[type=radio], .panel-shell input[type=checkbox] { accent-color: var(--zen-500); }
.panel-shell input:focus, .panel-shell select:focus, .panel-shell textarea:focus {
  border-color: var(--zen-500);
  box-shadow: 0 0 0 3px rgba(21, 154, 122, .15);
}

/* Tabs */
.panel-tabs {
  display: flex;
  gap: .5rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--panel-line);
  overflow-x: auto;
}
.panel-tab {
  padding: 1rem 1.1rem .8rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  white-space: nowrap;
}
.panel-tab:hover { color: var(--zen-600); }
.panel-tab.is-active { color: var(--zen-700); border-bottom-color: var(--zen-500); }

.tab-pane { display: none; }
.tab-pane.is-active { display: block; }
#tab-dns.is-active, #tab-contacts.is-active, #tab-whois.is-active, #tab-tlds.is-active, #tab-hosting.is-active, #tab-email.is-active { padding: 1.5rem; }

/* Hosting tab — upsell state re-accents the shared plan cards teal. */
.hosting-intro { margin: 0 0 1.25rem; }
.hosting-intro h3 { font-size: 1.05rem; margin: 0 0 .2rem; color: var(--zen-ink); }
.hosting-intro p { margin: 0; font-size: .9rem; color: var(--text-secondary); }
.panel-shell .plan-card { border-color: var(--panel-line-strong); }
.panel-shell .plan-card.is-featured { border: 2px solid var(--zen-500); }
.panel-shell .plan-badge { background: var(--zen-50); color: var(--zen-700); }
.panel-shell .plan-name { color: var(--zen-ink); }
.panel-shell .plan-features { border-top-color: var(--panel-line); }
.panel-shell .plan-features li::before { color: var(--zen-500); }

.tab-empty { text-align: center; color: var(--text-secondary); padding: 2.5rem 1.5rem; }
.tab-empty .btn { margin-top: .75rem; }

/* Settings rows */
.setting-row { border-bottom: 1px solid var(--panel-line); }
.setting-row:last-child { border-bottom: 0; }

.setting-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .95rem;
  text-align: left;
  color: var(--text);
}
.setting-row.has-editor > .setting-head { cursor: pointer; }
.setting-row.has-editor > .setting-head:hover { background: var(--panel-bg); }

.setting-label {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--zen-ink);
}
.setting-value { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.setting-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  color: var(--text-subtle);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}
.setting-note svg { color: var(--zen-500); }

.setting-chevron { flex: 0 0 auto; color: var(--zen-700); transition: transform .2s; }
.setting-row.is-open .setting-chevron { transform: rotate(90deg); }

.setting-editor { display: none; padding: .25rem 1.5rem 1.5rem 1.5rem; }
.setting-row.is-open .setting-editor { display: block; }
.setting-editor form { max-width: 560px; }
.setting-editor label { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-700); margin-bottom: .35rem; }
.setting-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; }
.setting-editor .btn { margin-top: .75rem; }
.setting-hint { font-size: .85rem; color: var(--text-subtle); margin: .5rem 0; }

.radio-line {
  display: flex !important;
  align-items: center;
  gap: .55rem;
  font-weight: 500 !important;
  color: var(--text) !important;
  padding: .3rem 0;
  cursor: pointer;
}
.renew-now { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px dashed var(--panel-line-strong); flex-wrap: wrap; }

.setting-row.is-static .setting-head { cursor: default; }
.setting-row.is-muted { background: var(--panel-bg); }
.setting-row.is-muted .setting-label { color: var(--slate-600); }

.help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--zen-200);
  border-radius: 50%;
  color: var(--zen-600);
  font-size: .68rem;
  font-weight: 700;
  cursor: help;
  flex: 0 0 auto;
}

/* Contacts tab */
.contact-card h3 { margin-bottom: .5rem; color: var(--zen-ink); }
.contact-card .contact-name { font-weight: 600; margin: 0 0 .25rem; }
.contact-org { color: var(--text-subtle); font-weight: 500; }
.contact-line { color: var(--text-secondary); font-size: .95rem; margin: 0 0 .25rem; }
.contact-switch { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--panel-line); max-width: 560px; }
.contact-switch > label { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-700); margin-bottom: .35rem; }
.contact-switch select { max-width: 380px; }

/* Whois stats tab */
.whois-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.whois-stat {
  flex: 1 1 10rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
.whois-stat .stat-value { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--zen-ink); }
.whois-stat .stat-label { color: var(--text-subtle); font-size: .82rem; font-weight: 500; }

.spinner-dark { border-color: rgba(20, 50, 42, .2); border-top-color: var(--zen-500); }

@media (max-width: 900px) {
  .panel-layout { flex-direction: column; gap: 1rem; padding: 1.25rem 1rem 2.5rem; }
  .panel-sidebar { position: static; flex: none; }
  .setting-label { flex-basis: 150px; }
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

/* No top margin: zen surfaces (paper) should run flush into the footer;
   pages provide their own bottom padding. */
.site-footer {
  background: var(--zen-ink);
  color: var(--zen-100);
  padding: 3rem 0 2rem;
}
.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .brand { color: #fff; }
.site-footer .brand .brand-zen { color: var(--zen-200); }
.site-footer .footer-tagline { font-size: .9rem; color: var(--zen-200); max-width: 22rem; margin-top: .5rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--zen-100); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { padding-top: 1.5rem; font-size: .85rem; color: var(--zen-200); }

/* Support */
.support-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.support-filter a {
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  transition: all .2s;
}
.support-filter a:hover { color: var(--zen-600); border-color: var(--zen-200); background: var(--zen-50); }
.support-filter a.is-active { background: var(--zen-500); color: #fff; border-color: var(--zen-500); }

.ticket-sub { display: block; color: var(--text-secondary); font-size: .9rem; margin-top: .15rem; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.ticket-thread { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.ticket-message {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.ticket-message .message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--slate-100);
  color: var(--slate-600);
}
.ticket-message.is-staff .message-avatar {
  background: var(--zen-50);
  color: var(--zen-600);
}
.ticket-message .message-content {
  flex: 1;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  border: 1px solid var(--border-subtle);
}
.ticket-message.is-staff .message-content {
  background: var(--zen-50);
  border-color: rgba(21, 154, 122, .12);
}
.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .25rem;
}
.message-sender { font-weight: 600; font-size: .92rem; color: var(--navy-950); }
.message-time { font-size: .8rem; color: var(--text-subtle); }
.message-body { font-size: .95rem; color: var(--text); line-height: 1.55; }
.message-body p { margin: 0 0 .5rem; }
.message-body p:last-child { margin-bottom: 0; }

.ticket-reply { padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
.ticket-reply h3 { font-size: 1rem; margin-bottom: .75rem; }
.ticket-closed-note {
  padding: 1rem;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .9rem;
  text-align: center;
}

.field-row { margin-bottom: 1rem; }
.field-row label { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-700); margin-bottom: .35rem; }
.field-row input[type="text"],
.field-row input[type="email"],
.field-row select,
.field-row textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
}
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: none;
  border-color: var(--zen-500);
  box-shadow: 0 0 0 3px rgba(21, 154, 122, .12);
}
.field-row.field-inline { display: flex; gap: 1rem; }
.field-row.field-inline > div { flex: 1; }
.field-error { display: block; color: var(--red-500); font-size: .85rem; margin-top: .25rem; }
.field-hint { display: block; color: var(--slate-500); font-size: .8rem; margin-top: .25rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 1rem; }

.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: var(--red-50); color: var(--red-700); border: 1px solid rgba(234, 67, 55, .15); }

@media (max-width: 900px) {
  .field-row.field-inline { flex-direction: column; gap: 0; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .search-bar { padding-left: 1rem; }
  .result-row { flex-wrap: wrap; }
  .result-row .result-price { margin-left: 0; }
}

/* ------------------------------------------------------------------ */
/* Staff panel                                                         */
/* ------------------------------------------------------------------ */

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .6rem 1.25rem;
  background: var(--orange-50);
  color: var(--orange-700);
  border-bottom: 1px solid rgba(247, 144, 9, .25);
  font-size: .92rem;
}
.impersonation-banner form { margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--zen-ink); }
.stat-card .stat-label { color: var(--text-subtle); font-size: .875rem; font-weight: 500; }
a.stat-card:hover .stat-value { color: var(--zen-600); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.filter-bar input[type=search], .filter-bar input[type=text] {
  flex: 1 1 220px;
  min-width: 180px;
}
.filter-bar select { max-width: 200px; }
.filter-bar label { display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--slate-700); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.pagination-info { color: var(--text-subtle); font-size: .875rem; }

@media (max-width: 720px) {
  .impersonation-banner { flex-direction: column; gap: .5rem; }
}

/* ---------------------------------------------------------------------------
   DNS records tab
   --------------------------------------------------------------------------- */

.dns-table { margin-bottom: 1.5rem; }
.dns-table td { vertical-align: top; }
.dns-host { font-weight: 600; word-break: break-all; }
.dns-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
.dns-value + .dns-value { margin-top: .25rem; }
.dns-actions-col { width: 1%; }
.dns-actions { white-space: nowrap; display: flex; gap: .4rem; justify-content: flex-end; }
.dns-actions form { display: inline; }

.btn-danger { color: var(--red-700); border-color: var(--red-500); }
.btn-danger:hover { background: var(--red-50); }

.dns-form { border-top: 1px solid var(--border-subtle); padding-top: 1.25rem; }
.dns-form-title { font-size: 1rem; margin: 0 0 .9rem; }
.dns-form-grid { display: flex; gap: 1rem; margin-bottom: .9rem; }
.dns-field { display: flex; flex-direction: column; gap: .35rem; }
.dns-field > label { font-size: .8rem; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .05em; }
.dns-field input, .dns-field select, .dns-field textarea { width: 100%; }
.dns-form-grid .dns-field:first-child { flex: 1 1 auto; }
.dns-field-type { flex: 0 0 8rem; }
.dns-field-ttl { flex: 0 0 7rem; }
.dns-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

.form-note { background: var(--zen-50, #e7f6f1); color: var(--zen-700, #0d6b55); border-radius: 8px; padding: .6rem .85rem; margin-bottom: 1rem; font-size: .9rem; }
.form-error { background: var(--red-50); color: var(--red-700); border-radius: 8px; padding: .6rem .85rem; margin-bottom: 1rem; font-size: .9rem; }
.field-error { color: var(--red-700); font-size: .8rem; margin: .25rem 0 0; }

@media (max-width: 720px) {
  .dns-form-grid { flex-direction: column; gap: .9rem; }
  .dns-field-type, .dns-field-ttl { flex: 1 1 auto; }
  .dns-actions { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ */
/* Zen transactional flow — the buying journey (cart/checkout, login,  */
/* signup, registrant contact, email verification) borrows the control */
/* panel's warm-paper + teal identity via .panel-shell, with these     */
/* storefront-component adjustments layered on top.                    */
/* ------------------------------------------------------------------ */

.zen-flow {
  /* Warm paper with a faint teal glow so the page never reads as flat white. */
  background:
    radial-gradient(640px 320px at 85% -5%, rgba(21, 154, 122, .07), transparent 60%),
    radial-gradient(520px 280px at 0% 100%, rgba(21, 154, 122, .05), transparent 55%),
    var(--panel-bg);
}

.zen-flow h1, .zen-flow .auth-title { color: var(--zen-ink); }
.zen-flow .page-heading .kicker { color: var(--zen-600); }

/* White cards sit on the paper with the panel's warm hairlines. */
.zen-flow .card { border-color: var(--panel-line); }
.zen-flow .cart-item,
.zen-flow .upsell-row,
.zen-flow .cart-extra { border-color: var(--panel-line); }
.zen-flow .cart-item-extras { border-top-color: var(--panel-line); }
.zen-flow .summary-row.total { border-top-color: var(--panel-line); }
.zen-flow .summary-trust { border-top-color: var(--panel-line); }

/* Teal accents in place of storefront blue/green. */
.zen-flow .card a:not(.btn), .zen-flow .auth-switch a { color: var(--zen-700); font-weight: 600; }
.zen-flow .card a:not(.btn):hover, .zen-flow .auth-switch a:hover { color: var(--zen-600); }
.zen-flow .upsell-tagline { color: var(--zen-600); }
.zen-flow .badge-save { background: var(--zen-50); color: var(--zen-700); }
.zen-flow .free-label { color: var(--zen-700); }
.zen-flow .summary-savings, .zen-flow .summary-savings span { color: var(--zen-700); }
.zen-flow .summary-savings-note { background: var(--zen-50); color: var(--zen-700); }
.zen-flow .summary-trust li::before { color: var(--zen-500); }
.zen-flow .tag-success { background: var(--zen-50); color: var(--zen-700); }
.zen-flow .upsell-cta { background: var(--panel-bg); border: 1px solid var(--panel-line-strong); }

/* Registrant contact form: two columns on desktop so the card feels
   composed rather than a long white strip. */
.contact-card .form-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.1rem;
}
.contact-card .form-stack > p:has(input[name="email"]),
.contact-card .form-stack > p:has(input[name="address1"]),
.contact-card .form-stack > p:has(input[name="address2"]),
.contact-card .form-stack > p:has(select[name="country"]),
.contact-card .form-stack > button {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .contact-card .form-stack { grid-template-columns: 1fr; }
}

/* Cart → Account → Payment progress stepper */
.zen-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  margin: 1rem 0 0;
}
.zen-steps-row { display: flex; justify-content: center; }
.zen-steps-row .zen-steps { margin: 0; }
.zen-step {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-subtle);
}
.zen-step + .zen-step::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--panel-line-strong);
  margin-right: .5rem;
}
.zen-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--panel-line-strong);
  color: var(--text-subtle);
}
.zen-step.is-active { color: var(--zen-700); }
.zen-step.is-active .zen-step-dot { background: var(--zen-500); border-color: var(--zen-500); color: #fff; }
.zen-step.is-done { color: var(--zen-600); }
.zen-step.is-done .zen-step-dot { background: var(--zen-50); border-color: var(--zen-200); color: var(--zen-700); }
