/* ==========================================================
   TLD PULSE — DESIGN SYSTEM
   Ported from the DomainHunt premium developer aesthetic:
   refined neutral canvas, high-contrast typography, crisp
   hairline borders, and vivid emerald accents.
   ========================================================== */

:root {
  /* Canvas & surfaces */
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  --surface-3: #e2e8f0;

  /* Hairlines */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;

  /* Ink */
  --text-main: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Emerald accent */
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --accent-ink: #065f46;

  --primary: #0f172a;
  --primary-hover: #1e293b;
  --blue: #4f46e5;
  --blue-hover: #4338ca;

  --green: #059669;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;

  --rose: #e11d48;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;

  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --violet: #7c3aed;
  --violet-bg: #f5f3ff;
  --violet-border: #ddd6fe;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-card: 16px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.03);
  --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.04), 0 1px 2px -1px rgb(15 23 42 / 0.02);
  --shadow-md: 0 4px 12px -2px rgb(15 23 42 / 0.08), 0 2px 6px -2px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 20px 40px -12px rgb(15 23 42 / 0.18), 0 8px 16px -8px rgb(15 23 42 / 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: #d1fae5;
  color: var(--accent-ink);
}

h1, h2, h3, h4 {
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Breathing room before the footer's top border — the mobile breakpoint
   already sets this, but there was no base rule for wider viewports. */
.main {
  padding-bottom: 64px;
}

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

/* ==========================================================
   HEADER
   ========================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(226 232 240 / 0.8);
  box-shadow: var(--shadow-xs);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Minimalist Monochrome Logo Mark */
.logo::before {
  content: "";
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: url('/static/logo.svg') center / contain no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: opacity 150ms ease, transform 150ms ease;
}

.logo:hover::before {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  white-space: nowrap;
}

.logo-text strong {
  font-weight: 800;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  flex-wrap: nowrap;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: none;
  background: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   MOBILE NAVIGATION (PREMIUM MINIMALIST DRAWER)
   ========================================================== */

/* Mobile Hamburger / Close Toggle Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  transition: all 180ms ease;
  position: relative;
  z-index: 10001;
}

.mobile-menu-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-dark);
}

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

.hamburger-icon {
  display: block;
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 200ms ease, background-color 200ms ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 200ms ease, top 200ms ease, bottom 200ms ease;
}

.hamburger-icon::before { top: -5px; }
.hamburger-icon::after { bottom: -5px; }

.mobile-menu-btn.active {
  background: var(--bg-subtle);
  border-color: var(--border-dark);
}

.mobile-menu-btn.active .hamburger-icon {
  background: transparent;
}

.mobile-menu-btn.active .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Dropdown Backdrop Overlay */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeIn 180ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Dropdown Container */
.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-dark);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.3), 0 4px 16px rgba(15, 23, 42, 0.06);
  z-index: 9999;
  animation: mobileMenuSlide 200ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes mobileMenuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-dropdown-inner {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  max-height: calc(85vh - 60px);
  overflow-y: auto;
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 10px 6px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: all 140ms ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.mobile-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}

.mobile-nav-item .item-arrow {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 400;
  transition: transform 140ms ease, color 140ms ease;
}

.mobile-nav-item:hover .item-arrow {
  color: var(--text-main);
  transform: translateX(2px);
}

.mobile-nav-item.active .item-arrow {
  color: var(--accent);
}

.mobile-dropdown-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-dropdown-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 150ms ease,
              border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: rgb(5 150 105 / 0.8);
  box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.08), 0 0 12px -2px rgb(16 185 129 / 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 6px 0 rgb(15 23 42 / 0.12), 0 0 16px -2px rgb(16 185 129 / 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline,
.btn-secondary {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: var(--border-dark);
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
  margin-top: 14px;
}

.btn-group {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn-toggle {
  padding: 5px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 150ms ease;
}

.btn-toggle:hover { color: var(--text-main); }

.btn-toggle.active {
  background: var(--bg-white);
  color: var(--accent-ink);
  box-shadow: var(--shadow-xs);
}

.link-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  transition: color 150ms ease;
}

.link-more:hover { color: var(--accent-hover); }

/* ==========================================================
   FORM CONTROLS
   ========================================================== */

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.02);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control::placeholder { color: var(--text-light); }
.form-control:hover { border-color: var(--border-dark); }

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(5 150 105 / 0.15);
}

