:root {
  --bg: #0b1020;
  --bg-2: #0d1226;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.1);
  --line: rgba(255,255,255,0.1);
  --text: #f7f8fc;
  --muted: #bbc2d8;
  --accent: #a855f7;
  --accent-2: #22d3ee;
  --accent-3: #f59e0b;
  --green: #34d399;
  --red: #f87171;
  --yellow: #facc15;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(168,85,247,.25), transparent 26%),
    radial-gradient(circle at 100% 10%, rgba(34,211,238,.16), transparent 24%),
    radial-gradient(circle at 30% 100%, rgba(245,158,11,.12), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, #0e1428 45%, #0a0e1d 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) .7px, transparent .7px);
  background-size: 18px 18px;
  opacity: .16;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  background: rgba(8,12,25,.6);
}
.topbar-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #7c3aed 55%, var(--accent-2));
  box-shadow: var(--shadow);
  font-size: 21px;
}
.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 26px;
  padding: 4px 8px;
  line-height: 1;
}
.mobile-nav {
  display: none;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-nav a:active {
  background: rgba(168,85,247,.12);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-toggle,
.segmented {
  display: inline-flex;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.lang-toggle button,
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
}
.lang-toggle button.active,
.segmented button.active {
  background: linear-gradient(135deg, rgba(168,85,247,.85), rgba(34,211,238,.75));
  color: white;
}

.btn {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--accent), #7c3aed 50%, var(--accent-2));
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(124,58,237,.28);
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 20px 44px rgba(124,58,237,.35);
}
.btn:active {
  transform: translateY(0);
}
.btn.secondary {
  background: rgba(255,255,255,.07);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn.ghost {
  background: transparent;
  border: 1px dashed rgba(255,255,255,.18);
  box-shadow: none;
}
.btn.small { padding: 10px 14px; font-size: 13px; }
.btn.full { width: 100%; }
.btn.warn { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.btn.success { background: linear-gradient(135deg, #10b981, #06b6d4); }
.btn.warn:hover {
  box-shadow: 0 20px 44px rgba(245,158,11,.35);
}

.main {
  padding-bottom: 60px;
}

.hero {
  padding: 70px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 26px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: #eceaff;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1,
.section h2,
.dashboard-header h1,
.catalog-header h1,
.builder-header h1,
.admin-header h1 {
  margin: 0 0 14px;
  line-height: .95;
  letter-spacing: -.04em;
}
.hero h1 { font-size: clamp(40px, 6vw, 74px); }
.gradient-text {
  background: linear-gradient(135deg, #fff, #ddd6fe 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
  max-width: 700px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.hero-stack,
.panel,
.card,
.kpi,
.product-card,
.timeline-card,
.table-card,
.country-card,
.feature-card,
.price-card,
.order-card,
.profile-card,
.setting-card,
.info-card,
.auth-card,
.empty-card,
.status-card,
.queue-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-stack {
  padding: 22px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.hero-stack::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.mini-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.mini-title {
  font-weight: 900;
  margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  color: #f0ebff;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

.section,
.dashboard,
.catalog,
.builder,
.admin,
.auth-view {
  padding: 26px 0;
  animation: fadeInUp .5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section h2,
.dashboard-header h1,
.catalog-header h1,
.builder-header h1,
.admin-header h1 {
  font-size: clamp(30px, 4vw, 48px);
}
.section-lead {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
}
.grid-3,
.grid-4,
.grid-2,
.kpis,
.product-grid,
.country-grid,
.dashboard-grid,
.order-grid,
.profile-grid,
.settings-grid,
.queue-grid,
.pricing-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4,
.kpis,
.pricing-grid,
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.country-grid { grid-template-columns: repeat(5, 1fr); margin-top: 18px; }
.dashboard-grid { grid-template-columns: 1.2fr .8fr; margin-top: 20px; }
.order-grid,
.profile-grid,
.settings-grid,
.queue-grid { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }

.card,
.feature-card,
.price-card,
.kpi,
.product-card,
.country-card,
.order-card,
.profile-card,
.setting-card,
.info-card,
.auth-card,
.empty-card,
.status-card,
.queue-card,
.timeline-card,
.table-card {
  padding: 22px;
}
.card h3,
.feature-card h3,
.price-card h3,
.product-card h3,
.country-card h3,
.order-card h3,
.profile-card h3,
.setting-card h3,
.info-card h3,
.auth-card h3,
.status-card h3,
.queue-card h3,
.timeline-card h3,
.table-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}
.card-icon,
.feature-icon,
.product-icon,
.country-icon,
.status-icon { font-size: 28px; }
.kpi-value {
  font-size: 34px;
  font-weight: 900;
  margin: 8px 0 6px;
}
.kpi-label { color: var(--muted); font-size: 14px; }
.kpi small { display: block; margin-top: 8px; color: #ddd6fe; }

.feature-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgba(0,0,0,.42);
}
.price-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 66px rgba(0,0,0,.4);
}
.product-card.featured,
.status-card.featured {
  outline: 2px solid rgba(34,211,238,.48);
  transform: translateY(-4px);
}
.price {
  font-size: 40px;
  font-weight: 900;
  margin: 12px 0 4px;
}
.badge,
.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.badge { background: rgba(34,211,238,.14); color: #a5f3fc; }
.tag { background: rgba(255,255,255,.08); color: #eceaff; }
.status-pill.paid,
.status-pill.active,
.status-pill.ready,
.status-pill.delivered {
  background: rgba(16,185,129,.16);
  color: #6ee7b7;
}
.status-pill.pending,
.status-pill.draft,
.status-pill.curation,
.status-pill.checkout {
  background: rgba(250,204,21,.16);
  color: #fde68a;
}
.status-pill.error,
.status-pill.manual,
.status-pill.cancelled {
  background: rgba(248,113,113,.16);
  color: #fca5a5;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
}
.list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 900;
}

.controls,
.filters,
.toolbar,
.tabbar,
.builder-actions,
.form-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: white;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,85,247,.15);
  background: rgba(255,255,255,.08);
}
textarea { min-height: 118px; resize: vertical; }
label { font-size: 13px; font-weight: 800; color: #f0ecff; margin-bottom: 8px; display: block; }
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.form-grid.one { grid-template-columns: 1fr; }
.form-block {
  display: grid;
  gap: 8px;
}
.helper {
  color: var(--muted);
  font-size: 13px;
}
.checkbox-list,
.toggle-list {
  display: grid;
  gap: 10px;
}
.checkbox-item,
.toggle-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.checkbox-item input,
.toggle-item input { width: auto; margin-top: 4px; }

.view-header,
.catalog-header,
.dashboard-header,
.builder-header,
.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.header-side {
  max-width: 460px;
}

.filters {
  margin-top: 16px;
}
.filter-group {
  min-width: 180px;
  flex: 1;
}
.filter-group input,
.filter-group select { background: rgba(255,255,255,.05); }

.product-card {
  display: grid;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(0,0,0,.4);
}
.product-meta,
.order-meta,
.profile-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 28px;
  font-weight: 900;
}
.product-actions,
.order-actions,
.profile-actions,
.queue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.country-card {
  min-height: 160px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.country-card p { margin: 8px 0 0; }

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin: 18px 0 22px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.builder-layout {
  display: grid;
  grid-template-columns: 1fr .44fr;
  gap: 18px;
}
.summary-box {
  position: sticky;
  top: 92px;
  align-self: start;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.summary-line:last-child { border-bottom: 0; }
.step-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.step-chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.step-chip.active {
  background: rgba(168,85,247,.18);
  color: white;
  border-color: rgba(168,85,247,.32);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin-top: 18px;
}
.auth-card .note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.codebox {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
}
.tab {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}
.tab.active {
  background: linear-gradient(135deg, rgba(168,85,247,.75), rgba(34,211,238,.5));
  color: white;
}

.dashboard-side {
  display: grid;
  gap: 18px;
}
.order-card,
.profile-card,
.queue-card,
.setting-card,
.timeline-card,
.table-card {
  display: grid;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.order-card:hover,
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
}
.order-title-line,
.profile-title-line,
.queue-title-line,
.settings-title-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}
.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(168,85,247,.14);
}
.table-like {
  display: grid;
  gap: 10px;
}
.table-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.table-row:last-child { border-bottom: 0; }

.review-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.review-stars {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-card p {
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 14px;
}
.review-author {
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-2);
}

.cta-band {
  margin: 40px 0 60px;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.14));
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.cta-band:hover {
  transform: translateY(-2px);
}

.footer {
  padding: 18px 0 40px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.18);
  color: #d7fbff;
}
.notice.warn {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.2);
  color: #fde68a;
}
.empty-card {
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero-grid,
  .dashboard-grid,
  .builder-layout,
  .auth-layout,
  .grid-4,
  .product-grid,
  .country-grid,
  .pricing-grid,
  .feature-grid,
  .grid-3,
  .grid-2,
  .order-grid,
  .profile-grid,
  .settings-grid,
  .queue-grid,
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .builder-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1240px); }
  .topbar-inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
  .nav-links { display: none; }
  .burger { display: block; order: 3; }
  .nav-actions { margin-left: auto; }
  .mobile-nav {
    width: 100%;
    background: rgba(8,12,25,.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
  .hero,
  .section,
  .dashboard,
  .catalog,
  .builder,
  .admin,
  .auth-view { padding: 22px 0; }
  .hero-grid,
  .dashboard-grid,
  .auth-layout,
  .grid-4,
  .grid-3,
  .grid-2,
  .kpis,
  .product-grid,
  .country-grid,
  .pricing-grid,
  .feature-grid,
  .order-grid,
  .profile-grid,
  .settings-grid,
  .queue-grid,
  .form-grid,
  .table-row {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 46px; }
  .nav-actions { width: 100%; }
}
