/* Root theme variables */
:root {
  --bg-primary: #0f0f12;
  --bg-secondary: #1a1a1f;
  --bg-tertiary: rgba(31, 31, 38, 0.5);
  --text-primary: #f0f0f0;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border-color: rgba(75, 85, 99, 0.3);
  --border-color-hover: rgba(107, 114, 128, 0.5);
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;
}

body.light-mode {
  --bg-primary: #f9fafb;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: rgba(229, 231, 235, 0.5);
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --border-color: rgba(209, 213, 219, 0.4);
  --border-color-hover: rgba(156, 163, 175, 0.5);
  --accent-blue: #2563eb;
  --accent-blue-dark: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: background 0.3s, color 0.3s;
}

/* Layout */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#nav {
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

body.light-mode #nav {
  background: rgba(249, 250, 251, 0.95);
}

#content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #2d2d35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d3d45;
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: #d1d5db;
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Tabs */
.tab-active {
  border-bottom: 2px solid var(--accent-blue);
  color: var(--accent-blue);
}

.tab-inactive {
  border-bottom: 2px solid transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.3s;
}

.tab-inactive:hover {
  color: var(--text-secondary);
}

/* Hero video */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.6) 0%, rgba(15, 15, 18, 0.85) 100%);
  transition: background 0.3s;
}

body.light-mode .video-overlay {
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, rgba(249, 250, 251, 0.8) 100%);
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.6s ease-out;
}

/* Form elements */
.glass-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.glass-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.glass-input::placeholder {
  color: var(--text-tertiary);
}

/* Sections & cards */
.section {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-color-hover);
}

/* Stats */
.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Reviews */
.review-star {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 60px;
  height: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--accent-blue);
}

.theme-toggle .toggle-dot {
  width: 24px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transition: transform 0.3s;
}

.theme-toggle .toggle-dot .icon {
  position: absolute;
  width: 14px;
  height: 14px;
  fill: #111827;
  stroke: #111827;
  stroke-width: 1.5;
  transition: opacity 0.3s;
}

.theme-toggle .dark-icon {
  opacity: 1;
}

body.light-mode .theme-toggle .dark-icon {
  opacity: 0;
}

.theme-toggle .light-icon {
  opacity: 0;
}

body.light-mode .theme-toggle .light-icon {
  opacity: 1;
}

body.light-mode .theme-toggle .toggle-dot {
  transform: translateX(28px);
}

/* Buttons */
button {
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-blue-dark);
}

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color-hover);
}


/* Description preview: clamp to 3 lines */
.description-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: calc(3 * 1.4em);
}

/* Product images */
.product-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.product-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* File input */
.image-upload-input {
  display: none;
}

.file-input-wrapper {
  position: relative;
  cursor: pointer;
}

/* Ticket file picker */
.ticket-file-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1;
  border: 1px dashed var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  width: 100%;
}

.file-btn:hover {
  border-color: var(--accent-blue);
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-pill {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ticket messages + attachments */
.ticket-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ticket-attachments {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.ticket-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-tertiary);
  text-decoration: none;
}

.ticket-attachment:hover {
  border-color: var(--accent-blue);
}

.ticket-attachment-badge {
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.35);
  min-width: 42px;
  text-align: center;
}

.ticket-attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ticket-attachment-name {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-attachment-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-attachment-dl {
  font-size: 14px;
  color: var(--text-tertiary);
}


/* Cart blur when payment is open */
#cart-modal-content.cart-blurred {
  filter: blur(6px);
  pointer-events: none;
}

/* Production polish: keeps the original template and interactions intact. */
:root {
  --surface-glow: rgba(59, 130, 246, 0.16);
  --surface-glow-strong: rgba(59, 130, 246, 0.28);
  --radius-lg: 18px;
  --radius-md: 14px;
}

body {
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(14, 165, 233, 0.12), transparent 30rem),
    linear-gradient(180deg, #080b14 0%, var(--bg-primary) 45%, #090b10 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.light-mode {
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 100%);
}

#nav {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.card {
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    var(--bg-tertiary);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--surface-glow);
}

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, var(--surface-glow), transparent 22rem);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card h4,
.product-card p,
.product-card div,
.product-card button,
.product-card span {
  position: relative;
  z-index: 1;
}

.product-image,
.product-image-placeholder {
  width: 100%;
  height: 210px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background:
    linear-gradient(135deg, rgba(59,130,246,0.22), rgba(8,11,20,0.7)),
    var(--bg-secondary);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
}