.form-control-sm {
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  width: auto;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 28px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ==========================================================
   MAIN & SEARCH
   ========================================================== */

/* ==========================================================
   HERO SECTION & SEO HEADER
   ========================================================== */

.hero-section {
  text-align: center;
  padding: 16px 0 32px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 12px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-body);
  font-weight: 600;
}

.hero-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-stat-item::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.search-section { margin-bottom: 36px; }

.search-box-container {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(248 250 252 / 0.98));
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  padding: 28px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 14px 40px 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(248 250 252 / 0.6);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-main);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.search-input::placeholder {
  font-family: var(--font-sans);
  color: var(--text-light);
}

.search-input:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(5 150 105 / 0.15);
}

.search-clear {
  position: absolute;
  right: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.search-clear:hover {
  background: var(--border-dark);
  color: var(--text-main);
}

.search-form .btn-primary {
  padding: 14px 26px;
  font-size: 14.5px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.quick-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.quick-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 150ms ease;
}

.quick-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   SECTION HEADERS & CARDS
   ========================================================== */

.section-header,
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.section-header p { font-size: 13px; margin-top: 3px; }

.section-title { font-size: 18px; font-weight: 800; }

.card,
.table-card,
.subpage-card,
.reg-box,
.guide-card,
.registrar-profile-card,
.contact-form-card,
.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.card:hover,
.table-card:hover,
.reg-box:hover,
.guide-card:hover {
  border-color: var(--border-dark);
}

.table-card { overflow: hidden; }

.table-loading {
  padding: 44px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================
   TABLES
   ========================================================== */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table thead th {
  padding: 11px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.data-table thead th:hover {
  background: var(--surface-3);
  color: var(--text-main);
}

.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr {
  transition: background-color 120ms ease;
}

.data-table tbody tr:hover { background: rgb(248 250 252 / 0.85); }

/* Inline rather than flex: a long name must wrap as ordinary text instead of
   being pushed apart from its extension. */
.domain-cell {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.domain-cell > * { display: inline; }

.domain-name-main { color: var(--text-main); }

.domain-tld-accent {
  color: var(--accent);
  font-weight: 700;
}

.price-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.price-value.best { color: var(--accent-ink); }

.price-strikethrough {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-light);
  text-decoration: line-through;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px dashed var(--amber-border);
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber);
  cursor: pointer;
  transition: all 150ms ease;
}

.promo-pill:hover {
  background: #fef3c7;
  border-style: solid;
}

.promo-pill::after {
  content: "⧉";
  opacity: 0.55;
  font-size: 10px;
}

/* ==========================================================
   AVAILABILITY — status pills & filter bar
   ========================================================== */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-pill .dot {
  position: relative;
  display: inline-flex;
  height: 6px;
  width: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Available — emerald with a live radar ping */
.status-pill.is-available {
  background: var(--green-bg);
  color: var(--accent-ink);
  border-color: var(--green-border);
}

.status-pill.is-available .dot { background: var(--accent); }

.status-pill.is-available .dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #34d399;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Taken — rose */
.status-pill.is-taken {
  background: var(--rose-bg);
  color: #be123c;
  border-color: var(--rose-border);
}

.status-pill.is-taken .dot { background: #f43f5e; }

/* Reserved — violet */
.status-pill.is-reserved {
  background: var(--violet-bg);
  color: #6d28d9;
  border-color: var(--violet-border);
}

.status-pill.is-reserved .dot { background: #8b5cf6; }

/* Unknown / error / rate limited — slate */
.status-pill.is-unknown {
  background: var(--bg-subtle);
  color: var(--text-body);
  border-color: var(--border);
}

.status-pill.is-unknown .dot { background: var(--text-light); }

/* Row de-emphasis for taken domains when they are shown */
.data-table tbody tr.row-taken { opacity: 0.55; }
.data-table tbody tr.row-taken:hover { opacity: 1; }

.availability-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.availability-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* Segmented availability filter */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 150ms ease;
}

.seg-btn:hover:not(.active) {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.seg-btn.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: var(--shadow-xs);
}

.seg-btn .count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.seg-btn.active .count { opacity: 1; }

.availability-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}

.availability-note::before { content: "⚠"; font-size: 12px; }

/* Live badge in results header */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(241 245 249 / 0.8);
  border: 1px solid rgb(203 213 225 / 0.8);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
}

.live-badge .dot {
  position: relative;
  height: 7px;
  width: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.live-badge .dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #34d399;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.empty-row {
  padding: 44px 24px;
  text-align: center;
}

.empty-row h4 { font-size: 15px; margin-bottom: 5px; }
.empty-row p { font-size: 13px; color: var(--text-muted); }

/* ==========================================================
   FILTER BAR (calculator)
   ========================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-group label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================
   DOMAIN SPOTLIGHT (single domain view)
   ========================================================== */

.domain-spotlight-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.95), rgb(248 250 252 / 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.spotlight-info h2 {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.spotlight-stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; gap: 3px; }

.stat-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.stat-val.accent { color: var(--accent-ink); }

/* ==========================================================
   TAGS
   ========================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-body);
  white-space: nowrap;
}

.tag-green {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--accent-ink);
}

/* ==========================================================
   REGISTRAR / GUIDE GRIDS
   ========================================================== */

.overview-section, .faq-section { margin-top: 44px; }

.registrar-grid,
.guides-grid,
.registrars-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

/* Column layout so each card's footer action sits on a common baseline,
   matching the DomainHunt card. */
.reg-box, .guide-card, .registrar-profile-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.reg-box .btn-block,
.registrar-profile-card .profile-footer,
.guide-card .guide-footer {
  margin-top: auto;
}

.reg-box .btn-block { padding-top: 0; }

.reg-box:hover, .guide-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reg-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.reg-box-header h3 { font-size: 15.5px; }

.reg-box-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 14px;
}

.reg-box-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.reg-box-meta strong { color: var(--text-main); font-weight: 700; }

/* ==========================================================
   FAQ
   ========================================================== */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-row {
  padding: 20px 22px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  transition: border-color 200ms ease;
}

.faq-row:hover { border-color: var(--border-dark); }

.faq-row h3 { font-size: 14.5px; margin-bottom: 7px; }

.faq-row p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ==========================================================
   MODAL
   ========================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(4px);
  padding: 24px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-dialog {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-dialog { animation: none; }
  .status-pill .dot::before, .live-badge .dot::before { animation: none; }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 17px; }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-dark);
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.modal-toolbar .form-control-sm { min-width: 210px; }

