:root {
  /* Color — monochrome premium palette, one functional accent */
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-hover: #F3F4F6;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #0B0D12;
  --text-dim: #6B7280;
  --text-faint: #9CA3AF;
  --black: #111827;
  --black-hover: #1F2937;
  --accent: #2563EB;   /* used sparingly: links, focus rings */
  --ok: #16A34A;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;

  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

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

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}

.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0; }

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

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

/* ---- Status dot ---- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--text-faint); flex-shrink: 0; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.dot--off { background: var(--danger); }

/* ---- Auth pages ---- */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.auth-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  font-size: 15px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.auth-card h1 { font-size: 22px; }
.auth-card__sub { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }
.auth-card__foot { margin-top: 22px; font-size: 14px; color: var(--text-dim); text-align: center; }
.auth-card__foot a { color: var(--text); font-weight: 600; text-decoration: underline; }

.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-faint); }

/* ---- Forms ---- */
form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 6px;
}
form label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.15s ease;
}
input:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08); }

.field-hint { font-size: 12px; color: var(--text-faint); margin: 6px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1D4ED8; text-decoration: none; }
.btn--secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface); text-decoration: none; }
.btn--block { width: 100%; margin-top: 22px; }
.btn[disabled], .btn--disabled {
  background: var(--surface);
  color: var(--text-faint);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn[disabled]:hover, .btn--disabled:hover { background: var(--surface); text-decoration: none; }

.badge-soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: auto;
}

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.alert--error { background: var(--danger-bg); border-color: #FECACA; color: #991B1B; }

/* ---- App shell: header-based nav ---- */
.appheader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}
.appheader__brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.appheader__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link__icon { width: 18px; height: 18px; display: inline-flex; flex-shrink: 0; }
.nav-link__icon svg { width: 100%; height: 100%; }
.nav-link:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.nav-link.is-active { background: var(--accent); color: #fff; }
.nav-link--disabled { color: var(--text-faint); cursor: not-allowed; }
.nav-link--disabled:hover { background: none; }
.appheader__mobile-user { display: none; }

.appheader__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface); text-decoration: none; }
.badge-count--dot {
  position: absolute; top: -6px; right: -6px; margin-left: 0;
}
.appheader__user { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.topbar__role {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 999px;
}
.appheader__logout button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--border-strong); color: var(--text);
  cursor: pointer; border-radius: var(--radius-sm);
}
.appheader__logout svg { width: 18px; height: 18px; }
.appheader__logout button:hover { background: var(--surface); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  width: 36px; height: 36px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ''; display: block; width: 16px; height: 2px; background: var(--text); position: relative;
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

.badge-count {
  margin-left: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

html, body { overflow-x: hidden; max-width: 100%; }

.app-main {
  padding: 88px 40px 56px;
  max-width: 1180px;
  margin: 0 auto;
  animation: fadeInUp 0.35s ease both;
}
/* Centered, not edge-to-edge — generous gutters left/right on wide screens. */
.app-main--full { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.app-main--wide { max-width: 960px; margin: 0 auto; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .app-main { animation: none; }
}

/* ---- Nav dropdowns (hover on desktop, inline on mobile) ---- */
.nav-dropdown { position: relative; }
.nav-link__chevron { width: 10px; height: 10px; display: inline-flex; margin-left: 2px; opacity: 0.6; }
.nav-link__chevron svg { width: 100%; height: 100%; }
.nav-dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
}
.nav-dropdown__item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown__item:hover { background: var(--surface); text-decoration: none; }
@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown__panel { display: block; }
}
.nav-divider-mobile { display: none; }

.appheader__login-btn { padding: 8px 16px; font-size: 13px; }

@media (max-width: 900px) {
  /* iOS Safari auto-zooms into any input/select with font-size under 16px —
     that's the "have to zoom" feeling on forms. Force 16px on mobile only. */
  input, select, textarea, button { font-size: 16px !important; }
  .badge-soon, .tag, .field-hint, .mono { font-size: 12px !important; }

  .appheader { padding: 0 14px; gap: 10px; }
  .appheader__brand span:last-child { display: none; }
  .icon-btn, .menu-toggle, .appheader__logout button { width: 34px; height: 34px; }

  .appheader__nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .appheader__nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: 12px; }
  .nav-dropdown__panel {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    margin-bottom: 4px;
  }
  .nav-divider-mobile { display: block; height: 1px; background: var(--border); margin: 10px 0; }
  .appheader__mobile-user {
    display: block;
    margin-top: 10px;
    padding: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
  }
  .appheader__user, .appheader__logout { display: none; }
  .menu-toggle { display: inline-flex; }
  .app-main, .app-main--full, .app-main--wide { padding: 76px 14px 28px; max-width: 100%; }

  /* Wide tables scroll horizontally inside their own box instead of
     stretching the page and forcing the whole site to zoom out. */
  .table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll .data-table { white-space: nowrap; }
  .hero-search { padding: 28px 16px; }
  .hero-search h1 { font-size: 22px; }
  .hero-search p { font-size: 13px; }
  .hero-search__form { flex-direction: column; }
  .checkout-grid { grid-template-columns: 1fr; }
  .plan-grid, .result-grid, .stat-grid, .settings-grid { grid-template-columns: 1fr; }
  .cart-domain-prompt__existing { flex-wrap: wrap; }
  .cart-domain-prompt__existing input { width: 100%; }
  .plan-card { padding: 22px 18px; }
  .order-summary { padding: 16px; }
  * { min-width: 0; }
}