#product-modal .card,
#section-cart .card,
#payment-modal .card {
  border-radius: var(--radius-lg);
}

#modal-content .product-image,
#modal-content .product-image-placeholder {
  min-height: 280px;
  max-height: 420px;
}

#modal-content video {
  background: #000;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.btn-primary,
.btn-secondary {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-primary {
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.review-star {
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.2);
}

#comments-list .card {
  box-shadow: none;
}

.glass-input {
  border-radius: 12px;
}

@media (max-width: 640px) {
  .product-image,
  .product-image-placeholder {
    height: 180px;
  }

  #modal-content .product-image,
  #modal-content .product-image-placeholder {
    min-height: 220px;
  }
}


.rating-star {
  background: transparent;
  border: 0;
  line-height: 1;
  padding: 0 2px;
}
.rating-star:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}


/* Updated support ticket detail UI */
.ticket-view-shell { max-width: 1120px; margin: 0 auto; }
.ticket-view-header { padding: 28px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(15,23,42,.8)); }
.ticket-view-icon { width: 64px; height: 64px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: rgba(37,99,235,.18); border: 1px solid rgba(96,165,250,.35); box-shadow: 0 20px 50px rgba(37,99,235,.14); }
.ticket-pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(148,163,184,.10); border: 1px solid var(--border-color); }
.ticket-conversation { padding: 0; overflow: hidden; }
.ticket-conversation-head { padding: 18px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.ticket-chat-list { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-height: 260px; background: radial-gradient(circle at top, rgba(37,99,235,.08), transparent 36%); }
.ticket-chat-row { display: flex; gap: 12px; align-items: flex-start; max-width: 86%; }
.ticket-chat-row.is-mine { margin-left: auto; flex-direction: row-reverse; }
.ticket-chat-row.is-other { margin-right: auto; }
.ticket-chat-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 15px; background: rgba(37,99,235,.16); border: 1px solid rgba(96,165,250,.32); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ticket-chat-bubble { flex: 1; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border-color); background: rgba(15,23,42,.66); box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.ticket-chat-row.is-mine .ticket-chat-bubble { background: rgba(37,99,235,.14); border-color: rgba(96,165,250,.32); }
.ticket-chat-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--text-tertiary); font-size: 11px; margin-bottom: 8px; }
.ticket-chat-text { color: var(--text-primary); font-size: 14px; line-height: 1.8; }
.ticket-reply-panel { padding: 22px 24px 24px; border-top: 1px solid var(--border-color); background: rgba(2,6,23,.28); }
.ticket-attachments { margin-top: 10px; }
@media (max-width: 768px) { .ticket-chat-row { max-width: 100%; } .ticket-view-header { align-items: flex-start; } .ticket-view-icon { display: none; } }

/* Crypto checkout */
.crypto-main-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.75));
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.22);
}
.crypto-panel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 36%), rgba(15, 23, 42, 0.62);
}
.crypto-total-badge {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.14);
  font-size: 11px;
  font-weight: 800;
}
.crypto-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.crypto-method-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  text-align: start;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.crypto-method-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.62);
  background: rgba(30, 41, 59, 0.88);
}
.crypto-method-icon {
  width: 36px;
  height: 36px;
  grid-row: span 2;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.crypto-method-label {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 13px;
}
.crypto-method-name {
  color: var(--text-tertiary);
  font-size: 11px;
}
.crypto-payment-result {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 14px;
}
.crypto-loading,
.crypto-error {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text-primary);
  font-size: 13px;
}
.crypto-error { color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.28); }
.crypto-pay-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .68));
}
.crypto-pay-head,
.crypto-pay-coin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.crypto-pay-coin { justify-content: flex-start; }
.crypto-pay-title { color: var(--text-primary); font-weight: 900; font-size: 14px; }
.crypto-pay-subtitle { color: var(--text-tertiary); font-size: 11px; margin-top: 2px; }
.crypto-small-btn { padding: 7px 10px; border-radius: 10px; font-size: 11px; }
.crypto-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.crypto-field span { grid-column: 1 / -1; color: var(--text-tertiary); font-size: 11px; }
.crypto-field strong { color: var(--text-primary); font-size: 13px; word-break: break-all; }
.crypto-field button {
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 800;
}
.crypto-address-field strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.crypto-payment-note {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.8;
}
.crypto-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-tertiary);
  font-size: 10px;
}
@media (max-width: 420px) {
  .crypto-method-grid { grid-template-columns: 1fr; }
  .crypto-pay-head { align-items: flex-start; flex-direction: column; }
}


