:root {
  --primary: #ff6b00;
  --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
  --secondary-gradient: linear-gradient(135deg, #ffa700 0%, #ff6b00 100%);
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --surface-ink: #0f172a;
  --surface-ink-deep: #030712;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --surface-glass-heavy: rgba(255, 255, 255, 0.85);
  --border-light: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --shadow-premium:
    0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
  --text-main: #0f172a;
  --text-muted: #475569;
  --success: #10b981;
  --danger: #e53e3e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-family: "Poppins", sans-serif;
}
body.dark-mode {
  --surface-ink: #f8fafc;
  --surface-ink-deep: #ffffff;
  --surface-glass: rgba(15, 23, 42, 0.7);
  --surface-glass-heavy: rgba(10, 14, 23, 0.85);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-premium:
    0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e293b;
  --panel-bg: rgba(15, 23, 42, 0.6);
}

/* Force text colors in sidebar in dark mode */
body.dark-mode .dashboard-sidebar #user-name,
body.dark-mode .dashboard-sidebar #user-email,
body.dark-mode .dashboard-sidebar .profile-info h4,
body.dark-mode .dashboard-sidebar .profile-info p {
  color: var(--text-main) !important;
}
body.dark-mode .dashboard-sidebar #user-email,
body.dark-mode .dashboard-sidebar .profile-info p {
  color: var(--text-muted) !important;
}

/* Locale options dark mode overrides */
body.dark-mode .locale-option {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode .locale-option:hover {
  background: rgba(45, 60, 85, 0.9) !important;
  border-color: rgba(255, 87, 34, 0.4) !important;
}
body.dark-mode .locale-option.selected {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(30, 41, 59, 0.9)) !important;
  border-color: #ff5722 !important;
  color: #ff5722 !important;
}
body.dark-mode .locale-section-title {
  color: #94a3b8 !important;
}
body.account-page {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-main);
  background: #f7fafc;
  overflow-x: clip;
  min-height: 100vh;
  --dw-account-header-offset: 119px;
}
html.dw-likely-authed .profile-summary-skeleton {
  display: none !important;
}
html.dw-likely-authed .profile-summary[data-painted="true"] {
  display: flex !important;
}
body.account-page > header.site-header#header-placeholder,
body.account-page > header.site-header:empty {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: var(--dw-account-header-offset);
  background: linear-gradient(to right, #ff8c00, #ff5722);
}
body.account-page.orders-mobile-focus {
  overflow: visible !important;
}
.mobile-back-to-account {
  display: none !important;
}
body.account-page.has-bottom-nav {
  padding-bottom: 90px;
}
#header-placeholder:empty,
.site-header:empty {
  display: block;
  min-height: 119px;
}
#footer-placeholder:empty,
.site-footer:empty {
  display: block;
  min-height: 900px;
}
#order-details-container {
  min-height: 70vh;
}
.account-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(255, 140, 0, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 60%
    );
  background-color: #f7fafc;
  filter: blur(80px);
  animation: gradientMove 20s ease-in-out infinite alternate;
}
@keyframes gradientMove {
  0% {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
.dashboard-wrapper {
  width: min(1300px, 92%);
  margin: 0 auto;
  padding: 60px 0 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  position: relative;
  z-index: 1;
}
.dashboard-wrapper.single-column {
  grid-template-columns: 1fr !important;
  max-width: 900px;
  gap: 0;
}
body.orders-page {
  overflow-x: hidden;
  max-width: 100vw;
}
body.orders-page ~ html,
html:has(body.orders-page) {
  overflow-x: hidden;
}
body.orders-page:not(.orders-mobile-focus) {
  overflow-x: hidden;
}
body.orders-page.orders-account-embed .dashboard-sidebar,
body.orders-page.orders-account-embed .sidebar-perks,
body.orders-page.orders-account-embed .logout-btn,
body.orders-page.orders-account-embed .mobile-back-home,
body.orders-page.orders-account-embed .orders-mobile-panel-bar,
body.orders-page.orders-account-embed #account-bottom-nav-placeholder,
body.orders-page.orders-account-embed .account-gradient {
  display: none !important;
}
body.orders-page.orders-account-embed .dashboard-wrapper {
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
body.orders-page.orders-account-embed .dashboard-panel {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0 12px;
  overflow: visible !important;
}
body.orders-page.orders-account-embed .dashboard-content,
body.orders-page.orders-account-embed .panel-body,
body.orders-page.orders-account-embed .orders-list,
body.orders-page.orders-account-embed #orders-container {
  overflow: visible !important;
  max-height: none !important;
}
body.orders-page.orders-account-embed .dashboard-content {
  max-width: none;
  padding: 0;
}
body.coupons-page.coupons-account-embed .dashboard-sidebar,
body.account-page.coupons-account-embed .dashboard-sidebar,
body.account-page.coupons-account-embed .sidebar-perks,
body.account-page.coupons-account-embed .logout-btn,
body.account-page.coupons-account-embed .mobile-back-home,
body.account-page.coupons-account-embed .coupons-mobile-panel-bar,
body.account-page.coupons-account-embed .content-header,
body.account-page.coupons-account-embed #account-bottom-nav-placeholder,
body.account-page.coupons-account-embed .account-gradient {
  display: none !important;
}
body.account-page.coupons-account-embed .dashboard-wrapper {
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 12px 24px !important;
  margin: 0 !important;
  gap: 0 !important;
}
.dashboard-content {
  margin: 0 auto;
  width: 100%;
}
.dashboard-content.account-content-swapping {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.dashboard-sidebar {
  background: var(--surface-glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  padding: 32px;
  box-shadow:
    0 30px 60px #0000001a,
    inset 0 1px #fff9;
  position: sticky;
  top: calc(var(--dw-account-header-offset, 119px) + 20px);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
body.dark-mode .dashboard-sidebar {
  background: #0f172a80;
  border-color: #ffffff14;
  box-shadow:
    0 30px 60px #00000080,
    inset 0 1px #ffffff1a;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin: 0 -8px;
  background: linear-gradient(135deg, #ffffffe6, #fff9);
  border-radius: 24px;
  box-shadow:
    0 10px 30px #0000000d,
    inset 0 2px 4px #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
body.dark-mode .profile-summary {
  background: linear-gradient(135deg, #1e293bcc, #0f172acc);
  border-color: #ffffff1a;
  box-shadow:
    0 10px 30px #0000004d,
    inset 0 1px 1px #ffffff1a;
}
.profile-summary:before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(16px);
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8c00, #ff3b00);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  box-shadow:
    0 12px 24px #ff6b0066,
    inset 0 2px 4px #fff6;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
body.dark-mode .profile-avatar {
  border-color: #fff3;
}
.profile-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}
.profile-info p {
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, gold, #ffb300);
  color: #5c3a00;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px #ffd7004d;
  width: fit-content;
}
body.dark-mode .vip-badge {
  background: linear-gradient(135deg, #ffd70033, #ffb3001a);
  color: gold;
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.sidebar-divider {
  height: 1px;
  background: #0000000d;
}
.dashboard-sidebar .main-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashboard-sidebar .main-tabs li {
  margin: 0;
}
.dashboard-sidebar .sidebar-link {
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.dashboard-sidebar .sidebar-link i {
  width: 24px;
  text-align: center;
  font-size: 18px;
  transition: transform 0.3s ease;
}
.dashboard-sidebar .sidebar-link:hover {
  background: #ff6b000d;
  color: var(--primary);
}
.dashboard-sidebar .sidebar-link:hover i {
  transform: translate(3px);
}
.dashboard-sidebar .sidebar-link.active {
  background: linear-gradient(135deg, #ff6b001a, #ff6b0005);
  box-shadow:
    0 4px 15px #ff6b001a,
    inset 0 0 0 1px #ff6b0033;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
body.dark-mode .dashboard-sidebar .sidebar-link.active {
  background: linear-gradient(135deg, #ff6b0026, #ff6b000d);
  box-shadow:
    0 4px 15px #ff6b0033,
    inset 0 0 0 1px #ff6b004d;
}
.dashboard-sidebar .sidebar-link.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff8c00, #ff3b00);
  box-shadow: 2px 0 12px #ff6b0099;
}
.dashboard-sidebar .sidebar-link.active i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.4));
}
.dashboard-sidebar .sidebar-link.active .tab-subtitle {
  color: var(--primary);
  opacity: 0.8;
}
.tab-copy {
  display: flex;
  flex-direction: column;
}
.tab-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.tab-subtitle {
  font-size: 11px;
  opacity: 0.8;
}
.sidebar-perks {
  background: linear-gradient(135deg, #ffffffe6, #fff6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 15px #00000008,
    inset 0 0 0 1px #ffffff80;
  padding: 20px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.sidebar-perks:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.sidebar-perks h5 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-perks p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.logout-btn {
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(229, 62, 62, 0.2);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.logout-btn:hover {
  background: #e53e3e0d;
}
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
body.orders-page .dashboard-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.hero-surface {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 56px;
  border-radius: 40px;
  box-shadow:
    var(--shadow-premium),
    inset 0 2px 4px var(--border-light);
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.hero-surface:before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.hero-surface:after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 140, 0, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}
.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 36px;
  background: linear-gradient(135deg, #ff8c00, #ff3b00);
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 24px 48px #ff6b0066,
    inset 0 4px 12px #fff6;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-avatar:before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 44px;
  background: conic-gradient(from 0deg, #ff6b00cc, #ff6b0000, #ff6b00cc);
  z-index: -1;
  animation: rotateSlow 8s linear infinite;
  filter: blur(4px);
}
@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}
.hero-details {
  flex: 1;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b06020;
  margin: 0 0 8px;
  font-weight: 600;
}
.hero-details h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}
.hero-email {
  margin: 0 0 20px;
  color: #804020;
  font-size: 16px;
  font-weight: 500;
}
.hero-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #5a3a20;
  font-weight: 500;
}
.hero-meta span i {
  color: #ff8c00;
  margin-right: 8px;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.hero-note {
  color: var(--text-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-chip {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-chip:first-child {
  background: linear-gradient(135deg, #ff8c00, #ff3b00);
  color: #fff;
  box-shadow: 0 8px 20px #ff6b004d;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-chip:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #ff6b0066;
}
.hero-chip:nth-child(2) {
  background: #ffffffb3;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-chip:nth-child(2):hover {
  transform: translateY(-2px);
  background: #fffffff2;
  border-color: #ff6b004d;
  color: #ff6b00;
}
.account-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.overview-card {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s;
  position: relative;
  overflow: hidden;
}
.overview-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 20px 40px -10px #00000014,
    0 0 0 1px #00000005;
}
.overview-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--primary-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px #ff6b0040;
}
.overview-meta {
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin: 4px 0;
}
.metric-value.metric-pending {
  position: relative;
  min-height: 38px;
}
.metric-value.metric-pending:before {
  content: "";
  display: block;
  width: 72px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0d9, #f1f5f9f2, #e2e8f0d9);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.dashboard-wrapper.auth-pending .hero-details,
.dashboard-wrapper.auth-pending .account-overview {
  opacity: 0.88;
}
.dashboard-wrapper.auth-pending #accountHero,
.dashboard-wrapper.auth-pending #accountOverview {
  display: none !important;
}
@media (max-width: 992px) {
  .dashboard-wrapper.auth-pending .dashboard-sidebar {
    display: none !important;
  }
}
html:not(.dw-likely-authed) .dashboard-wrapper.auth-pending #guest-experience {
  display: none !important;
}
html:not(.dw-likely-authed) .dashboard-wrapper.auth-pending #initial-loader {
  display: flex !important;
}
html.dw-likely-authed .dashboard-wrapper.auth-pending #guest-experience {
  display: none !important;
}
html.dw-likely-authed .dashboard-wrapper.auth-pending #initial-loader {
  display: flex !important;
}
@media (max-width: 992px) {
  html.dw-likely-authed .dashboard-wrapper.auth-pending #initial-loader {
    display: flex !important;
  }
  html.dw-likely-authed .dashboard-wrapper.auth-pending .dashboard-sidebar {
    display: none !important;
  }
}
.dashboard-wrapper.auth-pending-guest #guest-experience {
  display: none !important;
}
.dashboard-wrapper.auth-pending-guest #initial-loader {
  display: flex !important;
}
.metric-hint {
  font-size: 13px;
  color: var(--text-muted);
}
.dashboard-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 28px;
  box-shadow:
    0 30px 60px #00000014,
    inset 0 1px #fffc;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
  position: relative;
}
.card-header {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(to bottom, #fff9, #fff3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.dark-mode .card-header {
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.95), rgba(10, 12, 18, 0.98)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .card-header h2,
body.dark-mode .card-header h3 {
  background: linear-gradient(135deg, #f57224, #ff9100) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ff6b001a;
  display: grid;
  place-items: center;
}
.card-icon i {
  font-size: 20px;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.card-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.card-action {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-action:hover {
  border-color: var(--primary);
  background: #ff6b000d;
}
.panel-body {
  padding: 32px;
}
.account-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.account-recent-card {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #ffffffd1;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px #0f172a0f;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.account-recent-card:hover {
  transform: translateY(-3px);
  border-color: #ff6b003d;
  box-shadow: 0 14px 30px #0f172a1a;
}
.account-recent-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  max-height: 180px;
  padding: 14px;
  overflow: hidden;
  background: #f8fafc;
}
.account-recent-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.account-recent-meta {
  padding: 14px 16px 16px;
}
.account-recent-meta h4 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.account-recent-price {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}
.account-recent-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: #0f172ac2;
  box-shadow: 0 6px 14px #0f172a1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
}
.account-recent-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.account-recent-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.account-recent-card:hover .account-recent-cta {
  color: var(--primary);
}
.account-dashboard-skeleton {
  width: 100%;
  flex-direction: column;
  gap: 22px;
}
.account-skeleton-hero,
.account-skeleton-cards > span {
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: linear-gradient(100deg, #e2e8f0a6 20%, #f8fafcf2, #e2e8f0a6 60%);
  background-size: 220% 100%;
  animation: accountSkeletonShimmer 1.25s ease-in-out infinite;
}
.account-skeleton-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 180px;
  padding: 32px;
  border-radius: 28px;
}
.account-skeleton-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: #ffffffb8;
}
.account-skeleton-copy {
  display: flex;
  width: min(420px, 70%);
  flex-direction: column;
  gap: 12px;
}
.account-skeleton-line {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: #ffffffc7;
}
.account-skeleton-line-short {
  width: 28%;
}
.account-skeleton-line-medium {
  width: 55%;
}
.account-skeleton-line-long {
  width: 82%;
  height: 22px;
}
.account-skeleton-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.account-skeleton-cards > span {
  min-height: 130px;
  border-radius: 22px;
}
@media (min-width: 993px) {
  .account-dashboard-skeleton {
    max-width: 100%;
    gap: 24px;
  }
  .account-skeleton-hero {
    min-height: 130px;
    padding: 24px 32px;
    border-radius: 20px;
  }
  .account-skeleton-avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }
  .account-skeleton-cards {
    gap: 20px;
  }
  .account-skeleton-cards > span {
    min-height: 150px;
    height: 150px;
    border-radius: 16px;
  }
}
@keyframes accountSkeletonShimmer {
  0% {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
body.orders-page .panel-body {
  padding: 24px;
}
.order-card-modern {
  background: linear-gradient(145deg, #fffc, #fff6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px #0000000a,
    inset 0 1px 1px #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
body.orders-page .order-card-modern,
body.orders-page .dashboard-panel {
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
body.orders-page:not(.orders-mobile-focus) .dashboard-panel,
body.orders-page:not(.orders-mobile-focus) .orders-list,
body.orders-page:not(.orders-mobile-focus) .order-card-modern {
  max-width: 100%;
  overflow-x: hidden;
}
.order-card-modern:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 20px 40px -10px #00000014,
    0 0 0 1px #00000005,
    0 15px 35px #ff6b0014;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
.order-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.order-chip {
  background: #ff6b001a;
  color: var(--primary);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.order-id {
  font-weight: 600;
  color: var(--text-main);
}
.order-status-badge {
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: inset 0 0 0 1px #0000000d;
}
.order-status.processing,
.order-status.status-processing {
  background: #ffeb3b33;
  color: #b7950b;
}
.order-status.completed,
.order-status.status-completed,
.order-status.status-delivered,
.order-status.status-done,
.order-status.status-shipped {
  background: #48bb7826;
  color: var(--success);
}
.order-status.cancelled,
.order-status.status-cancelled {
  background: #e53e3e1a;
  color: var(--danger);
}
.order-status.status-awaiting_payment,
.order-status.status-unpaid,
.order-status.status-payment_pending {
  background: #ff6b0026;
  color: var(--primary);
}
.order-status.status-paid {
  background: #45aaf226;
  color: #3182ce;
}
.order-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-product-previews {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #00000005;
  border-radius: 12px;
  flex-wrap: wrap;
}
.order-product-previews img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.order-highlights {
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 12px;
  background: #00000005;
  border-radius: 12px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.order-meta-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.order-meta {
  background: #00000005;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.meta-value {
  font-weight: 700;
  color: var(--text-main);
}
.meta-help {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.order-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.order-card-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.order-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
  background: var(--text-main);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-sm:hover {
  opacity: 0.9;
}
.btn-pay {
  background: var(--danger);
  box-shadow: 0 6px 20px #e53e3e40;
}
.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-timeline-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #00000005;
}
.order-timeline-step.complete {
  border-color: #48bb7840;
  background: linear-gradient(135deg, #48bb7814, #48bb780a);
}
.order-timeline-step.active {
  border-color: #ff6b004d;
  box-shadow: 0 12px 30px -8px #ff6b0033;
  background: linear-gradient(145deg, #ff6b000d, #ff6b0003);
}
.timeline-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--primary);
  box-shadow: 0 0 0 4px #ff6b001f;
}
.order-timeline-step.complete .timeline-bullet {
  background: var(--success);
  box-shadow: 0 0 0 4px #48bb7826;
}
.timeline-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-label {
  font-weight: 700;
  color: var(--text-main);
}
.timeline-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.download-item-modern {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(145deg, #fff, #fcfcfc);
  border-radius: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 8px 24px -8px #0000000f;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.download-item-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px #00000014;
}
.download-product-image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.download-info {
  flex: 1;
}
.download-name {
  font-weight: 600;
  font-size: 15px;
}
.download-date {
  font-size: 12px;
  color: var(--text-muted);
}
.view-key-button {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px #ff6b0040;
  transition: transform 0.2s;
}
.view-key-button:hover {
  transform: scale(1.05);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 10px #0000000d;
  transition: transform 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.product-card h3 {
  font-size: 14px;
  margin: 0;
}
.settings-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.settings-sidebar {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px #00000008;
  height: fit-content;
}
.settings-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.settings-tab:hover {
  background: #00000005;
  color: var(--text-main);
}
.settings-tab.active {
  background: #ff6b0014;
  color: var(--primary);
}
.settings-tab.active i {
  color: var(--primary);
}
.settings-section {
  display: none;
  animation: fadeIn 0.3s ease;
}
.settings-section.active {
  display: block;
}
.settings-card {
  background: linear-gradient(145deg, #ffffffe6, #fff9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow:
    0 8px 30px -8px #0000000d,
    inset 0 2px 5px #fffc;
}
.form-field input,
.form-field select,
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: #fffc;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px #00000005;
  box-sizing: border-box;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px #ff6b001a,
    inset 0 2px 4px #00000003;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px #ff6b004d;
  transition: transform 0.2s;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn-primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(255, 107, 0, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: #ff6b000d;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
}
.order-guidance {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #0009;
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 50px #00000040;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f7fafc;
  border-radius: 50%;
  font-size: 20px;
  color: #a0aec0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: #fed7d7;
  color: #e53e3e;
  transform: rotate(90deg);
}
.revealed-key-container {
  background: #f7fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.revealed-key {
  font-family:
    Courier New,
    monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: #2d3748;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 993px) {
  .dashboard-wrapper.logged-out .dashboard-sidebar,
  .dashboard-wrapper.logged-out #accountHero,
  .dashboard-wrapper.logged-out #accountOverview,
  .dashboard-wrapper.logged-out #panel-container {
    display: none;
  }
}
.guest-mobile-hub-banner {
  display: none;
}
@media (max-width: 992px) {
  .dashboard-wrapper.logged-out .dashboard-sidebar {
    display: block;
  }
  .dashboard-wrapper.logged-out #accountHero,
  .dashboard-wrapper.logged-out #accountOverview,
  .dashboard-wrapper.logged-out #guest-experience {
    display: none !important;
  }
  .dashboard-wrapper.logged-out #account-bottom-nav-placeholder {
    display: flex !important;
  }
  body.panel-overview .dashboard-wrapper.logged-out .dashboard-content {
    display: none;
  }
  .guest-mobile-hub-banner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 14px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff6b001f, #ff950014);
    border: 1px solid rgba(255, 107, 0, 0.18);
    box-shadow: 0 8px 24px #ff6b0014;
  }
  .guest-mobile-hub-banner[hidden] {
    display: none !important;
  }
  .guest-mobile-hub-copy h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
  }
  .guest-mobile-hub-copy p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--ink-weak, #64748b);
  }
  .guest-mobile-hub-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .guest-mobile-hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
  }
  .guest-mobile-hub-btn--primary {
    background: linear-gradient(135deg, #ff6b00, #ff9100);
    color: #fff;
    box-shadow: 0 6px 18px #ff6b003d;
  }
  .guest-mobile-hub-btn--secondary {
    background: #fff;
    color: #ff6b00;
    border: 1px solid rgba(255, 107, 0, 0.28);
  }
  .guest-mobile-hub-track {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--ink-weak, #64748b);
    text-decoration: none;
  }
  .guest-mobile-hub-track i {
    color: #ff6b00;
    margin-top: 2px;
  }
  .guest-panel-gate {
    margin: 8px 0 24px;
    padding: 28px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 28px #0f172a0f;
    text-align: center;
  }
  .guest-panel-gate-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b001f;
    color: #ff6b00;
    font-size: 1.35rem;
  }
  .guest-panel-gate h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--text-main);
  }
  .guest-panel-gate p {
    margin: 0 0 16px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-weak, #64748b);
  }
  .guest-panel-gate-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
  }
  .guest-panel-gate-actions .btn-primary,
  .guest-panel-gate-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
  }
  .guest-panel-gate-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ff9100);
    color: #fff;
  }
  .guest-panel-gate-actions .btn-secondary {
    background: #fff;
    color: #ff6b00;
    border: 1px solid rgba(255, 107, 0, 0.28);
  }
  .guest-panel-gate-footnote {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ink-weak, #64748b);
  }
  .guest-panel-gate-footnote a {
    color: #ff6b00;
    font-weight: 700;
    text-decoration: none;
  }
}
.dashboard-wrapper.auth-pending #panel-container,
.dashboard-wrapper.auth-pending #logout-btn,
.dashboard-wrapper.auth-pending #account-bottom-nav-placeholder,
.dashboard-wrapper.auth-pending .dashboard-nav,
.dashboard-wrapper.auth-pending .sidebar-perks,
.dashboard-wrapper.auth-pending .profile-summary {
  display: none !important;
}
@media (max-width: 992px) {
  .dashboard-wrapper.logged-out #account-bottom-nav-placeholder,
  .dashboard-wrapper.auth-pending-guest #account-bottom-nav-placeholder {
    display: flex !important;
  }
  .dashboard-wrapper.auth-pending-guest .dashboard-sidebar {
    display: block;
  }
  .dashboard-wrapper.auth-pending-guest #guest-experience {
    display: none !important;
  }
}
.dashboard-wrapper.auth-pending .profile-summary-skeleton {
  display: flex;
}
@media (min-width: 993px) {
  .dashboard-wrapper.logged-out #guest-experience {
    display: flex;
  }
  .dashboard-wrapper.logged-out #logout-btn,
  .dashboard-wrapper.logged-out #account-bottom-nav-placeholder {
    display: none !important;
  }
}
.dashboard-wrapper.logged-out {
  grid-template-columns: minmax(0, 1fr);
  width: min(1180px, 94%);
}
#guest-experience.guest-experience-container {
  width: 100%;
  justify-content: center;
  align-items: stretch;
}
.guest-experience-card {
  width: min(100%, 1100px);
  background: var(--surface-glass);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 28px;
  padding: 44px;
  text-align: left;
  box-shadow:
    var(--shadow-premium),
    inset 0 1px #ffffffa6;
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.guest-experience-card:before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.14) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.guest-experience-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.guest-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  background: #ff6b001a;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  display: inline-block;
}
.guest-experience-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #1a202c, #4a5568);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.guest-experience-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}
.guest-highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guest-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ff6b0014;
  color: #c95b12;
  font-size: 13px;
  font-weight: 600;
}
.guest-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  align-content: center;
}
.benefit-item {
  flex: 1;
  background: linear-gradient(145deg, #ffffffe6, #fff9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: 24px;
  text-align: left;
  box-shadow:
    0 8px 30px -8px #0000000d,
    inset 0 2px 5px #fffc;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px -8px #00000014,
    inset 0 2px 5px #fffc;
}
.benefit-item i {
  font-size: 24px;
  color: var(--primary);
}
.benefit-item h3 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 600;
}
.benefit-item p {
  font-size: 13px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}
