:root {
  --bg: #05060a;
  --bg-elevated: rgba(19, 22, 33, 0.95);
  --bg-soft: rgba(19, 22, 33, 0.9);
  --accent: #36cfc9;
  --accent-soft: rgba(54, 207, 201, 0.18);
  --accent-strong: #00e6b8;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-chip: 0 8px 20px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

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

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%, #000 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  min-height: 100vh;
}

#app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 24px;
}

/* Header */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.7));
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #f97316, #ec4899 40%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
}

.icon-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-strong);
  color: #020617;
  font-weight: 700;
}

/* Hero */

.hero {
  margin-bottom: 14px;
}

.hero-text {
  padding: 16px 18px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at 100% 20%, rgba(244, 114, 182, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.hero-text h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.hero-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 14px;
}

/* Sidebar / Filters */

.sidebar {
  padding: 14px;
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.sidebar h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.filter-group {
  margin-top: 10px;
}

.filter-group h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-chip);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chip-active {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: #e0fdfa;
}

.select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 13px;
}

/* Catalog */

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: default;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(56, 189, 248, 0.7);
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
}

.product-image {
  height: 120px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0, rgba(248, 250, 252, 0.12), transparent 50%),
    radial-gradient(circle at 80% 120%, rgba(59, 130, 246, 0.22), transparent 55%),
    #020617;
  border: 1px solid rgba(30, 64, 175, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
}

.product-image-inner {
  width: 80%;
  height: 80%;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.85);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 22px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
}

.product-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-meta span.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 55);
  color: var(--text-muted);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.qty-btn {
  border: none;
  background: transparent;
  color: var(--text);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.qty-btn:active {
  background: rgba(15, 23, 42, 0.9);
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
}

.add-btn {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 7px 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #03140a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.add-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.add-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

/* Cart drawer */

.cart-drawer {
  position: fixed;
  inset-block: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.cart-drawer-open {
  transform: translateX(0);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
  z-index: 30;
}

.cart-backdrop-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  padding: 12px 16px 16px;
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(51, 65, 85, 0.8);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
}

.cart-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.primary-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  background: linear-gradient(135deg, #36cfc9, #22c55e);
  color: #020617;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(45, 212, 191, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.primary-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: none;
}

/* Responsive */

@media (max-width: 800px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: 2;
  }

  .catalog {
    order: 1;
  }

  .hero-text h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #app {
    padding-inline: 10px;
  }

  .app-header {
    border-radius: 16px;
  }

  .hero-text {
    border-radius: 18px;
  }

  .catalog {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-drawer {
    max-width: 100%;
  }
}


/* Order overview / status panel */

.order-overview {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  position: relative;
  padding: 14px 16px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(74, 222, 128, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

.order-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.order-chip--pending {
  border-color: #f97316;
  color: #fed7aa;
}

.order-chip--accepted {
  border-color: #22c55e;
  color: #bbf7d0;
}

.order-chip--onway {
  border-color: #38bdf8;
  color: #bae6fd;
}

.order-chip--delivered {
  border-color: #22c55e;
  color: #bbf7d0;
}

.order-chip--cancelled {
  border-color: #f97316;
  color: #fecaca;
}

.order-chip--muted {
  opacity: 0.7;
}

.order-card-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.order-card-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.order-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.order-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.9);
}

.order-meta-value {
  font-weight: 500;
}

.order-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.order-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
}

.order-step--active .order-step-dot {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.order-step--active {
  color: #e5e7eb;
}

.order-step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), transparent);
}

.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.order-status-btn {
  flex: 1;
}

.order-secondary-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-secondary-btn:hover {
  border-color: var(--accent);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .order-card {
    padding: 12px 12px 14px;
  }
}


.order-history {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.order-history h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.order-history-item {
  padding: 6px 0;
  border-top: 1px dashed rgba(51, 65, 85, 0.7);
  font-size: 11px;
}

.order-history-item:first-of-type {
  border-top: none;
}

.order-history-main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.order-history-id {
  font-weight: 600;
}

.order-history-status {
  text-transform: capitalize;
  color: #a5b4fc;
}

.order-history-meta span {
  margin-right: 10px;
  color: #9ca3af;
}

/* Bottom tab bar */
.bottom-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  z-index: 50;
}

