/* ============================================================
   Gravity Host — Account Portal CSS
   Matches gravityhost.co.uk design system exactly
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Root Variables (identical to main site) ---- */
:root {
  --gh-bg:         #06060c;
  --gh-surface:    #0c0c16;
  --gh-elevated:   #121220;
  --gh-border:     rgba(255,255,255,0.06);
  --gh-border-hover: rgba(255,255,255,0.12);
  --gh-accent:     #22d3a7;
  --gh-accent-rgb: 34,211,167;
  --gh-accent-dim: rgba(34,211,167,0.12);
  --gh-accent-glow: rgba(34,211,167,0.25);
  --gh-accent-hover: #1bbd94;
  --gh-gold:       #f0c040;
  --gh-gold-dim:   rgba(240,192,64,0.10);
  --gh-text:       #e4e4ec;
  --gh-text-muted: #6e6e84;
  --gh-text-dim:   #44445a;
  --gh-danger:     #ef4444;
  --gh-warning:    #f59e0b;
  --gh-info:       #3b82f6;
  --gh-radius:     12px;
  --gh-radius-lg:  20px;
  --gh-radius-sm:  8px;
  --gh-font-display: 'Bricolage Grotesque', serif;
  --gh-font-body:    'Plus Jakarta Sans', sans-serif;
  --gh-font-mono:    'JetBrains Mono', monospace;
  --gh-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--gh-font-body);
  font-weight: 400;
  color: var(--gh-text);
  background: var(--gh-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--gh-bg);
  --bs-body-color: var(--gh-text);
  --bs-emphasis-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gh-font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

::selection {
  background: var(--gh-accent);
  color: var(--gh-bg);
}

/* ---- Utilities ---- */
.text-accent { color: var(--gh-accent) !important; }
.text-gold { color: var(--gh-gold) !important; }
.font-mono { font-family: var(--gh-font-mono); }
.gradient-text {
  background: linear-gradient(135deg, var(--gh-accent), #67e8bc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR (matches main site exactly)
   ============================================================ */
.gh-navbar {
  padding: 16px 0;
  background: rgba(6,6,12,0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--gh-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--gh-transition), padding var(--gh-transition);
}
.gh-navbar.scrolled {
  padding: 10px 0;
  background: rgba(6,6,12,0.95);
}
.gh-navbar .navbar-brand {
  font-family: var(--gh-font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-navbar .navbar-brand img { height: 36px; }
.gh-navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gh-text-muted);
  padding: 8px 14px !important;
  border-radius: var(--gh-radius-sm);
  transition: color var(--gh-transition), background var(--gh-transition);
}
.gh-navbar .nav-link:hover,
.gh-navbar .nav-link:focus {
  color: var(--gh-text);
  background: rgba(255,255,255,0.04);
}
.gh-navbar .nav-link.active {
  color: var(--gh-accent);
  background: var(--gh-accent-dim);
}
.gh-navbar .nav-link i {
  font-size: 0.8rem;
  opacity: 0.7;
}
.gh-nav-cta {
  background: var(--gh-accent) !important;
  color: var(--gh-bg) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 50rem !important;
  font-size: 0.85rem !important;
  transition: all var(--gh-transition) !important;
}
.gh-nav-cta:hover {
  background: var(--gh-accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gh-accent-glow);
}

/* User avatar in nav */
.gh-nav-user {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.gh-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gh-accent-dim);
  color: var(--gh-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--gh-font-display);
}

/* Dropdown */
.gh-dropdown {
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 6px;
  min-width: 180px;
}
.gh-dropdown .dropdown-item {
  color: var(--gh-text-muted);
  font-size: 0.875rem;
  border-radius: var(--gh-radius-sm);
  padding: 8px 14px;
  transition: all var(--gh-transition);
}
.gh-dropdown .dropdown-item:hover {
  color: var(--gh-text);
  background: rgba(255,255,255,0.04);
}
.gh-dropdown .dropdown-divider {
  border-color: var(--gh-border);
  margin: 4px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gh-accent);
  color: var(--gh-bg);
  font-family: var(--gh-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50rem;
  border: none;
  cursor: pointer;
  transition: all var(--gh-transition);
  text-decoration: none;
}
.btn-portal:hover {
  background: var(--gh-accent-hover);
  color: var(--gh-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gh-accent-glow);
}
.login-form .btn-portal {
  font-weight: 700;
  letter-spacing: 0.3px;
}
.btn-portal-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-portal-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gh-text);
  font-family: var(--gh-font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50rem;
  border: 1px solid var(--gh-border);
  cursor: pointer;
  transition: all var(--gh-transition);
  text-decoration: none;
}
.btn-portal-outline:hover {
  border-color: var(--gh-border-hover);
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.btn-portal-danger {
  background: var(--gh-danger);
  color: #fff;
}
.btn-portal-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* ============================================================
   FORMS
   ============================================================ */
.portal-input {
  width: 100%;
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-sm);
  color: var(--gh-text);
  font-family: var(--gh-font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: all var(--gh-transition);
  outline: none;
}
.portal-input:focus {
  border-color: var(--gh-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34,211,167,0.15);
}
.portal-input::placeholder {
  color: var(--gh-text-dim);
}
.portal-label {
  display: block;
  font-family: var(--gh-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gh-text-muted);
  margin-bottom: 8px;
}
.portal-select {
  width: 100%;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-sm);
  color: var(--gh-text);
  font-family: var(--gh-font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: all var(--gh-transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e6e84' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.portal-select:focus {
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 3px var(--gh-accent-dim);
}
textarea.portal-input {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   CARDS
   ============================================================ */
.portal-card {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 24px;
  transition: all var(--gh-transition);
}
.portal-card:hover {
  border-color: var(--gh-border-hover);
}
.portal-card-title {
  font-family: var(--gh-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-card-title i {
  color: var(--gh-accent);
  font-size: 1rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-portal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50rem;
}
.badge-active {
  background: rgba(34,211,167,0.1);
  color: var(--gh-accent);
  border: 1px solid rgba(34,211,167,0.2);
}
.badge-pending {
  background: var(--gh-gold-dim);
  color: var(--gh-gold);
}
.badge-suspended {
  background: rgba(239,68,68,0.12);
  color: var(--gh-danger);
}
.badge-paid {
  background: rgba(34,211,167,0.1);
  color: var(--gh-accent);
  border: 1px solid rgba(34,211,167,0.2);
}
.badge-unpaid {
  background: rgba(245,158,11,0.12);
  color: var(--gh-warning);
}
.badge-overdue {
  background: rgba(239,68,68,0.12);
  color: var(--gh-danger);
}
.badge-open {
  background: rgba(59,130,246,0.12);
  color: var(--gh-info);
}
.badge-answered {
  background: var(--gh-accent-dim);
  color: var(--gh-accent);
}
.badge-closed {
  background: rgba(255,255,255,0.03);
  color: var(--gh-text-muted);
  border: 1px solid var(--gh-border);
}

/* ============================================================
   TABLES
   ============================================================ */
.portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
}
.portal-table th {
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--gh-border);
  text-align: left;
}
.portal-table td {
  font-size: 0.9rem;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gh-border);
  color: var(--gh-text);
  white-space: nowrap;
}
/* Allow description column to wrap */
.portal-table td:nth-child(3) {
  white-space: normal;
  min-width: 200px;
}
.portal-table tbody tr {
  transition: background var(--gh-transition);
}
.portal-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.portal-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}
.login-section::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background: url('/images/portal/login-hero.png') center/cover no-repeat;
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 40px 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 60px rgba(34,211,167,0.06);
  backdrop-filter: blur(8px);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo img {
  height: 36px;
  margin-bottom: 12px;
}
.login-logo p {
  font-size: 0.9rem;
  color: var(--gh-text-muted);
}
.login-form .form-group {
  margin-bottom: 20px;
}
.login-form .btn-portal {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}
.login-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gh-text-muted);
}
.login-links a {
  color: var(--gh-text-muted);
  transition: color var(--gh-transition);
}
.login-links a:hover {
  color: var(--gh-text);
}
.login-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gh-border);
}
.login-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gh-text-muted);
}
.login-trust-item i {
  color: var(--gh-accent);
  font-size: 0.85rem;
}