.modal-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-body {
  max-height: 62vh;
  overflow-y: auto;
}

/* ==========================================================
   TOASTS
   ========================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--radius);
  background: var(--text-main);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: rise 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast-item::before {
  content: "✓";
  color: #34d399;
  font-weight: 800;
}

/* ==========================================================
   SUBPAGES
   ========================================================== */

.subpage-header { margin-bottom: 28px; }

.subpage-title {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.subpage-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 640px;
}

.subpage-card { padding: 28px; }

.subpage-content-body h2 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.subpage-content-body h2:first-child { margin-top: 0; }

.subpage-content-body h3 { font-size: 15.5px; margin: 20px 0 7px; }

.subpage-content-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 12px;
}

.styled-list {
  margin: 0 0 14px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
}

.styled-list li { margin-bottom: 5px; }

.styled-list strong { color: var(--text-main); font-weight: 700; }

.contact-page-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.contact-form-card, .contact-info-card { padding: 24px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-status-msg {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

.guide-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 10px;
}

.guide-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.profile-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  margin-top: auto;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: grid; gap: 9px; }

.footer-col a,
.footer-btn {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease;
}

.footer-col a:hover, .footer-btn:hover { color: var(--accent); }

.footer-desc {
  margin-top: 12px;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}

.footer-legal { display: flex; gap: 18px; }

.footer-legal a {
  font-size: 12px;
  color: var(--text-light);
  transition: color 150ms ease;
}

.footer-legal a:hover { color: var(--accent); }

