/* ═══════════════════════════════════════════════════════
   SERVICES PANEL — Linear-Inspired Design System
   Ultra-clean dark UI, minimal, smooth animations
   ═══════════════════════════════════════════════════════ */

/* ── Font ── */
@import url('https://fonts.googleapis.com/css2?family=Tomorrow:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-canvas:      #16171c; /* rgb(22, 23, 28) */
  --bg-surface:     #202128; /* rgb(32, 33, 40) */
  --bg-elevated:    #131419; /* rgb(19, 20, 25) */
  --bg-overlay:     #1a1b22;
  --border:         #22232b; /* rgb(34, 35, 43) */
  --border-hover:   #2e2f38;
  --border-focus:   #2563eb;
  --text-primary:   #ffffff;
  --text-secondary: #a3a8b4;
  --text-tertiary:  #6c727e;
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-muted:   rgba(37, 99, 235, 0.15);
  --success:        #4ade80;
  --success-muted:  rgba(74, 222, 128, 0.12);
  --warning:        #f59e0b;
  --warning-muted:  rgba(245, 158, 11, 0.12);
  --danger:         #ef4444;
  --danger-muted:   rgba(239, 68, 68, 0.12);
  --radius:         8px;
  --radius-lg:      12px;
  --transition:     all 0.15s ease;
  --font:           'Tomorrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar-width:  220px;
}

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

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ══════════════════════════════════════════════════════
   STARFIELD CANVAS
   ══════════════════════════════════════════════════════ */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ══════════════════════════════════════════════════════ */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.auth-bg-glow {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 0 1.5rem;
}

.auth-card {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  animation: fadeUp 0.25s ease;
}
.auth-card.active { display: block; }

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

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.auth-logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.auth-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.auth-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
}

.sidebar-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Form Elements (Global) ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* ── Fancy Premium Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  padding: 0.7rem 1.35rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn--solid {
  background: linear-gradient(135deg, #0055ff 0%, #0040cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn--solid:hover {
  background: linear-gradient(135deg, #1a66ff 0%, #004ce6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 85, 255, 0.55);
}
.btn--solid:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 85, 255, 0.4);
}
.btn--solid:disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--accent-glow);
}
.btn--outline:active {
  transform: translateY(0) scale(0.98);
}

/* Override Chrome / Browser default autofill yellow & blue backgrounds */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px #0d0f12 !important;
}

/* Remove default focus outline and replace with clean glowing border */
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px var(--accent-glow) !important;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════════════════════════ */
.dashboard-body {
  display: flex;
  min-height: 100vh;
}

.dashboard-bg-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: radial-gradient(ellipse at 20% 50%, rgba(94, 106, 210, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ── */
.dashboard-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  margin-bottom: 2rem;
}

.sidebar-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.sidebar-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.5rem;
  flex: 1;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  position: relative;
}

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

.menu-btn.active {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 500;
}

.menu-btn-indicator {
  width: 6px; height: 6px;
  border-radius: 50%;
  opacity: 0.6;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.user-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.75rem;
}
.icon-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ── Main Content ── */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card__val {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Tab Content ── */
.panes-container {
  position: relative;
}

.tab-content-panel {
  display: none;
  animation: fadeUp 0.2s ease;
}
.tab-content-panel.active {
  display: block;
}

/* ── Section Headings ── */
.section-head {
  margin-bottom: 1.75rem;
}

.section-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.section-head p {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════
   CATALOG — Category Cards (Premium)
   ══════════════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.category-card__img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.95;
  transform: scale(1.7);
}

.category-card:hover .category-card__img {
  transform: scale(1.8);
  opacity: 1;
}

.category-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
  pointer-events: none;
}

.category-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.category-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.category-card__desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

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

.category-card__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.category-card__badge {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  background: var(--success-muted);
  color: var(--success);
}