.bottom-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 11px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: background 0.18s ease-out, border-color 0.18s ease-out, transform 0.1s ease-out;
}

.bottom-tab-icon {
  font-size: 14px;
  line-height: 1;
}

.bottom-tab-label {
  line-height: 1;
}

.bottom-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.bottom-tab--active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.05));
  border-color: var(--accent-strong);
  color: #e5f6ff;
}

.bottom-tab--active .bottom-tab-icon {
  font-size: 15px;
}

/* Prevent content being hidden behind tabs */
#app {
  padding-bottom: 70px;
}

/* Product detail modal */

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 60;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 61;
}

.product-modal-content {
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  display: flex;
  flex-direction: column;
}

.product-modal-visible .product-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-visible .product-modal {
  pointer-events: auto;
}

.product-modal-visible .product-modal-content {
  opacity: 1;
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  color: #e5e7eb;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
}

.product-modal-image {
  width: 100%;
  padding-top: 56%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.product-modal-body {
  padding: 14px 16px 16px;
}

.product-modal-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.product-modal-category {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.product-modal-description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #cbd5e1;
  white-space: pre-line;
}

.product-modal-price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
}

/* === Premium black / red / white header & hero + account panel === */
:root {
  --bg: #050506;
  --bg-elevated: rgba(15, 15, 18, 0.98);
  --bg-soft: rgba(17, 17, 20, 0.96);
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.15);
  --accent-strong: #f97373;
  --accent-secondary: #ffffff;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
  --shadow-chip: 0 8px 22px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

body {
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.14), transparent 55%),
    radial-gradient(circle at top right, rgba(248, 250, 252, 0.06), transparent 55%),
    #020105;
}

/* Header centering & logo */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #050509;
  border: 2px solid var(--accent);
  box-shadow:
    0 0 0 2px rgba(15, 15, 18, 0.95),
    0 0 25px rgba(239, 68, 68, 0.65);
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.brand-text {
  text-align: center;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
  color: #fefefe;
}

.brand-tagline {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Hero centering */
.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 22px;
  font-weight: 750;
}

.hero-text p {
  max-width: 360px;
  margin-inline: auto;
}

/* Primary CTA buttons */
.primary-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #f9fafb;
  box-shadow: 0 18px 36px rgba(248, 113, 113, 0.5);
}

/* Active chip styling */
.chip-active {
  background: radial-gradient(circle at 0 0, rgba(239, 68, 68, 0.35), transparent 55%),
    rgba(15, 15, 20, 0.98);
  border-color: var(--accent-strong);
  color: #fef2f2;
}

/* Order card tweak */
.order-card {
  background:
    radial-gradient(circle at 0 0, rgba(239, 68, 68, 0.18), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(148, 163, 184, 0.16), transparent 60%),
    rgba(7, 7, 10, 0.98);
  border: 1px solid rgba(248, 250, 252, 0.05);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9);
}

/* Compact, premium + Add button */
.add-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  border: none;
  padding: 5px 10px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.add-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.add-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: none;
}

/* Account panel (store credit + referrals) */

.account-panel {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.account-card {
  border-radius: 16px;
  background: rgba(13, 13, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  padding: 12px 14px 14px;
}

.account-card-header h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.account-card-header p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.account-card-body {
  margin-top: 8px;
}

.account-balance {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.account-subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.account-topup-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.account-input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  font-size: 12px;
}

.account-btn {
  margin-top: 2px;
  font-size: 13px;
}

.account-btn.secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: none;
}

.account-btn.secondary:hover {
  border-color: var(--accent);
}

.account-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Referral code row */

.referral-code-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.referral-code {
  flex: 1;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  font-size: 11px;
  padding: 5px 8px;
  cursor: pointer;
}


/* Utility */
.hidden {
  display: none !important;
}

/* Hero profile for non-Products tabs */
.hero-profile {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(13, 13, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 18px;
}