.hero-search {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin-bottom: 32px;
}
.hero-search h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.hero-search p { color: rgba(255,255,255,0.7); font-size: 15px; margin: 0 0 26px; }
.hero-search__form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.hero-search__form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
}
.hero-search__form input:focus { outline: 3px solid rgba(255,255,255,0.3); }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.result-card--taken { opacity: 0.55; }
.result-card--taken:hover { transform: none; box-shadow: var(--shadow-sm); }
.result-card__name { font-weight: 700; font-size: 16px; word-break: break-all; }
.result-card__status { font-size: 13px; color: var(--text-dim); }
.result-card__price { font-size: 20px; font-weight: 700; }
.result-card__form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.page-head { margin-bottom: 26px; }
.page-head__sub { color: var(--text-dim); font-size: 14px; margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card__label { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.stat-card__value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
}
.empty-state p { margin: 0 0 14px; font-size: 14px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th, .data-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.data-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; background: var(--surface); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tag--admin { background: #111827; color: #fff; }
.tag--client { background: var(--surface); color: var(--text-dim); border: 1px solid var(--border); }

.price-input {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.price-input--sm { width: 60px; }

/* ---- Domain pages ---- */
.search-form-input {
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  width: 100%;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.search-form input {
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
}
.search-form input:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08); }

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}
.form-card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input, .form-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}
.form-card input:focus, .form-card select:focus { border-color: var(--black); outline: none; }

/* ---- Cart / Checkout ---- */
.years-select {
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--bg);
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  max-width: 480px;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 15px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: flex-start;
}
.checkout-form { max-width: none; }
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 84px;
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.order-summary__total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
}
.payment-options { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
}
.payment-option input { width: auto; margin: 0; }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* ---- Domain manage page ---- */
.domain-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.settings-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.settings-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-strong);
  border: none;
  position: relative;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.switch--on { background: var(--black); }
.switch__knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.switch--on .switch__knob { transform: translateX(18px); }

/* ---- Hosting plans ---- */
.billing-toggle { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.1); border-radius: 999px; padding: 4px; }
.billing-toggle__btn {
  border: none; background: none; color: rgba(255,255,255,0.7);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.billing-toggle__btn.is-active { background: #fff; color: var(--black); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card--highlight { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.plan-card__badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.plan-card h3 { font-size: 18px; margin-bottom: 12px; }
.plan-card__price { font-size: 32px; font-weight: 700; margin-bottom: 18px; }
.plan-card__period { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.plan-card__features { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; }
.plan-card__features li { font-size: 13px; color: var(--text-dim); padding-left: 20px; position: relative; }
.plan-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan-card__form { margin-top: auto; }

.cross-sell {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.cross-sell p { font-weight: 600; margin: 0 0 14px; }
.cross-sell > div { justify-content: center; }

/* ---- Homepage ---- */
.hero-search--home { padding: 64px 40px; }
.hero-trust {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.75);
}
.home-section { margin: 56px 0; }
.home-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.home-section__title { font-size: 24px; margin-bottom: 20px; }
.home-section__head .home-section__title { margin-bottom: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); color: var(--accent); margin-bottom: 14px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-dim); margin: 0; }

.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  margin: 56px 0 24px;
}
.cta-banner h2 { font-size: 24px; margin-bottom: 8px; }
.cta-banner p { color: var(--text-dim); margin: 0 0 20px; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__links a { color: var(--text-dim); font-size: 13px; }
.site-footer__copy { color: var(--text-faint); font-size: 12px; width: 100%; text-align: center; margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero-search--home { padding: 36px 18px; }
  .home-section { margin: 36px 0; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

.ticket-thread { display: flex; flex-direction: column; gap: 12px; }
.ticket-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 85%;
}
.ticket-message--admin { background: #EFF6FF; border-color: #BFDBFE; align-self: flex-end; }
.ticket-message__meta { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.ticket-message p { margin: 0; font-size: 14px; white-space: pre-wrap; }

.cart-domain-prompt {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin: -8px 0 10px;
}
.cart-domain-prompt strong { display: block; margin-bottom: 10px; font-size: 13px; }
.cart-domain-prompt__options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cart-domain-prompt__existing { display: flex; gap: 8px; }
.cart-domain-prompt__existing input { width: 220px; }