.crypto-wide-btn,
.crypto-cancel-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}
.crypto-cancel-btn {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.16);
}
.crypto-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.crypto-qr-wrap {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
}
.crypto-qr-box {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.crypto-qr-box img { width: 100%; height: 100%; display: block; }
.crypto-qr-title { color: var(--text-primary); font-size: 13px; font-weight: 900; margin-bottom: 4px; }
.crypto-qr-hint { color: var(--text-tertiary); font-size: 11px; line-height: 1.7; }
.payments-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.payment-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 34%), rgba(15, 23, 42, 0.64);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}
.payment-card.paid { border-color: rgba(34, 197, 94, 0.28); }
.payment-card.failed { border-color: rgba(248, 113, 113, 0.24); }
.payment-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.payment-order-label { color: var(--text-tertiary); font-size: 11px; margin-bottom: 4px; }
.payment-order { color: var(--text-primary); font-weight: 900; font-size: 13px; word-break: break-all; }
.payment-status-badge {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.12);
}
.payment-status-badge.paid { color: #86efac; background: rgba(22, 101, 52, 0.18); border-color: rgba(34, 197, 94, 0.28); }
.payment-status-badge.pending { color: #fde68a; background: rgba(120, 53, 15, 0.18); border-color: rgba(245, 158, 11, 0.25); }
.payment-status-badge.failed { color: #fca5a5; background: rgba(127, 29, 29, 0.18); border-color: rgba(248, 113, 113, 0.25); }
.payment-grid-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.payment-grid-info div {
  border-radius: 14px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.payment-grid-info span { display: block; color: var(--text-tertiary); font-size: 10px; margin-bottom: 5px; }
.payment-grid-info strong { display: block; color: var(--text-primary); font-size: 12px; word-break: break-word; }
.payment-grid-info small { display: block; color: var(--text-tertiary); font-size: 10px; margin-top: 3px; }
.payment-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.payment-items span { color: var(--text-secondary); font-size: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.15); }
.payment-card-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.payment-open-btn { border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.payments-empty { color: var(--text-tertiary); }
@media (max-width: 760px) {
  .payments-list { grid-template-columns: 1fr; }
  .payment-grid-info { grid-template-columns: 1fr; }
  .crypto-actions-row { grid-template-columns: 1fr; }
  .crypto-qr-wrap { grid-template-columns: 1fr; }
  .crypto-qr-box { width: 100%; height: auto; max-width: 180px; aspect-ratio: 1 / 1; margin: 0 auto; }
}


/* Full-page cart */
.cart-page-shell {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.cart-page-items .card {
  margin-bottom: 0;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.54);
}
.cart-page-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .cart-page-summary {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .cart-page-summary button,
  .cart-page-summary p {
    grid-column: 2;
  }
}
#section-cart.hidden { display: none; }
#section-cart:not(.hidden) { display: block; }


/* Cart full-page background and icon cleanup */
html, body, #app, #content {
  background: var(--bg-primary);
}
#app {
  min-height: 100vh;
}
#content {
  min-height: calc(100vh - 64px);
}
#section-cart {
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.12), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.10), transparent 34%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) 100%);
}
#section-cart .card {
  background-clip: padding-box;
}


/* Cart spacing fix: keep cart content directly under the nav/tabs without a large blank gap. */
#section-cart {
  padding-top: 1rem !important;
  padding-bottom: 2.5rem !important;
  min-height: calc(100dvh - 104px);
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.12), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.10), transparent 34%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) 100%);
}
#section-cart > .max-w-7xl {
  margin-top: 0 !important;
}
#content {
  scroll-padding-top: 0;
  background: var(--bg-primary);
}


/* Final cart placement fix: cart is a direct section inside #content, not a sibling below the scroll area. */
#content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-primary);
}
#section-cart {
  display: block;
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding-top: 1rem !important;
  padding-bottom: 2.5rem !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.12), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.10), transparent 34%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) 100%);
}
#section-cart.hidden {
  display: none !important;
}
#section-cart:not(.hidden) {
  display: block !important;
}
#section-cart > .max-w-7xl {
  margin-top: 0 !important;
}


/* Professional footer */
.site-footer {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.11), transparent 32rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.96));
}
.footer-panel {
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.46);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.24);
}
.footer-trust-badge {
  height: 54px;
  width: auto;
  border-radius: 14px;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.42);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.footer-contact-link:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.72);
}
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