body.dark-mode .benefit-item {
  background: linear-gradient(150deg, #101422f0, #0a0d17e6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px #0000008c;
}
body.dark-mode .benefit-item h3 {
  color: #f6f7fb;
}
body.dark-mode .benefit-item p {
  color: #cfd6e8;
}
body.dark-mode .benefit-item i {
  color: #ff8a3c;
}
.guest-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.guest-footer {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.guest-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.guest-footer a:hover {
  text-decoration: underline;
}
.skeleton-order-card {
  height: 120px;
  background: #e2e8f0;
  border-radius: 16px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}
.skeleton-download-item {
  height: 80px;
  background: #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
  animation: pulse 1.5s infinite;
}
.skeleton-wishlist-card {
  height: 220px;
  background: #e2e8f0;
  border-radius: 16px;
  animation: pulse 1.5s infinite;
}
.wishlist-grid .skeleton-wishlist-card {
  min-height: 220px;
}
body.dark-mode .skeleton-order-card,
body.dark-mode .skeleton-download-item,
body.dark-mode .skeleton-wishlist-card {
  background: linear-gradient(145deg, #ffffff0f, #ffffff08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px #00000073;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  to {
    opacity: 0.6;
  }
}
.dw-bottom-nav {
  display: flex;
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: 92%;
  max-width: 400px;
  height: 70px;
  z-index: 1000;
  background: var(--surface-glass-heavy);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 999px;
  box-shadow:
    0 20px 40px #0000001a,
    0 0 0 1px var(--border-light);
  border: none;
  transform: translate(-50%);
  animation: nav-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dw-bottom-nav:empty:not(.skeleton) {
  display: none;
}
body.dark-mode .dw-bottom-nav {
  background: #0f172ad9;
  border: none;
  box-shadow:
    0 20px 40px #000c,
    0 0 0 1px #06b6d433;
}
body.dark-mode .dw-bottom-nav.skeleton {
  background: #0f172ad9;
  border-color: #06b6d433;
}
@keyframes nav-slide-up {
  0% {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%);
    opacity: 1;
  }
}
.dw-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #888;
  position: relative;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dw-nav-link:active {
  transform: scale(0.95);
}
.dw-nav-link i {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.dw-nav-link span {
  font-size: 0.75rem;
  font-weight: 500;
}
.dw-bottom-nav--account .dw-nav-link {
  gap: 2px;
}
.dw-bottom-nav--account .dw-nav-link i {
  font-size: 1.35rem;
  margin-bottom: 3px;
}
.dw-bottom-nav--account .dw-nav-link span {
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}
.dw-nav-link.active {
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}
.dw-nav-link.active:before {
  content: "";
  position: absolute;
  top: 4px;
  width: 32px;
  height: 32px;
  background-color: #f57224;
  border-radius: 999px;
  z-index: -1;
  opacity: 0.15;
  animation: active-pop 0.4s ease-out forwards;
}
body.dark-mode .dw-bottom-nav .dw-nav-link {
  color: #f6f7fb;
}
body.dark-mode .dw-bottom-nav .dw-nav-link.active,
body.dark-mode .dw-bottom-nav .dw-nav-link:hover {
  color: #f57224;
  background: transparent;
  box-shadow: none;
}
body.dark-mode .dw-bottom-nav .dw-nav-link.active i,
body.dark-mode .dw-bottom-nav .dw-nav-link.active span,
body.dark-mode .dw-bottom-nav .dw-nav-link:hover i,
body.dark-mode .dw-bottom-nav .dw-nav-link:hover span {
  color: #f57224;
}
.mobile-user-profile-header,
.mobile-back-home {
  display: none;
}
@media (max-width: 992px) {
  .mobile-user-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 32px;
  }
  .mobile-user-avatar {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px var(--primary-alpha);
  }
  .mobile-user-details h3 {
    font-size: 24px;
    margin: 0 0 4px;
    color: var(--text-main);
  }
  .mobile-user-details p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px;
  }
  .mobile-user-details .member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface-glass);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
  }
}
body.dark-mode .dw-bottom-nav .dw-nav-link.active:before,
body.dark-mode .dw-bottom-nav .dw-nav-link:hover:before {
  background: #f57224;
  opacity: 0.32;
  box-shadow: 0 12px 30px #f5722459;
}
@media (min-width: 993px) {
  .dw-bottom-nav {
    display: none !important;
  }
  body.account-page.has-bottom-nav {
    padding-bottom: 0;
  }
  body.account-page .new-header,
  body.account-page > header.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
  }
  body.account-page .dashboard-wrapper {
    padding-top: 24px;
  }
  body.account-page .dashboard-content {
    min-width: 0;
    width: 100%;
  }
  body.account-page .dashboard-sidebar {
    max-height: calc(100vh - var(--dw-account-header-offset, 119px) - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-top: 116px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 107, 0, 0.28) transparent;
    scrollbar-width: thin;
  }
  body.account-page .dashboard-sidebar .profile-summary,
  body.account-page .dashboard-sidebar .profile-summary-skeleton {
    position: sticky;
    top: 0;
    z-index: 8;
    flex: 0 0 auto;
    background: #fff;
    box-shadow: 0 12px 28px #0f172a1f;
    isolation: isolate;
  }
  body.dark-mode.account-page .dashboard-sidebar .profile-summary,
  body.dark-mode.account-page .dashboard-sidebar .profile-summary-skeleton {
    background: #141b2d;
  }
  body.account-page .dashboard-sidebar .profile-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.account-page .dashboard-sidebar .profile-info h4,
  body.account-page .dashboard-sidebar .profile-info p {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.account-page .dashboard-sidebar::-webkit-scrollbar {
    width: 5px;
  }
  body.account-page .dashboard-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #ff6b0047;
  }
}
@media (min-width: 993px) {
  .hero-logout-btn {
    display: none !important;
  }
}
@media (max-width: 992px) {
  .dashboard-wrapper {
    /* A plain 1fr track uses the child's min-content width on iOS Safari.
       Long order/review content could therefore widen the page past the viewport. */
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    padding: 8px 16px 100px;
    gap: 0;
    box-sizing: border-box;
  }
  .dashboard-wrapper > *,
  .dashboard-content,
  .dashboard-panel,
  .panel-body,
  #panel-container {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .dashboard-wrapper.logged-out {
    width: min(100%, 100%);
  }
  .dashboard-sidebar {
    display: block;
    flex-direction: column;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    margin: 0;
    position: static;
    top: auto;
    z-index: 1;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
  }
  body:not(.panel-overview) .dashboard-sidebar {
    display: none;
  }
  body.panel-overview .dashboard-content {
    display: none;
  }
  body:not(.panel-overview) .dashboard-content {
    display: block;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .profile-summary,
  .profile-summary-skeleton,
  .sidebar-divider,
  .sidebar-perks,
  .logout-btn,
  .mobile-back-home {
    display: none !important;
  }
  .dashboard-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .dashboard-sidebar .main-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 24px #0f172a0f;
    overflow: hidden;
  }
  body.dark-mode .dashboard-sidebar .main-tabs {
    background: #0f172aa6;
    border-color: #ffffff14;
    box-shadow: 0 8px 32px #00000059;
  }
  .dashboard-sidebar .main-tabs li {
    margin: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  body.dark-mode .dashboard-sidebar .main-tabs li {
    border-bottom-color: #ffffff0f;
  }
  .dashboard-sidebar .main-tabs li:last-child {
    border-bottom: none;
  }
  .dashboard-sidebar .sidebar-link {
    display: flex !important;
    align-items: center;
    gap: 14px !important;
    width: 100% !important;
    min-height: 56px;
    padding: 14px 44px 14px 16px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    position: relative;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
      background-color 0.18s ease,
      transform 0.12s ease;
    user-select: none;
  }
  .dashboard-sidebar .main-tabs li:active .sidebar-link {
    background: #ff6b0014 !important;
    transform: scale(0.995);
  }
  .dashboard-sidebar .sidebar-link i {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    font-size: 17px;
    color: var(--primary);
  }
  .dashboard-sidebar .tab-copy {
    flex: 1;
    min-width: 0;
  }
  .dashboard-sidebar .tab-subtitle {
    display: none;
  }
  .dashboard-sidebar .tab-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-sidebar .sidebar-link:after {
    content: "\f054";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #47556973;
    pointer-events: none;
  }
  .dashboard-sidebar .main-tabs li.active .sidebar-link:after {
    color: var(--primary);
  }
  body:not(.panel-overview) .mobile-back-to-account {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  body:not(.panel-overview) .mobile-back-to-account:active {
    opacity: 0.7;
  }
  body.panel-overview .mobile-back-to-account,
  body.panel-overview #accountHero,
  body.panel-overview #accountOverview {
    display: none !important;
  }
  .account-mobile-panel-bar {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0 14px;
    margin: 0 0 4px;
    box-sizing: border-box;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .account-mobile-panel-bar[hidden] {
    display: none !important;
  }
  body.account-mobile-drill-in .account-mobile-panel-bar {
    display: flex;
  }
  body.account-page.account-mobile-shell header.site-header,
  body.account-page.account-mobile-shell > .account-gradient {
    display: none !important;
  }
  body.account-page.account-mobile-shell .dashboard-wrapper {
    width: 100%;
    max-width: 100%;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    overflow-x: clip;
  }
  body.account-page.account-mobile-hub .account-mobile-hub-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 12px;
    background: #f7fafc;
    position: sticky;
    top: 0;
    z-index: 80;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.dark-mode.account-page.account-mobile-hub .account-mobile-hub-bar {
    background: #0f172a;
  }
  .account-mobile-hub-bar {
    display: none;
  }
  .account-mobile-hub-bar .account-mobile-panel-back {
    flex: 0 0 auto;
    width: auto;
    max-width: min(52vw, 168px);
    min-height: 40px;
    padding: 0 12px;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
  }
  .account-mobile-hub-back-label {
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-mobile-hub-bar .account-mobile-panel-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }
  @media (max-width: 360px) {
    .account-mobile-hub-back-label {
      display: none;
    }
    .account-mobile-hub-bar .account-mobile-panel-back {
      width: 40px;
      max-width: 40px;
      padding: 0;
      justify-content: center;
    }
  }
  .account-mobile-panel-back {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px #0f172a14;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
      transform 0.12s ease,
      background-color 0.15s ease;
  }
  body.dark-mode .account-mobile-panel-back {
    background: #0f172ad9;
    box-shadow: 0 2px 12px #00000059;
  }
  .account-mobile-panel-back:active {
    transform: scale(0.96);
    background: #ff6b001f;
  }
  .account-mobile-panel-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.account-mobile-drill-in .dashboard-sidebar,
  body.account-mobile-drill-in #accountHero,
  body.account-mobile-drill-in #accountOverview,
  body.account-mobile-drill-in .mobile-back-to-account {
    display: none !important;
  }
  body.account-mobile-drill-in .dashboard-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  body.account-mobile-drill-in #panel-container {
    padding: 0;
  }
  body.account-mobile-drill-in .dashboard-content {
    padding-top: 0;
  }
  body.account-mobile-drill-in header.site-header,
  body.account-mobile-drill-in .dw-header,
  body.account-mobile-drill-in .account-gradient {
    display: none !important;
  }
  body.account-mobile-drill-in .dashboard-wrapper {
    padding-top: 4px;
    padding-bottom: 96px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.account-mobile-drill-in .dashboard-content,
  body.account-mobile-drill-in #panel-container,
  body.account-mobile-drill-in .panel-body,
  body.account-mobile-drill-in .settings-content,
  body.account-mobile-drill-in .settings-shell {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.account-mobile-drill-in footer.site-footer,
  body.account-mobile-drill-in #footer-placeholder,
  body.account-mobile-drill-in .premium-footer {
    display: none !important;
  }
  body.account-mobile-drill-in .account-mobile-panel-bar {
    padding: 0 0 12px;
    margin: 0;
    background: #f7fafc;
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  /* Dark mode: the drill-in bar hard-codes a near-white background, so in night
   * mode it renders as a glaring white strip with an invisible (light) title.
   * Match the dark page surface and keep the title legible. */
  body.dark-mode.account-mobile-drill-in .account-mobile-panel-bar,
  body.dark-mode.account-page.account-mobile-hub .account-mobile-hub-bar {
    background: #050507;
  }
  body.dark-mode.account-mobile-drill-in .account-mobile-panel-title {
    color: #f8fafc;
  }
  body.account-mobile-drill-in #panel-container iframe {
    width: 100%;
    min-height: 0 !important;
    height: auto;
    display: block;
    border: none;
    overflow: visible;
  }
  body.account-mobile-drill-in #panel-container {
    overflow: visible;
  }
  body.account-mobile-drill-in .support-card-premium h3,
  body.account-mobile-drill-in .referral-hero-premium h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
  }
  body.account-mobile-drill-in .support-card-premium p,
  body.account-mobile-drill-in .referral-hero-premium p {
    margin: 0 0 18px;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 14px;
  }
  body.account-mobile-drill-in .account-support-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
  }
  body.account-mobile-drill-in .account-support-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 15px;
    border-radius: 14px;
  }
  body.account-mobile-drill-in .referral-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), transparent);
  }
  body.account-mobile-drill-in .referral-link-text {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-all;
    text-align: left;
  }
  body.account-mobile-drill-in .account-referral-copy {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  body.account-mobile-drill-in .referral-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 6px;
  }
  body.account-mobile-drill-in .referral-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
  }
  body.account-mobile-drill-in .referral-stat-card--accent .referral-stat-label,
  body.account-mobile-drill-in
    .referral-stat-card--accent
    .referral-stat-value {
    color: var(--primary);
  }
  body.orders-page.orders-mobile-focus header.site-header,
  body.orders-page.orders-mobile-focus .dw-header,
  body.orders-page.orders-mobile-focus .account-gradient {
    display: none !important;
  }
  body.orders-page.orders-mobile-focus .orders-mobile-panel-bar {
    padding: 8px 0 12px;
    background: #f7fafc;
    position: sticky;
    top: 0;
    z-index: 80;
  }
  a.account-mobile-panel-back {
    text-decoration: none;
    color: inherit;
  }
  body.orders-page.orders-mobile-focus .dashboard-sidebar,
  body.orders-page.orders-mobile-focus .sidebar-perks,
  body.orders-page.orders-mobile-focus .logout-btn,
  body.orders-page.orders-mobile-focus .mobile-back-home {
    display: none !important;
  }
  html:has(body.orders-page.orders-mobile-focus) {
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.orders-page.orders-mobile-focus {
    overflow: visible !important;
    scroll-padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.orders-page.orders-mobile-focus.has-bottom-nav {
    padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.orders-page.orders-mobile-focus footer.site-footer,
  body.orders-page.orders-mobile-focus #footer-placeholder {
    display: none !important;
  }
  body.orders-page.orders-mobile-focus .dashboard-wrapper {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 12px 0;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    min-height: auto;
    overflow: visible;
  }
  body.orders-page .dashboard-content {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.orders-page.orders-mobile-focus .dashboard-content {
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  body.orders-page.orders-mobile-focus .dashboard-panel,
  body.orders-page.orders-mobile-focus .panel-body,
  body.orders-page.orders-mobile-focus .orders-list,
  body.orders-page.orders-mobile-focus #orders-container {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  body.orders-page.orders-mobile-focus .orders-list {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }
  body.orders-page.orders-mobile-focus .premium-order-card {
    overflow: visible !important;
    margin-bottom: 20px;
  }
  body.orders-page.orders-mobile-focus .poc-footer {
    overflow: visible;
    width: 100%;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
    gap: 10px;
  }
  body.orders-page.orders-mobile-focus .poc-footer .poc-btn-primary {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    min-height: 44px;
  }
  body.orders-page.orders-mobile-focus
    .poc-footer
    .poc-btn-secondary.order-expand-btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
  body.orders-page.orders-mobile-focus .poc-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  body.orders-page.orders-mobile-focus .poc-body {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  body.orders-page.orders-mobile-focus .poc-product-info {
    width: 100%;
    align-items: flex-start;
  }
  body.orders-page.orders-mobile-focus .poc-pricing {
    align-items: flex-start;
    text-align: left;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    width: 100%;
  }
  body.orders-page.orders-mobile-focus .orders-mobile-panel-bar,
  body.orders-page.orders-mobile-focus .orders-mobile-panel-bar[hidden] {
    display: flex !important;
  }
  body.orders-page.orders-mobile-focus .dashboard-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  body.orders-page.orders-mobile-focus .panel-body {
    padding: 0;
  }
  body.account-page.coupons-mobile-focus header.site-header,
  body.account-page.coupons-mobile-focus .dw-header,
  body.account-page.coupons-mobile-focus .account-gradient,
  body.account-page.coupons-mobile-focus .content-header,
  body.account-page.coupons-mobile-focus .dashboard-sidebar {
    display: none !important;
  }
  body.account-page.coupons-mobile-focus .coupons-mobile-panel-bar {
    display: flex;
    padding: 8px 0 12px;
    background: #f7fafc;
    position: sticky;
    top: 0;
    z-index: 80;
  }
  body.account-page.coupons-mobile-focus .dashboard-wrapper {
    grid-template-columns: 1fr;
    padding: 8px 16px 100px;
    gap: 0;
  }
  body.account-mobile-drill-in .panel-body {
    padding: 0 0 12px;
  }
  body.account-mobile-drill-in .account-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.account-mobile-drill-in .premium-wishlist-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px #0f172a0d;
  }
  body.account-mobile-drill-in .premium-wishlist-card .product-image-wrapper {
    position: relative;
    padding-top: 88%;
    background: #f8fafc;
  }
  body.account-mobile-drill-in .premium-wishlist-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
  }
  body.account-mobile-drill-in .premium-wishlist-card .product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  body.account-mobile-drill-in .premium-wishlist-card .product-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.account-mobile-drill-in .premium-wishlist-card .product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
  }
  body.account-mobile-drill-in .account-wishlist-cta {
    margin-top: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 10px;
  }
  body.account-mobile-drill-in .account-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.account-mobile-drill-in .account-recent-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px #0f172a0d;
  }
  body.account-mobile-drill-in .account-recent-image {
    height: 120px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  body.account-mobile-drill-in .account-recent-badge {
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    font-size: 9px;
  }
  body.account-mobile-drill-in .account-recent-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  body.account-mobile-drill-in .account-recent-meta {
    padding: 12px;
  }
  body.account-mobile-drill-in .account-recent-meta h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.account-mobile-drill-in .account-recent-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
  }
  body.account-mobile-drill-in .account-recent-cta {
    font-size: 11px;
  }
  body.account-mobile-drill-in .account-section-intro {
    margin-bottom: 16px;
  }
  body.account-mobile-drill-in .account-section-intro h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
  }
  body.account-mobile-drill-in .account-section-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }
  body.account-mobile-drill-in .account-review-card {
    margin-bottom: 12px;
  }
  body.account-mobile-drill-in .account-reviews-list .poc-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
  }
  body.account-mobile-drill-in .account-review-btn {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    padding: 12px 16px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.account-mobile-drill-in .account-orders-panel .order-filters {
    gap: 8px;
    margin-bottom: 14px;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  body.account-mobile-drill-in
    .account-orders-panel
    .order-filters::-webkit-scrollbar {
    display: none;
  }
  body.account-mobile-drill-in .account-orders-panel .filter-chip {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  body.account-mobile-drill-in .account-orders-panel .orders-list {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body.account-mobile-drill-in .premium-order-card {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 20px #0f172a0f;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.account-mobile-drill-in .premium-order-card .poc-product-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
  }
  body.account-mobile-drill-in .premium-order-card .poc-thumbnail-stack {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    flex-shrink: 0;
    padding-right: 0;
    overflow: hidden;
  }
  body.account-mobile-drill-in
    .premium-order-card
    .poc-thumbnail-stack
    .product-icon:not(:first-of-type),
  body.account-mobile-drill-in
    .premium-order-card
    .poc-thumbnail-stack
    .poc-thumbnail-more {
    display: none;
  }
  body.account-mobile-drill-in
    .premium-order-card
    .poc-thumbnail-stack
    .product-icon:first-of-type {
    margin-left: 0 !important;
    width: 56px;
    height: 56px;
  }
  body.account-mobile-drill-in .premium-order-card .poc-details {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.account-mobile-drill-in .premium-order-card .poc-header {
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  body.account-mobile-drill-in .premium-order-card .poc-body {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  body.account-mobile-drill-in .premium-order-card .poc-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  body.account-mobile-drill-in .premium-order-card .poc-pricing {
    align-items: flex-start;
    text-align: left;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  body.account-mobile-drill-in .premium-order-card .poc-footer {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    width: 100%;
  }
  body.account-mobile-drill-in .premium-order-card .poc-btn-primary {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    min-height: 44px;
    order: -1;
    font-size: 14px;
  }
  body.account-mobile-drill-in
    .premium-order-card
    .poc-btn-secondary.order-expand-btn {
    flex: 1 1 auto;
    min-height: 44px;
    font-size: 13px;
  }
  body.account-mobile-drill-in .premium-order-card .poc-btn-ghost {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
  body.account-mobile-drill-in .referral-hero-premium,
  body.account-mobile-drill-in .support-card-premium {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 8px 28px #0f172a0f;
    text-align: center;
  }
  body.account-mobile-drill-in .referral-hero-premium > i,
  body.account-mobile-drill-in .support-card-premium > i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 14px;
  }
  body.account-mobile-drill-in .referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    width: 100%;
  }
  body.account-mobile-drill-in .referral-stat-card:last-child {
    grid-column: 1 / -1;
  }
  body.account-mobile-drill-in .referral-stat-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 4px 16px #0f172a0a;
  }
  body.account-mobile-drill-in .stacked-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  body.account-mobile-drill-in .form-floating.full-width {
    width: 100%;
    position: relative;
  }
  body.account-mobile-drill-in .form-floating input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 14px 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    font-size: 15px;
    background: #fff;
  }
  body.account-mobile-drill-in .form-floating label {
    position: absolute;
    left: 14px;
    top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  body.account-mobile-drill-in .settings-card {
    padding: 20px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
  }
  body.account-mobile-drill-in .account-profile-save-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px #ff6b0047;
    cursor: pointer;
  }
  body.account-mobile-drill-in .account-reviews-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--text-muted);
    text-align: center;
  }
  body.account-mobile-drill-in .account-reviews-loading i {
    font-size: 28px;
    color: var(--primary);
  }
  body.account-mobile-drill-in .empty-state .btn-primary,
  body.account-mobile-drill-in .empty-state .btn-primary-glass {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
  .guest-benefits {
    flex-direction: column;
  }
  .guest-experience-card {
    grid-template-columns: 1fr;
    padding: 32px 22px;
  }
}
@media (max-width: 768px) {
  .guest-experience-card {
    padding: 26px 18px;
    gap: 22px;
  }
  .guest-experience-header h2 {
    font-size: 26px;
  }
  .guest-experience-header p {
    padding: 0;
  }
  .guest-highlight-pill {
    width: 100%;
    justify-content: center;
  }
  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .orders-toolbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .orders-presets {
    width: 100%;
  }
  .orders-premium-spotlight {
    grid-template-columns: 1fr;
  }
  .orders-insights {
    grid-template-columns: 1fr 1fr;
  }
  .order-secondary-actions {
    width: 100%;
  }
  .order-progress {
    grid-template-columns: 1fr;
  }
  .order-secondary-actions .btn-sm {
    flex: 1;
    text-align: center;
  }
  #orders-search-input,
  .orders-select {
    height: 40px;
  }
  .hero-surface {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    border-radius: 32px;
    gap: 24px;
  }
  .hero-avatar {
    margin: 0 auto;
    width: 88px;
    height: 88px;
    box-shadow: 0 16px 32px var(--primary);
  }
  .hero-details h1 {
    font-size: 26px;
  }
  .hero-meta {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-chip {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 20px;
  }
  .account-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .overview-card {
    padding: 24px;
  }
  .settings-shell {
    grid-template-columns: 1fr;
  }
  .settings-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 4px;
    background: transparent;
    box-shadow: none;
    margin-bottom: 16px;
  }
  /* The premium settings sidebar keeps `position:sticky;top:124px` from its
   * desktop rule; on mobile the grid collapses to one column, so the sticky
   * sidebar floats down and overlaps the identity card (the "ghost text behind
   * the card" bug). Neutralise it to a normal horizontal tab strip here. */
  .settings-sidebar-premium {
    position: static;
    top: auto;
    padding: 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .settings-tab {
    background: #fff;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .settings-tab-subtitle {
    display: none;
  }
  .settings-sidebar-footer {
    flex-shrink: 0;
    margin-top: 0;
  }
  .settings-logout-btn {
    background: #fff;
    border: 1px solid rgba(229, 62, 62, 0.2);
    color: var(--danger);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .settings-tab.active {
    background: var(--primary);
    color: #fff;
  }
  .settings-tab.active i {
    color: #fff;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .card-action {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .panel-body {
    padding: 20px;
  }
}
.empty-state,
.error-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.5s ease-out;
  width: 100%;
  box-sizing: border-box;
}
.empty-state {
  background: linear-gradient(145deg, #fff, #fcfcfc);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 28px;
  padding: 48px 32px;
  box-shadow: 0 10px 40px -10px #0000000d;
  position: relative;
  overflow: hidden;
}
.empty-state i,
.error-state .error-icon {
  font-size: 48px;
  margin-bottom: 24px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b0014, #ff6b0005);
  box-shadow:
    inset 0 2px 10px #ff6b000d,
    0 8px 16px #ff6b000d;
}
.empty-state i {
  color: var(--primary);
}
.error-state .error-icon {
  color: var(--danger);
  background: radial-gradient(
    circle,
    rgba(229, 62, 62, 0.1) 0%,
    transparent 70%
  );
}
.error-state .error-icon i {
  font-size: inherit;
}
.empty-state h2,
.error-state h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-main);
}
.empty-state p,
.error-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.empty-state .btn,
.error-state .btn-primary {
  margin-top: 8px;
  box-shadow: 0 4px 15px #ff6b0040;
}
.empty-state .btn:hover,
.error-state .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #ff6b0059;
}
body.dark-mode .empty-state {
  background: linear-gradient(145deg, #0c1220f2, #060a12eb);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px #0000008c;
  color: #e8edf7;
}
body.dark-mode .empty-state i {
  color: #ffb98a;
  background: radial-gradient(
    circle,
    rgba(255, 140, 0, 0.18) 0%,
    transparent 70%
  );
}
body.dark-mode .empty-state p,
body.dark-mode .empty-state h2 {
  color: #e8edf7;
}
#miniCartOverlay,
#miniCartDrawer,
#miniCartItems,
.mini-cart-header,
.mini-cart-footer {
  display: none !important;
}
.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #fcfcfc);
  box-shadow: 0 8px 25px -8px #0000000f;
}
.orders-premium-spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.orders-instant-preview {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffffff5, #fcfcfcfa);
  box-shadow: 0 10px 30px -12px #0f172a14;
}
.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffffff5, #fcfcfcfa);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px #0f172a0d;
}
.pagination-summary {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
  border-color: #ff6b0040;
  color: #ff6b00;
  transform: translateY(-1px);
}
.pagination-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px #ff6b002e;
}
.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.recent-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.recent-orders-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ff6b00;
}
.recent-orders-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}
.recent-orders-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.recent-orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.recent-order-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  background: linear-gradient(145deg, #ffffffe6, #fff7ed99);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    0 8px 24px #ff6b0014,
    inset 0 1px 1px #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.recent-order-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px #ff6b001f,
    inset 0 1px 1px #fff;
}
.recent-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.recent-order-id {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.recent-order-card h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}
.recent-order-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.spotlight-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 20px;
  background: linear-gradient(145deg, #ffffffe6, #fff6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 10px 30px #0000000d,
    inset 0 1px 1px #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px -10px #00000014,
    0 0 0 1px #00000005;
}
.spotlight-card h3 {
  margin: 4px 0 6px;
  color: #0f172a;
  font-size: 16px;
}
.spotlight-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.spotlight-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.spotlight-priority {
  border-color: #ff6b0033;
  background: linear-gradient(145deg, #fff7edb3, #fffffff2);
  box-shadow: 0 10px 30px -10px #ff6b0026;
}
.spotlight-priority .btn {
  margin-top: 10px;
}
.orders-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-chip {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px #00000005;
}
.preset-chip:hover {
  background: #ff6b000a;
  color: var(--primary);
  border-color: #ff6b0033;
}
.preset-chip.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px #ff6b0040;
}
.orders-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.orders-search-wrap i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}
#orders-search-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  height: 44px;
  padding: 0 16px 0 40px;
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px #00000005;
}
#orders-search-input:focus,
.orders-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow:
    0 0 0 4px #ff6b001f,
    0 4px 12px #ff6b0014;
}
.orders-toolbar-right {
  display: flex;
  gap: 10px;
}
.orders-select {
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0 16px;
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px #00000005;
  cursor: pointer;
}
.orders-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.insight-card {
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 18px;
  padding: 16px 20px;
  background: linear-gradient(145deg, #fff, #fcfcfc);
  box-shadow: 0 8px 25px -8px #0000000f;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -8px #00000014;
}
.insight-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.insight-value {
  display: block;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #2d3748, #1a202c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.order-secondary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn.btn-ghost {
  background: linear-gradient(145deg, #fff, #fcfcfc);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px #00000005;
}
.btn.btn-ghost:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #ff6b0033;
  color: var(--primary);
  box-shadow: 0 6px 12px -4px #ff6b0026;
}
.order-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafce6;
}
.progress-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
}
.progress-step.active {
  color: #0f172a;
  border-color: #ff6b0040;
  background: #ff6b001a;
}
.progress-step.active .dot {
  background: linear-gradient(135deg, #ff6b00, #ff4500);
}
.order-expanded {
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  margin-top: 12px;
  padding-top: 12px;
}
.order-expanded h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.order-expanded-items {
  display: grid;
  gap: 8px;
}
.order-expanded-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: #f8fafce6;
}
.order-expanded-row .item-name {
  font-weight: 600;
  color: #1e293b;
}
.order-expanded-row .item-qty,
.order-expanded-row .item-total {
  font-weight: 700;
  color: #475569;
}
.order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 4px 2px 12px;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.order-filters::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  background: linear-gradient(145deg, #fff, #fcfcfc);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 14px -5px rgba(15, 23, 42, 0.2), inset 0 1px rgba(255, 255, 255, 0.95);
}
.filter-chip:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 16px -4px #00000014;
}
.filter-chip.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px -6px #ff6b0066, inset 0 1px rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