/* Error/success alerts */
.portal-alert {
  padding: 12px 16px;
  border-radius: var(--gh-radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.portal-alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}
.portal-alert-success {
  background: var(--gh-accent-dim);
  border: 1px solid rgba(34,211,167,0.2);
  color: #86efac;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.portal-section {
  padding: 40px 0;
}
.portal-greeting {
  margin-bottom: 32px;
}
.portal-greeting h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.portal-greeting p {
  color: var(--gh-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 20px;
  transition: all var(--gh-transition);
}
.stat-card:hover {
  border-color: var(--gh-border-hover);
  transform: translateY(-2px);
}
.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--gh-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1rem;
}
.stat-card-icon.accent {
  background: var(--gh-accent-dim);
  color: var(--gh-accent);
}
.stat-card-icon.gold {
  background: var(--gh-gold-dim);
  color: var(--gh-gold);
}
.stat-card-icon.info {
  background: rgba(59,130,246,0.12);
  color: var(--gh-info);
}
.stat-card-icon.danger {
  background: rgba(239,68,68,0.12);
  color: var(--gh-danger);
}
.stat-card-value {
  font-family: var(--gh-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card-label {
  font-size: 0.78rem;
  color: var(--gh-text-muted);
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  color: var(--gh-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--gh-transition);
}
.quick-action:hover {
  border-color: var(--gh-accent);
  color: var(--gh-accent);
  background: var(--gh-accent-dim);
}
.quick-action i {
  color: var(--gh-accent);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

/* Service list items */
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gh-border);
}
.service-item:last-child {
  border-bottom: none;
}
.service-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.service-info p {
  font-size: 0.82rem;
  color: var(--gh-text-muted);
  margin: 0;
}
.service-meta {
  text-align: right;
}
.service-price {
  font-family: var(--gh-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gh-accent);
}
.service-renewal {
  font-size: 0.78rem;
  color: var(--gh-text-dim);
}

/* Invoice list items */
.invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gh-border);
}
.invoice-item:last-child {
  border-bottom: none;
}
.invoice-id {
  font-family: var(--gh-font-mono);
  font-size: 0.82rem;
  color: var(--gh-text-dim);
}
.invoice-amount {
  font-family: var(--gh-font-display);
  font-weight: 600;
  color: #fff;
}

