:root {
  --bg: #0a0a0f;
  --surface: #121826;
  --surface-2: #1a2235;
  --surface-3: #243043;
  --accent: #06b6d4;
  --accent-2: #6366f1;
  --accent-3: #8b5cf6;
  --text: #f5f7ff;
  --text-muted: #94a3b8;
  --border: rgba(115, 151, 255, 0.18);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.16), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at 80% 85%, rgba(139, 92, 246, 0.16), transparent 24%),
    linear-gradient(180deg, #040813 0%, #0a0a0f 48%, #040813 100%);
  overflow: hidden;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.store-header {
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
}

.site-header.scrolled,
.store-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 640px) auto;
  align-items: center;
  gap: 18px;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.header-search {
  position: relative;
  width: 100%;
}

.search-input,
.header-search .search-input {
  width: 100%;
  min-height: 48px;
  background: #1a2235;
  border: 1px solid rgba(115, 151, 255, 0.22);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.header-search .search-input {
  padding: 0 16px 0 42px;
}

.search-input:focus,
.header-search .search-input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.search-input::placeholder,
.header-search .search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
  padding: 12px 18px;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.btn-secondary {
  background: #1a2235;
  color: var(--text);
  border: 1px solid rgba(115, 151, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 14px;
}

.btn-secondary:hover {
  border-color: var(--accent-2);
  color: #fff;
}

.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-action-text {
  min-width: 88px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.cart-header-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #081018;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
}

.store-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 224px;
  flex-shrink: 0;
  padding: 16px;
  overflow-y: auto;
  background: #111827;
  border-right: 1px solid var(--border);
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sidebar-title.second {
  margin-top: 20px;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  background: transparent;
  border: none;
  text-align: left;
  font-size: 14px;
}

.cat-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cat-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.sidebar-sale-box {
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.sale-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}

.sale-copy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.flash-timer {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
  color: var(--text);
  margin-top: 4px;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.view-tab {
  display: none;
}

.view-tab.active {
  display: block;
}

.hero-banner {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a0533 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
  min-height: 220px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-new {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
}

.badge-sale {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-hot {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

.badge-digital {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.hero-badge {
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.flash-sale-bar {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.flash-sale-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flash-sale-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #f87171;
}

.flash-sale-text {
  font-size: 13px;
  color: var(--text-muted);
}

.small-btn {
  font-size: 13px;
  padding: 10px 14px;
  margin-left: auto;
}

.renewal-section {
  margin-top: 20px;
  margin-bottom: 24px;
}

.renewal-shell {
  background: linear-gradient(135deg, #0f1729, #111b33);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.renewal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.renewal-copy {
  flex: 1;
  min-width: 260px;
}

.renewal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.renewal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.renewal-text {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 680px;
  line-height: 1.7;
}

.renewal-side {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.renewal-mini-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.renewal-mini-card-accent {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.12);
  color: #b6f3ff;
}

.renewal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.renewal-search-block {
  min-width: 0;
}

.renewal-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.renewal-search-input {
  flex: 1;
  min-width: 230px;
  padding-left: 16px;
}

.renewal-search-btn {
  flex-shrink: 0;
}

.renewal-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.renewal-hint {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.renewal-hint-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.renewal-hint-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.renewal-result-wrap {
  margin-top: 18px;
}

.renewal-empty,
.renewal-loading,
.renewal-warning {
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.renewal-loading {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.14);
  color: var(--text);
  font-size: 14px;
}

.renewal-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.renewal-match-list {
  display: grid;
  gap: 12px;
}

.renewal-match-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(124, 58, 237, 0.22);
}

.renewal-match-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.renewal-match-info {
  min-width: 0;
  flex: 1;
}

.renewal-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.renewal-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.renewal-badge-primary {
  background: rgba(124, 58, 237, 0.18);
  color: #d8b4fe;
}

.renewal-badge-success {
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
}

.renewal-match-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.renewal-match-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.renewal-match-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.renewal-match-help {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.renewal-checkout-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.renewal-checkout-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.renewal-checkout-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  background: transparent;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
}

.product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, #1a2235, #0f1729);
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-body {
  padding: 14px;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.product-stars {
  color: #f59e0b;
  font-size: 11px;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.product-original-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
  min-height: 48px;
}

.product-footer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #d8deff;
  margin-bottom: 10px;
}

.stock-pill.low {
  color: #ffd79a;
  border-color: rgba(245, 158, 11, 0.35);
}

.stock-pill.out {
  color: #ffb5c1;
  border-color: rgba(239, 68, 68, 0.35);
}

.full-btn {
  width: 100%;
}

.view-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
}

.view-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-text {
  color: var(--text-muted);
  font-size: 14px;
}

.account-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 20px;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.account-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.account-name {
  font-weight: 700;
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
}

.account-mail {
  color: var(--text-muted);
  font-size: 13px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.account-stat {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.account-stat-value {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
}

.account-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 149;
  display: none;
}

.cart-backdrop.open {
  display: block;
}

.cart-panel {
  position: fixed;
  right: -420px;
  top: 0;
  bottom: 0;
  width: 420px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 150;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.cart-items {
  padding: 16px;
  flex: 1;
}

.cart-item {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-item-icon {
  font-size: 30px;
}

.cart-item-content {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.cart-summary-box {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.total-row {
  font-weight: 700;
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.total-row #cartTotal {
  color: var(--accent);
}

.success-text {
  color: var(--success);
}

.coupon-box {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.coupon-feedback {
  min-height: 18px;
  font-size: 12px;
  margin-bottom: 12px;
}

.coupon-feedback.success {
  color: var(--success);
}

.coupon-feedback.error {
  color: #fca5a5;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
}

.checkout-box {
  max-width: 560px;
}

.checkout-inner {
  padding: 24px;
}

.checkout-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-fields label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.full-span {
  grid-column: 1 / -1;
}

.checkout-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.checkout-actions {
  display: flex;
  gap: 10px;
}

.confirm-box {
  max-width: 440px;
}

.confirm-inner {
  padding: 32px;
  text-align: center;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(6,182,212,0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

.confirm-inner h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.confirm-inner p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.confirm-summary {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.confirm-row:last-child {
  margin-bottom: 0;
}

.confirm-row span:first-child {
  color: var(--text-muted);
}

.confirm-row span:last-child {
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  z-index: 300;
  font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.fade-in {
  animation: fadeInUp 0.4s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .header-layout {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-action-text {
    display: none;
  }

  .renewal-grid {
    grid-template-columns: 1fr;
  }

  .renewal-hint {
    order: 2;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .cart-panel {
    width: 100%;
    right: -100%;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .renewal-shell {
    padding: 20px;
  }

  .renewal-match-top {
    flex-direction: column;
  }

  .renewal-match-actions {
    width: 100%;
    min-width: 0;
  }

  .renewal-match-help {
    text-align: left;
  }

  .renewal-checkout-card {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .store-header {
    padding: 10px 12px;
  }

  .header-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-button {
    justify-content: center;
  }

  .header-actions {
    justify-self: center;
  }

  .header-search {
    order: 3;
  }

  .main-content {
    padding: 16px;
  }

  .hero-banner {
    padding: 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .renewal-title {
    font-size: 24px;
  }

  .renewal-search-row {
    flex-direction: column;
  }

  .renewal-search-input,
  .renewal-search-btn {
    width: 100%;
    min-width: 0;
  }

  .coupon-box {
    flex-direction: column;
  }

  .flash-sale-inner {
    align-items: stretch;
  }

  .small-btn {
    margin-left: 0;
    width: 100%;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .toast {
    width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