/* Account menus sit above detailed page content and must remain fully opaque. */
body.account-page .new-header .auth-dropdown-menu,
body.orders-page .new-header .auth-dropdown-menu {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.dark-mode.account-page .new-header .auth-dropdown-menu,
body.dark-mode.orders-page .new-header .auth-dropdown-menu {
  background: #141822 !important;
}
.filter-label {
  font-weight: 600;
}
.filter-count {
  background: #0000000d;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.filter-chip.active .filter-count {
  background: #ffffff40;
  color: #fff;
}
@media (max-width: 768px) {
  .dashboard-wrapper {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .dashboard-content {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 140px;
  }
  body.orders-page .dashboard-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  body.orders-page.orders-mobile-focus .dashboard-content {
    padding: 0 !important;
  }
  body.orders-page .panel-body {
    padding: 16px 12px;
  }
  body.orders-page.orders-mobile-focus .panel-body {
    padding: 0 !important;
  }
  .overview-card,
  .order-card-modern,
  .download-item-modern,
  .product-card,
  .dashboard-panel,
  .guest-experience-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .overview-card {
    padding: 24px;
    min-height: auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }
  .metric-value {
    font-size: 36px;
  }
  .order-card-modern {
    padding: 24px;
    min-height: 140px;
    gap: 10px;
  }
  body.orders-page .order-card-modern {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .order-card-header-left {
    align-items: flex-start;
  }
  .order-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .order-actions {
    width: 100%;
    justify-content: stretch;
  }
  .order-actions .btn-sm {
    flex: 1;
    text-align: center;
  }
  .order-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
  .order-product-previews {
    padding: 10px;
    gap: 8px;
  }
  .order-product-previews img {
    margin-right: 0;
  }
  .order-highlights {
    font-size: 13px;
  }
  body.orders-page .dashboard-panel {
    padding: 18px 12px;
    border-radius: 16px;
  }
  body.orders-page .orders-list {
    padding: 4px 2px 0;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .btn,
  .hero-actions .hero-chip,
  .hero-actions button,
  .hero-actions .hero-note {
    width: 100%;
    justify-content: center;
  }
  .hero-note {
    text-align: center;
  }
  .download-item-modern {
    padding: 20px;
  }
  .dashboard-panel,
  .overview-card,
  .guest-experience-card {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .guest-experience-card {
    padding: 32px 20px;
    gap: 24px;
    border-radius: 24px;
  }
  .guest-experience-header h2 {
    font-size: 24px !important;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .guest-experience-header p {
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
  }
  .guest-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .guest-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
  .guest-benefits {
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
  }
  .benefit-item {
    padding: 20px;
    text-align: center;
    align-items: center;
  }
  .hero-surface {
    margin: 0 12px;
    width: auto;
  }
}
.avatar-editable {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
.avatar-editable:hover {
  box-shadow: 0 0 0 4px #ff6b004d;
}
.avatar-overlay {
  position: absolute;
  inset: 0;
  background: #00000080;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 50%;
}
.avatar-editable:hover .avatar-overlay {
  opacity: 1;
}
.avatar-overlay i {
  color: #fff;
  font-size: 1.8rem;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.avatar-editable:hover .avatar-overlay i {
  transform: scale(1);
}
@media (hover: none) {
  .avatar-overlay {
    opacity: 0;
  }
  .avatar-editable:after {
    content: "\f030";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
  }
}
.member-card-container {
  perspective: 1000px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
}
.member-card {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  min-height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  border-radius: 20px;
}
.member-card.flipped {
  transform: rotateY(180deg);
}
.member-card-front,
.member-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  top: 0;
  left: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px #00000040;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
.member-card-front {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  padding: 25px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.member-card-back {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}
.member-card-front:after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}
.member-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
}
.member-card-logo i {
  color: var(--primary);
  font-size: 20px;
}
.member-card-chip {
  width: 45px;
  height: 34px;
  background: linear-gradient(135deg, gold, #b8860b);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 4px #0003;
  flex-shrink: 0;
}
.member-card-chip:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 70%;
  height: 1px;
  background: #0000001a;
  box-shadow: 0 2px #0000001a;
}
.member-card-body {
  margin-bottom: 25px;
}
.member-number {
  font-family:
    Courier New,
    monospace;
  font-size: 22px;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  opacity: 0.9;
  color: #fff;
}
.member-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.member-info-group {
  display: flex;
  flex-direction: column;
}
.member-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 4px;
  color: #fff;
}
.member-value {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 400px) {
  .member-card-container {
    max-width: 100%;
  }
  .member-number {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .member-card-front,
  .member-card-back {
    padding: 20px;
  }
  .member-card-logo {
    font-size: 14px;
  }
}
.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.member-secure-badge {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
}
.member-secure-badge i {
  font-size: 22px;
  color: #22c55e;
}
.member-secure-badge span {
  font-weight: 700;
  font-size: 13px;
}
.member-secure-badge small {
  font-size: 11px;
  letter-spacing: 0.4px;
  opacity: 0.9;
}
.member-card-hint {
  font-size: 11px;
  color: #fff9;
  margin-top: 8px;
}
.input-group-premium {
  position: relative;
  margin-bottom: 20px;
}
.input-group-premium label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-left: 4px;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.2s;
}
.input-premium {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: #fffc;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px #00000005;
}
.input-premium:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px #ff6b001a,
    inset 0 2px 4px #00000003;
  outline: none;
}
.input-premium:focus + i {
  color: var(--primary);
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}
.avatar-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  position: relative;
}
.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-option-initial {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.avatar-option:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px #0000001a;
  z-index: 1;
}
.avatar-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px #ff6b0026;
  transform: scale(1.05);
}
.or-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.or-divider:before,
.or-divider:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e2e8f0;
}
.or-divider:before {
  left: 0;
}
.or-divider:after {
  right: 0;
}
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}
.star-rating input {
  display: none;
}
.star-rating label {
  font-size: 24px;
  color: #cbd5e0;
  cursor: pointer;
  transition: color 0.2s;
  margin: 0 !important;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #ecc94b;
}
.star-rating input:checked + label {
  color: #ecc94b;
}
@media (min-width: 769px) {
  .settings-logout-btn {
    width: 100%;
    margin-top: auto;
    background: transparent;
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
  }
  .settings-logout-btn:hover {
    background: #e53e3e14;
    border-color: var(--danger);
    transform: translateY(-1px);
  }
}
.referral-hero {
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  padding: 30px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px #ff6b0040;
}
.referral-hero:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.referral-content {
  position: relative;
  z-index: 1;
}
.referral-hero h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}
.referral-hero p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 20px;
}
.referral-link-box {
  background: #fff3;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 400px;
  margin: 0 auto;
}
.referral-code {
  font-family:
    Courier New,
    monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}
