:root {
  --bg-base: #070b14;
  --bg-surface: #0e1525;
  --bg-card: #121b2f;
  --bg-card-hover: #17233c;
  --bg-elevated: #1c2946;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.65);
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TOP PROMO BAR ==================== */
.top-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 50%, #164e63 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
  display: inline-block;
}

.top-bar-promos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.coupon-chip {
  background: rgba(99, 102, 241, 0.18);
  border: 1px dashed rgba(129, 140, 248, 0.55);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.coupon-chip:hover {
  background: var(--accent);
  color: #fff;
  border-style: solid;
}

/* ==================== STICKY HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.55);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
}

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

.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0 12px;
  width: 255px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 8px;
  font-size: 13px;
  width: 100%;
  color: var(--text-primary);
}

.search-kbd {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 1px 6px;
}

.btn-icon-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-icon-outline svg {
  width: 16px;
  height: 16px;
}

.btn-icon-outline:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(99, 102, 241, 0.12);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.65);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cart-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cart-trigger svg {
  width: 17px;
  height: 17px;
}

.cart-badge {
  background: #fff;
  color: #312e81;
  font-size: 12px;
  font-weight: 800;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  padding: 54px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(99, 102, 241, 0.22);
  top: -140px;
  left: -80px;
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  background: rgba(6, 182, 212, 0.16);
  bottom: -120px;
  right: -60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pill-tag {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(95deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15.5px;
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-desc strong {
  color: #fff;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.7);
}

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

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: #818cf8;
  background: var(--bg-card-hover);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
}

/* Hero Bento Quick Deals */
.hero-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bento-card {
  background: linear-gradient(180deg, rgba(23, 35, 60, 0.85) 0%, rgba(14, 21, 37, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.55);
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.bento-save {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.bento-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.bento-plan {
  font-size: 12px;
  color: var(--text-muted);
}

.bento-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.bento-price {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.bento-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ==================== STOREFRONT SECTION ==================== */
.section {
  padding: 58px 0;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 700px;
  margin-top: 6px;
}

.quick-type-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.type-chip {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.type-chip:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.type-chip.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  color: #fff;
}

/* Category Tabs */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.cat-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.cat-tab.active {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.24) 0%, rgba(6, 182, 212, 0.14) 100%);
  border-color: #818cf8;
  box-shadow: 0 10px 25px -12px rgba(99, 102, 241, 0.5);
}

.cat-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cat-tab-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.cat-tab-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.cat-tab.active .cat-tab-count {
  background: var(--accent);
  color: #fff;
}

.cat-tab-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Store Toolbar */
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.results-summary {
  font-size: 14px;
  color: var(--text-secondary);
}

.results-summary strong {
  color: #fff;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-search-wrap {
  display: none;
}

.mobile-search-wrap input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  width: 100%;
  outline: none;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.sort-wrap select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  outline: none;
}

/* ==================== PRODUCT CARDS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: var(--shadow-lg);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.card-title-wrap {
  flex: 1;
  min-width: 0;
}

.card-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.badge-hot {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.badge-discount {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

.card-title:hover {
  color: #a5b4fc;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.star-rating {
  color: #fbbf24;
  font-weight: 700;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}

.delivery-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.delivery-tag {
  color: #93c5fd;
  font-weight: 600;
}

.plan-type-tag {
  color: var(--text-muted);
  font-weight: 500;
}

/* Interactive Duration Selector Pills on Card */
.plan-selector-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-pill {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.plan-pill:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.plan-pill.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.4);
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 21px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.15;
}

.original-price-line {
  font-size: 12px;
  color: var(--text-muted);
}

.original-price-line del {
  margin-right: 5px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-detail {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.18s;
}

.btn-detail:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.btn-buy-card {
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, filter 0.15s;
}

.btn-buy-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==================== MASTER PRICING TABLE SECTION ==================== */
.pricing-table-section {
  background: linear-gradient(180deg, rgba(14, 21, 37, 0.55) 0%, rgba(7, 11, 20, 1) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-header-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pricing-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.table-cat-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.table-cat-btn {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.18s;
}

.table-cat-btn.active, .table-cat-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.table-search-box {
  min-width: 280px;
  flex: 0 1 320px;
}

.table-search-box input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  outline: none;
}

.table-search-box input:focus {
  border-color: var(--accent);
}

.master-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.master-price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.master-price-table th {
  background: #0d1424;
  text-align: left;
  padding: 15px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
}

.master-price-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 13.5px;
}

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

.master-price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table-cat-divider td {
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  letter-spacing: 0.03em;
}

.tbl-service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tbl-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tbl-name {
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.tbl-name:hover {
  color: #818cf8;
}

.tbl-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.tbl-delivery {
  font-size: 12.5px;
  color: #93c5fd;
  font-weight: 600;
}

.tbl-plans-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tbl-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
  text-align: left;
}

.tbl-plan-btn:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.tbl-plan-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.tbl-plan-price {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
}

.tbl-save-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  padding: 3px 9px;
  border-radius: 999px;
}

.tbl-warranty {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==================== PROCESS STEPS ==================== */
.center-header {
  text-align: center;
  margin-bottom: 34px;
}

.center-header .section-desc {
  margin: 8px auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==================== ORDER LOOKUP & FAQ ==================== */
.dual-info-section {
  border-top: 1px solid var(--border-subtle);
}

.dual-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.lookup-card, .faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.lookup-card code {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 2px 6px;
  border-radius: 5px;
}

.lookup-form {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.lookup-form input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
}

.lookup-form input:focus {
  border-color: var(--accent);
}

.lookup-result {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
}

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

.order-history-item {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.order-history-item:last-child {
  margin-bottom: 0;
}

.order-history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.order-status-ok {
  font-size: 11.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}

.faq-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: #818cf8;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #050810;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-about {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 14px 0 18px;
  max-width: 460px;
}

.footer-contact-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-pill:hover {
  border-color: var(--accent);
  color: #fff;
}

.footer-col h4 {
  font-size: 14.5px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==================== FLOATING SUPPORT ==================== */
.floating-support {
  position: fixed;
  left: 20px;
  bottom: 22px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: transform 0.2s;
}

.float-btn:hover {
  transform: scale(1.07);
}

.float-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #00a3ff 100%);
}

.float-cart {
  background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
}

.float-cart svg {
  width: 22px;
  height: 22px;
}

.float-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

/* ==================== MODALS & CART DRAWER ==================== */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
}

.product-modal > .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.pm-body {
  padding: 28px;
}

.pm-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-right: 34px;
}

.pm-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pm-title {
  font-size: 22px;
  font-weight: 800;
}

.pm-features {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
}

.pm-features h4 {
  font-size: 13.5px;
  color: #93c5fd;
  margin-bottom: 10px;
}

.pm-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
}

