:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0b1120;
  --navy-2: #111827;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-soft: #eef2ff;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --amber: #f59e0b;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--indigo);
  color: #fff;
  border: 0;
  padding: 0.52rem 0.95rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cart-btn:hover { background: var(--indigo-dark); }
.cart-count {
  background: #fff;
  color: var(--indigo);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.mobile-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 18% 20%, rgba(79, 70, 229, 0.28), transparent 45%),
              radial-gradient(circle at 82% 25%, rgba(6, 182, 212, 0.22), transparent 40%),
              linear-gradient(180deg, var(--navy) 0%, #0f172a 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero-compact { padding: 3rem 0 2.75rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  max-width: 780px;
}
.hero p.lead {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0.85rem 0 2rem;
}

/* Domain Search Bar */
.domain-search-box {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  padding: 0.45rem;
  border-radius: 14px;
  max-width: 720px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}
.domain-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0.85rem 1rem;
  font-size: 1.02rem;
  color: var(--text);
  border-radius: 10px;
}
.domain-search-box button {
  background: var(--indigo);
  color: #fff;
  border: 0;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.domain-search-box button:hover { background: var(--indigo-dark); }

.search-results {
  margin-top: 1.25rem;
  max-width: 720px;
  display: grid;
  gap: 0.6rem;
}
.search-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

/* Featured TLD Strip */
.tld-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}
.tld-pill-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tld-pill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
}
.tld-pill-name { font-weight: 800; font-size: 1.15rem; color: #fff; }
.tld-pill-price { font-weight: 700; color: #34d399; font-size: 1.05rem; margin-top: 0.2rem; }
.tld-pill-old { text-decoration: line-through; color: #94a3b8; font-size: 0.8rem; margin-left: 0.35rem; }
.tld-pill-note { font-size: 0.74rem; color: #cbd5e1; margin-top: 0.2rem; }

/* Sections */
.section { padding: 3.75rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.section-header p { color: var(--text-muted); margin: 0; max-width: 640px; }

/* Grid & Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card.featured {
  border: 2px solid var(--indigo);
  box-shadow: var(--shadow-lg);
}
.badge {
  display: inline-block;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--indigo-soft);
  color: var(--indigo);
  margin-bottom: 0.65rem;
  width: fit-content;
}
.badge-green { background: var(--emerald-soft); color: #047857; }
.badge-amber { background: #fef3c7; color: #b45309; }

.price-block {
  margin: 0.85rem 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.price-amount { font-size: 1.9rem; font-weight: 800; color: var(--text); }
.price-unit { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.price-strike { text-decoration: line-through; color: var(--text-light); font-size: 0.92rem; margin-left: 0.35rem; }

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
  flex: 1;
}
.spec-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.35rem;
  position: relative;
}
.spec-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.84rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* Tabs & Filter Controls */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.58rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.tab-btn.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.input, .select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 0.92rem;
}
.input:focus, .select:focus {
  outline: 2px solid rgba(79, 70, 229, 0.25);
  border-color: var(--indigo);
}

/* Tables */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #f8fafc; }
.tld-cell { font-weight: 800; color: var(--indigo); font-size: 1rem; }

/* Notice / Callout */
.callout {
  background: var(--indigo-soft);
  border: 1px solid #c7d2fe;
  color: #1e1b4b;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 90;
  display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -10px 0 35px rgba(0,0,0,0.2);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.drawer-footer {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.cart-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 0.85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .domain-search-box { flex-direction: column; }
}

/* Blog Carousel Slider */
.blog-slider-wrap {
  position: relative;
}
.blog-slider-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}
.blog-slide-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-slide-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .blog-slide-card { flex: 0 0 85vw; }
}