/* Empty state */
.portal-empty {
  text-align: center;
  padding: 40px 20px;
}
.portal-empty i {
  font-size: 2.5rem;
  color: var(--gh-text-dim);
  margin-bottom: 16px;
}
.portal-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.portal-empty p {
  font-size: 0.88rem;
  color: var(--gh-text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.portal-page-header {
  padding: 32px 0 0;
  margin-bottom: 32px;
}
.portal-page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.portal-page-header p {
  color: var(--gh-text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.portal-page-header .page-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ============================================================
   FOOTER (matches main site exactly)
   ============================================================ */
.gh-footer {
  background: var(--gh-surface);
  border-top: 1px solid var(--gh-border);
  padding: 48px 0 32px;
}
.gh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.gh-footer-brand {
  font-family: var(--gh-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gh-footer-brand img { height: 28px; }
.gh-footer-desc {
  font-size: 0.85rem;
  color: var(--gh-text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.gh-footer h6 {
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-text-dim);
  margin-bottom: 1rem;
}
.gh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gh-footer-links li { margin-bottom: 0.5rem; }
.gh-footer-links a {
  font-size: 0.88rem;
  color: var(--gh-text-muted);
  transition: color var(--gh-transition);
}
.gh-footer-links a:hover { color: var(--gh-accent); }
.gh-footer-bottom {
  border-top: 1px solid var(--gh-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.gh-footer-bottom p {
  font-size: 0.78rem;
  color: var(--gh-text-dim);
  margin: 0;
}
.gh-footer-socials {
  display: flex;
  gap: 12px;
}
.gh-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gh-text-muted);
  font-size: 0.85rem;
  transition: all var(--gh-transition);
}
.gh-footer-socials a:hover {
  border-color: var(--gh-accent);
  color: var(--gh-accent);
  background: var(--gh-accent-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.portal-table th {
  color: var(--gh-text-muted);
}

@media (max-width: 991px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .gh-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .portal-greeting h1 {
    font-size: 1.4rem;
  }
.login-section {
    padding: 40px 24px;
  }
  .login-card {
    padding: 32px 24px;
  }
}

@media (max-width: 575px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card-value {
    font-size: 1.3rem;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .gh-footer-grid {
    grid-template-columns: 1fr;
  }
  .gh-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .login-trust {
    flex-wrap: wrap;
    gap: 16px;
  }
  .login-trust-item {
    font-size: 0.7rem;
  }
  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .service-meta {
    text-align: left;
  }
}

/* ============================================================
   DOMAINS — Hero + Marketing Page
   ============================================================ */
.domain-hero {
  text-align: center;
  padding: 80px 16px 48px;
  position: relative;
  overflow: hidden;
}
.domain-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: url('/images/portal/domain-globe.png') center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
  /* No mix-blend-mode — image has built-in alpha fade to transparent */
}
.domain-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(34,211,167,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.domain-hero-title {
  font-family: var(--gh-font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.domain-hero-sub {
  font-size: 1rem;
  color: var(--gh-text-muted);
  margin-bottom: 32px;
}
.domain-hero-search {
  max-width: 560px;
  margin: 0 auto;
}
.domain-hero-search-inner {
  display: flex;
  align-items: center;
  background: var(--gh-surface);
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 50rem;
  padding: 6px 6px 6px 20px;
  transition: border-color var(--gh-transition), box-shadow var(--gh-transition);
}
.domain-hero-search-inner:focus-within {
  border-color: var(--gh-accent) !important;
  box-shadow: 0 0 0 3px rgba(34,211,167,0.1);
}
.domain-search-icon {
  color: var(--gh-text-dim);
  font-size: 0.9rem;
  margin-right: 12px;
  flex-shrink: 0;
}
.domain-hero-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--gh-text);
  font-family: var(--gh-font-body);
  font-size: 1rem;
  min-width: 0;
  padding: 10px 4px;
}
.domain-hero-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.domain-hero-input::placeholder {
  color: var(--gh-text-muted);
  opacity: 1;
}
.domain-hero-btn {
  padding: 12px 28px;
  border-radius: 50rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}
/* ── Domain TLD validation hint ── */
.domain-tld-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 12px auto 0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  animation: nudge-in 0.2s ease;
}
.domain-tld-supported {
  color: #e4e4ec;
  background: rgba(34,211,167,0.05);
  border: 1px solid rgba(34,211,167,0.2);
}
.domain-tld-supported i { color: var(--gh-accent); }
.domain-tld-supported strong { color: var(--gh-accent); font-family: var(--gh-font-mono); }
.domain-tld-unsupported {
  color: #e4e4ec;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
}
.domain-tld-unsupported i { color: #ef4444; }
.domain-tld-unsupported strong { color: #ef4444; font-family: var(--gh-font-mono); }
/* Disabled search button */
.domain-hero-btn:disabled,
.domain-hero-btn[disabled] {
  background: #121220 !important;
  color: #44445a !important;
  border: 1px solid rgba(255,255,255,0.04);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}
@media (max-width: 768px) {
  .domain-tld-hint {
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 10px 14px;
    flex-wrap: wrap;
    row-gap: 2px;
  }
}

/* ── Domain Sticky Register Bar ── */
.domain-register-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--gh-surface);
  border-top: 1px solid var(--gh-border);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.domain-register-bar-inner {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.domain-register-bar-btn {
  padding: 10px 28px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .domain-register-bar { padding: 16px; }
  .domain-register-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .domain-register-bar-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    padding: 14px;
  }
}

.domain-hero-tlds {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.domain-hero-tld {
  font-family: var(--gh-font-mono);
  font-size: 0.75rem;
  color: var(--gh-text-dim);
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: 50rem;
  padding: 6px 14px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}
.domain-hero-tld:hover {
  border-color: rgba(34,211,167,0.3);
}
.domain-hero-tld strong {
  color: var(--gh-accent);
}
@media (max-width: 768px) {
  .domain-hero-tlds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    max-width: 100%;
    padding: 0 16px;
  }
  .domain-hero-tld {
    font-size: 0.72rem;
    padding: 6px 10px;
    text-align: center;
  }
}

/* Feature cards */
.domain-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.domain-feature-card {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 28px;
  transition: all var(--gh-transition);
}
.domain-feature-card:hover {
  border-color: var(--gh-border-hover);
  transform: translateY(-2px);
}
.domain-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--gh-radius);
  background: var(--gh-accent-dim);
  color: var(--gh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 16px;
}
.domain-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.domain-feature-card p {
  font-size: 0.85rem;
  color: var(--gh-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Results */
.domain-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  max-width: 100%;
  overflow-x: hidden;
}
.domain-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  transition: all var(--gh-transition);
}
.domain-result:hover { transform: translateY(-1px); }
.domain-result.domain-available { border-color: rgba(34,211,167,0.15); }
.domain-result.domain-available:hover {
  border-color: var(--gh-accent);
  background: rgba(34,211,167,0.04);
}
.domain-result.domain-taken { opacity: 0.45; }
.domain-result-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.domain-result-name {
  font-family: var(--gh-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.domain-result-ext {
  color: var(--gh-text-muted);
  font-weight: 500;
}
.domain-result-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.domain-result-price {
  font-family: var(--gh-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gh-accent);
}
.domain-result-price small {
  font-size: 0.75rem;
  color: var(--gh-text-muted);
  font-weight: 500;
}
/* Domain search loading animation */
.domain-loading {
  text-align: center;
  padding: 48px 20px;
}
.domain-loading-dots {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}
.domain-loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gh-accent);
  animation: domain-bounce 1.4s ease-in-out infinite;
}
.domain-loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.domain-loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes domain-bounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}
.domain-loading-text {
  font-size: 0.9rem;
  color: var(--gh-text-muted);
}
.domain-loading-tld {
  font-family: var(--gh-font-mono);
  font-size: 0.78rem;
  color: var(--gh-text-dim);
  margin-top: 8px;
}

/* Domain result entry animation */
.domain-result {
  animation: domain-fade-in 0.3s ease forwards;
  opacity: 0;
}
.domain-result:nth-child(1) { animation-delay: 0.05s; }
.domain-result:nth-child(2) { animation-delay: 0.1s; }
.domain-result:nth-child(3) { animation-delay: 0.15s; }
.domain-result:nth-child(4) { animation-delay: 0.2s; }
.domain-result:nth-child(5) { animation-delay: 0.25s; }
.domain-result:nth-child(6) { animation-delay: 0.3s; }
@keyframes domain-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.domain-result.domain-taken {
  animation: domain-fade-in-dim 0.3s ease forwards;
}
@keyframes domain-fade-in-dim {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.45; transform: translateY(0); }
}

.domain-results-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--gh-border);
}
.domain-results-footer p {
  color: var(--gh-text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.domain-ns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.domain-ns code {
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  padding: 8px 16px;
  border-radius: var(--gh-radius-sm);
  font-family: var(--gh-font-mono);
  font-size: 0.82rem;
  color: var(--gh-accent);
  word-break: break-all;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pricing grid */
.domain-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.domain-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--gh-bg);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-sm);
  transition: border-color var(--gh-transition);
}
.domain-price-item:hover { border-color: var(--gh-border-hover); }
.domain-price-tld {
  font-family: var(--gh-font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.domain-price-note {
  display: block;
  font-size: 0.7rem;
  color: var(--gh-text-dim);
}
.domain-price-amount {
  font-family: var(--gh-font-mono);
  font-size: 0.9rem;
  color: var(--gh-accent);
  font-weight: 600;
}

@media (max-width: 767px) {
  .domain-hero-title { font-size: 1.8rem; }
  .domain-hero { padding: 60px 16px 32px; }
  .domain-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .domain-hero-search-inner {
    flex-direction: column;
    border: none !important;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    gap: 12px;
    box-shadow: none !important;
  }
  .domain-hero-search-inner:focus-within {
    box-shadow: none !important;
  }
  .domain-search-icon { display: none; }
  .domain-hero-input {
    background: var(--gh-surface) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 50rem !important;
    padding: 16px 24px !important;
    text-align: center;
    width: 100%;
  }
  .domain-hero-input:focus {
    border-color: var(--gh-accent) !important;
    box-shadow: 0 0 0 3px rgba(34,211,167,0.1) !important;
  }
  .domain-hero-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 50rem;
  }
  .domain-price-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-result {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 12px !important;
    padding: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    align-items: center !important;
  }
  .domain-result-left {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 6px !important;
  }
  .domain-result-name {
    font-size: 0.9rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
  }
  .domain-result-badge {
    flex-shrink: 0 !important;
    font-size: 0.6rem !important;
  }
  .domain-result-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .domain-result-right .btn-portal {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
  .domain-result-price {
    font-size: 0.9rem !important;
  }
}

/* ============================================================
   ORDER PAGE
   ============================================================ */
/* Storage display */
.storage-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.storage-display-num {
  font-family: var(--gh-font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--gh-accent);
  line-height: 1;
}
.storage-display-unit {
  font-family: var(--gh-font-mono);
  font-size: 1.2rem;
  color: var(--gh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Range slider */
.storage-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  background: linear-gradient(to right, var(--gh-accent) var(--slider-progress, 0%), var(--gh-elevated) var(--slider-progress, 0%));
}
.storage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--gh-accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 6px rgba(34,211,167,0.15);
  transition: transform 0.15s ease;
}
.storage-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.storage-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--gh-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--gh-bg);
  box-shadow: 0 2px 8px rgba(34,211,167,0.3);
}
.storage-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  color: var(--gh-text-dim);
}

/* Spec grid */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--gh-border);
}
.spec-item:nth-last-child(-n+2) {
  border-bottom: none;
}
.spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gh-border);
  color: var(--gh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.spec-detail strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gh-text);
}
.spec-detail strong span,
#spec-storage {
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: var(--gh-text) !important;
  display: inline !important;
}
.spec-detail > span {
  font-size: 0.78rem;
  color: var(--gh-text-dim);
}