/* ==========================================================
   BLOG STYLES & ARTICLE READER
   ========================================================== */

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 150ms ease;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.blog-search-wrap {
  width: 260px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  /* Cards are anchors so crawlers follow them; reset the link defaults. */
  color: inherit;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.blog-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.blog-time {
  font-size: 12px;
  color: var(--text-light);
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.blog-date {
  font-size: 12px;
  color: var(--text-light);
}

.blog-read-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Article Reader View */
.article-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 1060px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-meta-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.article-category-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.article-read-time, .article-date {
  font-size: 13px;
  color: var(--text-muted);
}

.article-main-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

.article-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

.article-body-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
}

.article-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 8px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-content th, .article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--surface-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.article-content code {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
}

.article-sidebar .sidebar-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sidebar-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.sidebar-links a:hover {
  color: var(--accent);
}

/* ==========================================================
   ENHANCED RESPONSIVE MEDIA QUERIES
   ========================================================== */

@media (max-width: 1024px) {
  .article-body-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-sidebar {
    order: 2;
  }
}

@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-page-layout { grid-template-columns: 1fr; }
  .spotlight-stats-row { gap: 20px; flex-wrap: wrap; }
  .blog-grid { grid-template-columns: 1fr; }
}

.mobile-only { display: none !important; }

/* Responsive Breakpoints: Tablet & Mobile Dropdown */
@media (max-width: 860px) {
  .nav {
    display: none !important;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-container {
    height: 56px;
    gap: 12px;
  }
  .header-left {
    gap: 12px;
  }
}

.mobile-scroll-hint {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }

  /* Main container & search */
  .main { padding: 18px 0 36px; }
  .search-box-container { padding: 16px; }
  .search-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-input { height: 48px; font-size: 15px; }
  .search-clear { top: 14px; right: 12px; }
  .search-form .btn-primary { width: 100%; height: 48px; font-size: 15px; }

  .quick-links {
    gap: 6px;
    margin-top: 14px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-btn {
    padding: 5px 10px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Data Table & Sticky First Column on Mobile Swipe */
  .table-card, .data-table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    margin: 0;
    width: 100%;
    box-shadow: var(--shadow-sm);
  }

  .data-table {
    min-width: 600px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .data-table thead th {
    padding: 10px 12px;
    font-size: 10px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-subtle);
  }

  .data-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Sticky first column on mobile swipe */
  .data-table thead th:first-child,
  .data-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 2;
    box-shadow: 2px 0 6px -2px rgba(15, 23, 42, 0.12);
  }

  .data-table thead th:first-child {
    background: var(--bg-subtle);
    z-index: 3;
  }

  .data-table tbody tr:hover td:first-child {
    background: rgb(248 250 252);
  }

  .data-table tbody tr.row-highlight td:first-child {
    background: #ecfdf5;
  }

  /* Availability Filter Bar */
  .availability-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .availability-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 4px;
  }

  .seg-btn {
    padding: 8px 10px;
    font-size: 12.5px;
    justify-content: center;
  }

  .live-badge {
    align-self: flex-start;
    font-size: 11px;
  }

  /* Subpages & Articles */
  .subpage-card, .article-container {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .subpage-title { font-size: 22px; }
  .article-main-title { font-size: 22px; }
  .article-excerpt { font-size: 14px; }
  .article-content h2 { font-size: 19px; margin-top: 24px; }
  .article-content h3 { font-size: 16px; }

  /* Blog Toolbar */
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-wrap {
    width: 100%;
  }

  .blog-categories {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .category-pill {
    flex-shrink: 0;
  }

  /* Modal Bottom Sheet on Mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-dialog {
    max-height: 90vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
  }

  .modal-toolbar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .modal-toolbar-actions {
    flex-direction: column;
    width: 100%;
  }

  .modal-toolbar-actions select, .modal-toolbar-actions button {
    width: 100%;
  }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
  .subpage-title { font-size: 20px; }
  .article-main-title { font-size: 20px; }
  .section-header h2 { font-size: 18px; }
  .faq-row { padding: 14px 16px; }
}

/* ==========================================================
   REMAINING SHARED UTILITIES
   ========================================================== */

.tab-view { margin-bottom: 36px; }
.data-table-card {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.text-body { color: var(--text-body); }
.text-secondary { color: var(--text-muted); font-size: 13.5px; }

.row-highlight {
  background: linear-gradient(90deg, var(--accent-soft) 0%, rgb(236 253 245 / 0.35) 100%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.row-highlight:hover { background: var(--accent-soft); }

.badge-green {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--accent-ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-block { margin-bottom: 28px; }
.content-block:last-child { margin-bottom: 0; }

