/* ============================================
   Urbanveli — Design System
   ============================================ */

:root {
  /* Brand colors */
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #eef2ff;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;

  /* Neutrals */
  --color-ink: #101223;
  --color-body: #3f4360;
  --color-muted: #6b7094;
  --color-border: #e5e7f5;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f8fd;
  --color-dark: #0f1024;
  --color-dark-surface: #171933;

  /* Feedback */
  --color-success: #16a34a;
  --color-star: #f59e0b;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 35, 0.06), 0 1px 1px rgba(16, 18, 35, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 18, 35, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 18, 35, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-tight { padding: 56px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { color: var(--color-muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--color-accent);
  color: #221200;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.promo-bar {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  padding: 9px 16px;
}
.promo-bar strong { color: var(--color-accent); }
.promo-bar a { text-decoration: underline; margin-left: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-body);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 11px 20px; font-size: 0.92rem; }

.currency-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 6px;
  width: 62px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.currency-select:hover { border-color: var(--color-primary); }

.cart-link {
  position: relative;
  padding: 10px !important;
  width: 42px;
  height: 42px;
}
.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #221200;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  transition: all .2s ease;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  body.nav-open .nav-links a { padding: 10px 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(139, 92, 246, 0.16), transparent),
    radial-gradient(700px 400px at 5% 10%, rgba(79, 70, 229, 0.10), transparent),
    var(--color-surface);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 540px; margin-bottom: 28px; }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; }
.trust-chip { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--color-body); }
.trust-chip svg { color: var(--color-success); flex-shrink: 0; }

/* Hero visual */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-dark) 0%, #1c1e42 100%);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.browser-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.browser-chrome span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }

.hero-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.hero-stat-card .label { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 600; }
.hero-stat-card .value { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stat-card .value.accent { color: #86efac; }

.speed-bar-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 10px; }
.speed-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #22d3ee); width: 92%; }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 40px 0; border-bottom: 1px solid var(--color-border); border-top: 1px solid var(--color-border); }
.trust-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.trust-stat { text-align: center; }
.trust-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--color-ink); display: block; }
.trust-stat .lbl { font-size: 0.85rem; color: var(--color-muted); font-weight: 600; }
.stars { color: var(--color-star); letter-spacing: 2px; font-size: 1rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.bg-surface-alt { background: var(--color-surface-alt); }

/* ---------- Plan offer cards (homepage) ---------- */
.plan-offer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  position: relative;
}
.plan-offer-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.plan-offer-card .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Pricing table ---------- */
.toggle-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 46px; }
.toggle-row span { font-weight: 600; color: var(--color-muted); }
.toggle-row span.active { color: var(--color-ink); }
.save-badge { background: #dcfce7; color: var(--color-success); font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-primary);
  position: relative;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.switch.is-monthly::after { transform: translateX(22px); }

.price-tag { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.price-tag .amount { font-size: 3rem; font-weight: 800; color: var(--color-ink); }
.price-tag .cycle { color: var(--color-muted); font-weight: 600; }
.price-was { color: var(--color-muted); text-decoration: line-through; font-size: 0.95rem; }
.price-renew { color: var(--color-muted); font-size: 0.82rem; margin-bottom: 22px; }

.feature-list { list-style: none; margin: 0 0 26px; padding: 0; text-align: left; }
.feature-list li { display: flex; gap: 10px; padding: 9px 0; font-size: 0.94rem; color: var(--color-body); border-bottom: 1px solid var(--color-border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list svg { color: var(--color-success); flex-shrink: 0; margin-top: 2px; }

/* Full comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
table.compare th, table.compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--color-border); }
table.compare th:first-child, table.compare td:first-child { text-align: left; color: var(--color-body); font-weight: 600; }
table.compare thead th { background: var(--color-surface-alt); font-size: 0.95rem; color: var(--color-ink); }
table.compare thead th.featured-col { background: var(--color-primary-light); color: var(--color-primary-dark); }
table.compare td.featured-col { background: rgba(79,70,229,0.03); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .yes { color: var(--color-success); }
table.compare .no { color: var(--color-muted); opacity: .5; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
}
.testimonial-quote { font-size: 1.02rem; color: var(--color-ink); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
}
.testimonial-person .name { font-weight: 700; color: var(--color-ink); font-size: 0.92rem; }
.testimonial-person .role { font-size: 0.82rem; color: var(--color-muted); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  font-family: inherit;
}
.faq-q .plus { font-size: 1.4rem; color: var(--color-primary); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--color-muted); max-width: 700px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6d28d9 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 520px; margin: 0 auto 28px; }
.cta-band .hero-cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.65); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { font-size: 0.92rem; transition: color .15s ease; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { max-width: 280px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-legal-line { font-size: 0.76rem; color: rgba(255,255,255,0.42); line-height: 1.6; margin: 0 0 18px; }

.footer-staff-link { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color .15s ease; }
.footer-staff-link:hover { color: rgba(255,255,255,0.7); }

.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-primary); }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 34px; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mini-badge { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--color-muted); border: 1px solid var(--color-border); padding: 8px 14px; border-radius: 999px; }

.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
}
.page-hero p { color: var(--color-muted); font-size: 1.08rem; max-width: 600px; margin: 0 auto; }

.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--color-primary); font-weight: 600; }

/* Domain search */
.domain-search-box {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}
.domain-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}
.domain-results { max-width: 640px; margin: 28px auto 0; }
.domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #fff;
}
.domain-row .name { font-weight: 700; color: var(--color-ink); }
.domain-row .status-available { color: var(--color-success); font-size: 0.85rem; font-weight: 700; }
.domain-row .status-taken { color: #dc2626; font-size: 0.85rem; font-weight: 700; }
.domain-row .price { font-weight: 700; color: var(--color-ink); margin-right: 14px; }
.domain-row-right { display: flex; align-items: center; gap: 14px; }

/* Contact */
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--color-ink); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--color-ink);
  outline: none;
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-primary); }
.form-field textarea { resize: vertical; min-height: 130px; }