@media (max-width: 575px) {
  .storage-display-num { font-size: 3rem; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-item:nth-last-child(2) { border-bottom: 1px solid var(--gh-border); }
  .spec-item:last-child { border-bottom: none; }
}

/* Legacy — keep for any remaining card usage */
.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.order-card {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--gh-transition);
}
.order-card:hover {
  border-color: var(--gh-border-hover);
  transform: translateY(-4px);
}
.order-card-popular {
  border-color: var(--gh-accent);
  transform: scale(1.03);
  z-index: 1;
}
.order-card-popular:hover {
  transform: scale(1.03) translateY(-4px);
}
.order-card-selected {
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 3px var(--gh-accent-dim);
}
.order-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gh-accent);
  color: var(--gh-bg);
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50rem;
}
.order-card-name {
  font-family: var(--gh-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.order-card-price {
  margin-bottom: 16px;
}
.order-price-amount {
  font-family: var(--gh-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gh-accent);
}
.order-price-term {
  font-family: var(--gh-font-mono);
  font-size: 0.85rem;
  color: var(--gh-text-muted);
}
.order-card-desc {
  font-size: 0.85rem;
  color: var(--gh-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.order-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.order-features li {
  font-size: 0.88rem;
  color: var(--gh-text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-features li i {
  color: var(--gh-accent);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}
.order-footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gh-border);
}
.order-footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gh-text-dim);
}
.order-footer-item i {
  color: var(--gh-accent);
  font-size: 0.85rem;
}
@media (max-width: 575px) {
  .order-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
.order-terms {
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--gh-radius-sm);
}
.order-term {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.82rem;
}
.order-term-label {
  color: var(--gh-text-muted);
}
.order-term-price {
  font-weight: 600;
  color: var(--gh-text);
}

/* KB card hover (article links) */
a.portal-card {
  transition: all var(--gh-transition);
}
a.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,167,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ============================================================
   KB ARTICLE CONTENT
   ============================================================ */
.kb-article-content {
  font-size: 0.95rem;
  line-height: 1.8;
}
.kb-article-content h1, .kb-article-content h2, .kb-article-content h3 {
  margin: 1.5em 0 0.5em;
}
.kb-article-content p { margin-bottom: 1em; }
.kb-article-content code {
  background: var(--gh-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--gh-font-mono);
  font-size: 0.88em;
}
.kb-article-content pre {
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-sm);
  padding: 16px;
  overflow-x: auto;
}
.kb-article-content img {
  max-width: 100%;
  border-radius: var(--gh-radius-sm);
}
.kb-article-content a { color: var(--gh-accent); }

/* ============================================================
   HOSTING CARDS (Dashboard + Services)
   ============================================================ */
.hosting-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--gh-border);
}
.hosting-card:last-child { border-bottom: none; }
.hosting-card-header {
  margin-bottom: 14px;
}
.hosting-card-domain {
  font-family: var(--gh-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.hosting-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gh-text-muted);
  flex-wrap: wrap;
}
.hosting-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hosting-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gh-text);
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-sm);
  text-decoration: none;
  transition: all var(--gh-transition);
  min-height: 38px;
}
.hosting-btn:hover {
  color: #fff;
  border-color: var(--gh-border-hover);
  background: rgba(255,255,255,0.04);
}
.hosting-btn i {
  font-size: 0.75rem;
  color: var(--gh-accent);
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.hosting-service-card {
  padding: 20px 24px;
}

/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.service-quick-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.service-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  text-decoration: none;
  transition: all var(--gh-transition);
  text-align: center;
}
.service-quick-btn:hover {
  border-color: var(--gh-accent);
  background: var(--gh-accent-dim);
  transform: translateY(-2px);
}
.service-quick-btn i {
  font-size: 1.4rem;
  color: var(--gh-accent);
}
.service-quick-btn span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.service-quick-btn small {
  font-size: 0.75rem;
  color: var(--gh-text-dim);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.detail-rows {
  display: flex;
  flex-direction: column;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gh-border);
  font-size: 0.88rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row > span:first-child {
  color: var(--gh-text-muted);
}
.detail-row strong {
  color: var(--gh-text);
}

@media (max-width: 767px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-quick-btns {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-quick-btn {
    flex-direction: row;
    padding: 16px;
    text-align: left;
  }
  .service-quick-btn i {
    font-size: 1.1rem;
  }
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
  .hosting-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hosting-btn {
    justify-content: center;
    min-height: 44px;
  }
  .hosting-btn:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
/* reCAPTCHA badge — completely hidden (attribution text is in the page per Google ToS) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  bottom: -100px !important;
  right: -100px !important;
}

/* reCAPTCHA attribution notice — subtle, small, grey */
.recaptcha-notice {
  font-family: var(--gh-font-body);
  font-size: 11px !important;
  color: var(--gh-text-dim) !important;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.recaptcha-notice a {
  color: var(--gh-text-dim) !important;
  text-decoration: none;
}
.recaptcha-notice a:hover {
  color: var(--gh-text-muted) !important;
}

/* Nameserver boxes — subtle accent tint */
.domain-ns code {
  background: rgba(34,211,167,0.04);
  border-color: rgba(34,211,167,0.12);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gh-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gh-border-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gh-text-dim);
}

/* ============================================================
   ADMIN PORTAL — Table & Button Polish (Sophie review fixes)
   ============================================================ */

/* Better table row density */
.portal-table thead th {
  padding: 14px 16px !important;
  font-family: var(--gh-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gh-text-dim);
}
.portal-table tbody td {
  padding: 14px 16px !important;
  vertical-align: middle;
}

/* Consistent action button heights */
.hosting-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Dropdown menu dark theme */
.dropdown-menu {
  background: var(--gh-elevated) !important;
  border: 1px solid var(--gh-border) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}
.dropdown-item {
  color: var(--gh-text) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}
.dropdown-item:hover {
  background: var(--gh-surface) !important;
  color: var(--gh-accent) !important;
}

/* Modal dark theme */
.modal-content {
  background: var(--gh-surface) !important;
  border: 1px solid var(--gh-border) !important;
  border-radius: 20px !important;
}
.modal-header, .modal-footer {
  border-color: var(--gh-border) !important;
}
.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ============================================================
   ORDER PAGE — Sophie's conversion fixes
   ============================================================ */

/* Input fields need elevated background to stand out on surface cards */
.portal-input {
  background-color: var(--gh-elevated) !important;
}

/* Required asterisks in gold not red */
.portal-label span[style*="danger"] {
  color: var(--gh-gold) !important;
}

/* Cards get subtle depth shadow */
.portal-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile: prevent title overflow */
@media (max-width: 768px) {
  .portal-page-header h1,
  .portal-section h1 {
    font-size: 1.6rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ============================================================
   ADMIN PORTAL — SOPHIE AUDIT FIXES (26 Mar 2026)
   Nav, tables, mobile, touch targets, consistency
   ============================================================ */

/* Admin nav — horizontal scroll on mobile */
@media (max-width: 992px) {
  .gh-navbar .d-flex.align-items-center.gap-3 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }
  .gh-navbar .d-flex.align-items-center.gap-3::-webkit-scrollbar {
    display: none;
  }
  .gh-navbar .nav-link {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* Table row hover — stronger highlight */
.portal-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

/* Table wrap — ensure all tables allow horizontal scroll */
.portal-card .portal-table {
  min-width: 500px;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
  .btn-portal, .btn-portal-outline, .btn-portal-sm {
    min-height: 40px;
    padding: 8px 16px;
  }
  .hosting-btn {
    min-height: 36px;
    padding: 6px 12px;
  }
  /* Filter pills — scrollable */
  .d-flex.gap-2.mb-4 {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .d-flex.gap-2.mb-4::-webkit-scrollbar {
    display: none;
  }
  .d-flex.gap-2.mb-4 > a,
  .d-flex.gap-2.mb-4 > button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Container padding — consistent on mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Admin modals — full width on mobile */
@media (max-width: 575px) {
  .modal-dialog {
    margin: 8px;
    max-width: calc(100vw - 16px);
  }
  .modal-content {
    border-radius: 16px !important;
  }
  .modal-body .portal-input {
    width: 100% !important;
  }
}

/* Dropdown menus — dark theme */
.dropdown-menu {
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 6px;
}
.dropdown-item {
  color: var(--gh-text);
  border-radius: var(--gh-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(255,255,255,0.04);
  color: var(--gh-text);
}

/* Admin stat cards — 2-col grid on small screens */
@media (max-width: 575px) {
  .stats-row.admin-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

/* Quick actions grid — 2-col on mobile */
@media (max-width: 575px) {
  .quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Invoice action buttons — tighter on mobile */
@media (max-width: 768px) {
  .invoice-item .d-flex.gap-1 {
    gap: 2px !important;
  }
  .invoice-item .hosting-btn {
    padding: 4px 8px;
    font-size: 0.65rem !important;
  }
}

/* KB article content — readable on all screens */
.kb-article-content {
  font-size: 0.95rem;
  line-height: 1.8;
}
.kb-article-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: #fff;
}
.kb-article-content h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: #fff;
}
.kb-article-content ul, .kb-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 16px;
}
.kb-article-content li {
  margin-bottom: 6px;
  color: var(--gh-text-muted);
}
.kb-article-content code {
  background: var(--gh-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--gh-font-mono);
  font-size: 0.88em;
}
.kb-article-content a {
  color: var(--gh-accent);
}
.kb-article-content table {
  width: 100%;
  margin: 12px 0;
}
.kb-article-content td {
  padding: 4px 0;
}

/* Sophie audit round 2 — global polish */

/* Hosting buttons — enforce pill shape */
.hosting-btn {
  border-radius: 50rem !important;
}

/* Would-send preview boxes in tasks preview */
.would-send-preview,
.portal-card code,
.portal-card pre {
  background-color: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-sm);
  padding: 8px 12px;
  font-family: var(--gh-font-mono);
  font-size: 0.8rem;
  color: var(--gh-text);
}

/* Form labels in admin — mono font */
.portal-card label,
.modal-body label {
  font-family: var(--gh-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gh-text-muted);
  margin-bottom: 6px;
  display: block;
}

/* Input focus state */
.portal-input:focus {
  border-color: var(--gh-accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 167, 0.08);
}

/* ============================================================
   ADMIN — GROUPED INVOICE CARDS
   ============================================================ */
.inv-group-card {
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.inv-group-card.multi {
  border-left: none;
  box-shadow: inset 4px 0 0 var(--gh-gold), 0 0 0 1px rgba(255,255,255,0.06);
}
.inv-group-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
@media (max-width: 768px) {
  .inv-group-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
  }
  .inv-group-row .inv-row-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .inv-group-row .inv-row-desc {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .inv-group-actions {
    width: 100%;
  }
  .inv-group-actions .d-flex {
    flex-wrap: wrap;
  }
}

/* Admin table mobile scroll */
@media (max-width: 768px) {
  .portal-table { min-width: 800px; }
  .inv-group-card .d-flex { flex-wrap: wrap; }
  .inv-group-card [style*="font-size:0.78rem"][style*="margin-left"] {
    margin-left: 0 !important;
    display: block;
    word-break: break-word;
  }
  /* Icon-only buttons on mobile when space is tight */
  .inv-group-row .dropdown-toggle { padding: 3px 6px; font-size: 0.6rem !important; }
}

/* ============================================================
   DASHBOARD — MOBILE RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 768px) {
  /* Dashboard items: flex-wrap handles mobile naturally */

  /* Quick actions: 2-column grid on mobile */
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* Hosting buttons: wrap properly */
  .hosting-card-actions {
    gap: 6px;
  }
  .hosting-card-actions .hosting-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  /* Dashboard grid: single column */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats row: horizontal scroll */
  .stats-row {
    display: flex !important;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stats-row::-webkit-scrollbar { display: none; }
  .stats-row .stat-card {
    min-width: 130px;
    flex: 0 0 auto;
  }

  /* Domain renewal text truncation */
  .invoice-item [style*="font-weight:600"][style*="font-size:0.88rem"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
}

/* ── Sophie fixes: Dashboard + Billing (2026-03-29) ── */

/* Right-align last 3 data columns (Amount, Status, Paid) — NOT the actions column */
table.portal-table th:nth-last-child(2),
table.portal-table th:nth-last-child(3),
table.portal-table th:nth-last-child(4),
table.portal-table td:nth-last-child(2),
table.portal-table td:nth-last-child(3),
table.portal-table td:nth-last-child(4) {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}
table.portal-table td:nth-last-child(2) > *,
table.portal-table td:nth-last-child(3) > *,
table.portal-table td:nth-last-child(4) > * {
  text-align: right !important;
  margin-left: auto !important;
}
table.portal-table th:last-child,
table.portal-table td:last-child {
  padding-right: 24px !important;
}

/* Quick actions hover state */
.quick-action:hover {
  background: var(--gh-elevated) !important;
  border-color: rgba(34,211,167,0.2) !important;
}

/* Mobile billing table — horizontal scroll */
@media (max-width: 768px) {
  .portal-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .portal-table-wrap::-webkit-scrollbar {
    display: none;
  }
  .portal-table {
    min-width: 800px;
  }

  /* Stats cards — snap scroll, no scrollbar */
  .stats-row {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 8px;
  }
  .stats-row::-webkit-scrollbar {
    display: none;
  }
  .stat-card {
    min-width: 140px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ── KB Article Content Styling ── */
.kb-article-content img {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  background-color: #06060c;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
/* Hero SVGs should not have the screenshot frame */
.kb-article-content > div:first-child img[src$=".svg"],
.kb-article-content img[src$=".svg"] {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin: 1rem auto 2rem;
}
.kb-article-content code {
  font-family: var(--gh-font-mono);
  background-color: var(--gh-elevated);
  color: var(--gh-accent);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--gh-border);
  font-size: 0.85em;
  word-break: break-all;
}
.kb-article-content pre code {
  display: block;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  color: var(--gh-text);
}
.kb-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--gh-surface);
  border-radius: 12px;
  overflow: hidden;
}
.kb-article-content th {
  text-align: left;
  padding: 12px 16px;
  color: var(--gh-text-muted);
  font-family: var(--gh-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.kb-article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gh-border);
  color: var(--gh-text);
}
.kb-article-content tr:last-child td { border-bottom: none; }
.kb-article-content h2 {
  font-family: var(--gh-font-display);
  color: var(--gh-text);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.kb-article-content h3 {
  font-family: var(--gh-font-display);
  color: var(--gh-text);
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.kb-article-content ul, .kb-article-content ol {
  padding-left: 24px;
  margin: 1rem 0;
  color: var(--gh-text-muted);
  line-height: 1.8;
}
.kb-article-content li { margin-bottom: 4px; }

/* ── Locked Domain Card (order page restore) ── */
.locked-domain-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gh-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  margin-bottom: 16px;
}
.locked-domain-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.locked-domain-name {
  font-family: var(--gh-font-mono);
  color: #e4e4ec;
  font-size: 1rem;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.locked-domain-badge {
  background: rgba(34,211,167,0.1);
  color: var(--gh-accent);
  font-family: var(--gh-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.locked-domain-price {
  color: var(--gh-accent);
  font-weight: 600;
}
.locked-domain-change {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #e4e4ec;
  padding: 8px 16px;
  border-radius: 50rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.locked-domain-change:hover {
  border-color: #e4e4ec;
  background: rgba(255,255,255,0.03);
}
@media (max-width: 768px) {
  .locked-domain-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .locked-domain-info {
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px 12px !important;
  }
  .locked-domain-change {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: center !important;
  }
}

/* ── Account Ready Card ── */
.account-ready-card {
  background: var(--gh-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.account-ready-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-ready-title {
  font-family: var(--gh-font-display);
  color: #e4e4ec;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
.account-ready-desc {
  color: var(--gh-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 18px;
}
.status-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gh-accent);
  box-shadow: 0 0 0 0 rgba(34,211,167,0.7);
  animation: pulse-green 2s infinite cubic-bezier(0.66,0,0,1);
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,211,167,0.7); }
  70%  { transform: scale(1); box-shadow: 0 0 0 6px rgba(34,211,167,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,211,167,0); }
}

/* ── Email Exists Nudge (order page) ── */
.email-nudge {
  margin-top: 12px;
  margin-bottom: 4px;
  animation: nudge-in 0.3s ease;
}
@keyframes nudge-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.email-nudge-inner {
  background: var(--gh-elevated);
  border: 1px solid rgba(34,211,167,0.15);
  border-radius: 16px;
  padding: 18px 20px;
}
.email-nudge-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.email-nudge-icon {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
  line-height: 1;
}
.email-nudge-title {
  font-family: var(--gh-font-display);
  font-size: 0.95rem;
  color: #e4e4ec;
  display: block;
  margin-bottom: 4px;
}
.email-nudge-desc {
  font-size: 0.85rem;
  color: var(--gh-text-muted);
  line-height: 1.6;
  margin: 6px 0 0;
}
.email-nudge-actions {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}
.email-nudge-btn {
  padding: 9px 18px;
  border-radius: 50rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  border: none;
}
.email-nudge-btn-primary {
  background: var(--gh-accent);
  color: #000;
  font-weight: 600;
}
.email-nudge-btn-primary:hover {
  background: #1bc497;
}
.email-nudge-btn-ghost {
  background: transparent;
  color: #e4e4ec;
  border: 1px solid rgba(255,255,255,0.06);
}
.email-nudge-btn-ghost:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #fff;
}
@media (max-width: 640px) {
  .email-nudge-inner {
    padding: 20px;
  }
  .email-nudge-actions {
    flex-direction: column;
    width: 100%;
  }
  .email-nudge-btn {
    justify-content: center;
    width: 100%;
    display: flex;
  }
}

/* ── Domain Selection Tray: Primary Note ── */
/* ── Primary Domain Picker (domains checkout) ── */
.primary-domain-option span[style*="font-mono"] {
  text-transform: lowercase;
}

.tray-primary-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gh-text-muted);
  line-height: 1.5;
  padding: 14px 16px;
  margin-top: 10px;
  background: rgba(34,211,167,0.04);
  border: 1px solid rgba(34,211,167,0.1);
  border-radius: 10px;
}
.tray-primary-note i {
  color: var(--gh-accent);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.tray-primary-note strong {
  color: #e4e4ec;
}

/* ── Domain Selection Tray ── */
.domain-tray {
  background: var(--gh-surface);
  border: 1px solid rgba(34,211,167,0.15);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  animation: nudge-in 0.3s ease;
}
.tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gh-border);
}
.tray-title {
  font-family: var(--gh-font-display);
  color: #e4e4ec;
  font-size: 1rem;
  font-weight: 600;
}
.tray-count {
  font-family: var(--gh-font-mono);
  color: var(--gh-text-muted);
  font-size: 0.8rem;
  background: var(--gh-elevated);
  padding: 4px 12px;
  border-radius: 50rem;
  border: 1px solid var(--gh-border);
}
.tray-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tray-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gh-elevated);
  border: 1px solid var(--gh-border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}
.tray-item:hover {
  border-color: rgba(255,255,255,0.1);
}
.tray-primary {
  border-color: rgba(34,211,167,0.3);
  background: linear-gradient(90deg, rgba(34,211,167,0.08) 0%, var(--gh-elevated) 100%);
}
.tray-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.tray-item-name {
  font-family: var(--gh-font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: #e4e4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tray-item-price {
  font-family: var(--gh-font-mono);
  color: var(--gh-text-muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.tray-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tray-primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gh-accent);
  background: rgba(34,211,167,0.1);
  padding: 5px 12px;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(34,211,167,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}
.tray-set-primary {
  font-family: var(--gh-font-mono);
  font-size: 0.7rem;
  color: #8a8a9e;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 50rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tray-set-primary:hover {
  color: #e4e4ec;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}
.tray-remove {
  background: transparent;
  border: none;
  color: var(--gh-text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.tray-remove:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}
@media (max-width: 768px) {
  .tray-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .tray-item-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
  }
}

/* ── Order Page: Domain Search Results ── */
.order-domain-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.order-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--gh-border);
  transition: border-color 0.2s, background 0.2s;
}
.order-domain-available {
  cursor: pointer;
}
.order-domain-available:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--gh-elevated);
}
.order-domain-exact.order-domain-available {
  border-color: #22d3a7;
  background: linear-gradient(90deg, rgba(34,211,167,0.05) 0%, transparent 100%);
}
.order-domain-selected {
  border-color: rgba(34,211,167,0.4) !important;
  background: rgba(34,211,167,0.05) !important;
}
.order-domain-taken .order-domain-name {
  color: var(--gh-text-muted);
}
.order-domain-taken .order-domain-ext {
  color: #44445a;
}
.order-domain-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.order-domain-name {
  font-family: var(--gh-font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: #e4e4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-domain-ext {
  color: var(--gh-text-muted);
}
.order-domain-price {
  font-weight: 600;
  color: var(--gh-accent);
  white-space: nowrap;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.order-domain-price small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gh-text-muted);
}
.order-domain-privacy {
  font-size: 0.65rem;
  color: var(--gh-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.order-domain-hint {
  font-size: 0.8rem;
  color: var(--gh-text-muted);
  white-space: nowrap;
}
.order-domain-noresults {
  color: #ff453a;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255,69,58,0.05);
  border: 1px solid rgba(255,69,58,0.2);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .order-domain-row {
    padding: 12px 14px;
    gap: 12px;
  }
  .order-domain-name {
    font-size: 0.85rem;
  }
  .order-domain-privacy {
    display: none;
  }
  .order-domain-hint {
    display: none;
  }
}