.pm-features li::before {
  content: "✓";
  color: #34d399;
  font-weight: 800;
}

.pm-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}

.pm-plan-option {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pm-plan-option.active {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.2);
}

.pm-account-box {
  margin-bottom: 20px;
}

.pm-account-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.pm-account-box input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  outline: none;
}

.pm-account-box input:focus {
  border-color: var(--accent);
}

.pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Cart Drawer */
.drawer-backdrop {
  justify-content: flex-start;
  padding: 0;
}

.cart-drawer {
  width: 100%;
  max-width: 490px;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
}

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

.drawer-header h3 {
  font-size: 18px;
}

.drawer-header p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-title {
  font-weight: 700;
  font-size: 14.5px;
}

.cart-item-plan {
  font-size: 12.5px;
  color: #93c5fd;
  margin-top: 2px;
}

.cart-remove-btn {
  font-size: 12px;
  color: #fb7185;
}

.cart-item-note {
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  outline: none;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  font-weight: 700;
}

.qty-control span {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.coupon-row input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  text-transform: uppercase;
  outline: none;
}

.checkout-customer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-customer-box h4 {
  font-size: 13.5px;
  color: #fff;
}

.checkout-customer-box input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  outline: none;
}

.vietqr-box {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.vietqr-box img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px auto;
  display: block;
}

.vietqr-meta {
  font-size: 12.5px;
  text-align: left;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
  background: #0c1220;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 14px;
}

.summary-total span:last-child {
  color: #38bdf8;
}

/* Admin Modal */
.admin-modal {
  max-width: 860px;
}

.admin-modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-modal-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-modal-body {
  padding: 22px 26px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

.admin-field input, .admin-field select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  outline: none;
}

.admin-price-tools {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-price-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg-surface);
}

.admin-prod-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.admin-prod-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-plan-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

.admin-plan-edit input {
  width: 92px;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  color: #38bdf8;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid #6366f1;
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .category-tabs { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hide-sm, .hide-md, .header-search { display: none; }
  .mobile-search-wrap { display: block; width: 100%; }
  .category-tabs { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .dual-grid, .footer-grid, .admin-grid-2, .pm-plans-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-bento { grid-template-columns: 1fr 1fr; }
}

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