.contact-channel { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 16px; }
.contact-channel.clickable { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.contact-channel.clickable:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-channel .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-channel h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-channel p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

/* Team / about */
.value-card { text-align: center; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .num { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); display: block; }
.stat-strip .lbl { color: var(--color-muted); font-weight: 600; font-size: 0.9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 8px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px;
}

/* Admin console */
.admin-shell { display: flex; min-height: 100vh; background: var(--color-surface-alt); }
.admin-sidebar { width: 232px; flex-shrink: 0; background: var(--color-dark); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand { color: #fff; margin-bottom: 8px; }
.admin-sidebar-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,0.72); font-weight: 600; font-size: 0.9rem; transition: background .15s ease, color .15s ease; }
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.active { background: var(--color-primary); color: #fff; }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; margin-top: 16px; }
.admin-sidebar-footer a { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 600; }
.admin-sidebar-footer a:hover { color: #fff; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--color-border); }
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.admin-user-chip { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--color-muted); }
.admin-role-badge { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 9px; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary-dark); }
.admin-role-badge.super { background: #fef3c7; color: #92400e; }
.admin-content { padding: 32px; max-width: 1160px; }

.admin-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-tile { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; }
.stat-tile .num { font-size: 1.9rem; font-weight: 800; color: var(--color-ink); display: block; font-variant-numeric: tabular-nums; }
.stat-tile .lbl { font-size: 0.82rem; color: var(--color-muted); font-weight: 600; }

.admin-table-wrap { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.admin-table th { text-align: left; padding: 12px 18px; background: var(--color-surface-alt); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); font-weight: 700; white-space: nowrap; }
.admin-table td { padding: 13px 18px; border-top: 1px solid var(--color-border); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--color-surface-alt); }

.status-select { border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 8px; font-family: inherit; font-size: 0.82rem; background: #fff; }
.admin-empty { padding: 40px; text-align: center; color: var(--color-muted); font-size: 0.9rem; }
.admin-panel { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.admin-panel h3 { font-size: 1rem; margin-bottom: 14px; }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
  .admin-sidebar .brand, .admin-sidebar-tag { margin-bottom: 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar-footer { border-top: none; margin: 0; padding: 0; }
}

/* Auth pages (login / signup) */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.auth-switch { text-align: center; font-size: 0.9rem; color: var(--color-muted); margin-top: 22px; }
.auth-switch a { color: var(--color-primary); font-weight: 700; }
.auth-error { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; }
.auth-error.visible { display: block; }
.auth-notice { display: none; background: var(--color-primary-light); border: 1px solid #c7d2fe; color: var(--color-primary-dark); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; }
.auth-notice.visible { display: block; }
.auth-forgot { text-align: right; margin-top: -8px; }
.auth-forgot button { background: none; border: none; padding: 0; font-size: 0.82rem; color: var(--color-primary); font-weight: 600; cursor: pointer; font-family: inherit; }

/* Legal / policy pages */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; max-width: 980px; margin: 0 auto; }
@media (max-width: 800px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: 90px; }
.legal-toc-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 14px; }
.legal-toc a { display: block; font-size: 0.88rem; color: var(--color-body); padding: 7px 0; border-left: 2px solid var(--color-border); padding-left: 14px; transition: color .15s ease, border-color .15s ease; }
.legal-toc a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.legal-updated { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 8px; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.02rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--color-body); font-size: 0.96rem; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-content li { margin-bottom: 0.5em; }
.legal-content a { color: var(--color-primary); font-weight: 600; }
.legal-content strong { color: var(--color-ink); }
.legal-callout { background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.5em 0; font-size: 0.9rem; }

/* Support tickets */
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; flex-wrap: wrap; }
.ticket-row-main { display: flex; flex-direction: column; gap: 3px; }
.ticket-id { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; font-weight: 700; color: var(--color-primary); }
.ticket-subject { font-weight: 700; color: var(--color-ink); font-size: 0.95rem; }
.ticket-row-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--color-muted); }
.ticket-badge { font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.02em; }
.ticket-badge.low { background: #eef2ff; color: var(--color-primary-dark); }
.ticket-badge.normal { background: #fef3c7; color: #92400e; }
.ticket-badge.high { background: #fee2e2; color: #991b1b; }
.ticket-status { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-success); }
.ticket-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); }

