/* ── Hostripples Order Form ───────────────────────────────────────────────── */

:root {
  --hrof-primary : var(--hr-primary, #103DBE);
  --hrof-accent  : var(--hr-royal,   #3967E6);
  --hrof-radius  : 10px;
  --hrof-border  : #dee2e6;
}

/* ── Page wrapper ── */
#hrof-wrap {
  max-width: 100%;
  padding: 0 0 3rem;
  font-family: 'Nunito', sans-serif;
}

/* ── Stepper ── */
.hrof-stepper {
  display: flex;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--hrof-border);
}
.hrof-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.hrof-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.hrof-step-num.done   { background: var(--hrof-accent); color: #fff; }
.hrof-step-num.active { background: var(--hrof-accent); color: #fff; }
.hrof-step-num.idle   { background: #f1f3f5; color: #888; border: 1px solid var(--hrof-border); }
.hrof-step-label      { font-size: 13px; color: #888; }
.hrof-step-label.active { color: var(--hrof-accent); font-weight: 600; }
.hrof-step-line       { flex: 1; height: 1px; background: var(--hrof-border); margin: 0 10px; }
.hrof-step-line.done  { background: var(--hrof-accent); }

/* ── Group headline ── */
.hrof-group-head {
  padding: 0 0 1.5rem;
}
.hrof-group-head h1 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.hrof-group-head p  { font-size: 14px; color: #666; margin: 0; }

/* ── Plan card grid ── */
.hrof-plan-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 2rem;
}
.hrof-plan-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hrof-plan-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hrof-plan-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .hrof-plan-grid.cols-3,
  .hrof-plan-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hrof-plan-grid { grid-template-columns: 1fr !important; }
  .hrof-stepper   { overflow-x: auto; }
}

/* ── Plan card ── */
.hrof-card {
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .15s;
}
.hrof-card:hover { box-shadow: 0 4px 20px rgba(57,103,230,.12); transform: translateY(-2px); }
.hrof-card.featured { border: 2px solid var(--hrof-accent); }

.hrof-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--hrof-accent); color: #fff;
  font-size: 10px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; z-index: 1; letter-spacing: .03em;
}

.hrof-card-img {
  width: 100%; height: 64px;
  background: linear-gradient(135deg, var(--hrof-primary) 0%, var(--hrof-accent) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hrof-card-img img   { width: 100%; height: 100%; object-fit: cover; }
.hrof-card-img .icon { font-size: 28px; color: rgba(255,255,255,.35); }

.hrof-card-body { padding: 1rem 1rem .75rem; flex: 1; }
.hrof-card-name { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.hrof-card-tag  { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: .75rem; }
.hrof-features  { list-style: none; padding: 0; margin: 0 0 .5rem; }
.hrof-features li {
  font-size: 12px; color: #555;
  padding: 3px 0; display: flex; align-items: flex-start; gap: 6px;
}
.hrof-features li::before {
  content: '✓'; color: var(--hrof-accent);
  font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
/* Cap feature list at 6 items — products can have 30+ lines in description */
.hrof-features li:nth-child(n+7),
.hrof-feature-list li:nth-child(n+7) { display: none; }

.hrof-card-footer {
  padding: .75rem 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.hrof-price      { font-size: 22px; font-weight: 700; color: var(--hrof-accent); }
.hrof-price-cycle{ font-size: 11px; color: #888; margin-top: 1px; }
.hrof-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.btn-hrof-select {
  background: var(--hrof-accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.btn-hrof-select:hover { background: var(--hrof-primary); }
.hrof-card.featured .btn-hrof-select { background: var(--hrof-primary); }

.btn-hrof-more {
  background: transparent; border: none;
  color: var(--hrof-accent); font-size: 11px;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
  text-decoration: none;
}
.btn-hrof-more:hover { text-decoration: underline; }

/* ── Configure step ── */
.hrof-configure { background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); padding: 1.5rem; }
.hrof-section-title { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid #f0f0f0; }
.hrof-product-name  { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 0 0 .25rem; }
.hrof-product-desc  { font-size: 13px; color: #666; margin: 0 0 1.5rem; }

/* Billing cycle tabs */
.hrof-cycle-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px;
  margin-bottom: 1.25rem;
}
.hrof-cycle-tab {
  padding: 12px 14px;
  border: 1.5px solid var(--hrof-border);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  overflow: hidden;
}
.hrof-ct-name {
  font-size: 10px;
  color: #aaa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}
.hrof-ct-price {
  font-size: 13px;
  color: #1a1a2e;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 3px;
}
.hrof-ct-per {
  font-size: 10px;
  color: #22c55e;
  font-weight: 600;
}
.hrof-cycle-tab.selected {
  border-color: var(--hrof-accent);
  background: linear-gradient(135deg, #f0f3ff 0%, #e8edff 100%);
  box-shadow: 0 0 0 3px rgba(57,103,230,.08);
}
.hrof-cycle-tab.selected .hrof-ct-name  { color: var(--hrof-accent); }
.hrof-cycle-tab.selected .hrof-ct-price { color: var(--hrof-accent); }
.hrof-cycle-tab.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 11px;
  color: var(--hrof-accent);
  font-weight: 800;
}
.hrof-cycle-tab:hover:not(.selected) { border-color: #bbb; background: #fafafa; }
.hrof-cycle-tab .hrof-savings-badge { margin-top: 5px; font-size: 9px; padding: 1px 6px; }

/* Billing cycle radio */
.hrof-cycle-radios { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.hrof-cycle-radio  { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--hrof-border); border-radius: 6px; cursor: pointer; }
.hrof-cycle-radio:has(input:checked) { border-color: var(--hrof-accent); background: #eef1fd; }

/* Billing cycle dropdown */
.hrof-cycle-select { width: 100%; max-width: 320px; padding: 8px 12px; border: 1px solid var(--hrof-border); border-radius: 6px; font-size: 13px; margin-bottom: 1.25rem; }

/* Addons */
.hrof-addon-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.hrof-addon-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--hrof-border); border-radius: 6px;
  cursor: pointer; transition: border-color .15s;
}
.hrof-addon-item:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-addon-price { font-size: 13px; color: var(--hrof-accent); font-weight: 600; }

.hrof-addon-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.hrof-addon-card  {
  border: 1px solid var(--hrof-border); border-radius: 8px; padding: .85rem;
  cursor: pointer; transition: border-color .15s;
}
.hrof-addon-card:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-addon-card input { display: none; }

/* Step nav buttons */
.hrof-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-hrof-back { background: transparent; border: 1px solid var(--hrof-border); color: #555; padding: 8px 18px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn-hrof-continue { background: var(--hrof-accent); color: #fff; border: none; padding: 9px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-hrof-continue:hover { background: var(--hrof-primary); }

/* ── Checkout ── */
.hrof-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) { .hrof-checkout-grid { grid-template-columns: 1fr; } }

.hrof-checkout-panel { background: #fff; border: 1px solid var(--hrof-border); border-radius: var(--hrof-radius); padding: 1.5rem; }
.hrof-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .hrof-form-row { grid-template-columns: 1fr; } }
.hrof-field { margin-bottom: 14px; }
.hrof-field label { font-size: 12px; color: #555; display: block; margin-bottom: 4px; font-weight: 500; }
.hrof-field input, .hrof-field select {
  width: 100%; padding: 8px 12px; font-size: 13px;
  border: 1px solid var(--hrof-border); border-radius: 6px;
  background: #fff; color: #1a1a2e;
  transition: border-color .15s;
}
.hrof-field input:focus, .hrof-field select:focus { border-color: var(--hrof-accent); outline: none; box-shadow: 0 0 0 3px rgba(57,103,230,.1); }

/* Payment gateways */
.hrof-gateways { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hrof-gateway  {
  padding: 8px 14px; border: 1px solid var(--hrof-border); border-radius: 6px;
  cursor: pointer; font-size: 12px; color: #555;
  display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.hrof-gateway.selected { border-color: var(--hrof-accent); background: #eef1fd; color: var(--hrof-accent); font-weight: 600; }
.hrof-gateway-fields { margin-top: 10px; }

/* Order summary */
.hrof-summary { position: sticky; top: 90px; }
.hrof-summary-line { display: flex; justify-content: space-between; font-size: 13px; color: #555; margin-bottom: 8px; }
.hrof-summary-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: #1a1a2e; border-top: 1px solid #f0f0f0; padding-top: 10px; margin-top: 4px; }
.hrof-summary-item-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.hrof-summary-item-cycle { font-size: 12px; color: #888; margin-bottom: 12px; }

.btn-hrof-order {
  display: block; width: 100%; background: var(--hrof-accent); color: #fff;
  border: none; border-radius: 6px; padding: 12px; font-size: 14px;
  font-weight: 600; cursor: pointer; text-align: center;
  margin-top: 14px; transition: background .15s;
}
.btn-hrof-order:hover { background: var(--hrof-primary); }
.hrof-secure-note { text-align: center; font-size: 11px; color: #aaa; margin-top: 8px; }

/* Existing account login toggle */
.hrof-login-toggle { font-size: 13px; color: var(--hrof-accent); cursor: pointer; margin-bottom: 1rem; }
.hrof-login-toggle:hover { text-decoration: underline; }

/* ── Complete page ── */
.hrof-complete { text-align: center; padding: 3rem 2rem; background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); }
.hrof-complete-icon { font-size: 56px; color: #22c55e; margin-bottom: 1rem; }
.hrof-complete h2 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: .5rem; }
.hrof-complete p  { font-size: 14px; color: #666; }
.hrof-complete-actions { display: flex; gap: 10px; justify-content: center; margin-top: 1.5rem; }

/* ── Error page ── */
.hrof-error { text-align: center; padding: 3rem 2rem; background: #fff; border-radius: var(--hrof-radius); border: 1px solid #fca5a5; }
.hrof-error-icon { font-size: 48px; color: #ef4444; margin-bottom: 1rem; }

/* ── View cart ── */
.hrof-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hrof-cart-table th { font-size: 11px; text-transform: uppercase; color: #888; font-weight: 600; letter-spacing: .05em; border-bottom: 1px solid #f0f0f0; padding: 6px 0; }
.hrof-cart-table td { padding: 12px 0; border-bottom: 1px solid #f8f8f8; font-size: 13px; color: #333; vertical-align: middle; }
.hrof-cart-table td:last-child { text-align: right; }

/* ── Domain step ── */
.hrof-domain-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.hrof-domain-opt {
  border: 1px solid var(--hrof-border); border-radius: 8px; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s;
}
.hrof-domain-opt:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-domain-opt-title { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.hrof-domain-opt-hint  { font-size: 12px; color: #888; margin-top: 2px; }
.hrof-domain-input-row { display: flex; gap: 8px; margin-top: 10px; }
.hrof-domain-input-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--hrof-border); border-radius: 6px; font-size: 13px; }
.hrof-domain-input-row select { padding: 8px 10px; border: 1px solid var(--hrof-border); border-radius: 6px; font-size: 13px; }

/* ── Alert ── */
.hrof-alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 1rem; }
.hrof-alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.hrof-alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }

/* ── Complete page (v2 classes) ── */
.hrof-complete-wrap { text-align: center; padding: 3rem 2rem; background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); max-width: 560px; margin: 0 auto; }
.hrof-complete-title { font-size: 26px; font-weight: 700; color: #1a1a2e; margin: 0 0 .5rem; }
.hrof-complete-sub   { font-size: 14px; color: #666; margin: 0 0 1.5rem; }
.hrof-complete-panel { background: #f8f9fb; border: 1px solid #eee; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; text-align: left; }
.hrof-complete-meta  { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.hrof-complete-meta:last-child { border-bottom: 0; }

/* ── Domain option cards (configureproductdomain.tpl) ── */
.hrof-domain-options { display: flex; flex-direction: column; gap: 10px; margin: 1.5rem 0; }
.hrof-domain-option  { display: block; border: 1px solid var(--hrof-border); border-radius: 8px; padding: 0; cursor: pointer; transition: border-color .15s; }
.hrof-domain-option:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-domain-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.hrof-domain-option-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.hrof-domain-option-icon { width: 38px; height: 38px; border-radius: 8px; background: #eef1fd; color: var(--hrof-accent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.hrof-domain-fields { padding: 0 1rem 1rem; }

/* ── Category sidebar ── */
.hrof-cat-sidebar {
  width: 180px;
  flex-shrink: 0;
}
.hrof-cat-item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrof-cat-item:hover   { background: #f1f3f5; color: var(--hrof-accent); }
.hrof-cat-item.active  { background: #eef1fd; color: var(--hrof-accent); font-weight: 600; }
.hrof-cat-item.disabled { opacity: .4; pointer-events: none; }

/* ── Cart helpers ── */
.text-right { text-align: right; }
.hrof-viewcart { background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); padding: 1.5rem; }
.hrof-cart-remove { color: #aaa; font-size: 12px; transition: color .15s; }
.hrof-cart-remove:hover { color: #ef4444; }
.hrof-cart-total td { font-weight: 700; font-size: 14px; color: #1a1a2e; border-top: 2px solid #f0f0f0; padding-top: 14px; }

/* ── Utility ── */
.mb-3 { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════
   UX ENHANCEMENTS — Popular badge, features, savings, trust, mobile
   ══════════════════════════════════════════════ */

/* ── Most popular card highlight ── */
.hrof-card-popular {
  border: 2px solid var(--hrof-accent) !important;
  position: relative;
}

/* ── Popular badge (inline pill inside card-body, above product name) ── */
.hrof-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--hrof-accent), #5b82f7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ── Feature checklist ── */
.hrof-feature-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  text-align: left;
}
.hrof-feature-list li {
  font-size: 12px;
  color: #555;
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.hrof-feature-list li .fas {
  color: #22c55e;
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Savings badge on billing cycle tabs ── */
.hrof-savings-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  margin-top: 3px;
  letter-spacing: .02em;
}
.hrof-savings-badge--sm {
  background: #fef9c3;
  color: #854d0e;
}

/* ── Savings hint on product cards ── */
.hrof-savings-hint {
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  margin-top: 4px;
}

/* ── What's included panel ── */
.hrof-features-panel {
  background: #f8f9fb;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

/* ── Trust strip ── */
.hrof-trust-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .75rem 0;
  margin-bottom: .75rem;
  border-top: 1px solid var(--hrof-border);
  border-bottom: 1px solid var(--hrof-border);
}
.hrof-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.hrof-trust-item .fas {
  color: var(--hrof-accent);
  font-size: 13px;
}

/* ── Password strength bar ── */
.hrof-pw-strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}
.hrof-pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}

/* ── Page fade-in animation ── */
#hrof-wrap {
  animation: hrofFadeIn .25s ease;
}
@keyframes hrofFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cart remove button (unstyled) ── */
.hrof-cart-remove {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  font-size: 11px;
  padding: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.hrof-cart-remove:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* ── Mobile improvements ── */
@media (max-width: 640px) {
  .hrof-cat-sidebar { display: none; }
  .hrof-checkout-grid {
    display: block;
  }
  .hrof-summary {
    position: static !important;
    margin-top: 1.5rem;
  }
  .hrof-stepper {
    font-size: 11px;
  }
  .hrof-step-label {
    display: none;
  }
  .hrof-cycle-tabs {
    flex-wrap: wrap;
  }
  .hrof-cycle-tab {
    flex: 1 1 calc(50% - 6px);
  }
  .hrof-gateways {
    flex-wrap: wrap;
  }
  .hrof-gateway {
    flex: 1 1 calc(50% - 6px);
    font-size: 12px;
    padding: 8px;
  }
  .hrof-trust-strip {
    gap: .5rem;
    font-size: 10px;
  }
  .hrof-form-row {
    flex-direction: column;
  }
  .hrof-cart-table th:nth-child(2),
  .hrof-cart-table td:nth-child(2) {
    display: none;
  }
}

/* ── Checkout grid responsive ── */
@media (max-width: 900px) {
  .hrof-checkout-grid {
    grid-template-columns: 1fr;
  }
  .hrof-summary {
    position: static !important;
  }
}

/* ================================================================
   DOMAIN REGISTER PAGE
   ================================================================ */

/* Search hero */
.hrof-domain-page { /* scoping modifier */ }
.hrof-dsearch-hero {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  border-radius: var(--hrof-radius);
  margin-bottom: 1.5rem;
}
.hrof-dsearch-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}
.hrof-dsearch-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.25rem;
}
.hrof-dsearch-row {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  border: 2px solid var(--hrof-accent);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(57,103,230,.15);
}
.hrof-dsearch-input {
  flex: 1;
  border: none;
  outline: none;
  padding: .875rem 1rem;
  font-size: 15px;
  color: #1a1a2e;
  background: transparent;
  min-width: 0;
  font-family: inherit;
}
.hrof-dsearch-input::placeholder { color: #aaa; }
.hrof-dsearch-btn {
  border: none !important;
  border-radius: 0 !important;
  background: var(--hrof-accent) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 0 1.5rem !important;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .2s;
}
.hrof-dsearch-btn:hover { background: var(--hrof-primary) !important; }

/* Skeleton shimmer animation */
@keyframes hrof-shimmer {
  0%   { background-position: -1200px 0; }
  100% { background-position:  1200px 0; }
}
.hrof-skel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hrof-border);
}
.hrof-skel-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);
  background-size: 2400px 100%;
  animation: hrof-shimmer 1.6s infinite linear;
}
.hrof-skel-text {
  flex: 1; max-width: 220px; height: 14px; border-radius: 6px;
  background: linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);
  background-size: 2400px 100%;
  animation: hrof-shimmer 1.6s infinite linear;
}
.hrof-skel-price {
  width: 64px; height: 14px; border-radius: 6px;
  background: linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);
  background-size: 2400px 100%;
  animation: hrof-shimmer 1.6s infinite linear;
}
.hrof-skel-btn {
  width: 88px; height: 32px; border-radius: 6px;
  background: linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);
  background-size: 2400px 100%;
  animation: hrof-shimmer 1.6s infinite linear;
}

/* Primary result card */
.hrof-primary-wrap {
  background: #fff;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.hrof-primary-skel { padding: 0; }
.hrof-primary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.hrof-primary-domain {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
  word-break: break-all;
}
.hrof-primary-status-area { display: contents; }
.hrof-dstatus {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  white-space: nowrap;
  display: none; /* WHMCS JS toggles visibility */
}
.hrof-dstatus-ok     { background: #dcfce7; color: #16a34a; }
.hrof-dstatus-taken  { background: #fee2e2; color: #dc2626; }
.hrof-dstatus-warn   { background: #fef3c7; color: #d97706; }
.hrof-contact-btn    { font-size: 13px !important; padding: 6px 16px !important; }
.hrof-primary-price-row {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.hrof-primary-price-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}
.hrof-primary-atc {
  background: var(--hrof-accent) !important;
  border: none !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px !important;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.hrof-primary-atc:hover { background: var(--hrof-primary) !important; }

/* Section label (above TLD rows / suggestions) */
.hrof-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  padding: .75rem 1.25rem .6rem;
  border-bottom: 1px solid var(--hrof-border);
  background: #fafbfc;
}

/* Spotlight TLD rows */
.hrof-ext-section {
  background: #fff;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.hrof-ext-list { display: block; }
.hrof-ext-row-wrap { width: 100% !important; float: none !important; }
.hrof-ext-row {
  display: flex;
  align-items: center;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--hrof-border);
  border-left: 3px solid transparent;
  gap: .75rem;
  transition: background .12s;
}
.hrof-ext-row:last-of-type { border-bottom: 0; }
.hrof-ext-row:hover { background: #f8f9fb; }
.hrof-ext-name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.hrof-ext-term { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.hrof-ext-tld  { font-size: 15px; font-weight: 500; color: var(--hrof-accent); }
.hrof-ext-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.hrof-ext-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.hrof-ext-spin  { font-size: 14px; color: #ccc; }
.hrof-ext-result { display: flex; align-items: center; gap: 8px; }
.hrof-ext-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}
.hrof-ext-taken {
  background: none !important;
  border: 1px solid #e5e7eb !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  border-radius: 6px;
  cursor: default !important;
  box-shadow: none !important;
}
.hrof-ext-atc {
  background: var(--hrof-accent) !important;
  border: none !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px !important;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.hrof-ext-atc:hover { background: var(--hrof-primary) !important; }

/* Availability state via :has() — works Chrome 105+, modern Firefox */
.hrof-ext-row:has(.hrof-ext-price:not(.w-hidden))  { border-left-color: #22c55e; }
/* Hide entire spotlight row (including wrapper) when domain is unavailable */
.hrof-ext-row-wrap:has(.hrof-ext-taken:not(.w-hidden)) { display: none !important; }

/* Suggestions section */
.hrof-sugg-section {
  background: #fff;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.hrof-sugg-skel { padding: 0; border: 0; background: transparent; }
.hrof-sugg-list { margin: 0; border-radius: 0; }
/* WHMCS adds .clone to every filled suggestion item; template item has no .clone — target only clones */
.hrof-sugg-item.clone { display: flex !important; }
.hrof-sugg-item {
  align-items: center;
  padding: .75rem 1.25rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hrof-border) !important;
  border-radius: 0 !important;
  gap: 0;
}
/* Hide WHMCS admin bar (only visible to logged-in admins) */
.btn-return-to-admin { display: none !important; }
.hrof-sugg-item .hrof-sugg-domain {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}
/* TLD sits flush against domain name — no gap */
.hrof-sugg-ext { color: var(--hrof-accent); font-weight: 600; font-size: 14px; flex-shrink: 0; }
/* Promo badge: small gap after TLD */
.hrof-sugg-item .promo { margin-left: .5rem; flex-shrink: 0; }
/* Price + button pushed to far right */
.hrof-sugg-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

/* ── TLD chip grid (JS-generated from loaded suggestions) ── */
.hrof-tld-grid {
  background: #fff;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.hrof-tld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .625rem;
}
.hrof-tld-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fb;
  border: 1.5px solid var(--hrof-border);
  border-radius: 8px;
  padding: .5rem .875rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  min-width: 70px;
  text-align: center;
}
.hrof-tld-chip:hover { border-color: var(--hrof-accent); background: #eef2ff; transform: translateY(-1px); }
.hrof-tld-chip.active { border-color: var(--hrof-accent); background: #eef2ff; }
.hrof-tld-chip-ext { font-size: 13px; font-weight: 700; color: var(--hrof-accent); }
.hrof-tld-chip-price { font-size: 10px; color: #888; margin-top: 2px; white-space: nowrap; }
.hrof-sugg-price { font-size: 13px; font-weight: 700; color: #1a1a2e; white-space: nowrap; }
.hrof-sugg-atc {
  background: var(--hrof-accent) !important;
  border: none !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px !important;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.hrof-sugg-atc:hover { background: var(--hrof-primary) !important; }
.hrof-sugg-footer { padding: .75rem 1.25rem; text-align: center; border-top: 1px solid var(--hrof-border); }
.hrof-more-link { color: var(--hrof-accent); font-size: 13px; font-weight: 500; }
.hrof-sugg-warn { padding: .4rem 1.25rem .75rem; }

/* Badge colours */
.hrof-badge-hot  { background: #fee2e2; color: #dc2626; }
.hrof-badge-new  { background: #dcfce7; color: #16a34a; }
.hrof-badge-sale { background: #fef3c7; color: #d97706; }

/* Featured TLDs grid */
.hrof-featured-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hrof-ftld-card {
  flex: 1;
  min-width: 90px;
  max-width: 140px;
  text-align: center;
  padding: 1rem .75rem;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.hrof-ftld-card:hover { border-color: var(--hrof-accent); box-shadow: 0 2px 12px rgba(57,103,230,.1); }
.hrof-ftld-logo-wrap { height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.hrof-ftld-logo-wrap img { max-height: 40px; max-width: 80px; object-fit: contain; }
.hrof-ftld-ext   { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.hrof-ftld-price { font-size: 13px; font-weight: 600; color: var(--hrof-accent); }
.hrof-ftld-period { font-size: 11px; font-weight: 400; color: #888; }

/* Pricing section */
.hrof-pricing-section { margin-top: 1.5rem; }
.hrof-pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hrof-pricing-title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0; }
.hrof-tld-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.hrof-cat-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.hrof-cat-pill:hover,
.hrof-cat-pill.active { background: var(--hrof-accent); border-color: var(--hrof-accent); color: #fff !important; text-decoration: none; }
.hrof-tld-table-wrap {
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.hrof-tbl-head {
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #888;
}
.hrof-tbl-head .tld-column,
.hrof-tbl-head .col-4,
.hrof-tbl-head .col-xs-4 { padding: .625rem .5rem; }
.hrof-tbl-row { transition: background .1s; border-bottom: 1px solid var(--hrof-border) !important; }
.hrof-tbl-row:hover { background: #f8f9fb; }
.hrof-tbl-tld-col { padding: .75rem 1.25rem; display: flex; align-items: center; gap: 8px; }
.hrof-tld-label { font-size: 14px; color: #1a1a2e; }
.hrof-tld-sale-pill { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 10px; }
.hrof-tbl-price-col { padding: .75rem .5rem; font-size: 13px; font-weight: 600; color: #1a1a2e; }
.hrof-tbl-price-col small { font-size: 11px; color: #888; font-weight: 400; display: block; }
.hrof-free-badge { font-size: 11px; color: #16a34a; font-weight: 600; background: #dcfce7; padding: 2px 7px; border-radius: 10px; }
.hrof-na-dash    { color: #ccc; font-size: 13px; }
.hrof-tbl-empty  { text-align: center; padding: 1.5rem; color: #9ca3af; font-size: 13px; }

/* Upsell strip */
.hrof-upsell-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hrof-upsell-card {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid #c7d7fd;
  border-radius: var(--hrof-radius);
  background: linear-gradient(135deg,#f0f4ff,#e8eeff);
}
.hrof-upsell-icon { font-size: 28px; color: var(--hrof-accent); flex-shrink: 0; }
.hrof-upsell-card > div { flex: 1; min-width: 0; }
.hrof-upsell-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; }
.hrof-upsell-sub   { font-size: 12px; color: #555; }
.hrof-upsell-btn {
  background: var(--hrof-accent);
  color: #fff !important;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.hrof-upsell-btn:hover { background: var(--hrof-primary); color: #fff; }
.hrof-upsell-btn-alt { background: var(--hrof-primary); }
.hrof-upsell-btn-alt:hover { background: #0c30a0; }

/* Domain page mobile */
@media (max-width: 640px) {
  .hrof-dsearch-hero { padding: 1.75rem 1rem 1.5rem; }
  .hrof-dsearch-title { font-size: 1.3rem; }
  .hrof-primary-card { flex-wrap: wrap; }
  .hrof-primary-price-row { width: 100%; margin-left: 0; justify-content: space-between; }
  .hrof-ext-row { padding: .75rem 1rem; }
  .hrof-ext-term, .hrof-ext-tld { font-size: 13px; }
  .hrof-pricing-head { flex-direction: column; align-items: flex-start; }
  .hrof-featured-tlds { gap: .5rem; }
  .hrof-ftld-card { min-width: 75px; }
  .hrof-upsell-strip { flex-direction: column; }
}