/* ── Packages ── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

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

.package-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.package-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  margin-right: 1rem;
}

.package-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.package-card__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════ */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.dashboard-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-table tbody tr {
  transition: var(--transition);
}
.dashboard-table tbody tr:hover {
  background: var(--bg-elevated);
}

.dashboard-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}

.status-badge--completed {
  background: var(--success-muted);
  color: var(--success);
}
.status-badge--completed::before { background: var(--success); }

.status-badge--pending {
  background: var(--warning-muted);
  color: var(--warning);
}
.status-badge--pending::before { background: var(--warning); }

.status-badge--failed {
  background: var(--danger-muted);
  color: var(--danger);
}
.status-badge--failed::before { background: var(--danger); }

.status-badge--open {
  background: var(--accent-muted);
  color: var(--accent);
}
.status-badge--open::before { background: var(--accent); }

/* ══════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-header .close-btn {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-header .close-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ══════════════════════════════════════════════════════
   CHECKOUT MODAL
   ══════════════════════════════════════════════════════ */
.checkout-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 0.5rem 0 1.25rem;
}

.checkout-address-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.checkout-address-row input {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  background: var(--bg-canvas);
}

.checkout-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-top: 1.25rem;
}

.loader-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sandbox-widget {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sandbox-widget h5 {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.sandbox-widget .btn-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn--success {
  background: var(--success);
  color: #000;
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
}
.btn--success:hover { opacity: 0.85; }

.btn--danger-outline {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
}
.btn--danger-outline:hover { background: var(--danger-muted); }

/* ══════════════════════════════════════════════════════
   ADD FUNDS FORM
   ══════════════════════════════════════════════════════ */
.funds-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 460px;
}

.method-details {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   SUPPORT LAYOUT
   ══════════════════════════════════════════════════════ */
.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.ticket-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.2s ease;
  max-width: 360px;
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════
   TARGET BADGE (inline code style)
   ══════════════════════════════════════════════════════ */
.target-badge {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    width: 60px;
    min-width: 60px;
    padding: 1rem 0;
  }
  .sidebar-logo {
    justify-content: center;
    padding: 0;
    margin-bottom: 1.5rem;
  }
  .sidebar-logo-img {
    width: 32px;
    height: 32px;
  }
  .sidebar-logo-text,
  .menu-btn span:not(.menu-btn-indicator),
  .user-tag { display: none; }
  .menu-btn { justify-content: center; padding: 0.6rem 0; }
  .menu-btn-indicator { margin: 0; }
  .sidebar-user {
    justify-content: center;
    padding: 1rem 0 0;
  }
  .dashboard-main { margin-left: 60px; padding: 1.5rem 1rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-wrapper { padding: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dashboard-table { min-width: 500px; }
  .modal-overlay { padding: 1rem; }
  .modal-box { width: 100%; max-height: 85vh; }
  .support-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   STOREFRONT STYLING
   ══════════════════════════════════════════════════════ */
.storefront-body {
  background-color: #0b0c0e;
  overflow-y: auto;
  position: relative;
  min-height: 100vh;
}

/* Announcement Bar */
.announcement-bar {
  background-color: #0044ff;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 101;
  position: relative;
}
.announcement-bar a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.announcement-bar a:hover {
  text-decoration: underline;
}
.external-icon {
  font-size: 0.7rem;
}

/* Header */
.storefront-header {
  background-color: rgba(14, 15, 18, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.header-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.header-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.currency-selector:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.curr-symbol {
  color: var(--text-primary);
}
.cart-icon {
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
}
.cart-icon:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Main Layout */
.storefront-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 1;
}
.storefront-tab-panel {
  display: none;
}
.storefront-tab-panel.active {
  display: block;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 3.5rem;
}
.hero-badge {
  display: inline-block;
  background-color: var(--accent-muted);
  border: 1px solid var(--accent);
  color: var(--border-focus);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.highlight-blue {
  background: linear-gradient(135deg, #0055ff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.2rem;
}
.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Grid & Cards */
.grid-container {
  position: relative;
  background: radial-gradient(circle at top, rgba(94, 106, 210, 0.04) 0%, transparent 70%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.grid-lines-overlay {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 285px));
  gap: 1.5rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Glitch Title Animation */
.glitch {
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
  margin: 0 0.2rem;
  border-radius: 4px;
  background-image: linear-gradient(to right, 
    color-mix(in srgb, var(--accent) 75%, #fff) 0%, 
    color-mix(in srgb, var(--accent) 90%, #000) 100%
  );
  color: #121316 !important;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
  animation: glitch-skew 1s infinite linear alternate-reverse;
  vertical-align: middle;
}
.glitch::before {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: 2px;
  color: #121316;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
  background: transparent;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: -2px;
  color: #121316;
  text-shadow: -2px 0 #2563eb, 2px 2px #2563eb;
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
  background: transparent;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes glitch-anim {
  0% { clip: rect(15px, 9999px, 66px, 0); }
  10% { clip: rect(85px, 9999px, 5px, 0); }
  20% { clip: rect(34px, 9999px, 110px, 0); }
  30% { clip: rect(120px, 9999px, 45px, 0); }
  40% { clip: rect(60px, 9999px, 95px, 0); }
  50% { clip: rect(10px, 9999px, 130px, 0); }
  60% { clip: rect(80px, 9999px, 20px, 0); }
  70% { clip: rect(105px, 9999px, 85px, 0); }
  80% { clip: rect(40px, 9999px, 115px, 0); }
  90% { clip: rect(135px, 9999px, 50px, 0); }
  100% { clip: rect(25px, 9999px, 90px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(110px, 9999px, 35px, 0); }
  10% { clip: rect(5px, 9999px, 120px, 0); }
  20% { clip: rect(80px, 9999px, 15px, 0); }
  30% { clip: rect(50px, 9999px, 95px, 0); }
  40% { clip: rect(130px, 9999px, 65px, 0); }
  50% { clip: rect(25px, 9999px, 105px, 0); }
  60% { clip: rect(90px, 9999px, 40px, 0); }
  70% { clip: rect(15px, 9999px, 135px, 0); }
  80% { clip: rect(100px, 9999px, 75px, 0); }
  90% { clip: rect(45px, 9999px, 115px, 0); }
  100% { clip: rect(125px, 9999px, 10px, 0); }
}

@keyframes glitch-skew {
  0% { transform: skew(3deg); }
  10% { transform: skew(-1deg); }
  20% { transform: skew(1deg); }
  30% { transform: skew(-2deg); }
  40% { transform: skew(0deg); }
  50% { transform: skew(2deg); }
  60% { transform: skew(-3deg); }
  70% { transform: skew(1deg); }
  80% { transform: skew(0deg); }
  90% { transform: skew(-1deg); }
  100% { transform: skew(2deg); }
}

/* Premium Product Card */
.store-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.store-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px var(--accent-glow);
}
.store-card__preview {
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #18191d 0%, #0e0f12 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-bg-watermark {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
  opacity: 0.12;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* 3D Box Mockup Graphics */
.box-3d-wrapper {
  perspective: 800px;
  z-index: 1;
}
.box-3d {
  width: 90px;
  height: 130px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(10deg);
  transition: transform 0.4s ease;
}
.store-card:hover .box-3d {
  transform: rotateY(-10deg) rotateX(5deg) scale(1.05);
}
.box-face {
  position: absolute;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.box-front {
  width: 90px;
  height: 130px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateZ(10px);
}
.box-side {
  width: 20px;
  height: 130px;
  background: #0f1013;
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  left: 80px;
  transform: rotateY(90deg) translateZ(10px);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.5rem;
  font-weight: 900;
  writing-mode: vertical-lr;
  text-align: center;
  letter-spacing: 0.1em;
  padding: 10px 0;
  text-shadow: 0 0 5px var(--accent-glow);
}
.box-top {
  width: 90px;
  height: 20px;
  background: #18191e;
  top: -10px;
  transform: rotateX(90deg) translateZ(10px);
  font-family: var(--font);
  font-size: 0.4rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 20px;
}

/* Card Content */
.store-card__content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.store-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
}
.store-card__footer {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.store-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.price-actual {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}
.price-original {
  font-size: 0.72rem;
  text-decoration: line-through;
  color: var(--text-tertiary);
}
.stock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.stock-badge--in {
  background-color: rgba(74, 222, 128, 0.08);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.stock-badge--out {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Feedback & Terms Inner Styling */

/* ── Feedback Toolbar ── */
.feedback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.feedback-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.feedback-stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.feedback-stat-item strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.feedback-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feedback-sort-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.feedback-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 12px;
}
.feedback-sort-select:hover,
.feedback-sort-select:focus {
  border-color: var(--border-hover);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* ── Feedback Grid ── */
.feedback-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0;
}

/* ── Feedback Card ── */
.feedback-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
}
.feedback-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Card top row: stars + date */
.feedback-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.rating-stars {
  display: flex;
  gap: 1px;
  align-items: center;
}
.rating-stars .star {
  width: 13px;
  height: 13px;
}
.rating-stars .star.filled {
  color: #0000ff;
}
.rating-stars .star.empty {
  color: var(--text-tertiary);
}
.feedback-card__date {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Review title/text */
.feedback-card__text {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Product tag at bottom */
.feedback-card__product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.feedback-card__product-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-tertiary);
  overflow: hidden;
  flex-shrink: 0;
}
.feedback-card__product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.feedback-card__product-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feedback-card__reviewer {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

/* Empty state */
.feedback-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Responsive grid */
@media (max-width: 1100px) {
  .feedback-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .feedback-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .feedback-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .feedback-container {
    grid-template-columns: 1fr;
  }
}

.terms-container {
  max-width: 800px;
  margin: 0 auto;
}
.terms-container h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.terms-container h4:first-of-type {
  margin-top: 0;
}
.terms-container p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Responsive Storefront adjustments */
@media (max-width: 768px) {
  .announcement-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  .header-container {
    padding: 0.75rem 1rem;
  }
  .header-logo-text {
    font-size: 1rem;
  }
  .header-nav {
    display: none; /* Mobile navigation could be implemented, keeping it simple for desktop preference */
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .grid-container {
    padding: 1rem;
  }
  .products-grid {
    gap: 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════
   SELLAUTH VARIANT SELECTOR & SPLIT CHECKOUT STYLES
   ══════════════════════════════════════════════════════ */

/* Split Panel for Product Details / Variant Select */
.details-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.details-preview-pane {
  background: linear-gradient(180deg, #18191d 0%, #0e0f12 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 380px;
}

.details-preview-pane .box-3d {
  width: 140px;
  height: 200px;
}
.details-preview-pane .box-front {
  width: 140px;
  height: 200px;
}
.details-preview-pane .box-side {
  width: 25px;
  height: 200px;
  left: 127px;
}
.details-preview-pane .box-top {
  width: 140px;
  height: 25px;
  top: -12px;
}
.details-preview-pane .card-bg-watermark {
  font-size: 4rem;
  opacity: 0.9;
  text-shadow: 0 0 25px rgba(var(--cl-accent), 0.7);
}

/* Product details info on the right */
.details-info-pane h2 {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.details-price-badge {
  background: #16171b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.details-price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.details-price-sub {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-left: 0.25rem;
}
.details-stock-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Variant List Container */
.variant-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.variant-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.variant-card {
  background: #141518;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.variant-card:hover {
  border-color: var(--border-hover);
  background: #18191d;
}
.variant-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  background: rgba(37, 99, 235, 0.03);
}
.variant-card__left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.variant-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.variant-card__stock {
  font-size: 0.75rem;
  font-weight: 500;
}
.variant-card__stock.in {
  color: var(--success);
}
.variant-card__stock.out {
  color: var(--text-tertiary);
}
.variant-card__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.variant-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Split Checkout Page Layout ── */
.checkout-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}
.checkout-left {
  background: #101114;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.checkout-left__shop-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.checkout-left__price-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.5rem 0;
}
.checkout-left__item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #141518;
  border: 1px solid var(--border);
  padding: 0.85rem;
  border-radius: 8px;
}
.checkout-left__item-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.checkout-left__item-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}
.checkout-left__item-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.checkout-left__item-variant {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.checkout-left__item-price {
  font-size: 0.85rem;
  font-weight: 700;
}

.checkout-left__totals {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.checkout-left__total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.checkout-left__total-row.grand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-left__footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkout-left__socials {
  display: flex;
  gap: 0.75rem;
}
.checkout-left__social-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}
.checkout-left__social-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.checkout-left__footer-links {
  display: flex;
  gap: 0.85rem;
}

/* Right Column Breadcrumbs */
.checkout-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.checkout-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}
.checkout-crumb {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  position: relative;
}
.checkout-crumb.active {
  color: var(--text-primary);
}
.checkout-crumb.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Contact, Coupon & Checkout Layouts */
.checkout-section-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.checkout-coupon-row {
  display: flex;
  gap: 0.5rem;
}

/* Crypto Method Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.payment-method-card {
  background: #141518;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method-card:hover {
  border-color: var(--border-hover);
  background: #18191d;
}
.payment-method-card.selected {
  border-color: #0055ff;
  background: #151820;
}
.payment-method-card__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
}
.payment-method-card__details {
  display: flex;
  flex-direction: column;
}
.payment-method-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.payment-method-card__network {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

/* Agreements & Notice Warning Boxes */
.checkout-agreements {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0;
}
.checkout-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
}
.checkout-checkbox-label input {
  margin-top: 0.15rem;
}

.delivery-warning-box {
  background: rgba(var(--cl-accent), 0.03);
  border: 1px solid rgba(var(--cl-accent), 0.15);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.delivery-warning-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.delivery-warning-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Modal sizing adjustments to fit split columns */
#guest-checkout-modal .modal-box {
  width: 900px;
  max-width: 95vw;
}

@media (max-width: 880px) {
  #guest-checkout-modal .modal-box {
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .details-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .details-preview-pane {
    height: 240px;
  }
  .checkout-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .checkout-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

/* Shopping Cart Split Grid Layout (Picture 1 style) */
.cart-split-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-cart-card {
  background: #121316;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121316;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cart-item-row:hover {
  border-color: #0055ff;
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cart-item-variant {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.cart-item-price {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  background: #1a1b1f;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.cart-remove-btn:hover {
  transform: scale(1.2);
}

.cart-summary-sidebar {
  background: #121316;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cart-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  color: var(--text-primary);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .cart-split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Product Details Full Page Split View Layout (Picture 1 & 2 styles) */
.details-page-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.details-page-left {
  display: flex;
  flex-direction: column;
}

.details-page-right {
  display: flex;
  flex-direction: column;
}

.details-tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.details-tab-nav .nav-link {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 1.15rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.details-tab-nav .nav-link:hover {
  border-color: var(--accent-hover);
  color: var(--text-primary);
}

.details-tab-nav .nav-link.active {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

.details-description-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  min-height: 180px;
}

.details-price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

@media (max-width: 880px) {
  .details-page-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Repeating Watermark Grid Pattern (Picture 1 layout style) */
.watermark-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1.25rem 0.5rem;
  padding: 1.5rem;
  pointer-events: none;
  user-select: none;
  opacity: 0.015; /* Sits extremely subtle in the background gradient */
  z-index: 0;
  transform: rotate(-12deg) scale(1.3);
}

.watermark-item {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Centered Tab Alignments */
#tab-cart, #tab-product-details {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Cart Row Redesign (Screenshot 1) ── */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111216;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  gap: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-item-row:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #000;
  flex-shrink: 0;
}
.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}
.cart-item-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.cart-item-variant {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.cart-item-qty-wrap {
  display: flex;
  align-items: center;
  background: #181920;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  gap: 0.85rem;
  flex-shrink: 0;
}
.cart-item-qty-wrap .qty-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-item-qty-wrap .qty-btn:hover {
  color: var(--text-primary);
}
.cart-item-qty-wrap .qty-val {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 18px;
  text-align: center;
  font-size: 0.85rem;
}
.cart-item-price {
  font-family: var(--font);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}
.cart-item-row .cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-row .cart-remove-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

/* ── Split Layout Checkout Page (Screenshot 2) ── */
.checkout-page-container {
  display: flex;
  min-height: 100vh;
  background-color: #0c0d10;
  color: var(--text-primary);
}

/* Left Summary Column */
.checkout-left-summary {
  width: 42%;
  background-color: #0c0d10;
  border-right: 1px solid var(--border);
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.checkout-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.checkout-shop-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.checkout-grand-total-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.checkout-grand-total-amount {
  font-family: var(--font);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.5rem 0 2rem 0;
}
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.checkout-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.checkout-item-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #000;
}
.checkout-item-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}
.checkout-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-item-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.checkout-item-qty-badge {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.checkout-item-variant {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.checkout-item-each-price {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}
.checkout-item-total-price {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
}
.checkout-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
}
.checkout-summary-row.total-row {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.4rem;
}
.checkout-pay-mobile-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 2rem;
  cursor: pointer;
}
.checkout-left-footer {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: left;
}
.checkout-left-footer strong {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
}
.checkout-left-footer a {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.checkout-left-footer a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ── Light Theme Overrides (Pixel-Perfect SellAuth Reference Match) ── */
body.theme-light {
  --bg-canvas: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-overlay: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  color: #0f172a !important;
  background-color: #ffffff !important;
}

body.theme-light .checkout-page-container {
  background-color: #ffffff !important;
  border-color: #f1f5f9 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.theme-light .checkout-left-summary {
  background-color: #ffffff !important;
  border-right: 1px solid #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .checkout-right-form {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

body.theme-light #checkout-logo-text {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .checkout-grand-total-label {
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

body.theme-light .checkout-grand-total-amount {
  color: #0f172a !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
}

body.theme-light .checkout-item-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .checkout-item-desc {
  color: #64748b !important;
}

body.theme-light .checkout-item-total-price {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .checkout-summary-row span:first-child {
  color: #64748b !important;
}

body.theme-light .checkout-summary-row span:last-child {
  color: #64748b !important;
  font-weight: 500 !important;
}

body.theme-light .checkout-summary-row.total-row span:first-child {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .checkout-summary-row.total-row span:last-child {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .checkout-summary-row.total-row {
  border-color: #f1f5f9 !important;
}

body.theme-light .checkout-pay-mobile-wrap {
  color: #64748b !important;
  font-size: 0.85rem !important;
}

body.theme-light .checkout-pay-mobile-wrap span {
  border-bottom-color: #cbd5e1 !important;
}

body.theme-light .checkout-left-footer {
  color: #64748b !important;
  border-color: #f1f5f9 !important;
}

body.theme-light .checkout-left-footer strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .checkout-support-link {
  color: #2563eb !important;
  font-weight: 600 !important;
}

body.theme-light .checkout-steps-nav {
  border-color: #f1f5f9 !important;
}

body.theme-light .checkout-step-tab {
  color: #64748b !important;
}

body.theme-light .checkout-step-tab.active {
  color: #0f172a !important;
  border-bottom-color: #0055ff !important;
}

body.theme-light .checkout-section-title {
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

body.theme-light .checkout-input {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
}

body.theme-light .checkout-input::placeholder {
  color: #94a3b8 !important;
}

body.theme-light .checkout-input:focus {
  border-color: #0055ff !important;
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1) !important;
}

body.theme-light .checkout-input-coupon-btn {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #2563eb !important;
  border-radius: 20px !important;
  padding: 0.35rem 0.9rem !important;
  font-weight: 600 !important;
}

body.theme-light .checkout-input-coupon-btn:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

body.theme-light .payment-method-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 12px !important;
}

body.theme-light .payment-method-card:hover {
  border-color: #cbd5e1 !important;
}

body.theme-light .payment-method-card.active {
  background-color: rgba(37, 99, 235, 0.06) !important;
  border: 1px solid #0055ff !important;
}

body.theme-light .payment-method-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .payment-method-net {
  color: #64748b !important;
}

body.theme-light .checkout-submit-btn,
body.theme-light #checkout-submit-btn-step1 {
  background: #0055ff !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.25) !important;
}

body.theme-light .checkout-checkbox-label {
  color: #334155 !important;
}

body.theme-light .storefront-header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
}

body.theme-light .storefront-card,
body.theme-light .variant-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Right Content Form Column */
.checkout-right-form {
  width: 58%;
  background-color: #08090b;
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.checkout-steps-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.checkout-step-tab {
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  cursor: default;
  transition: all 0.2s ease;
}
.checkout-step-tab.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}
.checkout-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}
.checkout-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.checkout-input-group {
  position: relative;
  width: 100%;
}
.checkout-input {
  width: 100%;
  background-color: #121316;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}
.checkout-input::placeholder {
  color: #64748b;
}
.checkout-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}
.checkout-input-coupon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.checkout-input-coupon-btn:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}
.checkout-payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.25rem;
}
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: #121316;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.payment-method-card:hover {
  border-color: var(--text-tertiary);
}
.payment-method-card.active {
  border-color: var(--accent);
  background-color: rgba(37, 99, 235, 0.03);
}
.payment-method-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #191b20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-method-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}
.payment-method-name {
  font-weight: 700;
  font-size: 0.88rem;
}
.payment-method-net {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.payment-method-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.payment-method-card.active .payment-method-badge {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.checkout-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.checkout-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  text-align: left;
}
.checkout-checkbox-label input {
  margin-top: 0.2rem;
}
.checkout-immediate-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
  margin-top: 0.5rem;
}
.checkout-btn {
  width: 100%;
  background-color: #121316;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.checkout-btn:hover {
  background-color: #1c1d22;
  border-color: var(--text-secondary);
}
.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .checkout-page-container {
    flex-direction: column;
  }
  .checkout-left-summary, .checkout-right-form {
    width: 100%;
    padding: 2.5rem 2rem;
  }
  .checkout-left-summary {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}


/* Mobile Cart Fixes */
@media (max-width: 600px) {
  .cart-item-row {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
  }
  .cart-item-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .cart-item-info {
    min-width: 0;
    flex: 1 1 calc(100% - 70px);
    padding-right: 1.5rem;
  }
  .cart-item-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cart-item-variant {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cart-item-qty-wrap {
    margin-left: auto;
    flex-shrink: 0;
  }
  .cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
  }
  .cart-item-row .cart-remove-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
  }

  /* Cart summary sidebar */
  .cart-summary-sidebar {
    padding: 1rem;
  }
  .cart-summary-title {
    font-size: 1.1rem;
  }

  /* Checkout modal left column */
  .checkout-left__item-thumb {
    width: 40px !important;
    height: 40px !important;
  }
  .checkout-split {
    flex-direction: column !important;
  }
  .checkout-left, .checkout-right {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ════════════════════════════════════════════════════
   STOREFRONT AUTH & CHAMFERED WIDGETS (EXACT DESIGN)
   ════════════════════════════════════════════════════ */
.currency-selector,
.nav-auth-btn,
.theme-toggle-btn,
.user-pill,
.cart-icon {
  background: #15171e !important;
  border: 1px solid #2e3344 !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.currency-selector:hover,
.nav-auth-btn:hover,
.theme-toggle-btn:hover,
.user-pill:hover,
.cart-icon:hover {
  background: #1b1e27 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.nav-auth-btn {
  height: 38px;
  padding: 0 1.4rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cart-icon {
  height: 38px;
  width: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  height: 38px !important;
}

.user-pill__name {
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-weight: 700 !important;
}

.user-pill__balance {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  padding: 0.2rem 0.6rem !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em !important;
}

.user-pill__logout {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill__logout:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* Modal Box with Chamfered Cut Corner */
.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: #14161e;
  border: 1px solid #262938;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  padding: 1.75rem;
  border-radius: 0;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.auth-modal-title {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
}

.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-form-body label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c5c9d3;
  margin-bottom: 0.35rem;
  display: block;
}

.auth-form-body input {
  width: 100%;
  background: #1c1e27 !important;
  border: 1px solid #2c3040 !important;
  color: #ffffff !important;
  padding: 0.75rem 0.9rem !important;
  border-radius: 4px !important;
  font-size: 0.88rem !important;
  font-family: var(--font) !important;
}

.auth-form-body input:focus {
  border-color: #0040ff !important;
  box-shadow: 0 0 12px rgba(0, 64, 255, 0.4) !important;
}

.auth-error-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Electric Blue Chamfered Submit Button */
.auth-submit-btn {
  width: 100%;
  background: #0040ff;
  color: #ffffff;
  border: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit-btn:hover {
  background: #1a55ff;
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-toggle-link {
  text-align: center;
  font-size: 0.82rem;
  color: #8a8f9d;
  margin-top: 0.5rem;
}

.auth-toggle-link a {
  color: #0055ff;
  text-decoration: none;
  font-weight: 700;
}

.auth-toggle-link a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════
   MOBILE HEADER RESPONSIVE OVERFLOW FIXES
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.35rem !important;
  }
  .currency-selector {
    padding: 0 0.5rem !important;
    font-size: 0.72rem !important;
    height: 34px !important;
  }
  .nav-auth-btn {
    height: 34px !important;
    padding: 0 0.65rem !important;
    font-size: 0.72rem !important;
  }
  .cart-icon {
    height: 34px !important;
    width: 34px !important;
  }
  .user-pill {
    padding: 0.2rem 0.45rem !important;
    gap: 0.3rem !important;
    height: 34px !important;
    max-width: 210px !important;
    clip-path: none !important;
    border-radius: 6px !important;
  }
  .user-pill__name {
    max-width: 70px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.72rem !important;
  }
  .user-pill__balance {
    font-size: 0.72rem !important;
    padding: 0.1rem 0.35rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem 0.4rem !important;
  }
  .header-logo-text {
    font-size: 0.78rem !important;
  }
  .header-logo-img {
    width: 22px !important;
    height: 22px !important;
  }
  .user-pill__uname-text {
    display: none !important;
  }
  .user-pill {
    max-width: none !important;
    padding: 0.2rem 0.35rem !important;
  }
}

/* High-Tech Terms of Service Card Styling */
.terms-card-wrapper {
  max-width: 900px;
  margin: 2rem auto 0;
}

.terms-card {
  background: #14161e;
  border: 1px solid #262938;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 2rem;
}

.terms-card__title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.terms-card__icon {
  color: #0055ff;
  font-size: 0.9rem;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.terms-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.6;
}

.terms-item__bullet {
  color: #0055ff;
  font-weight: 800;
  font-family: monospace;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.terms-item__text {
  font-size: 0.88rem;
  color: #c8cbd6;
  font-weight: 500;
}