/* Help Center */
.help-search-box { max-width: 640px; margin: 0 auto; }
.help-search-box input { width: 100%; padding: 15px 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; box-shadow: var(--shadow-md); outline: none; }
.help-search-box input:focus { border-color: var(--color-primary); }
.help-category-title { font-size: 1.15rem; margin: 0 0 4px; }
.help-category-count { font-size: 0.85rem; color: var(--color-muted); font-weight: 600; margin-bottom: 18px; }
.help-no-results { display: none; text-align: center; padding: 60px 20px; color: var(--color-muted); }
.help-no-results.visible { display: block; }
.faq-item.help-hidden { display: none; }

/* AI assistant widget */
.ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  z-index: 200;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ai-fab:hover { transform: translateY(-2px); background: var(--color-primary-dark); }
.ai-fab.open { background: var(--color-ink); }

.ai-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}
.ai-panel.open { display: flex; }

.ai-panel-header {
  background: linear-gradient(135deg, var(--color-primary), #6d28d9);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ai-panel-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.95rem; }
.ai-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); flex-shrink: 0; }
.ai-close { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ai-close:hover { background: rgba(255,255,255,0.28); }

.ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--color-surface-alt); }
.ai-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.ai-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--color-border); color: var(--color-body); border-bottom-left-radius: 4px; }
.ai-msg-user { align-self: flex-end; background: var(--color-primary); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg-chip-wrap { background: none; border: none; padding: 0; max-width: 100%; }
.ai-link-chip { display: inline-block; background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 700; font-size: 0.82rem; padding: 8px 14px; border-radius: 999px; }
.ai-link-chip:hover { background: #dfe1fc; }

.ai-typing { display: flex; gap: 4px; align-self: flex-start; background: #fff; border: 1px solid var(--color-border); padding: 12px 14px; border-radius: 14px; border-bottom-left-radius: 4px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); animation: ai-bounce 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.ai-chip { background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: 999px; padding: 7px 12px; font-size: 0.78rem; font-weight: 600; color: var(--color-ink); cursor: pointer; }
.ai-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.ai-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.ai-input-row input { flex: 1; min-width: 0; padding: 10px 13px; border: 1px solid var(--color-border); border-radius: 999px; font-family: inherit; font-size: 0.86rem; outline: none; }
.ai-input-row input:focus { border-color: var(--color-primary); }
.ai-send { width: 38px; height: 38px; border-radius: 50%; background: var(--color-primary); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ai-send:hover { background: var(--color-primary-dark); }

@media (max-width: 480px) {
  .ai-panel { right: 16px; bottom: 88px; }
  .ai-fab { right: 16px; bottom: 16px; }
}

/* Migration quick-lookup */
.migration-lookup-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.migration-lookup-row { display: flex; gap: 10px; }
.migration-lookup-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}
.lookup-result { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.5; }
.lookup-result.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.lookup-result.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.lookup-result.neutral { background: var(--color-surface-alt); color: var(--color-body); border: 1px solid var(--color-border); }
.lookup-result.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.lookup-result a { text-decoration: underline; font-weight: 700; }
.migration-details { display: none; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.speed-stat-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.speed-stat { text-align: center; }
.speed-stat .num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--color-primary); }
.speed-stat .lbl { font-size: 0.78rem; color: var(--color-muted); font-weight: 600; }

/* Cart page */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: flex-start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--color-border); gap: 16px; }
.cart-item-row:last-child { border-bottom: none; }
.cart-item-name { font-weight: 700; color: var(--color-ink); }
.cart-item-meta { font-size: 0.85rem; color: var(--color-muted); margin-top: 2px; }
.cart-item-price { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.cart-remove-btn { background: none; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-muted); cursor: pointer; font-size: 1rem; width: 34px; height: 34px; flex-shrink: 0; }
.cart-remove-btn:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.cart-summary { background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; position: sticky; top: 90px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; color: var(--color-body); }
.cart-summary-row.total { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 16px; font-weight: 800; color: var(--color-ink); font-size: 1.1rem; }
.cart-summary-row.savings { color: var(--color-success); font-weight: 700; }
.cart-summary-row.muted { color: var(--color-muted); font-size: 0.85rem; }
.summary-itemized { border-bottom: 1px solid var(--color-border); padding-bottom: 6px; margin-bottom: 6px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 7px 0; color: var(--color-muted); }
.summary-line .item-name { color: var(--color-ink); font-weight: 600; }
.summary-line .item-sub { display: block; font-size: 0.76rem; color: var(--color-muted); font-weight: 400; }
.savings-pill { display: inline-block; background: #dcfce7; color: var(--color-success); font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.86rem; }
.trust-row { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.trust-mini { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--color-body); font-weight: 600; }
.trust-mini svg { color: var(--color-success); flex-shrink: 0; }
.payment-icons { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.payment-chip { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.02em; border: 1px solid var(--color-border); border-radius: 6px; padding: 5px 8px; color: var(--color-muted); background: #fff; }
.cart-empty { text-align: center; padding: 70px 20px; color: var(--color-muted); }
.status-page-icon { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.error-text { color: #dc2626; font-size: 0.88rem; margin-top: 14px; display: none; }
.error-text.visible { display: block; }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.8rem; color: var(--color-muted); margin-top: 14px; }

/* Alert / form success */
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.alert-success.visible { display: block; }
