@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* ─── Claymorphism Design System ─────────────────── */
:root {
  --bg: #0d0d17;
  --surface: #181825;
  --clay-bg: #1e1e2c;
  --clay-bg-lighter: #252433;

  --accent-rose: #ffb1c5;
  --accent-purple: #d4a5ff;
  --gradient: linear-gradient(135deg, #ffb1c5, #d4a5ff);
  --gradient-hover: linear-gradient(135deg, #ffc5d5, #e0c2ff);

  --text-primary: #e7e3f3;
  --text-secondary: #aca9b8;
  --text-muted: #757481;

  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-full: 9999px;

  /* Clay Shadows */
  --clay-shadow: 12px 12px 24px 0 rgba(0, 0, 0, 0.4),
    inset -6px -6px 12px 0 rgba(0, 0, 0, 0.2),
    inset 6px 6px 12px 0 rgba(255, 255, 255, 0.08);

  --clay-shadow-sm: 8px 8px 16px 0 rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px 0 rgba(0, 0, 0, 0.2),
    inset 4px 4px 8px 0 rgba(255, 255, 255, 0.06);

  --clay-shadow-btn: 6px 6px 12px 0 rgba(255, 177, 197, 0.2),
    inset -4px -4px 8px 0 rgba(0, 0, 0, 0.2),
    inset 4px 4px 8px 0 rgba(255, 255, 255, 0.3);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  --nav-height: 120px;
  --transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

/* ─── Typography ─────────────────────────────────── */
.display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subheading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.page-wrapper {
  padding-top: var(--nav-height);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

/* ─── Clay Components ────────────────────────────── */
.clay-card {
  background: var(--clay-bg);
  border-radius: var(--radius-lg);
  padding: 32px 32px 48px 32px;
  box-shadow: var(--clay-shadow);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.clay-card-sm {
  background: var(--clay-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--clay-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card-sm {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ─── Buttons (Clay Style) ───────────────────────── */
.btn-primary {
  background: var(--gradient);
  color: #1a0b2e;
  /* Darker text for better contrast on pastel pink */
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--clay-shadow-btn);
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px 0 rgba(0, 0, 0, 0.2),
    inset 4px 4px 8px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  background: var(--surface);
  color: var(--accent-rose);
  border: 1px solid rgba(255, 177, 197, 0.2);
  padding: 13px 29px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--clay-shadow-sm);
  transition: all var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.btn-outline:hover {
  transform: scale(1.02);
  background: var(--clay-bg-lighter);
}

.btn-outline.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-ghost:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

/* ─── Nav ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 18, 29, 0.88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 var(--space-2xl);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo img {
  display: block;
  height: 110px;
  width: auto;
  object-fit: contain;
  margin-top: 10px;
}

/* Hamburger - hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav overlay - hidden on desktop */
.nav-overlay {
  display: none;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-2xl) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer .nav-logo img,
.footer-grid .nav-logo img {
  height: 70px;
  margin-top: 0;
}

/* ─── Form Controls (Clay Style) ──────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: 28px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px;
}

.form-control {
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  outline: none;
  width: 100%;
  line-height: 1.5;
  box-shadow: inset 6px 6px 12px 0 rgba(0, 0, 0, 0.4),
    inset -4px -4px 8px 0 rgba(255, 255, 255, 0.05);
  /* Recessed clay look */
  transition: box-shadow var(--transition);
}

.form-control:focus {
  box-shadow: inset 6px 6px 12px 0 rgba(0, 0, 0, 0.6),
    inset -4px -4px 8px 0 rgba(255, 255, 255, 0.1),
    0 0 0 2px var(--accent-rose);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Status Badges ───────────────────────────────── */
.badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-processing,
.badge-uploaded {
  background: rgba(199, 125, 255, 0.15);
  color: #c77dff;
  border: 1px solid rgba(199, 125, 255, 0.3);
}

.badge-shipped {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-delivered {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-cancelled,
.badge-rejected {
  background: rgba(255, 77, 109, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.3);
}

.badge-verified {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

/* ─── Tab Bar (Clay Style) ───────────────────────── */
.tab-bar {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-full);
  padding: 8px;
  gap: 8px;
  width: fit-content;
  box-shadow: inset 8px 8px 16px rgba(0, 0, 0, 0.5),
    inset -4px -4px 8px rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-xl);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tab-btn.active {
  background: var(--gradient);
  color: #1a0b2e;
  box-shadow: var(--clay-shadow-btn);
}

/* ─── Store Cards (Clay Style) ───────────────────── */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.store-card {
  background: var(--clay-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  min-height: 180px;
  justify-content: center;
  box-shadow: var(--clay-shadow);
}

.store-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--clay-bg-lighter);
  box-shadow: 16px 16px 32px rgba(0, 0, 0, 0.5),
    inset -6px -6px 12px 0 rgba(0, 0, 0, 0.2),
    inset 6px 6px 12px 0 rgba(255, 255, 255, 0.12);
}

.store-card.active {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: var(--clay-shadow-btn);
}

.store-card.active .store-name {
  color: #1a0b2e;
}

.store-card .store-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.store-card .store-desc {
  display: none;
}

.badge-pop {
  background: #3b82f6;
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.badge-prem {
  background: #eab308;
  color: black;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.open-store-link {
  color: var(--accent-rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 117, 160, 0.08);
  border: 1px solid rgba(255, 117, 160, 0.2);
  transition: all 0.2s;
}

.open-store-link:hover {
  background: var(--accent-rose);
  color: white;
  transform: translateY(-1px);
}

/* ─── Detected Badge ──────────────────────────────── */
.detected-badge-container {
  margin-top: var(--space-sm);
  min-height: 28px;
}

.detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  animation: fadeIn 0.3s ease-out;
}

/* ─── Variant Modal ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: var(--space-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.modal-title svg {
  color: #f87171;
  flex-shrink: 0;
}

.modal-title h2 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.modal-list li {
  display: flex;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.modal-list li strong {
  color: var(--text-primary);
}

.modal-list .dot {
  color: var(--text-primary);
  font-weight: 800;
}

.modal-warning {
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.2);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.modal-warning p {
  color: #fca5a5;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Divider ─────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: var(--space-lg) 0;
}

/* ─── Glow background ─────────────────────────────── */
.glow-bg {
  position: relative;
  overflow: hidden;
}

.glow-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(199, 125, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Progress Steps ──────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-dot.done {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.step-dot.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  animation: pulse-glow 2s infinite;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--glass-border);
  margin-top: -18px;
  min-width: 24px;
}

.step-connector.done {
  background: var(--gradient);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--accent-rose);
  font-weight: 700;
}

/* ─── Table ───────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Dashed Upload Area ──────────────────────────── */
.upload-area {
  border: 2px dashed rgba(255, 107, 157, 0.4);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: rgba(255, 107, 157, 0.04);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.upload-area:hover {
  border-color: rgba(255, 107, 157, 0.7);
  background: rgba(255, 107, 157, 0.07);
}

/* ─── Stat Cards ──────────────────────────────────── */
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Sidebar Layout ──────────────────────────────── */
.sidebar-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--glass-border);
  padding: var(--space-xl) var(--space-md);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Outfit', sans-serif;
}

.sidebar-item:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: rgba(255, 107, 157, 0.12);
  color: var(--accent-rose);
}

/* ─── Copy Button ─────────────────────────────────── */
.copy-btn {
  background: var(--surface-high);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Outfit', sans-serif;
}

.copy-btn:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.copy-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

/* ─── Alert / Info Box ────────────────────────────── */
.info-box {
  background: rgba(255, 107, 157, 0.07);
  border: 1px solid rgba(255, 107, 157, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── Animations ──────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.4);
  }

  50% {
    box-shadow: 0 0 28px rgba(255, 107, 157, 0.9);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease-out both;
}

.animate-fade-up-delay {
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .navbar {
    padding: 0 var(--space-sm);
    gap: var(--space-xs);
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-logo img {
    height: 70px;
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-actions {
    gap: var(--space-xs);
  }

  .nav-actions a,
  .nav-actions button {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Hamburger button */
  .hamburger {
    display: flex;
  }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 100px var(--space-xl) var(--space-2xl);
    gap: 0;
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 17px !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent-rose);
  }

  /* Overlay behind drawer */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .display {
    font-size: clamp(30px, 8vw, 40px);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .glass-card {
    padding: var(--space-lg);
  }

  .sidebar-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .tab-bar {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
  }

  .progress-steps {
    gap: 0;
  }

  .step-label {
    font-size: 10px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: var(--space-sm);
  }
}

@media (max-width: 480px) {

  .nav-actions .btn-outline,
  .nav-actions .btn-ghost {
    display: none !important;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Store Cards Refined ────────────────────── */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.store-card {
  background: var(--bg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: inset 8px 8px 16px rgba(0, 0, 0, 0.5),
    inset -4px -4px 8px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid transparent;
}

.store-card.active {
  background: var(--clay-bg-lighter);
  box-shadow: var(--clay-shadow-sm);
  border-color: rgba(255, 177, 197, 0.2);
  transform: translateY(-4px) scale(1.02);
}

.store-card:hover:not(.active) {
  background: var(--clay-bg);
  transform: translateY(-2px);
}

.store-name {
  font-weight: 700;
  font-size: 14px;
}

.open-store-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-rose);
  text-decoration: none;
  background: rgba(255, 177, 197, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.open-store-link:hover {
  background: var(--accent-rose);
  color: #1a0b2e;
}

/* ─── Form Inputs Refined ─────────────────────── */
.form-control {
  width: 100%;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition);
  box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.5),
    inset -4px -4px 8px rgba(255, 255, 255, 0.05);
}

.form-control:focus {
  outline: none;
  background: var(--clay-bg);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 177, 197, 0.1);
}

.section-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-rose);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.divider {
  border: none;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  margin: var(--space-xl) 0;
  border-radius: 1px;
}

/* ─── Layout Helpers ─────────────────────────── */
.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .summary-sticky {
    position: static !important;
    align-self: stretch !important;
  }

  .btn-primary.btn-lg {
    padding: 14px 20px;
    font-size: 15px;
    white-space: normal;
  }
}

/* ─── Summary Card Refined ───────────────────── */
.summary-sticky {
  position: sticky;
  top: 20px;
  padding: 0 !important;
  margin-top: 0 !important;
  overflow: hidden;
  align-self: start;
}

.summary-header {
  background: var(--gradient);
  padding: var(--space-lg);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.summary-title {
  color: #1a0b2e;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-body {
  padding: var(--space-xl);
}

.total-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.total-main {
  font-size: 28px;
  line-height: 1;
}

.summary-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ─── Route Cards ───────────────────────────── */
.route-tabs {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.route-tab {
  flex: 1;
  padding: var(--space-md);
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.5),
    inset -2px -2px 4px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.route-tab.active {
  background: var(--gradient);
  color: #1a0b2e;
  box-shadow: var(--clay-shadow-btn);
  transform: translateY(-2px);
}

.route-tab:not(.active):hover {
  background: var(--clay-bg-lighter);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ─── Order Summary ──────────────────────────── */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 2px dashed rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-weight: 800;
}

.summary-row .value {
  color: var(--text-primary);
  font-weight: 700;
}

.aux-price {
  font-weight: 400;
  color: var(--text-muted);
}