.btn-copy {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-copy:hover {
  transform: scale(1.05);
}
.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px #00000005;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticket-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  cursor: pointer;
}
.ticket-item:hover {
  transform: translate(4px);
  border-color: var(--primary);
}
.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-subject {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}
.ticket-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.ticket-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-open {
  background: #ff6b001a;
  color: var(--primary);
}
.status-closed {
  background: #48bb7826;
  color: var(--success);
}
body.dark-mode.account-page {
  background-color: #030712;
  color: #f8fafc;
}
body.dark-mode .account-gradient {
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(6, 182, 212, 0.15),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(139, 92, 246, 0.15),
      transparent 25%
    ),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1), transparent 25%);
  filter: blur(80px);
}
body.dark-mode .dashboard-sidebar,
body.dark-mode .dashboard-panel,
body.dark-mode .overview-card,
body.dark-mode .hero-surface,
body.dark-mode .settings-sidebar,
body.dark-mode .settings-card,
body.dark-mode .order-card-modern,
body.dark-mode .ticket-item,
body.dark-mode .product-card,
body.dark-mode .panel-body,
body.dark-mode .guest-experience-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(10, 14, 23, 0.7));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
body.dark-mode .account-recent-card {
  background: #0f172ad1;
  border-color: #ffffff14;
}
body.dark-mode .account-recent-image {
  background: #0206178c;
}
body.dark-mode .hero-surface:after {
  background: radial-gradient(
    circle,
    rgba(255, 140, 0, 0.2) 0%,
    transparent 70%
  );
}
body.dark-mode .guest-highlight-pill {
  background: #ff724c29;
  color: #ffd1b2;
}
body.dark-mode .card-icon {
  background: #ff6b0029;
}
body.dark-mode .card-subtitle,
body.dark-mode .hero-eyebrow,
body.dark-mode .hero-meta,
body.dark-mode .hero-email,
body.dark-mode .metric-hint,
body.dark-mode .metric-label,
body.dark-mode .settings-tab,
body.dark-mode .settings-tab-subtitle,
body.dark-mode .ticket-meta,
body.dark-mode .stat-label,
body.dark-mode .meta-help,
body.dark-mode .order-guidance,
body.dark-mode .filter-count {
  color: #9aa4c6;
}
body.dark-mode .orders-toolbar {
  background: linear-gradient(145deg, #141a28f0, #101623e6);
  border-color: #ffffff14;
}
body.dark-mode .spotlight-card {
  background: linear-gradient(145deg, #0f172ac7, #0f172aa6);
  border-color: #ffffff1a;
}
body.dark-mode .spotlight-card h3 {
  color: #f8fafc;
}
body.dark-mode .spotlight-card p {
  color: #a5b4fc;
}
body.dark-mode .spotlight-priority {
  border-color: #ff6b0059;
  background: linear-gradient(145deg, #5f230259, #0f172abf);
}
body.dark-mode .orders-instant-preview,
body.dark-mode .orders-pagination {
  background: linear-gradient(145deg, #0c121ee6, #0a0f19eb);
  border-color: #ffffff14;
}
body.dark-mode .recent-orders-header h3,
body.dark-mode .recent-order-card h4 {
  color: #f8fafc;
}
body.dark-mode .recent-orders-note,
body.dark-mode .recent-order-card p,
body.dark-mode .pagination-summary {
  color: #9aa4c6;
}
body.dark-mode .recent-order-card {
  background: linear-gradient(145deg, #22314f73, #0c121ef2);
  border-color: #ffffff14;
}
body.dark-mode .recent-order-id {
  color: #e2e8f0;
}
body.dark-mode .pagination-btn {
  background: #0f172ad1;
  border-color: #94a3b838;
  color: #d8e0f0;
}
body.dark-mode .pagination-btn:hover:not(:disabled) {
  color: #fff;
  border-color: #ff8c0073;
}
body.dark-mode .metric-value.metric-pending:before {
  background: linear-gradient(90deg, #334155d9, #475569f2, #334155d9);
  background-size: 200% 100%;
}
body.dark-mode .preset-chip {
  background: #0f172abf;
  border-color: #94a3b83d;
  color: #cbd5e1;
}
body.dark-mode .preset-chip.active {
  background: #ff6b002e;
  border-color: #ff6b0066;
  color: #fed7aa;
}
body.dark-mode .insight-card {
  background: #0f172ab3;
  border-color: #ffffff1a;
}
body.dark-mode .insight-label {
  color: #a5b4fc;
}
body.dark-mode .insight-value {
  color: #e2e8f0;
}
body.dark-mode #orders-search-input,
body.dark-mode .orders-select {
  background: #0f172ad9;
  border-color: #ffffff1f;
  color: #e2e8f0;
}
body.dark-mode .btn.btn-ghost {
  background: #94a3b814;
  border-color: #94a3b833;
  color: #dbeafe;
}
body.dark-mode .progress-step {
  background: #0f172ab8;
  border-color: #ffffff1a;
  color: #cbd5e1;
}
body.dark-mode .progress-step .dot {
  background: #94a3b8b3;
}
body.dark-mode .progress-step.active {
  background: #ff6b002e;
  border-color: #ff6b0059;
  color: #f8fafc;
}
body.dark-mode .order-expanded {
  border-top-color: #ffffff24;
}
body.dark-mode .order-expanded-row {
  background: #0f172aa6;
  border-color: #ffffff1a;
}
body.dark-mode .order-expanded-row .item-name,
body.dark-mode .order-expanded-row .item-qty,
body.dark-mode .order-expanded-row .item-total {
  color: #e2e8f0;
}
body.dark-mode .filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}
body.dark-mode .filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .filter-chip.active {
  background: linear-gradient(135deg, #ff8c0066, #ff450073);
  border-color: #ff6b0080;
  box-shadow: 0 10px 24px #ff6b0047;
  color: #ffffff;
}
body.dark-mode .card-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffb98a;
}
body.dark-mode .card-action:hover {
  background: #ff6b001f;
  border-color: #ff6b0073;
}
body.dark-mode .settings-tab:hover {
  background: #ffffff0d;
  color: #e8edf7;
}
body.dark-mode .settings-tab.active {
  background: #ff6b0029;
  color: #ffb98a;
}
body.dark-mode .settings-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-mode .order-card-header {
  border-bottom-color: #ffffff14;
}
body.dark-mode .order-chip {
  background: #ff6b0024;
  color: #ffb98a;
  box-shadow: 0 10px 24px #ff6b0029;
}
body.dark-mode .order-id,
body.dark-mode .meta-value {
  color: #f6f8ff;
}
body.dark-mode .order-product-previews {
  background: linear-gradient(135deg, #ffffff08, #ffffff03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px #00000073;
}
body.dark-mode .order-highlights {
  background: linear-gradient(135deg, #ffffff05, #ffffff03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f6f8ff;
}
body.dark-mode .order-product-previews img {
  border-color: #ffffff14;
  background: #ffffff08;
}
body.dark-mode .order-meta {
  background: linear-gradient(145deg, #111624e6, #0b0f1ae6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px #00000073;
}
body.dark-mode .meta-label {
  color: #9aa4c6;
}
body.dark-mode .order-total {
  color: #ffb98a;
}
body.dark-mode .order-timeline-step {
  border-color: #ffffff14;
  background: linear-gradient(145deg, #0f1422eb, #090d18e6);
}
body.dark-mode .order-timeline-step.active {
  box-shadow: 0 14px 40px #ff6b0026;
}
body.dark-mode .order-timeline-step.complete {
  border-color: #48bb7859;
  background: linear-gradient(135deg, #48bb7824, #48bb7814);
}
body.dark-mode .timeline-bullet {
  background: #ffb98a;
  box-shadow: 0 0 0 4px #ffb98a29;
}
body.dark-mode .order-timeline-step.complete .timeline-bullet {
  background: #8ae4b3;
  box-shadow: 0 0 0 4px #8ae4b329;
}
body.dark-mode .timeline-label {
  color: #f6f8ff;
}
body.dark-mode .timeline-meta {
  color: #9aa4c6;
}
body.dark-mode .btn-ghost {
  border-color: #ffffff24;
  color: #c8d2f3;
}
body.dark-mode .order-status.processing,
body.dark-mode .order-status.status-processing {
  background: #ffd6662e;
  color: #ffd166;
}
body.dark-mode .order-status.completed,
body.dark-mode .order-status.status-completed,
body.dark-mode .order-status.status-delivered,
body.dark-mode .order-status.status-done,
body.dark-mode .order-status.status-shipped {
  background: #48bb7833;
  color: #8ae4b3;
}
body.dark-mode .order-status.cancelled,
body.dark-mode .order-status.status-cancelled {
  background: #e53e3e33;
  color: #ff8c8c;
}
body.dark-mode .order-status.status-awaiting_payment,
body.dark-mode .order-status.status-unpaid,
body.dark-mode .order-status.status-payment_pending {
  background: #ff6b0033;
  color: #ffc9aa;
}
body.dark-mode .order-status.status-paid {
  background: #45aaf233;
  color: #9ed1ff;
}
body.dark-mode .download-item-modern {
  background: linear-gradient(145deg, #111624f2, #0b0f1aeb);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px #0000008c;
}
.wishlist-grid > .product-grid {
  width: 100%;
}
.wishlist-grid .product-card,
.account-wishlist-grid .product-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: #ffffffeb;
  box-shadow: 0 10px 30px #0f172a12;
  min-width: 0;
}
.wishlist-grid .product-card .product-image-wrapper,
.account-wishlist-grid .product-card .product-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
}
.wishlist-grid .product-card .product-img,
.wishlist-grid .product-card .product-image-wrapper > img,
.account-wishlist-grid .product-card .product-image-wrapper > img {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 18px;
  border-radius: 0;
  box-sizing: border-box;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.wishlist-grid .product-card:hover .product-img,
.wishlist-grid .product-card:hover .product-image-wrapper > img,
.account-wishlist-grid .product-card:hover .product-image-wrapper > img {
  transform: scale(1.045);
}
.wishlist-grid .product-details,
.account-wishlist-grid .product-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
}
.wishlist-grid .product-title,
.account-wishlist-grid .product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wishlist-grid .product-price,
.account-wishlist-grid .product-price {
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}
.wishlist-grid .btn-view-product,
.wishlist-grid .btn-primary-glass,
.account-wishlist-grid .btn-view-product,
.account-wishlist-grid .account-wishlist-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-gradient);
  box-shadow: 0 8px 18px #ff6b0033;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.wishlist-grid .btn-remove-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #ffffffe6;
  box-shadow: 0 6px 16px #0f172a1f;
  color: #ef4444;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
body.dark-mode .wishlist-grid .product-card,
body.dark-mode .account-wishlist-grid .product-card {
  border-color: #ffffff14;
  background: #0f172ad1;
}
body.dark-mode .wishlist-grid .product-card .product-image-wrapper,
body.dark-mode .account-wishlist-grid .product-card .product-image-wrapper {
  background: #ffffff0a;
}
.account-primary-panel {
  min-height: 360px;
}
.account-primary-panel .panel-body {
  padding-top: 20px;
}
@media (max-width: 992px) {
  .wishlist-grid > .product-grid,
  .account-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .wishlist-grid .product-details,
  .account-wishlist-grid .product-details {
    min-height: 142px;
    padding: 12px;
  }
  .wishlist-grid .product-card .product-img,
  .wishlist-grid .product-card .product-image-wrapper > img,
  .account-wishlist-grid .product-card .product-image-wrapper > img {
    padding: 12px;
  }
}
@media (max-width: 380px) {
  .wishlist-grid > .product-grid,
  .account-wishlist-grid {
    grid-template-columns: 1fr;
  }
}
body.dark-mode .download-name {
  color: #f6f8ff;
}
body.dark-mode .download-date {
  color: #9aa4c6;
}
.account-identity-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 107, 0, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b0014, #fffffff5 58%);
  box-shadow: 0 12px 28px #0f172a0f;
}
.account-identity-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 18px;
  background: var(--primary-gradient);
  box-shadow: 0 10px 22px #ff6b003d;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}
.account-identity-copy {
  min-width: 0;
}
.account-identity-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.account-identity-copy h3,
.account-identity-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-identity-copy h3 {
  margin: 0 0 3px;
  color: var(--text-main);
  font-size: 20px;
}
.account-identity-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.account-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}
.account-identity-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.dark-mode .account-identity-summary {
  border-color: #ff7a1833;
  background: linear-gradient(135deg, #ff6b0021, #0f172ae6 58%);
}
body.dark-mode .account-identity-meta {
  color: #cbd5e1;
}
.account-support-shell {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.account-support-shell .settings-content,
.account-support-shell .settings-section {
  width: 100%;
}
.support-card-premium {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 107, 0, 0.13),
      transparent 34%
    ),
    #fff;
  box-shadow: 0 20px 50px #0f172a14;
  text-align: left;
}
.support-hero-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6b00, #ff4500);
  box-shadow: 0 12px 24px #ff6b0042;
  color: #fff;
  font-size: 24px;
}
.support-eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.support-card-premium h3 {
  margin: 8px 0 10px;
  color: var(--text-main);
  font-size: clamp(25px, 3vw, 36px);
}
.support-card-premium > p {
  max-width: 670px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}
.account-support-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.account-support-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 82px;
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 17px;
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 8px 24px #0f172a0d;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.account-support-btn:hover {
  transform: translateY(-2px);
  border-color: #ff6b0047;
  box-shadow: 0 14px 28px #0f172a17;
}
.account-support-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff6b00, #ff4500);
  color: #fff;
}
.account-support-btn-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #ff6b001a;
  color: var(--primary);
  font-size: 17px;
}
.account-support-btn--primary .account-support-btn-icon {
  background: #ffffff2e;
  color: #fff;
}
.account-support-btn strong,
.account-support-btn small {
  display: block;
}
.account-support-btn strong {
  font-size: 14px;
}
.account-support-btn small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}
.account-support-btn--primary small {
  color: #fffc;
}
body.dark-mode .support-card-premium,
body.dark-mode .account-support-btn {
  border-color: #ffffff14;
  background-color: #0f172ae6;
}
body.dark-mode .account-support-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff6b00, #ff4500);
  color: #fff;
}
@media (max-width: 760px) {
  .account-identity-summary {
    align-items: flex-start;
    padding: 17px;
  }
  .account-identity-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
    font-size: 21px;
  }
  .account-identity-copy h3 {
    font-size: 17px;
  }
  .account-identity-meta {
    flex-direction: column;
    gap: 5px;
  }
  .support-card-premium {
    padding: 24px 18px;
    border-radius: 20px;
    text-align: center;
  }
  .support-hero-icon {
    margin: 0 auto 16px;
  }
  .account-support-actions {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .account-support-btn {
    min-height: 70px;
    text-align: left;
  }
  body.account-mobile-drill-in .account-support-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    margin: 22px 0 0;
  }
  body.account-mobile-drill-in .account-support-btn {
    justify-content: flex-start;
    min-height: 70px;
    padding: 13px;
  }
  body.account-mobile-drill-in .account-support-btn-icon,
  body.account-mobile-drill-in .account-support-btn-icon i {
    margin: 0;
    color: var(--primary);
    font-size: 17px;
  }
  body.account-mobile-drill-in
    .account-support-btn--primary
    .account-support-btn-icon,
  body.account-mobile-drill-in
    .account-support-btn--primary
    .account-support-btn-icon
    i {
    color: #fff;
  }
}
.account-referrals-shell {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.account-referrals-shell .settings-content,
.account-referrals-shell .settings-section {
  width: 100%;
  min-width: 0;
}
.referral-hero-premium {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(255, 107, 0, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 152, 0, 0.2), transparent 32%),
    linear-gradient(145deg, #fffaf6, #fff 58%, #fff5ed);
  box-shadow: 0 20px 50px #371b0914;
  text-align: center;
}
.referral-icon-badge {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 22px;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, #ff8a00, #ff5722);
  box-shadow: 0 12px 28px #ff572247;
}
.referral-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #f15a24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.referral-hero-premium h3 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.referral-hero-premium > p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.referral-link-label {
  max-width: 720px;
  margin: 0 auto 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.referral-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 9px 9px 9px 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  background: #ffffffeb;
  box-shadow: 0 8px 22px #0f172a0f;
}
.referral-link-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-referral-copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a00, #ff5722);
  box-shadow: 0 8px 18px #ff572233;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.account-referral-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px #ff572247;
}
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.referral-stat-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px #0f172a0e;
  text-align: left;
}
.referral-stat-card--accent {
  border-color: #ff6b0033;
  background: linear-gradient(145deg, #fff8f1, #fff);
}
.referral-stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #fff2e8;
  color: #f15a24;
  font-size: 14px;
}
.referral-stat-label {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.referral-stat-value {
  color: var(--text-main);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
body.dark-mode .referral-hero-premium {
  border-color: #ff8b4c33;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 106, 0, 0.14), transparent 34%),
    linear-gradient(145deg, #161b27, #111621);
}
body.dark-mode .referral-link-card,
body.dark-mode .referral-stat-card {
  border-color: #ffffff14;
  background: #131926e6;
}
@media (max-width: 768px) {
  .referral-hero-premium {
    padding: 26px 18px;
    border-radius: 22px;
  }
  .referral-icon-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
  }
  .referral-hero-premium > p {
    margin-bottom: 22px;
    font-size: 14px;
  }
  .referral-link-card {
    gap: 8px;
    padding: 8px 8px 8px 12px;
  }
  .referral-link-text {
    font-size: 11px;
    white-space: normal;
    word-break: break-all;
  }
  .account-referral-copy {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 12px;
  }
  .account-referral-copy span {
    display: none;
  }
  .referral-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .referral-stat-card {
    padding: 16px;
    border-radius: 16px;
  }
  .referral-stat-card:last-child {
    grid-column: 1 / -1;
  }
  .referral-stat-icon {
    margin-bottom: 12px;
  }
}
body.dark-mode .view-key-button {
  box-shadow: 0 10px 28px #ff6b0059;
}
body.dark-mode .ticket-item {
  border-color: #ffffff14;
}
body.dark-mode .ticket-item:hover {
  border-color: #ff6b00;
}
body.dark-mode .modal-content,
body.dark-mode .revealed-key-container,
body.dark-mode .input-premium {
  background: linear-gradient(145deg, #0c1220f2, #080c18e6);
  color: #e8edf7;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px #0000008c;
}
body.dark-mode .input-premium:focus {
  background: #11182b;
  border-color: #ff8a3c99;
  box-shadow: 0 8px 24px #ff8a3c33;
  color: #fff4eb;
}
body.dark-mode .modal-close-btn {
  background: #ffffff0f;
  color: #cfd5e4;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-mode .modal-close-btn:hover {
  background: #ff6b0029;
  color: #ffb98a;
}
body.dark-mode .input-group-premium label,
body.dark-mode .input-wrapper i,
body.dark-mode .revealed-key {
  color: #e8edf7;
}
body.dark-mode .sidebar-divider {
  background: #ffffff14;
}
body.dark-mode.account-page .site-footer {
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 114, 76, 0.16),
      transparent 34%
    ),
    radial-gradient(circle at 82% 6%, rgba(255, 70, 30, 0.12), transparent 32%),
    linear-gradient(135deg, #070a13, #0c111f, #0a0d17);
  border-top-color: #ffffff1a;
  box-shadow: 0 -14px 32px #00000080;
  color: #e8edf7;
}
body.dark-mode .site-footer {
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 114, 76, 0.12),
      transparent 34%
    ),
    radial-gradient(circle at 82% 6%, rgba(255, 70, 30, 0.08), transparent 32%),
    linear-gradient(135deg, #070a13, #0c111f, #0a0d17);
  border-top-color: #ffffff14;
  box-shadow: 0 -12px 28px #00000073;
  color: #e8edf7;
}
body.dark-mode.account-page .site-footer.skeleton {
  background: linear-gradient(135deg, #0c1220f2, #060a12f0);
  border-top-color: #ffffff1a;
}
body.dark-mode .site-footer.skeleton {
  background: linear-gradient(135deg, #0c1220f2, #060a12f0);
  border-top-color: #ffffff14;
}
body.orders-page .orders-toolbar {
  border-radius: 16px;
  box-shadow: 0 8px 22px #0f172a0f;
}
body.orders-page .spotlight-card {
  border-radius: 16px;
  box-shadow: 0 12px 24px #0f172a14;
}
body.orders-page .order-card-modern {
  border-radius: 20px;
  box-shadow: 0 10px 30px #0f172a12;
}
body.orders-page .order-card-modern:hover {
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  body.orders-page .panel-body {
    padding: 18px 14px;
  }
  body.orders-page .orders-premium-spotlight {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.orders-page .orders-instant-preview {
    padding: 14px;
    border-radius: 16px;
  }
  body.orders-page .recent-orders-header {
    flex-direction: column;
    align-items: flex-start;
  }
  body.orders-page .recent-orders-grid {
    grid-template-columns: 1fr;
  }
  body.orders-page .orders-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  body.orders-page .pagination-controls {
    justify-content: flex-start;
  }
  body.orders-page .spotlight-card {
    padding: 14px;
  }
  body.orders-page .spotlight-card h3 {
    font-size: 20px;
  }
  body.orders-page .order-filters {
    gap: 8px;
    margin-bottom: 14px;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.orders-page .filter-chip {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    flex-shrink: 0;
  }
  body.orders-page .orders-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  body.orders-page .orders-presets .preset-chip:last-child {
    grid-column: 1 / -1;
  }
  body.orders-page .preset-chip {
    min-height: 38px;
    padding: 8px 10px;
    text-align: center;
    justify-content: center;
  }
  body.orders-page .orders-toolbar {
    padding: 12px;
    gap: 10px;
  }
  body.orders-page .orders-toolbar-right {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.orders-page .orders-select,
  body.orders-page #orders-search-input,
  body.orders-page #orders-export-btn,
  body.orders-page #orders-clear-prefs {
    min-height: 42px;
    width: 100%;
  }
  body.orders-page .orders-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.orders-page .insight-card {
    padding: 10px;
  }
  body.orders-page .insight-value {
    font-size: 24px;
  }
  body.orders-page .order-card-modern {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 18px;
  }
  body.orders-page .order-id {
    font-size: 15px;
  }
  body.orders-page .order-status-badge {
    font-size: 11px;
    padding: 6px 11px;
  }
  body.orders-page .order-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  body.orders-page .progress-step {
    justify-content: center;
    padding: 7px 6px;
    font-size: 11px;
  }
  body.orders-page .order-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  body.orders-page .order-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  body.orders-page .order-secondary-actions .btn-sm {
    min-height: 40px;
    justify-content: center;
  }
  body.orders-page .order-secondary-actions a.btn-sm:last-child {
    grid-column: 1 / -1;
  }
}
.account-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.account-reviews-list .account-review-card {
  margin-bottom: 16px;
}
.account-reviews-list .account-review-card:last-child {
  margin-bottom: 0;
}
.account-reviews-list .poc-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
body.dark-mode .account-reviews-list .poc-footer {
  border-top-color: #ffffff1a;
}
.account-reviews-list .account-review-btn {
  width: 100%;
  flex: 1 1 100%;
}
.account-review-card.is-reviewed {
  border-color: #10b9812e;
}
.account-review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.account-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #10b9811f;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
}
.account-review-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-review-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.account-review-stars--modal {
  justify-content: center;
  margin: 0 0 16px;
  font-size: 28px;
}
.account-review-star {
  color: #0f172a1f;
  font-size: 14px;
}
.account-review-star.is-filled {
  color: #ffb300;
}
.account-review-stars--modal .account-review-star {
  font-size: 28px;
}
.account-review-headline {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}
.account-review-headline--modal {
  text-align: center;
  margin-bottom: 12px;
}
.account-review-snippet {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.account-reviews-list .account-view-review-btn {
  width: 100%;
  flex: 1 1 100%;
  justify-content: center;
  background: #0f172a0a;
  color: var(--text-main);
}
body.dark-mode .account-reviews-list .account-view-review-btn {
  background: #ffffff0f;
  color: #f5f5f5;
}
.account-review-detail-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
}
.account-review-detail-text--empty {
  color: var(--text-muted);
  font-style: italic;
}
.account-review-detail-meta {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.vault-card {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow:
    0 12px 32px #0000000d,
    inset 0 1px 2px #fffc;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
body.dark-mode .vault-card {
  background: #0f172a99;
  border-color: #ffffff14;
  box-shadow:
    0 12px 32px #0000004d,
    inset 0 1px 1px #ffffff0d;
}
.vault-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px #00000014,
    inset 0 1px 2px #ffffffe6;
}
body.dark-mode .vault-card:hover {
  box-shadow:
    0 20px 40px #0006,
    inset 0 1px 1px #ffffff14;
}
.vault-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
body.dark-mode .vault-card-header {
  border-bottom-color: #ffffff1a;
}
.vault-product-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px #0000000d;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.vault-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vault-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.vault-price {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}
.vault-keys-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.key-display-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.key-display-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00000008;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.dark-mode .key-display-box {
  background: #ffffff08;
  border-color: #ffffff0d;
}
.key-display-box:hover {
  background: #0000000d;
  border-color: #0000001a;
}
body.dark-mode .key-display-box:hover {
  background: #ffffff0d;
  border-color: #ffffff1a;
}
.key-icon {
  color: var(--primary);
  font-size: 1.1rem;
  margin-right: 12px;
}
.key-text {
  flex: 1;
  font-family:
    JetBrains Mono,
    Courier New,
    Courier,
    monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1px;
}
.key-text.hidden-key {
  letter-spacing: 2px;
  color: #94a3b8;
}
.reveal-icon {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-left: 12px;
  transition: color 0.2s ease;
}
.key-display-box:hover .reveal-icon {
  color: var(--primary);
}
.premium-copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px #0f172a33;
  position: relative;
  overflow: hidden;
}
body.dark-mode .premium-copy-btn {
  background: linear-gradient(135deg, #334155, #1e293b);
}
.premium-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #0f172a4d;
}
.premium-copy-btn:active {
  transform: translateY(0);
}
.premium-copy-btn.success {
  background: #10b9811a;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  box-shadow: none;
}
.processing-row .key-display-box {
  justify-content: center;
  gap: 12px;
  background: #ff8c000d;
  border-color: #ff8c0033;
  cursor: default;
}
.processing-text {
  color: var(--primary);
  font-weight: 600;
}
.loader-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 140, 0, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.firecracker-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    0 -15px #ff6b00,
    10px -10px #10b981,
    15px 0 #3b82f6,
    10px 10px #f59e0b,
    0 15px #ec4899,
    -10px 10px #8b5cf6,
    -15px 0 #14b8a6,
    -10px -10px #ef4444;
  border-radius: 50%;
  animation: firecracker 0.6s ease-out forwards;
  opacity: 0;
  pointer-events: none;
}
@keyframes firecracker {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}
.premium-switch-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.premium-switch-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.2s ease;
}
body.dark-mode .premium-switch-group {
  background: #ffffff05;
  border-color: #ffffff0d;
}
.switch-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.switch-info small {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
}
.premium-switch-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
  flex-shrink: 0;
}
.premium-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}
.premium-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}
body.dark-mode .premium-switch-slider {
  background-color: #475569;
}
.premium-switch-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px #0003;
}
.premium-switch-input:checked + .premium-switch-slider {
  background: linear-gradient(135deg, #10b981, #059669);
}
.premium-switch-input:focus + .premium-switch-slider {
  box-shadow: 0 0 0 4px #10b98133;
}
.premium-switch-input:checked + .premium-switch-slider:before {
  transform: translate(20px);
}
.premium-wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #00000026;
  border-color: var(--accent-main);
}
.settings-panel-premium {
  gap: 28px;
  align-items: start;
}
.settings-sidebar-premium {
  position: sticky;
  top: 124px;
  padding: 18px 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffffffa, #f8fafceb);
  box-shadow: 0 18px 40px #0f172a0f;
}
.settings-sidebar-premium .settings-tab {
  border-radius: 14px;
  padding: 14px 12px;
}
.settings-sidebar-premium .settings-tab.active {
  background: linear-gradient(135deg, #ff6b0024, #ff450014);
  box-shadow: inset 3px 0 0 var(--primary);
}
.settings-card--premium {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px #0f172a0f;
}
.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 0;
}
.settings-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b0029, #ff450014);
  color: var(--primary);
  font-size: 18px;
  flex: 0 0 48px;
}
.settings-card-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text-main);
}
.settings-card-head .settings-description {
  margin: 0;
}
.settings-form-premium {
  padding: 22px 28px 28px;
}
.settings-form-premium .form-floating input {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafce6;
  box-shadow: inset 0 1px #fffc;
}
.settings-form-premium .form-floating input:focus {
  border-color: #ff6b0073;
  box-shadow: 0 0 0 4px #ff6b001f;
}
.btn-account-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b00, #ff4500);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px #ff6b003d;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-account-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px #ff6b0047;
}
.account-identity-summary--premium {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 22px;
}
.account-referrals-shell--loading .referral-link-skeleton {
  display: block;
  width: min(100%, 420px);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #94a3b82e, #94a3b857, #94a3b82e);
  background-size: 200% 100%;
  animation: accountReferralShimmer 1.2s ease-in-out infinite;
}
.referral-stat-card--skeleton .referral-stat-value {
  color: #94a3b8cc;
}
.account-referrals-error {
  text-align: center;
  padding: 48px 20px;
}
.account-referrals-error .empty-icon {
  font-size: 42px;
  color: #f56565;
  margin-bottom: 16px;
}
@keyframes accountReferralShimmer {
  0% {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
body.dark-mode .settings-sidebar-premium,
body.dark-mode .settings-card--premium {
  background: #0f172aeb;
  border-color: #94a3b824;
}
body.dark-mode .settings-form-premium .form-floating input {
  background: #0f172ab8;
  border-color: #94a3b82e;
}
@media (max-width: 992px) {
  .dashboard-wrapper.auth-pending {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
body.dark-mode .account-skeleton-hero,
body.dark-mode .account-skeleton-cards > span {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.01) 60%
  );
  border-color: rgba(255, 255, 255, 0.05);
}
body.dark-mode .account-skeleton-avatar {
  background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .account-skeleton-line {
  background: rgba(255, 255, 255, 0.15);
}

/* Account workspace: consistent surfaces and readable, compact buyer panels. */
body.account-page {
  --account-surface: #fff;
  --account-muted-surface: #f8fafc;
  --account-border: rgba(15, 23, 42, 0.1);
  --account-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
body.dark-mode.account-page {
  --account-surface: #161d2b;
  --account-muted-surface: #111827;
  --account-border: rgba(148, 163, 184, 0.18);
  --account-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}
body.account-page .dashboard-content {
  gap: 24px;
}
body.account-page .dashboard-sidebar,
body.account-page .dashboard-panel,
body.account-page .hero-surface,
body.account-page .overview-card {
  background: var(--account-surface);
  border: 1px solid var(--account-border);
  border-radius: 20px;
  box-shadow: var(--account-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.account-page .dashboard-panel {
  animation: none;
}
body.account-page .profile-summary {
  margin: 0;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--account-border);
  background: var(--account-muted-surface);
  box-shadow: none;
}
body.account-page .profile-summary::before,
body.account-page .hero-surface::before,
body.account-page .hero-surface::after,
body.account-page .hero-avatar::before {
  display: none;
}
body.account-page .profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: none;
}
body.account-page .profile-info {
  min-width: 0;
}
body.account-page .profile-info h4 {
  font-size: 14px;
  line-height: 1.4;
}
body.account-page .profile-info p {
  font-size: 11px;
  line-height: 1.5;
}
body.account-page .vip-badge {
  box-shadow: none;
  font-size: 9px;
  letter-spacing: 0.03em;
}
body.account-page .sidebar-link {
  border-radius: 10px;
  padding: 11px 12px;
}
body.account-page .sidebar-link.active {
  box-shadow: none;
  border-color: rgba(255, 107, 0, 0.2);
}
body.account-page .sidebar-link.active i {
  filter: none;
}
body.account-page .sidebar-link:focus-visible,
body.account-page .hero-chip:focus-visible,
body.account-page .overview-card:focus-visible,
body.account-page .filter-chip:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.55);
  outline-offset: 3px;
}
body.account-page .hero-surface {
  padding: 32px;
  gap: 24px;
}
body.account-page .hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 30px;
  box-shadow: none;
}
body.account-page .hero-details h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.25;
}
body.account-page .hero-email {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}
body.account-page .hero-chip {
  min-height: 42px;
  padding: 9px 16px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: none;
}
body.account-page .overview-card {
  padding: 22px;
  gap: 16px;
  color: var(--text-main);
  text-decoration: none;
}
body.account-page .overview-card:hover,
body.account-page .download-item-modern:hover,
body.account-page .premium-order-card:hover {
  transform: none;
  box-shadow: var(--account-shadow);
}
body.account-page .overview-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 20px;
  box-shadow: none;
}
body.account-page .card-header {
  padding: 22px 24px;
  gap: 16px;
  background: var(--account-surface);
  border-bottom-color: var(--account-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.account-page .card-heading {
  min-width: 0;
  gap: 12px;
}
body.account-page .card-subtitle {
  line-height: 1.6;
}
body.account-page .card-action {
  flex-shrink: 0;
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}
body.account-page .panel-body {
  padding: 24px;
}
body.account-page .premium-order-card,
body.account-page .download-item-modern {
  background: var(--account-surface);
  border-color: var(--account-border);
  border-radius: 16px;
  box-shadow: var(--account-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.account-page .download-info {
  min-width: 0;
}
body.account-page .download-name {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.account-page .view-key-button {
  flex-shrink: 0;
  min-height: 44px;
  border-radius: 10px;
  box-shadow: none;
}
@media (min-width: 993px) {
  body.account-page:not(.orders-account-embed):not(.coupons-account-embed) .dashboard-wrapper:not(.single-column) {
    width: min(1280px, calc(100% - 48px));
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
  }
  body.account-page .dashboard-sidebar {
    padding: 16px;
    gap: 18px;
    scroll-padding-top: 100px;
  }
  body.account-page .dashboard-sidebar .profile-summary {
    background: var(--account-muted-surface);
    box-shadow: none;
  }
  body.account-page .dashboard-sidebar .profile-info h4,
  body.account-page .dashboard-sidebar .profile-info p {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.account-page .dashboard-sidebar .main-tabs {
    gap: 4px;
  }
}
@media (max-width: 992px) {
  body.account-page.account-mobile-shell .dashboard-wrapper {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  body.account-page.account-mobile-hub .dashboard-sidebar {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }
  body.account-page.account-mobile-hub .profile-summary {
    padding: 18px 16px;
    margin-bottom: 16px;
    background: var(--account-surface);
  }
  body.account-page.account-mobile-hub .main-tabs {
    border: 1px solid var(--account-border);
    border-radius: 16px;
    box-shadow: none;
    background: var(--account-surface);
  }
  body.account-page.account-mobile-drill-in .dashboard-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.account-page.account-mobile-drill-in .card-header {
    padding: 18px 0;
    background: transparent;
    align-items: flex-start;
  }
  body.account-page.account-mobile-drill-in .card-heading {
    width: 100%;
  }
  body.account-page.account-mobile-drill-in .card-action {
    width: auto;
    align-self: flex-start;
  }
  body.account-page.account-mobile-drill-in .panel-body {
    padding: 16px 0;
  }
  body.account-page .order-filters,
  body.orders-page .order-filters,
  body.account-page.account-mobile-drill-in .account-orders-panel .order-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    margin-bottom: 16px;
  }
  body.account-page .order-filters .filter-chip,
  body.orders-page .order-filters .filter-chip {
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    justify-content: space-between;
    border-radius: 10px;
    white-space: normal;
    box-shadow: none;
  }
  body.account-page .premium-order-card .poc-badge {
    max-width: 100%;
    font-size: 10px;
    padding: 5px 8px;
    letter-spacing: 0.02em;
  }
  body.account-page .download-item-modern {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  body.account-page .download-product-image {
    width: 56px;
    height: 56px;
  }
  body.account-page .download-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: 14px;
  }
  body.account-page .download-date {
    margin-top: 6px;
  }
  body.account-page .download-item-modern > .view-key-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Settings owns its form layout; it must not depend on checkout/auth CSS. */
body.account-page .settings-shell { grid-template-columns: 208px minmax(0, 1fr); gap: 20px; }
body.account-page .settings-content,
body.account-page .settings-section,
body.account-page .settings-tab .tab-text { min-width: 0; }
body.account-page .settings-tab-title,
body.account-page .settings-tab-subtitle { display: block; line-height: 1.4; }
body.account-page .settings-tab-title { font-weight: 700; }
body.account-page .settings-tab-subtitle { font-size: 12px; margin-top: 3px; }
body.account-page .settings-sidebar-premium { position: static; }
body.account-page .settings-shell .stacked-form { display: flex; flex-direction: column; gap: 18px; }
body.account-page .settings-shell .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
body.account-page .settings-shell .form-floating { display: flex; flex-direction: column; gap: 7px; width: 100%; min-width: 0; }
body.account-page .settings-shell .form-floating label { position: static; order: -1; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: none; letter-spacing: normal; }
body.account-page .settings-shell .form-floating input,
body.account-page .settings-shell .form-floating textarea,
body.account-page .settings-shell select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--account-border); border-radius: 12px; font: inherit; font-size: 16px; color: var(--text-main); background: var(--account-muted-surface); }
body.account-page .settings-shell .input-wrapper select { padding-inline-start: 44px; }
body.account-page .settings-shell .form-floating input:focus,
body.account-page .settings-shell .form-floating textarea:focus,
body.account-page .settings-shell select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
body.account-page .settings-shell .auth-continue-btn { align-self: flex-start; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
body.account-page .settings-shell .settings-description { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 8px 0 22px; }
body.account-page .settings-shell .premium-switch-group { gap: 16px; }
body.account-page .settings-shell .premium-switch-input:focus-visible + .premium-switch-slider { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 1100px) {
  body.account-page .settings-shell { grid-template-columns: minmax(0, 1fr); }
  body.account-page .settings-sidebar { display: flex; overflow-x: auto; gap: 8px; padding: 4px 2px 10px; margin: 0; border: 0; background: transparent; box-shadow: none; }
  body.account-page .settings-sidebar .settings-tab { width: auto; min-height: 44px; flex: 0 0 auto; padding: 10px 14px; white-space: nowrap; }
  body.account-page .settings-tab-subtitle { display: none; }
  body.account-page .settings-sidebar-footer { flex: 0 0 auto; margin: 0; }
  body.account-page .settings-logout-btn { min-height: 44px; }
}
@media (max-width: 600px) {
  body.account-page .settings-shell .form-grid { grid-template-columns: minmax(0, 1fr); }
  body.account-page .settings-shell .settings-card { padding: 20px 16px; }
  body.account-page .settings-shell .settings-card--premium { padding: 0; }
  body.account-page .settings-card-head { padding: 20px 16px 0; gap: 12px; }
  body.account-page .settings-form-premium { padding: 18px 16px 20px; }
  body.account-page .settings-card-head h3 { font-size: 20px; }
  body.account-page .settings-shell .premium-switch-group { padding: 14px 12px; }
  body.account-page .settings-shell .auth-continue-btn { width: 100%; }
}
body.account-page .settings-sidebar .settings-tab.active {
  background: #fff2e8;
  color: #a84105;
  border-color: #ffcba6;
}
body.account-page .settings-sidebar .settings-tab.active i { color: inherit; }
body.dark-mode.account-page .settings-sidebar .settings-tab.active {
  background: #422a1c;
  color: #ffbc8b;
  border-color: #86532f;
}
