/* MYSHOP Dark Theme — full UI override */
body.theme-myshop {
  --red: #ef4444;
  --gold: #8b5cf6;
  --gold-dark: #a78bfa;
  --orange: #ef4444;
  --ink: #f5f5f5;
  --muted: #9ca3af;
  --line: rgba(139, 92, 246, 0.14);
  --panel: #141414;
  --page: #0a0a0a;
  --soft: #1a1028;
  --green: #22c55e;
  --product-card-bg: #141414;
  --product-card-hover: #1c1c1c;
  --product-card-text: #f5f5f5;
  --product-card-price: #ef4444;
  --product-card-meta: #9ca3af;
  --product-card-button: #8b5cf6;
  --product-card-button-text: #fff;
  --gold-glow: rgba(139, 92, 246, 0.18);
  --orange-glow: rgba(239, 68, 68, 0.12);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --deep-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glass: rgba(20, 20, 20, 0.88);
  --myshop-purple: #8b5cf6;
  --myshop-purple-light: #a78bfa;
  --myshop-red: #ef4444;
  --myshop-card: #141414;
  --myshop-card-2: #1a1a1a;
  --myshop-nav: rgba(18, 18, 18, 0.92);
  --myshop-border: rgba(139, 92, 246, 0.18);
  --myshop-border-soft: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

body.theme-myshop {
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(239, 68, 68, 0.08), transparent 45%),
    var(--page) !important;
}

body.theme-myshop::before {
  background-image: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.018) 18px,
    rgba(255, 255, 255, 0.018) 19px
  );
  mask-image: none;
  opacity: 1;
}

body.theme-myshop .ambient-icons { display: none; }

body.theme-myshop .icon,
body.theme-myshop .title-icon {
  color: var(--myshop-purple-light);
  stroke: currentColor;
}

/* ── Header / Nav ── */
body.theme-myshop .site-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  width: min(1360px, calc(100vw - 20px));
  margin: 10px auto 0;
  border: 1px solid var(--myshop-border);
  border-radius: 999px;
  background: var(--myshop-nav);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

body.theme-myshop .header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 10px 0 14px;
  min-width: 0;
  flex-wrap: nowrap !important;
  width: 100%;
}

body.theme-myshop .logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

body.theme-myshop .logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

body.theme-myshop .logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f472b6, #8b5cf6, #6366f1);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

body.theme-myshop .main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.theme-myshop .main-nav::-webkit-scrollbar {
  display: none;
}

body.theme-myshop .main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 11px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

body.theme-myshop .main-nav a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.14);
}

body.theme-myshop .main-nav a.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

body.theme-myshop .main-nav a .icon {
  color: inherit;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

body.theme-myshop .main-nav a.nav-mobile-only {
  display: none;
}

body.theme-myshop .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body.theme-myshop .wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 110px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

body.theme-myshop .wallet-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-myshop .wallet-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.theme-myshop .wallet-pill .icon {
  color: var(--myshop-red);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

body.theme-myshop .admin-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.theme-myshop .admin-header-pill:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.6);
  color: #fff;
}

body.theme-myshop .admin-header-pill.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(109, 40, 217, 0.85));
  border-color: transparent;
  color: #fff;
}

body.theme-myshop .admin-header-pill .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.theme-myshop .account-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 130px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

body.theme-myshop .account-pill .account-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-myshop .account-pill .icon {
  color: #fff;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

body.theme-myshop .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0;
  flex-shrink: 0;
}

body.theme-myshop .menu-toggle .icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

body.theme-myshop .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
body.theme-myshop .menu-toggle[aria-expanded="true"] .icon-close { display: block !important; }

/* Mobile drawer */
body.theme-myshop .mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.theme-myshop .mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.theme-myshop .mobile-nav-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 510;
  max-height: min(88vh, 720px);
  padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden auto;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body.theme-myshop .mobile-nav-drawer.open {
  transform: translateY(0);
}

body.theme-myshop .mobile-nav-drawer:not(.open) {
  pointer-events: none;
}

body.theme-myshop .mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

body.theme-myshop .mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.theme-myshop .mobile-nav-brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

body.theme-myshop .mobile-nav-brand span {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  margin-top: 2px;
}

body.theme-myshop .mobile-nav-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

body.theme-myshop .mobile-nav-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(192, 38, 211, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.28);
}

body.theme-myshop .mobile-nav-wallet > span {
  color: #d1d5db;
  font-size: 12px;
}

body.theme-myshop .mobile-nav-wallet strong {
  margin-right: auto;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

body.theme-myshop .mobile-nav-wallet-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.theme-myshop .mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

body.theme-myshop .mobile-nav-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

body.theme-myshop .mobile-nav-grid a:hover,
body.theme-myshop .mobile-nav-grid a.active {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

body.theme-myshop .mobile-nav-grid a .icon {
  width: 20px;
  height: 20px;
  color: var(--myshop-purple-light);
}

body.theme-myshop .mobile-nav-foot {
  padding: 4px 16px 8px;
}

body.theme-myshop .mobile-nav-auth {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(192, 38, 211, 0.18));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Mobile bottom tab bar */
body.theme-myshop .mobile-tabbar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  height: 62px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

body.theme-myshop .mobile-tabbar .mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

body.theme-myshop .mobile-tabbar .mobile-tab .icon {
  width: 18px;
  height: 18px;
  color: inherit;
}

body.theme-myshop .mobile-tabbar .mobile-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

body.theme-myshop .mobile-tabbar .mobile-tab.active,
body.theme-myshop .mobile-tabbar .mobile-tab[aria-expanded="true"] {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}

body.theme-myshop.mobile-nav-open {
  overflow: hidden;
}

body.theme-myshop.mobile-nav-open main {
  pointer-events: none;
}

body.theme-myshop.mobile-nav-open .hero-carousel-wrap,
body.theme-myshop.mobile-nav-open .hero-carousel-btn {
  visibility: hidden;
  pointer-events: none;
}

body.theme-myshop.mobile-nav-open .hero-slide {
  transform: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.theme-myshop.has-mobile-tabbar {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

body.theme-myshop.has-mobile-tabbar .floating-cart {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

/* Desktop breakpoints */
@media (max-width: 1280px) {
  body.theme-myshop .main-nav a.nav-secondary {
    display: none;
  }

  body.theme-myshop .main-nav a {
    padding: 8px 9px;
    font-size: 12px;
  }
}

@media (max-width: 1120px) {
  body.theme-myshop .main-nav a .nav-link-label {
    display: none;
  }

  body.theme-myshop .main-nav a {
    padding: 8px 10px;
  }

  body.theme-myshop .logo-text {
    max-width: 100px;
  }

  body.theme-myshop .account-pill .account-label {
    display: none;
  }
}

@media (max-width: 960px) {
  body.theme-myshop:not(.admin-route) .site-header {
    display: none !important;
  }

  body.theme-myshop.has-mobile-tabbar main {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }

  body.theme-myshop .game-topup-shell,
  body.theme-myshop .myshop-categories-shell {
    width: min(100%, calc(100vw - 24px));
  }

  body.theme-myshop .mobile-tabbar {
    display: grid;
  }

  body.theme-myshop.has-mobile-tabbar {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* เมนูเลื่อนเข้ามาจากขวา */
  body.theme-myshop .mobile-nav-drawer {
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(86vw, 320px);
    max-height: none;
    height: 100%;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 0 calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 0 0 20px;
    border-top: none;
    border-left: 1px solid rgba(139, 92, 246, 0.25);
    transform: translateX(105%);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  }

  body.theme-myshop .mobile-nav-drawer.open {
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  body.theme-myshop.has-mobile-tabbar main {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 400px) {
  body.theme-myshop .wallet-pill {
    display: none !important;
  }

  body.theme-myshop .mobile-tabbar .mobile-tab span {
    font-size: 9px;
  }
}

/* ── Hero (MYSHOP style) ── */
body.theme-myshop .myshop-hero {
  margin-bottom: 24px;
}

body.theme-myshop .myshop-hero-panel {
  position: relative;
  min-height: 380px;
  height: auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background:
    radial-gradient(ellipse 80% 90% at 15% 50%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(236, 72, 153, 0.12), transparent 50%),
    linear-gradient(135deg, #0c0618 0%, #120a22 45%, #0a0a0a 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-myshop .myshop-hero-panel::before,
body.theme-myshop .myshop-hero-panel::after {
  display: none !important;
}

body.theme-myshop .hero-bg-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 70% 40%, rgba(139, 92, 246, 0.15), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(192, 38, 211, 0.08), transparent 35%);
  animation: heroGlowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

body.theme-myshop .hero-bg-logos {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 24px;
  opacity: 0.12;
  filter: blur(2px);
  pointer-events: none;
  overflow: hidden;
}

body.theme-myshop .hero-logo-chip {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  animation: heroLogoFloat 8s ease-in-out infinite;
}

body.theme-myshop .hero-logo-chip.netflix { background: #e50914; animation-delay: 0s; }
body.theme-myshop .hero-logo-chip.youtube { background: #ff0000; animation-delay: 1s; }
body.theme-myshop .hero-logo-chip.disney { background: #0063e5; animation-delay: 2s; font-size: 16px; }
body.theme-myshop .hero-logo-chip.iqiyi { background: #00cc36; animation-delay: 0.5s; font-size: 14px; }
body.theme-myshop .hero-logo-chip.spotify { background: #1db954; animation-delay: 1.5s; }
body.theme-myshop .hero-logo-chip.prime { background: #00a8e1; animation-delay: 2.5s; font-size: 11px; text-transform: uppercase; }

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

body.theme-myshop .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
  min-height: 380px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 40px);
}

body.theme-myshop .hero-animate {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.theme-myshop .hero-animate-delay {
  animation-delay: 0.15s;
}

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

body.theme-myshop .hero-copy {
  padding: 0 !important;
  height: auto !important;
  text-shadow: none;
}

body.theme-myshop .hero-badge {
  animation: heroBadgePulse 3s ease-in-out infinite;
}

@keyframes heroBadgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(139, 92, 246, 0); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.35); }
}

body.theme-myshop .hero-copy h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.25));
}

body.theme-myshop .hero-sub {
  font-size: 14px;
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 18px !important;
}

body.theme-myshop .hero-features span {
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-myshop .hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: heroCtaGlow 2.5s ease-in-out infinite;
}

body.theme-myshop .hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.55);
}

@keyframes heroCtaGlow {
  0%, 100% { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 12px 48px rgba(192, 38, 211, 0.55); }
}

body.theme-myshop .hero-promo-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-myshop .hero-promo-tag small {
  color: #9ca3af;
  font-size: 11px;
}

body.theme-myshop .hero-promo-tag strong {
  color: var(--myshop-purple-light);
  font-size: 18px;
  font-weight: 800;
}

/* Hero carousel */
body.theme-myshop .hero-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

body.theme-myshop .hero-carousel {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 280px;
  perspective: 900px;
}

body.theme-myshop .hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

body.theme-myshop .hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141414;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  transform: translateX(120%) scale(0.78);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

body.theme-myshop .hero-slide.active {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(139, 92, 246, 0.2);
  animation: heroSlideActive 0.6s ease;
}

@keyframes heroSlideActive {
  from { transform: translateX(30px) scale(0.92); opacity: 0.5; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

body.theme-myshop .hero-slide.prev {
  transform: translateX(-55%) scale(0.82);
  opacity: 0.45;
  z-index: 2;
  filter: brightness(0.7);
}

body.theme-myshop .hero-slide.next {
  transform: translateX(55%) scale(0.82);
  opacity: 0.45;
  z-index: 2;
  filter: brightness(0.7);
}

body.theme-myshop .hero-slide-media {
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #1a1a2e, #0f0f0f);
  overflow: hidden;
}

body.theme-myshop .hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-myshop .hero-slide-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(192, 38, 211, 0.2));
}

body.theme-myshop .hero-slide-foot {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-myshop .hero-slide-foot strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

body.theme-myshop .hero-slide-cta {
  display: block;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

body.theme-myshop .hero-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.85);
  color: #fff;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

body.theme-myshop .hero-carousel-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-50%) scale(1.08);
}

body.theme-myshop .hero-carousel-btn.prev { left: -8px; }
body.theme-myshop .hero-carousel-btn.next { right: -8px; }

body.theme-myshop .hero-carousel-btn .icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

body.theme-myshop .myshop-hero-panel.has-uploaded-banner .hero-inner,
body.theme-myshop .myshop-hero-panel.has-uploaded-banner .hero-bg-glow,
body.theme-myshop .myshop-hero-panel.has-uploaded-banner .hero-bg-logos {
  display: none;
}

body.theme-myshop .hero-device { display: none !important; }

body.theme-myshop .sample-chip,
body.theme-myshop .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--myshop-purple-light);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

body.theme-myshop .hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

body.theme-myshop .hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 13px;
}

body.theme-myshop .hero-features .icon {
  color: var(--myshop-purple);
  width: 16px;
  height: 16px;
}

body.theme-myshop .hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.theme-myshop .hero-sub {
  color: #9ca3af;
}

/* ── Service strip / feature cards ── */
body.theme-myshop .service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

body.theme-myshop .service-strip article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--myshop-border) !important;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  animation: heroFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.theme-myshop .service-strip article:nth-child(1) { animation-delay: 0.1s; }
body.theme-myshop .service-strip article:nth-child(2) { animation-delay: 0.18s; }
body.theme-myshop .service-strip article:nth-child(3) { animation-delay: 0.26s; }
body.theme-myshop .service-strip article:nth-child(4) { animation-delay: 0.34s; }

body.theme-myshop .service-strip article:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.theme-myshop .service-strip i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(192, 38, 211, 0.15));
  color: var(--myshop-purple-light);
  transition: transform 0.25s ease;
}

body.theme-myshop .service-strip article:hover i {
  transform: scale(1.08) rotate(-3deg);
}

body.theme-myshop .service-strip strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

body.theme-myshop .service-strip span {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

/* Stats grid */
body.theme-myshop .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

body.theme-myshop .stat-card {
  position: relative;
  min-height: 100px;
  padding: 18px 18px 16px;
  border: 1px solid var(--myshop-border) !important;
  border-radius: 16px;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: heroFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.theme-myshop .stat-card:nth-child(1) { animation-delay: 0.15s; }
body.theme-myshop .stat-card:nth-child(2) { animation-delay: 0.22s; }
body.theme-myshop .stat-card:nth-child(3) { animation-delay: 0.29s; }
body.theme-myshop .stat-card:nth-child(4) { animation-delay: 0.36s; }

body.theme-myshop .stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.theme-myshop .stat-card span {
  display: block;
  color: #9ca3af !important;
  font-size: 12px;
  font-weight: 600;
}

body.theme-myshop .stat-card strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--myshop-purple-light) !important;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1;
}

body.theme-myshop .stat-card small {
  color: #6b7280 !important;
  font-size: 13px;
  margin-left: 4px;
}

body.theme-myshop .stat-card .stat-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
}

body.theme-myshop .stat-card .stat-icon .icon {
  width: 18px;
  height: 18px;
  color: var(--myshop-purple-light);
}

/* ── Section headers ── */
body.theme-myshop .section-row h2,
body.theme-myshop .page-title h1 {
  color: #fff;
  font-weight: 800;
}

body.theme-myshop .section-row p,
body.theme-myshop .page-title p {
  color: var(--muted);
}

body.theme-myshop .text-link {
  color: var(--myshop-purple-light);
  font-weight: 600;
}

body.theme-myshop .text-link .icon { color: inherit; }

body.theme-myshop .title-icon { stroke: var(--myshop-red); }

/* ── Category cards ── */
body.theme-myshop .category-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card);
  box-shadow: none;
  overflow: hidden;
}

body.theme-myshop .category-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

body.theme-myshop .category-card h3 {
  color: #fff;
  background: var(--myshop-card) !important;
}

body.theme-myshop .category-card h3 span { color: var(--muted); }

body.theme-myshop .category-card.has-category-image h3 {
  background: rgba(20, 20, 20, 0.95) !important;
}

/* ── Product / store grid ── */
body.theme-myshop .store-grid .product-card,
body.theme-myshop .product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--product-card-bg);
  color: var(--product-card-text);
}

body.theme-myshop .product-card .price,
body.theme-myshop .sale-price { color: var(--myshop-red) !important; }

/* ── Premium cards ── */
body.theme-myshop .premium-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.theme-myshop .premium-card:hover,
body.theme-myshop .premium-card.active {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.12);
}

body.theme-myshop .premium-card-body strong,
body.theme-myshop .premium-card-title { color: #fff; }

body.theme-myshop .premium-card-price,
body.theme-myshop .premium-price { color: var(--myshop-red) !important; }

body.theme-myshop body.premium-fullscreen .premium-shell,
body.theme-myshop.premium-fullscreen .premium-shell,
body.theme-myshop .premium-products-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-myshop .premium-page-hero h1 { color: #fff; }

/* Premium Apps page — remove legacy light toolbar/panels */
body.theme-myshop.premium-fullscreen main {
  background: transparent !important;
  box-shadow: none !important;
}

body.theme-myshop.premium-fullscreen .premium-page {
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-shop-head {
  background: linear-gradient(180deg, #161616, #111111) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-shop-head::before {
  display: none !important;
}

body.theme-myshop.premium-fullscreen .premium-shop-head h2,
body.theme-myshop.premium-fullscreen .premium-shop-head h2 > span:last-child {
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-shop-head h2 > span:first-child {
  background: linear-gradient(180deg, #8b5cf6, #c026d3) !important;
  box-shadow: none !important;
}

body.theme-myshop.premium-fullscreen .premium-shop-head p {
  color: var(--muted) !important;
}

body.theme-myshop.premium-fullscreen .premium-mini-stats span {
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

body.theme-myshop.premium-fullscreen .premium-mini-stats strong {
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-head-actions input,
body.theme-myshop.premium-fullscreen #premiumSearch {
  background: #0d0d0d !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.theme-myshop.premium-fullscreen .premium-head-actions input::placeholder,
body.theme-myshop.premium-fullscreen #premiumSearch::placeholder {
  color: #6b7280 !important;
}

body.theme-myshop.premium-fullscreen .premium-head-actions input:focus,
body.theme-myshop.premium-fullscreen #premiumSearch:focus {
  border-color: var(--myshop-purple) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}

body.theme-myshop.premium-fullscreen .premium-stock-filter {
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border-radius: 12px !important;
}

body.theme-myshop.premium-fullscreen .premium-stock-filter.active {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: rgba(139, 92, 246, 0.22) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop.premium-fullscreen .premium-section-head h2,
body.theme-myshop.premium-fullscreen .premium-section-head h3,
body.theme-myshop.premium-fullscreen #premiumProductsTitle {
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-section-head p,
body.theme-myshop.premium-fullscreen #premiumProductsSubtitle {
  color: var(--muted) !important;
}

body.theme-myshop.premium-fullscreen .premium-checkout-panel {
  background: linear-gradient(180deg, #161616, #111111) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

body.theme-myshop.premium-fullscreen .premium-buy-form label,
body.theme-myshop.premium-fullscreen .premium-selected-empty {
  color: var(--muted) !important;
}

body.theme-myshop.premium-fullscreen .premium-coupon-card {
  background: #121212 !important;
  border: 1px solid var(--line) !important;
}

body.theme-myshop.premium-fullscreen .premium-coupon-card input,
body.theme-myshop.premium-fullscreen .premium-buy-form textarea {
  background: #0d0d0d !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-card {
  background: var(--myshop-card) !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body.theme-myshop.premium-fullscreen .premium-card:hover,
body.theme-myshop.premium-fullscreen .premium-card.active {
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4) !important;
}

body.theme-myshop.premium-fullscreen .premium-card-body strong {
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-card-price {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.28) !important;
  color: var(--myshop-purple-light) !important;
}

/* Premium product cards — MYSHOP dark (override legacy white cards) */
body.theme-myshop.premium-fullscreen .premium-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card {
  display: flex !important;
  flex-direction: column !important;
  grid-template-rows: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  text-align: left !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card:hover,
body.theme-myshop.premium-fullscreen .myshop-premium-card.active {
  transform: translateY(-4px) !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card-media,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-img {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 !important;
  padding: 18px !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 92, 246, 0.12), transparent 45%),
    #0a0a0a !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card-media img,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-img img {
  position: static !important;
  inset: auto !important;
  width: 72% !important;
  height: 72% !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  border-radius: 16px !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card-body,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-body {
  display: grid !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 14px 14px 12px !important;
  background: transparent !important;
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-name,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-body > strong {
  min-height: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  -webkit-line-clamp: 2 !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card-price,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-price {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-price b,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-sale-price b {
  color: var(--myshop-red) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-price em,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-price small,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-sale-price em,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-sale-price small {
  color: var(--muted) !important;
  font-size: 12px !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card-foot,
body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 4px !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid var(--line) !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-stock-line {
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-stock-line b {
  color: #22c55e !important;
  font-weight: 800 !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-action {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #d1d5db !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card.active .premium-card-action {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: rgba(139, 92, 246, 0.18) !important;
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-card-action .icon {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-soldout-badge {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-provider-line,
body.theme-myshop.premium-fullscreen .myshop-premium-card .agent-price-note {
  color: var(--muted) !important;
  font-size: 11px !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card .premium-detail-line {
  display: none !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card.is-out-of-stock {
  opacity: 0.72 !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card.is-out-of-stock .premium-card-img img {
  filter: grayscale(1) !important;
}

body.theme-myshop.premium-fullscreen .myshop-premium-card.is-out-of-stock .premium-stock-line b {
  color: #ef4444 !important;
}

/* ── Game topup ── */
body.theme-myshop .game-topup-page,
body.theme-myshop .game-menu-page { color: #fff; }

body.theme-myshop .game-menu-head h1,
body.theme-myshop .game-menu-head h2 { color: #fff; }

body.theme-myshop .game-card,
body.theme-myshop .game-catalog-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card);
}

body.theme-myshop .game-card:hover { border-color: rgba(139, 92, 246, 0.35); }

body.theme-myshop .pack-card,
body.theme-myshop .pack-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--myshop-card-2);
  color: #fff;
}

body.theme-myshop .pack-card.active,
body.theme-myshop .pack-card:hover {
  border-color: var(--myshop-purple);
  background: rgba(139, 92, 246, 0.1);
}

body.theme-myshop .pack-card .pack-price { color: var(--myshop-purple-light) !important; }

body.theme-myshop .game-catalog-search,
body.theme-myshop .filter-bar input,
body.theme-myshop .filter-bar select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--myshop-card);
  color: #fff;
}

body.theme-myshop .game-topup-form,
body.theme-myshop .game-checkout-panel,
body.theme-myshop .pack-list-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
}

/* ── Panels / forms ── */
body.theme-myshop .panel {
  border: 1px solid var(--myshop-border) !important;
  border-radius: 20px;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

body.theme-myshop label { color: #d1d5db; }

body.theme-myshop input,
body.theme-myshop select,
body.theme-myshop textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0d0d;
  color: #fff;
}

body.theme-myshop input::placeholder,
body.theme-myshop textarea::placeholder { color: #6b7280; }

body.theme-myshop input:focus,
body.theme-myshop select:focus,
body.theme-myshop textarea:focus {
  border-color: var(--myshop-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ── Buttons ── */
body.theme-myshop .gold-btn:not(:disabled) {
  background: linear-gradient(135deg, #7c3aed, #c026d3) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35) !important;
}

body.theme-myshop .gold-btn:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.theme-myshop .gold-btn:not(:disabled) .icon { color: #fff !important; }

body.theme-myshop .light-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body.theme-myshop .light-btn:hover { background: rgba(255, 255, 255, 0.1); }

body.theme-myshop .ghost { color: var(--muted); }

/* ── Auth modal (MYSHOP split-screen) ── */
body.theme-myshop #authModal.auth-modal {
  padding: 0;
  align-items: stretch;
  justify-items: stretch;
  background: #0a0a0a;
  backdrop-filter: none;
}

body.theme-myshop #authModal .auth-card {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: none;
  border-radius: 0;
  background: #0a0a0a;
  box-shadow: none;
  overflow: hidden;
}

body.theme-myshop #authModal .auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(ellipse 90% 70% at 30% 35%, rgba(139, 92, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(192, 38, 211, 0.12), transparent 50%),
    linear-gradient(160deg, #12081f 0%, #0a0a0a 100%);
  overflow: hidden;
}

body.theme-myshop #authModal .auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -38deg,
    transparent,
    transparent 22px,
    rgba(255, 255, 255, 0.025) 22px,
    rgba(255, 255, 255, 0.025) 23px
  );
  pointer-events: none;
}

body.theme-myshop #authModal .auth-back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.theme-myshop #authModal .auth-back .icon {
  width: 16px;
  height: 16px;
  color: inherit;
}

body.theme-myshop #authModal .auth-visual-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 0;
}

body.theme-myshop #authModal .auth-hero-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

body.theme-myshop #authModal .auth-hero-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-myshop #authModal .auth-hero-icon-register {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

body.theme-myshop #authModal .auth-visual h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  background: none;
  -webkit-text-fill-color: unset;
}

body.theme-myshop #authModal .auth-brand-gradient {
  background: linear-gradient(135deg, #c4b5fd, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-myshop #authModal .auth-visual p {
  margin: 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.75;
  max-width: 380px;
}

body.theme-myshop #authModal .auth-form-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px);
  background:
    repeating-linear-gradient(-38deg, transparent, transparent 22px, rgba(255, 255, 255, 0.012) 22px, rgba(255, 255, 255, 0.012) 23px),
    #0a0a0a;
  overflow-y: auto;
}

body.theme-myshop #authModal .auth-close-mobile {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

body.theme-myshop #authModal .auth-form {
  width: min(100%, 420px);
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  color: #fff;
}

body.theme-myshop #authModal .auth-heading {
  margin-bottom: 4px;
}

body.theme-myshop #authModal .auth-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
}

body.theme-myshop #authModal .auth-heading p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

body.theme-myshop #authModal .auth-panel {
  display: grid;
  gap: 14px;
}

body.theme-myshop #authModal .field {
  display: grid;
  gap: 8px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
}

body.theme-myshop #authModal .auth-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.theme-myshop #authModal .auth-field-label-only {
  margin: 0;
}

body.theme-myshop #authModal .auth-field-no-label {
  margin-top: -6px;
}

body.theme-myshop #authModal .auth-forgot {
  border: none;
  background: none;
  color: var(--myshop-purple-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

body.theme-myshop #authModal .input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.theme-myshop #authModal .input-wrap:focus-within {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

body.theme-myshop #authModal .input-wrap .icon {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

body.theme-myshop #authModal .input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

body.theme-myshop #authModal .password-toggle {
  border: none;
  background: none;
  color: #6b7280;
  padding: 4px;
  cursor: pointer;
}

body.theme-myshop #authModal .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

body.theme-myshop #authModal .check-row input {
  margin-top: 3px;
  accent-color: var(--myshop-purple);
}

body.theme-myshop #authModal .auth-terms a {
  color: var(--myshop-purple-light);
  text-decoration: none;
}

body.theme-myshop #authModal .auth-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35) !important;
}

body.theme-myshop #authModal .auth-submit .icon {
  width: 18px;
  height: 18px;
  color: #fff !important;
}

body.theme-myshop #authModal .auth-form[data-auth-mode="register"] .auth-submit {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

body.theme-myshop #authModal .auth-form[data-auth-mode="register"] .auth-submit:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  filter: none;
}

body.theme-myshop #authModal .auth-switch {
  margin: 4px 0 0;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

body.theme-myshop #authModal .auth-switch button {
  border: none;
  background: none;
  color: var(--myshop-purple-light);
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

body.theme-myshop.auth-modal-open {
  overflow: hidden;
}

body.theme-myshop.auth-modal-open .site-header,
body.theme-myshop.auth-modal-open .mobile-tabbar,
body.theme-myshop.auth-modal-open .floating-cart {
  display: none !important;
}

@media (max-width: 900px) {
  body.theme-myshop #authModal .auth-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  body.theme-myshop #authModal .auth-visual {
    min-height: auto;
    padding: 20px 20px 12px;
  }

  body.theme-myshop #authModal .auth-visual-panel {
    padding: 16px 0 8px;
    max-width: none;
  }

  body.theme-myshop #authModal .auth-hero-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  body.theme-myshop #authModal .auth-visual h2 {
    font-size: 28px;
  }

  body.theme-myshop #authModal .auth-visual p {
    font-size: 13px;
    line-height: 1.6;
  }

  body.theme-myshop #authModal .auth-back {
    margin-bottom: 8px;
  }

  body.theme-myshop #authModal .auth-form-wrap {
    align-items: flex-start;
    padding: 20px 20px 32px;
  }

  body.theme-myshop #authModal .auth-close-mobile {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--line);
  }
}

body.theme-myshop .modal {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}

body.theme-myshop .footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: #080808;
  color: #9ca3af;
}

body.theme-myshop .footer h2,
body.theme-myshop .footer h3 { color: #fff; }

body.theme-myshop .footer a { color: #d1d5db; }

body.theme-myshop .footer a:hover { color: var(--myshop-purple-light); }

body.theme-myshop .footer-bottom {
  border-top: 1px solid var(--line);
  color: #6b7280;
}

body.theme-myshop .trust-list article i {
  background: rgba(239, 68, 68, 0.12);
  color: var(--myshop-red);
}

/* ── Drawer / cart ── */
body.theme-myshop .drawer {
  background: #111;
  border-left: 1px solid var(--line);
  color: #fff;
}

body.theme-myshop .product-detail-card {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #fff;
}

/* ── Toast / notifications ── */
body.theme-myshop .toast-stack {
  bottom: 20px;
  left: 20px;
  right: auto;
}

body.theme-myshop .toast-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.theme-myshop .toast-purchase .toast-icon { color: var(--myshop-purple); }

/* ── Stats / promotions ── */
body.theme-myshop .stats-grid article,
body.theme-myshop .promotion-strip article {
  border: 1px solid var(--myshop-border) !important;
  border-radius: 16px;
  background: var(--myshop-card);
  color: #fff;
}

/* ── Profile ── */
body.theme-myshop .profile-hero {
  background: linear-gradient(135deg, #1a1028, #141414);
  border: 1px solid var(--line);
}

body.theme-myshop .profile-avatar {
  background: rgba(139, 92, 246, 0.2);
  color: var(--myshop-purple-light);
}

/* ── Admin (legacy overrides — see myshop-admin-page at file end) ── */

/* ── Cookie banner ── */
body.theme-myshop .cookie {
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  backdrop-filter: blur(12px);
}

/* Kill legacy green full-screen loader */
.page-loader {
  background: #0a0a0a !important;
}

.page-loader::before,
.page-loader::after {
  display: none !important;
}

.page-loader-card,
.page-loader-orbit {
  display: none !important;
}

.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.route-progress.is-active {
  opacity: 1;
}

.route-progress.hidden {
  display: none;
}

.route-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.route-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #c026d3, #ec4899);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  border-radius: 0 2px 2px 0;
  transition: width 0.15s ease;
}

.route-progress.is-animating .route-progress-bar {
  animation: routeProgressMove 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.route-progress.is-complete .route-progress-bar {
  width: 100% !important;
  animation: none;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.2s ease;
}

@keyframes routeProgressMove {
  0% { width: 0%; }
  20% { width: 35%; }
  50% { width: 68%; }
  80% { width: 88%; }
  100% { width: 92%; }
}

/* ── Initial splash loader ── */
body.theme-myshop .page-loader {
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(139, 92, 246, 0.12), transparent 60%),
    #0a0a0a !important;
  backdrop-filter: blur(8px);
}

body.theme-myshop .page-loader::before,
body.theme-myshop .page-loader::after {
  display: none !important;
}

body.theme-myshop .page-loader-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.theme-myshop .page-loader.is-visible .page-loader-splash {
  opacity: 1;
  transform: translateY(0);
}

body.theme-myshop .page-loader-ring {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

body.theme-myshop .page-loader-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top-color: #8b5cf6;
  border-right-color: #c026d3;
  animation: pageLoaderSpin 0.85s linear infinite;
}

body.theme-myshop .page-loader-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.15);
  animation: pageLoaderSpin 1.4s linear infinite reverse;
}

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

body.theme-myshop .page-loader-mark,
body.theme-myshop .page-loader-logo-img {
  position: relative;
  z-index: 1;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  object-fit: cover;
}

body.theme-myshop .page-loader-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.theme-myshop .page-loader-status {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hide old loader structure if any legacy rules apply */
body.theme-myshop .page-loader-card,
body.theme-myshop .page-loader-orbit,
body.theme-myshop .page-loader-logo {
  display: none !important;
}

/* ── Floating cart ── */
body.theme-myshop .floating-cart {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

body.theme-myshop .floating-cart .icon { color: #fff; }

/* ── Recommend box ── */
body.theme-myshop .recommend-box .product-card,
body.theme-myshop .recommend-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card);
}

/* ── Home section headers (game + premium) ── */
body.theme-myshop .home-section-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

body.theme-myshop .home-section-count {
  margin: 6px 0 0;
  color: var(--myshop-red);
  font-size: 13px;
  font-weight: 700;
}

body.theme-myshop .home-section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

body.theme-myshop .home-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.theme-myshop .home-game-icon {
  stroke: #facc15;
  fill: rgba(250, 204, 21, 0.12);
}

body.theme-myshop .home-game-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.theme-myshop .home-game-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.theme-myshop .home-game-nav-btn:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

body.theme-myshop .home-game-nav-btn .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

body.theme-myshop .home-section-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.theme-myshop .home-section-all:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

body.theme-myshop .home-section-all .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

body.theme-myshop .home-premium-head,
body.theme-myshop .home-game-head {
  align-items: center;
  margin-top: 28px;
}

body.theme-myshop .recommendations-head {
  margin-top: 36px;
}

/* ── Home premium panel (image 2 style) ── */
body.theme-myshop .home-premium-panel {
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.theme-myshop .home-premium-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

body.theme-myshop .home-premium-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: homePremiumFadeUp 0.55s ease both;
  animation-delay: var(--card-delay, 0s);
}

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

body.theme-myshop .home-premium-card:hover,
body.theme-myshop .home-premium-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(239, 68, 68, 0.1);
  outline: none;
}

body.theme-myshop .home-premium-card-netflix:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 28px rgba(229, 9, 20, 0.18);
}

body.theme-myshop .home-premium-card-youtube:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 28px rgba(239, 68, 68, 0.2);
}

body.theme-myshop .home-premium-card-default:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 28px rgba(139, 92, 246, 0.15);
}

body.theme-myshop .home-premium-media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), transparent 42%),
    #0a0a0a;
  overflow: hidden;
}

body.theme-myshop .home-premium-media img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  border-radius: 18px;
  transition: transform 0.35s ease;
}

body.theme-myshop .home-premium-card:hover .home-premium-media img {
  transform: scale(1.06);
}

body.theme-myshop .home-premium-fallback {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(239, 68, 68, 0.25));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

body.theme-myshop .home-premium-body {
  display: grid;
  gap: 6px;
  padding: 14px 14px 16px;
}

body.theme-myshop .home-premium-body strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-myshop .home-premium-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

body.theme-myshop .home-premium-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body.theme-myshop .home-premium-price b {
  color: var(--myshop-red);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

body.theme-myshop .home-premium-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body.theme-myshop .home-premium-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

body.theme-myshop .home-premium-empty strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

body.theme-myshop .home-premium-empty span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.theme-myshop .home-game-grid {
  margin-top: 4px;
}

/* ── Home game carousel (MYSHOP reference) ── */
body.theme-myshop .home-game-panel {
  margin-top: 4px;
  overflow: hidden;
}

body.theme-myshop .home-game-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body.theme-myshop .home-game-track::-webkit-scrollbar {
  display: none;
}

body.theme-myshop .home-game-card {
  flex: 0 0 clamp(148px, 17vw, 176px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: homePremiumFadeUp 0.55s ease both;
  animation-delay: var(--card-delay, 0s);
}

body.theme-myshop .home-game-card:hover,
body.theme-myshop .home-game-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(250, 204, 21, 0.08);
  outline: none;
}

body.theme-myshop .home-game-media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0a0a;
}

body.theme-myshop .home-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.theme-myshop .home-game-card:hover .home-game-media img {
  transform: scale(1.05);
}

body.theme-myshop .home-game-media .game-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #020617);
  color: #fff;
}

body.theme-myshop .home-game-name {
  min-height: 2.5em;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-myshop .home-game-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.theme-myshop .home-game-card:hover .home-game-btn {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.28);
}

body.theme-myshop .home-game-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

body.theme-myshop .home-game-empty strong {
  color: #fff;
  font-size: 18px;
}

body.theme-myshop .home-game-empty span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  body.theme-myshop .home-premium-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.theme-myshop .home-premium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.theme-myshop .home-section-all {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  body.theme-myshop .home-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.theme-myshop .home-premium-body strong {
    font-size: 13px;
  }

  body.theme-myshop .home-premium-price b {
    font-size: 16px;
  }

  body.theme-myshop .home-premium-empty {
    flex-direction: column;
    align-items: flex-start;
  }

  body.theme-myshop .section-row.home-game-head,
  body.theme-myshop .section-row.home-premium-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  body.theme-myshop .home-section-actions {
    width: 100%;
    justify-content: space-between;
  }

  body.theme-myshop .home-game-card {
    flex-basis: clamp(140px, 42vw, 168px);
  }
}

/* ── Badge / chips ── */
body.theme-myshop .badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--myshop-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

body.theme-myshop .category-chip-row button {
  border: 1px solid var(--line);
  background: var(--myshop-card-2);
  color: #d1d5db;
  border-radius: 999px;
}

body.theme-myshop .category-chip-row button.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--myshop-purple);
  color: #fff;
}

/* ── Wallet page (legacy helpers) ── */
body.theme-myshop .quick-amounts button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--myshop-card-2);
  color: #fff;
}

body.theme-myshop .quick-amounts button.active {
  border-color: var(--myshop-purple);
  background: rgba(139, 92, 246, 0.15);
  color: var(--myshop-purple-light);
}

/* ── Orders / muted text ── */
body.theme-myshop .muted { color: var(--muted); }

body.theme-myshop .order-card,
body.theme-myshop .profile-order-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card);
  color: #fff;
}

/* ── Policy ── */
body.theme-myshop .policy {
  background: var(--myshop-card);
  border: 1px solid var(--line);
  color: #d1d5db;
}

body.theme-myshop .policy h1,
body.theme-myshop .policy h2 { color: #fff; }

/* ── Mobile responsive ── */
@media (max-width: 1024px) {
  body.theme-myshop .service-strip,
  body.theme-myshop .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  body.theme-myshop .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 20px;
    gap: 20px;
  }

  body.theme-myshop .myshop-hero-panel {
    min-height: auto;
    border-radius: 20px;
  }

  body.theme-myshop .hero-copy h1 {
    font-size: 28px;
  }

  body.theme-myshop .hero-carousel-wrap {
    min-height: 240px;
  }

  body.theme-myshop .hero-carousel {
    max-width: 280px;
    height: 240px;
    margin: 0 auto;
  }

  body.theme-myshop .hero-slide.prev { transform: translateX(-45%) scale(0.8); }
  body.theme-myshop .hero-slide.next { transform: translateX(45%) scale(0.8); }

  body.theme-myshop .hero-bg-logos {
    grid-template-columns: repeat(3, 1fr);
    opacity: 0.08;
  }

  body.theme-myshop .orange-hero { min-height: 280px; }

  body.theme-myshop .hero-copy { padding: 28px 20px; }

  body.theme-myshop .hero-device { display: none; }

  body.theme-myshop .shell {
    width: min(100vw - 24px, 100%);
  }
}

@media (max-width: 560px) {
  body.theme-myshop .service-strip,
  body.theme-myshop .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.theme-myshop .service-strip article {
    padding: 14px;
  }

  body.theme-myshop .account-pill span.account-label { display: none; }

  body.theme-myshop .hero-copy h1 { font-size: 26px; }

  body.theme-myshop .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  body.theme-myshop .store-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  body.theme-myshop .premium-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  body.theme-myshop .game-card-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  body.theme-myshop .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.theme-myshop .filter-bar {
    flex-direction: column;
    gap: 10px;
  }

  body.theme-myshop .filter-bar input,
  body.theme-myshop .filter-bar select {
    width: 100%;
  }

  body.theme-myshop .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  body.theme-myshop .toast-card { max-width: 100%; }
}

/* Force dark backgrounds on white overrides in old CSS */
body.theme-myshop .category-card.has-category-image,
body.theme-myshop #featuredCategories .category-card.has-category-image,
body.theme-myshop #categoryList .category-card.has-category-image {
  background: var(--myshop-card) !important;
}

body.theme-myshop .orange-hero.has-uploaded-banner {
  background: #0a0a0a !important;
  border: 1px solid var(--line);
}

body.theme-myshop h1,
body.theme-myshop h2,
body.theme-myshop h3,
body.theme-myshop h4 { color: #fff; }

body.theme-myshop p { color: inherit; }

body.theme-myshop .qr-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d0d;
}

body.theme-myshop .contact-panel a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--myshop-card-2);
  color: #fff;
}

body.theme-myshop .modal-close {
  color: #9ca3af;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
}

/* Premium fullscreen page */
body.theme-myshop.premium-fullscreen {
  background: var(--page) !important;
}

body.theme-myshop.premium-fullscreen .premium-page,
body.theme-myshop.premium-fullscreen .premium-banner,
body.theme-myshop.premium-fullscreen .premium-detail-panel,
body.theme-myshop.premium-fullscreen .premium-buy-form,
body.theme-myshop.premium-fullscreen .premium-selected-panel {
  background: transparent !important;
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-search input {
  background: var(--myshop-card) !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
  border-radius: 12px !important;
}

body.theme-myshop.premium-fullscreen .premium-card-body {
  color: #fff !important;
}

body.theme-myshop.premium-fullscreen .premium-card-meta {
  color: var(--muted) !important;
}

/* Game topup pages */
body.theme-myshop .game-topup-page .game-menu-head p,
body.theme-myshop .game-topup-page .game-menu-stats span {
  color: var(--muted) !important;
}

body.theme-myshop .game-topup-page .game-menu-stats strong {
  color: #fff !important;
}

body.theme-myshop .game-package-section,
body.theme-myshop .simple-topup-shell {
  color: #fff;
}

body.theme-myshop .game-topup-summary,
body.theme-myshop .game-checkout-summary {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card-2);
  color: #fff;
}

body.theme-myshop .game-topup-summary strong,
body.theme-myshop .game-checkout-total {
  color: var(--myshop-purple-light) !important;
}

/* Category products panel */
body.theme-myshop .category-products-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
  padding: 20px;
}

body.theme-myshop .category-products-head h2,
body.theme-myshop .category-products-head h2 b {
  color: #fff !important;
}

body.theme-myshop .category-products-metrics span {
  border: 1px solid var(--line);
  background: var(--myshop-card-2);
  color: #d1d5db;
  border-radius: 999px;
}

/* White background kill-switch */
body.theme-myshop [style*="background: var(--myshop-card)"],
body.theme-myshop [style*="background: var(--myshop-card)"],
body.theme-myshop [style*="background: var(--myshop-card)"],
body.theme-myshop [style*="background: var(--myshop-card)"] {
  background: var(--myshop-card) !important;
}

body.theme-myshop .view {
  position: relative;
  z-index: 1;
}

body.theme-myshop main {
  position: relative;
  z-index: 1;
}

/* Section row on home */
body.theme-myshop .section-row .text-link .icon {
  stroke: currentColor;
}

/* Auth register panel */
body.theme-myshop .auth-form p {
  color: var(--muted);
}

body.theme-myshop .check-row span {
  color: #d1d5db;
}

/* Ad popup */
body.theme-myshop .ad-popup-card {
  background: var(--myshop-card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Profile history */
body.theme-myshop .profile-menu button,
body.theme-myshop .profile-stats article {
  border: 1px solid var(--line);
  background: var(--myshop-card);
  color: #fff;
  border-radius: 14px;
}

body.theme-myshop .profile-menu button.active {
  border-color: var(--myshop-purple);
  background: rgba(139, 92, 246, 0.12);
}

/* ── Meteor shower background ── */
.meteor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body.theme-myshop .site-header,
body.theme-myshop main,
body.theme-myshop .footer {
  position: relative;
  z-index: 1;
}

/* ── Game topup page (MYSHOP v2) ── */
body.theme-myshop .game-topup-page,
body.theme-myshop .game-menu-page,
body.theme-myshop .myshop-game-page {
  background: transparent !important;
  color: #fff !important;
  margin-top: 0;
  min-height: auto;
  padding: 8px 0 56px;
}

body.theme-myshop .game-topup-shell {
  width: min(1360px, calc(100vw - 32px));
  gap: 22px;
}

body.theme-myshop .game-topup-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

body.theme-myshop .game-topup-breadcrumb a {
  color: #d1d5db;
  text-decoration: none;
}

body.theme-myshop .game-topup-breadcrumb a:hover {
  color: var(--myshop-purple-light);
}

body.theme-myshop .game-topup-breadcrumb .sep {
  opacity: 0.45;
}

body.theme-myshop .game-topup-breadcrumb #gameTopupCrumbCurrent {
  color: #fff;
}

body.theme-myshop .myshop-game-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}

body.theme-myshop .myshop-game-page-head h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

body.theme-myshop .myshop-game-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

body.theme-myshop .myshop-game-page-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: min(100%, 320px);
}

body.theme-myshop .myshop-game-search {
  width: min(320px, 100%);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.theme-myshop .myshop-game-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

body.theme-myshop .myshop-game-stats strong {
  color: #fff;
}

body.theme-myshop .myshop-game-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 14px;
  padding: 8px 0 12px;
}

body.theme-myshop .myshop-catalog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: homePremiumFadeUp 0.5s ease both;
  animation-delay: var(--card-delay, 0s);
}

body.theme-myshop .myshop-catalog-card:hover,
body.theme-myshop .myshop-catalog-card.active {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

body.theme-myshop .myshop-catalog-media {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
}

body.theme-myshop .myshop-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-myshop .myshop-catalog-card strong {
  min-height: 2.4em;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

body.theme-myshop .myshop-catalog-btn {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

body.theme-myshop #gameTopupView.package-mode #gameTopupCatalog {
  display: none;
}

body.theme-myshop .myshop-topup-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

body.theme-myshop .myshop-topup-main {
  display: grid;
  gap: 16px;
}

body.theme-myshop .myshop-game-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
}

body.theme-myshop .myshop-game-hero-media {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
}

body.theme-myshop .myshop-game-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-myshop .myshop-game-hero-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  color: var(--myshop-purple-light);
  font-size: 11px;
  font-weight: 800;
}

body.theme-myshop .myshop-game-hero-copy h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
}

body.theme-myshop .myshop-game-hero-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

body.theme-myshop .myshop-topup-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
}

body.theme-myshop .myshop-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

body.theme-myshop .myshop-section-head-row {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.theme-myshop .myshop-section-bar {
  width: 4px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6, #c026d3);
  flex-shrink: 0;
}

body.theme-myshop .myshop-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

body.theme-myshop .myshop-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

body.theme-myshop .myshop-field {
  display: grid;
  gap: 8px;
}

body.theme-myshop .myshop-field span {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
}

body.theme-myshop .myshop-field input {
  padding: 14px 16px;
  border-radius: 14px;
}

body.theme-myshop .uid-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.5;
}

body.theme-myshop .myshop-back-btn {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.theme-myshop .myshop-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

body.theme-myshop .myshop-pack-grid::-webkit-scrollbar {
  width: 6px;
}

body.theme-myshop .myshop-pack-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.45);
}

body.theme-myshop .myshop-pack-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--myshop-card-2);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-myshop .myshop-pack-card:hover,
body.theme-myshop .myshop-pack-card.active {
  border-color: var(--myshop-purple);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.theme-myshop .myshop-pack-media {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

body.theme-myshop .myshop-pack-media img,
body.theme-myshop .myshop-pack-media .pack-pick-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-myshop .myshop-pack-card strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

body.theme-myshop .myshop-pack-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

body.theme-myshop .myshop-pack-card b {
  color: var(--myshop-purple-light);
  font-size: 18px;
  font-weight: 800;
}

body.theme-myshop .myshop-pack-card b em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

body.theme-myshop .myshop-topup-sidebar {
  position: static;
  top: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--myshop-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  width: 100%;
  min-width: 0;
}

body.theme-myshop .myshop-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-myshop .myshop-sidebar-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

body.theme-myshop .myshop-sidebar-head .icon {
  width: 20px;
  height: 20px;
  color: var(--myshop-purple-light);
}

body.theme-myshop .myshop-sidebar-game {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--myshop-card-2);
}

body.theme-myshop .myshop-sidebar-game-media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

body.theme-myshop .myshop-sidebar-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-myshop .myshop-sidebar-game strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

body.theme-myshop .myshop-sidebar-game span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

body.theme-myshop .myshop-sidebar-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

body.theme-myshop .myshop-sidebar-field span {
  color: var(--muted);
  font-size: 12px;
}

body.theme-myshop .myshop-sidebar-field strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

body.theme-myshop .myshop-sidebar-pricing {
  display: grid;
  gap: 10px;
}

body.theme-myshop .myshop-sidebar-pricing > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

body.theme-myshop .myshop-sidebar-pricing strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

body.theme-myshop .myshop-sidebar-total strong {
  color: var(--myshop-purple-light);
  font-size: 22px;
}

body.theme-myshop .myshop-sidebar-summary {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
}

body.theme-myshop .myshop-sidebar-summary:not(.is-empty) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
}

body.theme-myshop .myshop-sidebar-summary strong {
  color: var(--myshop-purple-light);
  font-size: 18px;
}

body.theme-myshop .myshop-pay-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #9333ea 45%, #6d28d9) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

body.theme-myshop .myshop-pay-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
}

body.theme-myshop .myshop-pay-btn .pay-copy,
body.theme-myshop .myshop-pay-btn .pay-copy svg {
  color: #fff !important;
  stroke: #fff !important;
}

body.theme-myshop .myshop-sidebar-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

body.theme-myshop .myshop-topup-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  body.theme-myshop #gameTopupView.package-mode .game-package-section {
    min-height: auto !important;
    margin-bottom: 0 !important;
    padding-top: 8px !important;
  }

  body.theme-myshop #gameTopupView.topup-mobile-stack .myshop-topup-layout,
  body.theme-myshop .myshop-topup-v3 .myshop-topup-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 14px !important;
  }

  body.theme-myshop #gameTopupView.topup-mobile-stack .myshop-topup-main,
  body.theme-myshop .myshop-topup-v3 .myshop-topup-main {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  body.theme-myshop #gameTopupView.topup-mobile-stack .myshop-topup-sidebar,
  body.theme-myshop #gameTopupView.topup-mobile-stack .myshop-topup-sidebar-v3,
  body.theme-myshop .myshop-topup-sidebar,
  body.theme-myshop .myshop-topup-sidebar-v3 {
    order: 2;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }

  body.theme-myshop .myshop-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 560px) {
  body.theme-myshop .myshop-game-page-head {
    flex-direction: column;
  }

  body.theme-myshop .myshop-game-page-tools {
    width: 100%;
    justify-items: stretch;
  }

  body.theme-myshop .myshop-game-search {
    width: 100%;
  }

  body.theme-myshop .myshop-game-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.theme-myshop .myshop-game-hero-media {
    margin: 0 auto;
  }

  body.theme-myshop .myshop-game-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-myshop .myshop-pack-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Game topup v3 (MYSHOP checkout reference) ── */
@media (min-width: 981px) {
  body.theme-myshop .myshop-topup-layout,
  body.theme-myshop .myshop-topup-v3 .myshop-topup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 22px;
    align-items: start;
  }

  body.theme-myshop .myshop-topup-sidebar,
  body.theme-myshop .myshop-topup-sidebar-v3 {
    position: sticky;
    top: 88px;
  }
}

body.theme-myshop .myshop-game-hero-v3 {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(139, 92, 246, 0.1), transparent 55%),
    linear-gradient(180deg, #171717, #101010);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

body.theme-myshop .myshop-game-hero-media-v3 {
  width: 128px;
  height: 128px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

body.theme-myshop .myshop-game-hero-v3 .myshop-game-hero-tag {
  margin-bottom: 8px;
  padding: 5px 12px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
  font-size: 11px;
  letter-spacing: 0.04em;
}

body.theme-myshop .myshop-game-hero-v3 .myshop-game-hero-copy h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
}

body.theme-myshop .myshop-game-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

body.theme-myshop .myshop-game-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
}

body.theme-myshop .myshop-game-hero-meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--myshop-purple-light);
  fill: none;
  flex-shrink: 0;
}

body.theme-myshop .myshop-topup-form-v3,
body.theme-myshop .myshop-pack-panel-v3 {
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #151515, #111111);
}

body.theme-myshop .myshop-topup-form-v3 .myshop-field input {
  min-height: 52px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
}

body.theme-myshop .myshop-pack-grid-v3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding: 2px 0 4px;
}

body.theme-myshop .myshop-pack-card-v3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 168px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #121212;
  text-align: center;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.theme-myshop .myshop-pack-card-v3:hover,
body.theme-myshop .myshop-pack-card-v3.active {
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

body.theme-myshop .myshop-pack-v3-icon {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
}

body.theme-myshop .myshop-pack-v3-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-myshop .myshop-pack-v3-title {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

body.theme-myshop .myshop-pack-v3-desc {
  display: block;
  width: 100%;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.35;
}

body.theme-myshop .myshop-pack-v3-price {
  display: block;
  margin-top: auto;
  padding-top: 4px;
  color: var(--myshop-purple-light);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
}

body.theme-myshop .myshop-pack-v3-price span {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

body.theme-myshop .myshop-topup-sidebar-v3 {
  top: 92px;
  padding: 22px;
  border-radius: 22px;
  border-color: rgba(139, 92, 246, 0.16);
  background: linear-gradient(180deg, #161616, #101010);
}

body.theme-myshop .myshop-topup-sidebar-v3 .myshop-sidebar-game {
  border-radius: 16px;
  background: #121212;
}

body.theme-myshop .myshop-topup-sidebar-v3 .myshop-sidebar-field {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

body.theme-myshop .myshop-pay-btn-v3.pay-transaction-btn {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 20px !important;
  overflow: visible !important;
  border: none !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 52%, #6d28d9 100%) !important;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.42) !important;
}

body.theme-myshop .myshop-pay-btn-v3.pay-transaction-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.5) !important;
}

body.theme-myshop .myshop-pay-btn-v3 .pay-visual {
  display: none !important;
}

body.theme-myshop .myshop-pay-btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

body.theme-myshop .myshop-pay-bolt,
body.theme-myshop .myshop-pay-arrow {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

body.theme-myshop .myshop-pay-arrow {
  margin-left: auto;
}

body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .game-topup-form input,
body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .game-topup-form textarea {
  border-radius: 16px !important;
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .uid-warning {
  margin: 10px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: #fcd34d !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .topup-summary,
body.theme-myshop #gameTopupView[data-myshop-layout="v3"] #gameTopupSummary {
  display: none !important;
}

body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .myshop-pay-btn.pay-transaction-btn:disabled {
  opacity: 0.42 !important;
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

@media (max-width: 1100px) {
  body.theme-myshop .myshop-pack-grid-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.theme-myshop #gameTopupView.package-mode .game-topup-page,
  body.theme-myshop #gameTopupView.package-mode .myshop-game-page {
    padding: 4px 0 calc(92px + env(safe-area-inset-bottom, 0px));
  }

  body.theme-myshop #gameTopupView.package-mode .game-topup-shell {
    width: 100%;
    gap: 14px;
  }

  body.theme-myshop #gameTopupView.package-mode .game-topup-breadcrumb {
    flex-wrap: wrap;
    padding: 0 2px;
    font-size: 12px;
  }

  body.theme-myshop .myshop-topup-v3 .myshop-topup-layout {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  body.theme-myshop .myshop-topup-v3 .myshop-topup-main {
    display: grid;
    gap: 14px;
    min-width: 0;
  }

  body.theme-myshop .myshop-topup-v3 .myshop-topup-sidebar-v3 {
    position: static !important;
    top: auto !important;
    width: 100%;
    padding: 16px;
    border-radius: 18px;
  }

  body.theme-myshop .myshop-game-hero-v3 {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }

  body.theme-myshop .myshop-game-hero-media-v3 {
    width: 88px;
    height: 88px;
    margin: 0;
  }

  body.theme-myshop .myshop-game-hero-v3 .myshop-game-hero-copy h2 {
    font-size: 20px;
  }

  body.theme-myshop .myshop-game-hero-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  body.theme-myshop .myshop-topup-form-v3,
  body.theme-myshop .myshop-pack-panel-v3 {
    padding: 16px;
    border-radius: 18px;
  }

  body.theme-myshop .myshop-section-head-row {
    align-items: flex-start;
    gap: 10px;
  }

  body.theme-myshop .myshop-section-head-row .myshop-section-bar {
    height: 36px;
  }

  body.theme-myshop .myshop-back-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  body.theme-myshop .myshop-pack-grid-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.theme-myshop .myshop-pack-card-v3 {
    min-height: 148px;
    padding: 14px 10px 12px;
  }

  body.theme-myshop .myshop-pack-v3-price {
    font-size: 17px;
  }

  /* legacy styles.css ยังบังคับ 2 คอลัมน์/สีขาว — กันไว้สำหรับ v3 */
  body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .game-topup-form {
    order: unset !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .pack-list-panel {
    order: unset !important;
  }

  body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .game-topup-form input,
  body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .game-topup-form textarea {
    background: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }

  body.theme-myshop #gameTopupView[data-myshop-layout="v3"] .uid-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.22) !important;
    color: #fcd34d !important;
  }
}

@media (max-width: 420px) {
  body.theme-myshop .myshop-game-hero-v3 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.theme-myshop .myshop-game-hero-media-v3 {
    margin: 0 auto;
  }

  body.theme-myshop .myshop-game-hero-meta {
    justify-content: center;
  }

  body.theme-myshop .myshop-pack-grid-v3 {
    grid-template-columns: 1fr;
  }
}

/* ── Categories page (game catalog / #categories) ── */
body.theme-myshop .myshop-categories-page {
  padding: 8px 0 48px;
}

body.theme-myshop .myshop-categories-shell {
  width: min(1360px, calc(100vw - 32px));
  display: grid;
  gap: 18px;
}

body.theme-myshop .myshop-categories-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 12px 0 8px;
}

body.theme-myshop .myshop-categories-hero-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

body.theme-myshop .myshop-categories-hero-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ef4444;
  fill: none;
}

body.theme-myshop .myshop-categories-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.theme-myshop .myshop-categories-hero p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

body.theme-myshop .myshop-categories-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
  max-width: 100%;
}

body.theme-myshop .myshop-categories-mode-tabs button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.theme-myshop .myshop-categories-mode-tabs button.active {
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

body.theme-myshop .myshop-categories-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.theme-myshop .myshop-categories-section-head {
  margin-top: 4px;
}

body.theme-myshop .myshop-categories-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-myshop .myshop-categories-section-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

body.theme-myshop .myshop-categories-section-title .myshop-section-bar {
  height: 28px;
  width: 4px;
}

body.theme-myshop .myshop-section-bar-red {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}

body.theme-myshop .myshop-categories-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 320px);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

body.theme-myshop .myshop-categories-search .icon {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  flex-shrink: 0;
}

body.theme-myshop .myshop-categories-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

body.theme-myshop .myshop-categories-search input:focus {
  outline: none;
  box-shadow: none;
}

body.theme-myshop .myshop-categories-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px 14px;
  padding: 4px 0 8px;
}

body.theme-myshop .myshop-game-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  animation: homePremiumFadeUp 0.45s ease both;
  animation-delay: var(--tile-delay, 0s);
}

body.theme-myshop .myshop-game-tile-media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.theme-myshop .myshop-game-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.theme-myshop .myshop-game-tile-media .game-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-myshop .myshop-game-tile-media .game-card-fallback svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 6px;
}

body.theme-myshop .myshop-game-tile-media .game-card-fallback span,
body.theme-myshop .myshop-game-tile-media .game-card-fallback small {
  display: block;
  line-height: 1.2;
}

body.theme-myshop .myshop-game-tile-name {
  display: block;
  width: 100%;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

body.theme-myshop .myshop-game-tile:hover .myshop-game-tile-media,
body.theme-myshop .myshop-game-tile:focus-visible .myshop-game-tile-media {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

body.theme-myshop .myshop-game-tile:focus-visible {
  outline: none;
}

body.theme-myshop .myshop-categories-meta {
  margin: 0;
  color: var(--myshop-red);
  font-size: 13px;
  font-weight: 700;
}

body.theme-myshop .myshop-categories-loading,
body.theme-myshop .myshop-categories-empty {
  grid-column: 1 / -1;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

body.theme-myshop .category-shop-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

body.theme-myshop .category-shop-panel.hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  body.theme-myshop .myshop-categories-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.theme-myshop .myshop-categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.theme-myshop .myshop-categories-controls {
    flex-direction: column;
    align-items: stretch;
  }

  body.theme-myshop .myshop-categories-search {
    width: 100%;
    min-width: 0;
  }

  body.theme-myshop .myshop-categories-mode-tabs {
    width: 100%;
    justify-content: center;
  }

  body.theme-myshop .myshop-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

@media (max-width: 480px) {
  body.theme-myshop .myshop-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Wallet page (MYSHOP channels / #wallet) ── */
body.theme-myshop .myshop-wallet-page {
  padding: 8px 0 56px;
}

body.theme-myshop .myshop-wallet-shell {
  width: min(760px, calc(100vw - 32px));
  display: grid;
  gap: 22px;
}

body.theme-myshop .myshop-wallet-hero {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 0 6px;
}

body.theme-myshop .myshop-wallet-hero-glow {
  position: absolute;
  inset: -40px 10% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 68%);
  pointer-events: none;
}

body.theme-myshop .myshop-wallet-hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 20%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-myshop .myshop-wallet-hero p {
  position: relative;
  margin: 0;
  max-width: 520px;
  color: #a78bfa;
  font-size: 14px;
  line-height: 1.65;
}

body.theme-myshop .myshop-wallet-balance-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 16px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
}

body.theme-myshop .myshop-wallet-balance-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body.theme-myshop .myshop-wallet-balance-badge strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

body.theme-myshop .myshop-wallet-guest {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

body.theme-myshop .myshop-wallet-guest p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

body.theme-myshop .myshop-wallet-guest-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.theme-myshop .myshop-wallet-form {
  display: grid;
  gap: 18px;
}

body.theme-myshop .myshop-wallet-channels {
  display: grid;
  gap: 14px;
}

body.theme-myshop .myshop-wallet-channel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

body.theme-myshop .myshop-wallet-channel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

body.theme-myshop .myshop-wallet-channel:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body.theme-myshop .myshop-wallet-channel.active,
body.theme-myshop .myshop-wallet-channel:has(input:checked) {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(124, 58, 237, 0.06));
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.14);
}

body.theme-myshop .myshop-wallet-channel.active::before,
body.theme-myshop .myshop-wallet-channel:has(input:checked)::before {
  background: linear-gradient(180deg, #8b5cf6, #c026d3);
}

body.theme-myshop .myshop-wallet-channel input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.theme-myshop .myshop-wallet-channel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
}

body.theme-myshop .myshop-wallet-channel-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

body.theme-myshop .myshop-wallet-channel-promptpay .myshop-wallet-channel-icon {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

body.theme-myshop .myshop-wallet-channel-angpao .myshop-wallet-channel-icon {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

body.theme-myshop .myshop-wallet-channel-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.theme-myshop .myshop-wallet-channel-body small {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

body.theme-myshop .myshop-wallet-channel-promptpay .myshop-wallet-channel-body small {
  color: #60a5fa;
}

body.theme-myshop .myshop-wallet-channel-angpao .myshop-wallet-channel-body small {
  color: #fb923c;
}

body.theme-myshop .myshop-wallet-channel-body strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

body.theme-myshop .myshop-wallet-channel-body > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body.theme-myshop .myshop-wallet-channel-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  padding-right: 4px;
}

body.theme-myshop .myshop-wallet-channel-meta small {
  color: var(--muted);
  font-size: 11px;
}

body.theme-myshop .myshop-wallet-channel-meta b {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

body.theme-myshop .myshop-wallet-channel-cta {
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--myshop-card);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.theme-myshop .myshop-wallet-channel.active .myshop-wallet-channel-cta,
body.theme-myshop .myshop-wallet-channel:has(input:checked) .myshop-wallet-channel-cta {
  display: inline-flex;
}

body.theme-myshop .myshop-wallet-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--myshop-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: homePremiumFadeUp 0.45s ease both;
}

body.theme-myshop .myshop-wallet-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.theme-myshop .myshop-wallet-panel-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

body.theme-myshop .myshop-wallet-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

body.theme-myshop .myshop-wallet-amount-field input {
  font-size: 22px;
  font-weight: 800;
  padding: 14px 16px;
}

body.theme-myshop .myshop-wallet-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-myshop .myshop-wallet-quick-amounts button {
  min-width: 72px;
  padding: 10px 14px;
  font-weight: 700;
}

body.theme-myshop .myshop-wallet-submit {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #9333ea 45%, #6d28d9) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-myshop .myshop-wallet-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.42);
}

body.theme-myshop .myshop-wallet-submit:disabled {
  opacity: 0.5;
  box-shadow: none;
}

body.theme-myshop .myshop-wallet-qr {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: transparent;
}

body.theme-myshop .myshop-wallet-qr .wallet-pay-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--myshop-card-2);
  text-align: center;
}

body.theme-myshop .myshop-wallet-qr .wallet-pay-card img {
  width: min(100%, 260px);
  margin: 0 auto;
  border-radius: 14px;
  background: var(--myshop-card);
  padding: 10px;
}

body.theme-myshop .myshop-wallet-qr .wallet-pay-card img.is-expired {
  opacity: 0.35;
  filter: grayscale(1);
}

body.theme-myshop .myshop-wallet-qr .verify-note {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
  color: #d1fae5;
}

body.theme-myshop .myshop-wallet-qr .verify-note strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

body.theme-myshop .myshop-wallet-qr .verify-note span {
  display: block;
  color: #bbf7d0;
  font-size: 13px;
  line-height: 1.5;
}

body.theme-myshop .myshop-wallet-qr .wallet-proof-form {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

body.theme-myshop .myshop-wallet-qr .promptpay-info {
  display: grid;
  gap: 4px;
  color: #fff;
}

@media (min-width: 720px) {
  body.theme-myshop .myshop-wallet-channel-cta {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.theme-myshop .myshop-wallet-channel.active .myshop-wallet-channel-cta,
  body.theme-myshop .myshop-wallet-channel:has(input:checked) .myshop-wallet-channel-cta {
    background: var(--myshop-card);
    color: #111;
    border-color: #fff;
  }
}

@media (max-width: 719px) {
  body.theme-myshop .myshop-wallet-channel {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  body.theme-myshop .myshop-wallet-channel-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
    padding-right: 0;
  }

  body.theme-myshop .myshop-wallet-channel-cta {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
}

/* ── Profile page (MYSHOP) ── */
body.theme-myshop .myshop-profile-page {
  padding: 8px 0 56px;
}

body.theme-myshop .myshop-profile-shell {
  width: min(1080px, calc(100vw - 32px));
  display: grid;
  gap: 22px;
}

body.theme-myshop .myshop-profile-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(26, 16, 40, 0.95), rgba(20, 20, 20, 0.98));
}

body.theme-myshop .myshop-profile-hero-glow {
  position: absolute;
  inset: -30% 20% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 68%);
  pointer-events: none;
}

body.theme-myshop .myshop-profile-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

body.theme-myshop .myshop-profile-avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(88, 28, 135, 0.18));
  color: #ddd6fe;
  box-shadow: 0 18px 40px rgba(88, 28, 135, 0.22);
}

body.theme-myshop .myshop-profile-avatar .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.7;
}

body.theme-myshop .myshop-profile-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-myshop .myshop-profile-identity h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

body.theme-myshop .myshop-profile-identity > .muted {
  margin: 0 0 12px;
  color: #9ca3af;
  font-size: 14px;
}

body.theme-myshop .myshop-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.theme-myshop .myshop-profile-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 700;
}

body.theme-myshop .myshop-profile-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #d1fae5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.theme-myshop .myshop-profile-wallet-pill:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.16);
}

body.theme-myshop .myshop-profile-wallet-pill .icon {
  width: 16px;
  height: 16px;
}

body.theme-myshop .myshop-profile-wallet-pill strong {
  color: #fff;
  font-size: 14px;
}

body.theme-myshop .myshop-profile-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.theme-myshop .myshop-profile-logout:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.5);
}

body.theme-myshop .myshop-profile-logout .icon {
  width: 18px;
  height: 18px;
}

body.theme-myshop .myshop-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.theme-myshop .myshop-profile-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--myshop-card);
}

body.theme-myshop .myshop-profile-stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
}

body.theme-myshop .myshop-profile-stat-icon-wallet {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

body.theme-myshop .myshop-profile-stat-icon-orders {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
}

body.theme-myshop .myshop-profile-stat-icon-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

body.theme-myshop .myshop-profile-stat-icon-spent {
  background: rgba(236, 72, 153, 0.14);
  color: #f9a8d4;
}

body.theme-myshop .myshop-profile-stat-icon .icon {
  width: 22px;
  height: 22px;
}

body.theme-myshop .myshop-profile-stat-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.theme-myshop .myshop-profile-stat-label {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

body.theme-myshop .myshop-profile-stat-value {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.1;
}

body.theme-myshop .myshop-profile-stat-body small {
  color: #6b7280;
  font-size: 11px;
}

body.theme-myshop .myshop-profile-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.theme-myshop .myshop-profile-menu-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.theme-myshop .myshop-profile-menu-card:hover {
  border-color: rgba(139, 92, 246, 0.35) !important;
  transform: translateY(-1px);
}

body.theme-myshop .myshop-profile-menu-card.active {
  border-color: rgba(139, 92, 246, 0.55) !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(20, 20, 20, 0.95)) !important;
  box-shadow: 0 14px 30px rgba(88, 28, 135, 0.18) !important;
}

body.theme-myshop .myshop-profile-menu-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.14) !important;
  color: #c4b5fd !important;
}

body.theme-myshop .profile-menu-icon-wallet.myshop-profile-menu-icon {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #6ee7b7 !important;
}

body.theme-myshop .profile-menu-icon-orders.myshop-profile-menu-icon {
  background: rgba(59, 130, 246, 0.14) !important;
  color: #93c5fd !important;
}

body.theme-myshop .profile-menu-icon-youtube.myshop-profile-menu-icon {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fca5a5 !important;
}

body.theme-myshop .profile-menu-icon-key.myshop-profile-menu-icon {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
}

body.theme-myshop .myshop-profile-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.theme-myshop .myshop-profile-menu-copy strong {
  color: #fff !important;
  font-size: 14px;
}

body.theme-myshop .myshop-profile-menu-copy small {
  color: #9ca3af !important;
  font-weight: 600;
}

body.theme-myshop .myshop-profile-menu-arrow {
  grid-row: 1 / span 2;
  color: #6b7280;
}

body.theme-myshop .myshop-profile-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(8px);
}

body.theme-myshop .myshop-profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.theme-myshop .myshop-profile-panel-head h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 26px);
}

body.theme-myshop .myshop-profile-panel-head p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
}

body.theme-myshop .myshop-profile-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  color: #ddd6fe;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-myshop .myshop-profile-shop-link .icon {
  width: 16px;
  height: 16px;
}

body.theme-myshop .myshop-profile-list {
  display: grid;
  gap: 12px;
}

body.theme-myshop .myshop-profile-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--myshop-card-2);
}

body.theme-myshop .myshop-profile-search .icon {
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

body.theme-myshop .myshop-profile-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

body.theme-myshop .myshop-profile-search-input::placeholder {
  color: #6b7280;
}

body.theme-myshop .myshop-profile-order-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 16px 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.theme-myshop .myshop-profile-order-card:hover {
  border-color: rgba(139, 92, 246, 0.35) !important;
  transform: translateY(-1px);
}

body.theme-myshop .myshop-profile-order-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}

body.theme-myshop .myshop-profile-order-meta {
  display: grid;
  gap: 4px;
}

body.theme-myshop .myshop-profile-order-type {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 700;
}

body.theme-myshop .myshop-profile-order-meta strong {
  color: #fff;
  font-size: 15px;
}

body.theme-myshop .myshop-profile-order-meta span:last-child {
  color: #9ca3af;
  font-size: 12px;
}

body.theme-myshop .myshop-profile-order-actions {
  justify-content: flex-end;
}

body.theme-myshop .myshop-profile-status {
  color: #e5e7eb !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-myshop .myshop-profile-status.status-paid,
body.theme-myshop .myshop-profile-status.status-completed,
body.theme-myshop .myshop-profile-status.status-cleared,
body.theme-myshop .myshop-profile-status.status-success {
  color: #bbf7d0 !important;
  background: rgba(16, 185, 129, 0.16) !important;
}

body.theme-myshop .myshop-profile-status.status-pending,
body.theme-myshop .myshop-profile-status.status-waiting_admin,
body.theme-myshop .myshop-profile-status.status-processing {
  color: #fde68a !important;
  background: rgba(245, 158, 11, 0.16) !important;
}

body.theme-myshop .myshop-profile-status.status-rejected,
body.theme-myshop .myshop-profile-status.status-failed,
body.theme-myshop .myshop-profile-status.status-cancelled {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.16) !important;
}

body.theme-myshop .myshop-profile-order-items {
  gap: 8px;
}

body.theme-myshop .myshop-profile-order-chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  font-size: 12px;
}

body.theme-myshop .myshop-profile-order-bottom strong {
  color: #c4b5fd;
  font-size: 18px;
}

body.theme-myshop .myshop-profile-order-bottom span {
  color: #9ca3af !important;
}

body.theme-myshop .myshop-profile-detail-btn {
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28) !important;
}

body.theme-myshop .myshop-profile-wallet-card {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center;
  padding: 16px 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
}

body.theme-myshop .myshop-profile-wallet-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #10b981, #059669);
}

body.theme-myshop .myshop-profile-wallet-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.theme-myshop .myshop-profile-wallet-title strong {
  color: #fff;
}

body.theme-myshop .myshop-profile-wallet-main p {
  margin: 6px 0;
  color: #d1d5db;
  font-size: 13px;
}

body.theme-myshop .myshop-profile-wallet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-myshop .myshop-profile-wallet-meta small {
  color: #9ca3af;
}

body.theme-myshop .myshop-profile-wallet-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

body.theme-myshop .myshop-profile-wallet-side b {
  color: #6ee7b7;
  font-size: 20px;
}

body.theme-myshop .myshop-profile-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 20px;
  border: 1px dashed rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.05);
  text-align: center;
}

body.theme-myshop .myshop-profile-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
}

body.theme-myshop .myshop-profile-empty p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

body.theme-myshop .myshop-profile-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

body.theme-myshop .myshop-profile-page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.theme-myshop .myshop-profile-page-btn {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--myshop-card-2);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.theme-myshop .myshop-profile-page-btn.active {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

body.theme-myshop .myshop-profile-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.theme-myshop .myshop-profile-page-ellipsis {
  color: #6b7280;
  padding: 0 4px;
}

body.theme-myshop .myshop-profile-password {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--myshop-card);
}

body.theme-myshop .myshop-profile-password-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body.theme-myshop .myshop-profile-password-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

body.theme-myshop .myshop-profile-password-head h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
}

body.theme-myshop .myshop-profile-password-head p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
}

body.theme-myshop .myshop-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.theme-myshop .myshop-profile-field {
  display: grid;
  gap: 8px;
}

body.theme-myshop .myshop-profile-field span {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 700;
}

body.theme-myshop .myshop-profile-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--myshop-card-2);
  color: #fff;
  font-size: 14px;
}

body.theme-myshop .myshop-profile-field input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

body.theme-myshop .myshop-profile-submit {
  justify-self: start;
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

body.theme-myshop #profileHistoryModal .profile-history-detail-card {
  border: 1px solid var(--line);
  background: var(--myshop-card);
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

body.theme-myshop #profileHistoryModal .profile-history-detail h2 {
  color: #fff;
}

body.theme-myshop #profileHistoryModal .profile-detail-grid div,
body.theme-myshop #profileHistoryModal .profile-detail-section {
  border-color: var(--myshop-border);
  background: var(--myshop-card-2);
}

body.theme-myshop #profileHistoryModal .profile-detail-grid span {
  color: #9ca3af;
}

body.theme-myshop #profileHistoryModal .profile-detail-grid strong {
  color: #fff;
}

body.theme-myshop #profileHistoryModal .profile-detail-section h3 {
  color: #fff;
}

body.theme-myshop #profileHistoryModal .profile-detail-section p,
body.theme-myshop #profileHistoryModal .profile-history-detail .muted {
  color: #9ca3af;
}

body.theme-myshop #profileHistoryModal .modal-close {
  color: #d1d5db;
}

@media (max-width: 960px) {
  body.theme-myshop .myshop-profile-hero-grid {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.theme-myshop .myshop-profile-logout {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.theme-myshop .myshop-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-myshop .myshop-profile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-myshop .myshop-profile-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.theme-myshop .myshop-profile-shell {
    width: min(100vw - 20px, 1080px);
  }

  body.theme-myshop .myshop-profile-hero {
    padding: 18px;
  }

  body.theme-myshop .myshop-profile-hero-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body.theme-myshop .myshop-profile-stats,
  body.theme-myshop .myshop-profile-menu {
    grid-template-columns: 1fr;
  }

  body.theme-myshop .myshop-profile-panel-head {
    flex-direction: column;
  }

  body.theme-myshop .myshop-profile-order-top,
  body.theme-myshop .myshop-profile-order-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  body.theme-myshop .myshop-profile-order-actions {
    width: 100%;
    justify-content: space-between;
  }

  body.theme-myshop .myshop-profile-wallet-card {
    grid-template-columns: 1fr !important;
  }

  body.theme-myshop .myshop-profile-wallet-side {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ══════════════════════════════════════════════════════════
   Admin panel — MYSHOP sidebar layout + dark UI
   ══════════════════════════════════════════════════════════ */

body.theme-myshop.admin-route .ambient-icons,
body.theme-myshop.admin-route .floating-cart,
body.theme-myshop.admin-route .site-header,
body.theme-myshop.admin-route .mobile-tabbar {
  display: none !important;
}

body.theme-myshop.admin-route {
  padding-bottom: 0 !important;
}

body.theme-myshop.admin-route .footer {
  display: none;
}

body.theme-myshop.admin-route #adminView.view.active {
  display: block;
}

body.theme-myshop .myshop-admin-page {
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

body.theme-myshop .myshop-admin-layout {
  display: block;
  min-height: 100vh;
  position: relative;
}

body.theme-myshop .myshop-admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 140;
  width: 280px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: none;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 12, 28, 0.98), rgba(10, 10, 10, 0.98));
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
}

body.theme-myshop .myshop-admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-myshop .myshop-admin-brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body.theme-myshop .myshop-admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.theme-myshop .myshop-admin-brand strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

body.theme-myshop .myshop-admin-brand span {
  display: block;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 600;
}

body.theme-myshop .myshop-admin-sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.theme-myshop .myshop-admin-nav {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  gap: 16px;
  padding: 14px 12px 18px;
  overflow: auto;
  margin: 0 !important;
  flex-wrap: unset !important;
}

body.theme-myshop .myshop-admin-nav-group {
  display: grid;
  gap: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.theme-myshop .myshop-admin-nav-group:last-child {
  border-bottom: none;
}

body.theme-myshop .myshop-admin-nav-label {
  padding: 0 12px 6px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-myshop .myshop-admin-nav button,
body.theme-myshop #adminView [data-admin-tab] {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px 10px 14px !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
  justify-content: flex-start !important;
  white-space: normal !important;
  transition: background 0.18s ease, color 0.18s ease;
}

body.theme-myshop .myshop-admin-nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

body.theme-myshop .myshop-admin-nav button .icon,
body.theme-myshop #adminView [data-admin-tab] .icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  stroke-width: 2;
}

body.theme-myshop .myshop-admin-nav button:hover,
body.theme-myshop #adminView [data-admin-tab]:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
}

body.theme-myshop .myshop-admin-nav button.active,
body.theme-myshop #adminView [data-admin-tab].active {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #fff !important;
}

body.theme-myshop .myshop-admin-nav button.active::before,
body.theme-myshop #adminView [data-admin-tab].active::before {
  background: linear-gradient(180deg, var(--myshop-purple-light), var(--myshop-purple));
}

body.theme-myshop .myshop-admin-nav button.active .icon,
body.theme-myshop #adminView [data-admin-tab].active .icon {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop .myshop-admin-sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-myshop .myshop-admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px dashed rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.06);
  color: #ddd6fe;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

body.theme-myshop .myshop-admin-back-link .icon {
  width: 16px;
  height: 16px;
}

body.theme-myshop .myshop-admin-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
  margin-left: 280px;
  background: rgba(8, 8, 8, 0.55);
}

body.theme-myshop .myshop-admin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2;
}

body.theme-myshop .myshop-admin-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--myshop-card-2);
  color: #fff;
  cursor: pointer;
}

body.theme-myshop .myshop-admin-menu-btn .icon {
  width: 20px;
  height: 20px;
}

body.theme-myshop .myshop-admin-topbar-copy {
  min-width: 0;
  flex: 1;
}

body.theme-myshop .myshop-admin-topbar-copy h1 {
  margin: 0 0 2px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.theme-myshop .myshop-admin-topbar-copy p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}

body.theme-myshop .myshop-admin-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-myshop .myshop-admin-content-wrap {
  padding: 20px 22px 32px;
  overflow: auto;
}

body.theme-myshop .myshop-admin-content {
  display: grid;
  gap: 16px;
}

body.theme-myshop .myshop-admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.55);
}

/* ── Admin inner UI ── */
body.theme-myshop #adminView .panel,
body.theme-myshop #adminView .product-create-card,
body.theme-myshop #adminView .sales-chart-card,
body.theme-myshop #adminView .admin-pack-price-card,
body.theme-myshop #adminView .coupon-history-wrap {
  border: 1px solid var(--myshop-border) !important;
  border-radius: 18px !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .panel h2,
body.theme-myshop #adminView .panel h3,
body.theme-myshop #adminView .admin-section-head h3,
body.theme-myshop #adminView .sales-chart-card h3 {
  color: #fff;
}

body.theme-myshop #adminView .muted,
body.theme-myshop #adminView p.muted {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .danger {
  color: #fca5a5 !important;
}

body.theme-myshop #adminView .ok {
  color: #86efac !important;
}

body.theme-myshop #adminView .metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.theme-myshop #adminView .metric-card {
  display: grid;
  gap: 6px;
  padding: 18px !important;
  border: 1px solid var(--myshop-border) !important;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(20, 20, 20, 0.95));
}

body.theme-myshop #adminView .metric-card span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

body.theme-myshop #adminView .metric-card strong {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.1;
}

body.theme-myshop #adminView .admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.theme-myshop #adminView .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.theme-myshop #adminView .stack {
  display: grid;
  gap: 14px;
}

body.theme-myshop #adminView label {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 700;
}

body.theme-myshop #adminView input,
body.theme-myshop #adminView select,
body.theme-myshop #adminView textarea {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--myshop-card-2) !important;
  color: #fff !important;
}

body.theme-myshop #adminView input:focus,
body.theme-myshop #adminView select:focus,
body.theme-myshop #adminView textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

body.theme-myshop #adminView .light-btn,
body.theme-myshop #adminView .small-btn {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--myshop-card-2) !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .light-btn:hover,
body.theme-myshop #adminView .small-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.theme-myshop #adminView .gold-btn,
body.theme-myshop #adminView .product-save-btn {
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28) !important;
}

body.theme-myshop #adminView .danger-action {
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fecaca !important;
}

body.theme-myshop #adminView table,
body.theme-myshop #adminView .admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--myshop-card);
  color: #fff;
}

body.theme-myshop #adminView th {
  background: #0d0d0d !important;
  color: #9ca3af !important;
  border-color: var(--myshop-border) !important;
  font-size: 12px;
  font-weight: 700;
}

body.theme-myshop #adminView td {
  border-color: var(--myshop-border) !important;
  color: #e5e7eb;
  vertical-align: top;
}

body.theme-myshop #adminView tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

body.theme-myshop #adminView .admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: var(--myshop-card);
}

body.theme-myshop #adminView .badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 700;
}

body.theme-myshop #adminView .admin-edit-modal {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--myshop-card-2);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

body.theme-myshop #adminView .admin-edit-modal h3,
body.theme-myshop #adminView .admin-edit-modal h4 {
  color: #fff;
}

body.theme-myshop #adminView .sales-chart-card {
  padding: 18px;
}

body.theme-myshop #adminView .sales-premium-chart {
  width: 100%;
  height: auto;
}

body.theme-myshop #adminView .sales-y-tick line {
  stroke: rgba(255, 255, 255, 0.08);
}

body.theme-myshop #adminView .sales-y-tick text,
body.theme-myshop #adminView .sales-premium-chart text {
  fill: #9ca3af;
  font-size: 11px;
}

body.theme-myshop #adminView .sales-bar.has-value {
  fill: rgba(139, 92, 246, 0.55);
}

body.theme-myshop #adminView .sales-line-chart path.revenue-line {
  stroke: #a78bfa;
}

body.theme-myshop #adminView .sales-line-chart path.profit-line {
  stroke: #6ee7b7;
}

body.theme-myshop #adminView .revenue-dot {
  fill: #c4b5fd;
}

body.theme-myshop #adminView .profit-dot {
  fill: #6ee7b7;
}

body.theme-myshop #adminView .sales-chart-legend span {
  color: #d1d5db;
}

body.theme-myshop #adminView .sales-chart-stats strong {
  color: #fff;
}

body.theme-myshop #adminView .sales-real-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 36px 20px;
  border: 1px dashed rgba(139, 92, 246, 0.28);
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.05);
  text-align: center;
}

body.theme-myshop #adminView .sales-real-empty strong {
  color: #fff;
}

body.theme-myshop #adminView .sales-real-empty span {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
}

body.theme-myshop #adminView .credential-box,
body.theme-myshop #adminView pre {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0d0d;
  color: #e5e7eb;
}

/* Dashboard chart + legacy green overrides */
body.theme-myshop #adminView .sales-chart-card {
  border-color: var(--myshop-border) !important;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(239, 68, 68, 0.08), transparent 28%),
    var(--myshop-card) !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .sales-chart-head h3,
body.theme-myshop #adminView .sales-chart-head .auth-kicker {
  color: #fff !important;
}

body.theme-myshop #adminView .sales-chart-head p,
body.theme-myshop #adminView .sales-chart-summary,
body.theme-myshop #adminView .sales-chart-summary span {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .sales-chart-summary strong {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .sales-chart-insights span {
  border-color: var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .sales-chart-insights small {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .sales-chart-insights b {
  color: #fff !important;
}

body.theme-myshop #adminView .sales-chart-legend span {
  color: #d1d5db !important;
}

body.theme-myshop #adminView .settings-block,
body.theme-myshop #adminView .settings-card,
body.theme-myshop #adminView .theme-preset-card {
  border-color: var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
}

body.theme-myshop #adminView .theme-preset-card strong {
  color: #fff;
}

body.theme-myshop #adminView .theme-preset-card small,
body.theme-myshop #adminView .hint {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .settings-save-bar {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Kill legacy horizontal admin tab bar if class leaks back */
body.theme-myshop #adminView .admin-tabs {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1100px) {
  body.theme-myshop .myshop-admin-main {
    margin-left: 0;
  }

  body.theme-myshop .myshop-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 130;
    width: min(300px, 88vw);
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    border-right: 1px solid var(--line);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
  }

  body.theme-myshop.admin-sidebar-open .myshop-admin-sidebar {
    transform: translateX(0);
  }

  body.theme-myshop.admin-sidebar-open .myshop-admin-overlay {
    display: block;
  }

  body.theme-myshop .myshop-admin-sidebar-close,
  body.theme-myshop .myshop-admin-menu-btn {
    display: inline-flex;
  }

  body.theme-myshop .myshop-admin-topbar {
    top: 0;
  }

  body.theme-myshop #adminView .metrics,
  body.theme-myshop #adminView .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.theme-myshop .myshop-admin-content-wrap {
    padding: 14px 12px 24px;
  }

  body.theme-myshop .myshop-admin-topbar {
    padding: 12px 14px;
  }

  body.theme-myshop .myshop-admin-user-badge {
    display: none;
  }
}

/* ══ Override legacy styles.css white/green theme-driven surfaces ══ */
body.theme-myshop main,
body.theme-myshop .view,
body.theme-myshop .shell {
  background: transparent !important;
  color: var(--ink) !important;
}

body.theme-myshop .panel,
body.theme-myshop .stat-card,
body.theme-myshop .metric-card,
body.theme-myshop .order-card,
body.theme-myshop .wallet-tx-card,
body.theme-myshop .product-create-card,
body.theme-myshop .product-manager-panel,
body.theme-myshop .recommended-manager-panel,
body.theme-myshop .settings-card,
body.theme-myshop .settings-block,
body.theme-myshop .settings-number-grid label,
body.theme-myshop .theme-preset-card,
body.theme-myshop .admin-product-card,
body.theme-myshop .product-admin-grid .table-wrap,
body.theme-myshop .coupon-history-wrap,
body.theme-myshop .sales-chart-card,
body.theme-myshop .api-settings-card,
body.theme-myshop .media-settings-card,
body.theme-myshop #adminView .panel,
body.theme-myshop #adminView .product-create-card,
body.theme-myshop #adminView .product-manager-panel,
body.theme-myshop #adminView .settings-card,
body.theme-myshop #adminView .settings-block,
body.theme-myshop #adminView .settings-number-grid label,
body.theme-myshop #adminView .theme-preset-card,
body.theme-myshop #adminView .admin-product-card,
body.theme-myshop #adminView .table-wrap,
body.theme-myshop #adminView .metric-card,
body.theme-myshop #adminView .sales-chart-card {
  border-color: var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop .product-manager-stats span,
body.theme-myshop #adminView .product-manager-stats span,
body.theme-myshop .sales-chart-insights span,
body.theme-myshop #adminView .sales-chart-insights span {
  border-color: var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #d1d5db !important;
}

body.theme-myshop .product-manager-stats strong,
body.theme-myshop #adminView .product-manager-stats strong {
  color: #fff !important;
}

body.theme-myshop .product-manager-head h3,
body.theme-myshop .admin-form-head h3,
body.theme-myshop .settings-block h3,
body.theme-myshop #adminView .product-manager-head h3,
body.theme-myshop #adminView .admin-form-head h3,
body.theme-myshop #adminView .settings-block h3 {
  color: #fff !important;
}

body.theme-myshop .product-manager-head p,
body.theme-myshop .admin-form-head p,
body.theme-myshop #adminView .product-manager-head p,
body.theme-myshop #adminView .admin-form-head p {
  color: #9ca3af !important;
}

body.theme-myshop .form-kicker,
body.theme-myshop .auth-kicker,
body.theme-myshop #adminView .form-kicker {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop .form-section-title,
body.theme-myshop #adminView .form-section-title {
  color: #e5e7eb !important;
}

body.theme-myshop .product-create-card input,
body.theme-myshop .product-create-card select,
body.theme-myshop .product-create-card textarea,
body.theme-myshop .settings-card input,
body.theme-myshop .settings-card select,
body.theme-myshop .settings-card textarea,
body.theme-myshop #adminView .product-create-card input,
body.theme-myshop #adminView .product-create-card select,
body.theme-myshop #adminView .product-create-card textarea,
body.theme-myshop #adminView .settings-card input,
body.theme-myshop #adminView .settings-card select,
body.theme-myshop #adminView .settings-card textarea {
  border: 1px solid var(--line) !important;
  background: var(--myshop-card-2) !important;
  color: #fff !important;
}

body.theme-myshop .stats-grid article {
  background: var(--myshop-card) !important;
  border-color: var(--myshop-border) !important;
  color: #fff !important;
}

/* ══ Admin — kill all legacy white card/list surfaces ══ */
body.theme-myshop #adminView .recommended-manager-panel,
body.theme-myshop #adminView .product-manager-panel,
body.theme-myshop #adminView .product-admin-grid .table-wrap,
body.theme-myshop #adminView .recommended-admin-card,
body.theme-myshop #adminView .admin-product-card,
body.theme-myshop #adminView .admin-product-card.is-inactive,
body.theme-myshop #adminView .admin-edit-card,
body.theme-myshop #adminView .wallet-admin-review,
body.theme-myshop #adminView .file-field,
body.theme-myshop #adminView .option-toggle,
body.theme-myshop #adminView .check-row,
body.theme-myshop #adminView .info-hint,
body.theme-myshop #adminView .admin-empty-state,
body.theme-myshop #adminView .ad-admin-preview,
body.theme-myshop #adminView .credential-box,
body.theme-myshop #adminView .credential-line,
body.theme-myshop #adminView .api-settings-block,
body.theme-myshop #adminView .media-form-head,
body.theme-myshop #adminView .media-size-guide div,
body.theme-myshop #adminView .media-upload-card,
body.theme-myshop #adminView .site-sale-item,
body.theme-myshop #adminView .admin-pack-price-card {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .recommended-admin-meta span,
body.theme-myshop #adminView .admin-product-metrics span {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
}

body.theme-myshop #adminView .recommended-admin-info h4,
body.theme-myshop #adminView .admin-product-title-row h4,
body.theme-myshop #adminView .admin-edit-head h3,
body.theme-myshop #adminView .admin-product-metrics strong,
body.theme-myshop #adminView .recommended-admin-meta strong {
  color: #fff !important;
}

body.theme-myshop #adminView .recommended-admin-info p,
body.theme-myshop #adminView .admin-product-credentials,
body.theme-myshop #adminView .recommended-admin-meta small,
body.theme-myshop #adminView .recommended-admin-meta em,
body.theme-myshop #adminView .admin-product-metrics small,
body.theme-myshop #adminView .wallet-admin-review p {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .admin-product-category,
body.theme-myshop #adminView .admin-pack-title span {
  background: rgba(139, 92, 246, 0.14) !important;
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .admin-product-img,
body.theme-myshop #adminView .recommended-fallback-thumb,
body.theme-myshop #adminView .admin-thumb {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
}

body.theme-myshop #adminView .recommended-fallback-thumb {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .admin-edit-head {
  border-bottom: 1px solid var(--myshop-border) !important;
}

body.theme-myshop #adminView .admin-edit-head .modal-close {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .admin-edit-head .modal-close:hover {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: rgba(139, 92, 246, 0.12) !important;
}

body.theme-myshop #adminView .file-field {
  border-style: dashed !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
}

body.theme-myshop #adminView .file-field input[type="file"] {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .file-field input[type="file"]::file-selector-button {
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .file-field input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
}

body.theme-myshop #adminView .option-toggle strong {
  color: #fff !important;
}

body.theme-myshop #adminView .option-toggle small {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .option-toggle .toggle-ui,
body.theme-myshop #adminView .mini-toggle .toggle-ui {
  background: #3f3f46 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

body.theme-myshop #adminView .option-toggle input:checked + .toggle-ui,
body.theme-myshop #adminView .mini-toggle input:checked + .toggle-ui {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
}

body.theme-myshop #adminView .option-toggle .toggle-ui::after,
body.theme-myshop #adminView .mini-toggle .toggle-ui::after {
  background: var(--myshop-card) !important;
}

body.theme-myshop #adminView .info-hint,
body.theme-myshop #adminView .admin-empty-state {
  border-color: rgba(139, 92, 246, 0.28) !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .admin-empty-state {
  border-style: dashed !important;
}

body.theme-myshop #adminView .image-mini-form input,
body.theme-myshop #adminView .image-mini-form select,
body.theme-myshop #adminView .image-mini-form textarea {
  color: #fff !important;
}

body.theme-myshop #adminView .credential-box > strong {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .credential-line code {
  background: #0d0d0d !important;
  color: #e5e7eb !important;
}

body.theme-myshop #adminView .site-sale-check {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .admin-game-select-card,
body.theme-myshop #adminView .selected-admin-game {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
}

body.theme-myshop #adminView .admin-game-select-card:hover,
body.theme-myshop #adminView .admin-game-select-card.active {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: rgba(139, 92, 246, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12) !important;
}

body.theme-myshop #adminView .admin-game-select-card .game-pick-media {
  background: var(--myshop-card-2) !important;
}

body.theme-myshop #adminView .admin-game-type-tabs button,
body.theme-myshop #adminView .admin-pack-filter-tabs button {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .admin-game-type-tabs button.active,
body.theme-myshop #adminView .admin-pack-filter-tabs button.active {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: rgba(139, 92, 246, 0.14) !important;
  color: #fff !important;
}

body.theme-myshop #adminView .theme-preset-card,
body.theme-myshop #adminView .theme-saved-card button:first-child,
body.theme-myshop #adminView .settings-number-grid label {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .theme-preset-card strong,
body.theme-myshop #adminView .theme-saved-card strong {
  color: #fff !important;
}

body.theme-myshop #adminView .theme-preset-card small {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .theme-preset-card:hover,
body.theme-myshop #adminView .theme-saved-card button:first-child:hover {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: rgba(139, 92, 246, 0.08) !important;
}

body.theme-myshop #adminView .api-settings-head {
  border-bottom: 1px solid var(--myshop-border) !important;
}

body.theme-myshop #adminView .api-settings-head i {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .api-settings-block::before {
  background: linear-gradient(180deg, var(--myshop-purple), var(--myshop-purple-light)) !important;
}

body.theme-myshop #adminView .media-upload-head h4,
body.theme-myshop #adminView .media-size-guide strong {
  color: #fff !important;
}

body.theme-myshop #adminView .media-size-guide span {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .ad-admin-preview img {
  background: var(--myshop-card-2) !important;
}

body.theme-myshop #adminView .product-manager-head {
  border-bottom: 1px solid var(--myshop-border) !important;
}

body.theme-myshop #adminView .verify-note {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .verify-note span {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .contact-admin-row input {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #fff !important;
}

body.theme-myshop #adminView .contact-admin-row {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
}

body.theme-myshop #adminView .status-badge {
  border: 1px solid var(--myshop-border) !important;
}

body.theme-myshop #adminView .admin-game-type-tabs,
body.theme-myshop #adminView .admin-pack-filter-tabs {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .coupon-code-block > strong,
body.theme-myshop #adminView .coupon-metric-block > strong,
body.theme-myshop #adminView .coupon-date-text {
  color: #fff !important;
}

body.theme-myshop #adminView .settings-contact-card,
body.theme-myshop #adminView .settings-save-bar {
  border-color: var(--myshop-border) !important;
  background: transparent !important;
}

body.theme-myshop #adminView .settings-save-bar {
  border-top: 1px solid var(--myshop-border) !important;
}

body.theme-myshop #adminView .asset-preview,
body.theme-myshop #adminView .theme-saved-card {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
}

body.theme-myshop #adminView .theme-saved-card button {
  border-color: var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  color: #e5e7eb !important;
}

body.theme-myshop #adminView .dashboard-head,
body.theme-myshop #adminView .admin-head-actions .light-btn {
  color: #fff !important;
}

body.theme-myshop #adminView .custom-premium-card,
body.theme-myshop #adminView .premium-order-group {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .custom-premium-card-head,
body.theme-myshop #adminView .premium-order-group-head {
  border-bottom: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
}

body.theme-myshop #adminView .custom-premium-card-head .game-price-game strong,
body.theme-myshop #adminView .premium-order-group-head h4 {
  color: #fff !important;
}

body.theme-myshop #adminView .custom-premium-block h4 {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .form-section-title {
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .form-section-title::after {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.45), transparent) !important;
}

body.theme-myshop #adminView .admin-game-type-tabs button.active,
body.theme-myshop #adminView .admin-pack-filter-tabs button.active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.22) !important;
}

body.theme-myshop #adminView .admin-game-type-tabs button span,
body.theme-myshop #adminView .admin-pack-filter-tabs button span {
  background: rgba(255, 255, 255, 0.12) !important;
  color: inherit !important;
}

body.theme-myshop #adminView .premium-order-group-head h4 span {
  background: rgba(139, 92, 246, 0.18) !important;
  color: var(--myshop-purple-light) !important;
}

body.theme-myshop #adminView .inline-check {
  color: #d1d5db !important;
}

/* ══ Dashboard sales chart — inner graph area was still white ══ */
body.theme-myshop #adminView .sales-chart-card.panel {
  border: 1px solid var(--myshop-border) !important;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(239, 68, 68, 0.08), transparent 28%),
    var(--myshop-card) !important;
  box-shadow: none !important;
  color: #fff !important;
}

body.theme-myshop #adminView .sales-chart {
  border: 1px solid var(--myshop-border) !important;
  border-radius: 14px !important;
  background: var(--myshop-card-2) !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .sales-chart.is-empty {
  background: var(--myshop-card-2) !important;
}

body.theme-myshop #adminView .sales-real-empty {
  border: 1px dashed rgba(139, 92, 246, 0.28) !important;
  background: rgba(139, 92, 246, 0.06) !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .sales-real-empty strong {
  color: #fff !important;
}

body.theme-myshop #adminView .sales-real-empty span {
  color: #9ca3af !important;
}

body.theme-myshop #adminView .sales-chart-insights span {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card-2) !important;
  box-shadow: none !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .sales-chart-legend span {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #d1d5db !important;
}

body.theme-myshop #adminView .sales-chart-legend .legend-revenue {
  background: #a78bfa !important;
}

body.theme-myshop #adminView .sales-chart-legend .legend-profit {
  background: #6ee7b7 !important;
}

body.theme-myshop #adminView .sales-chart-summary strong {
  color: var(--myshop-purple-light) !important;
  text-shadow: none !important;
}

body.theme-myshop #adminView .two-col .panel {
  border: 1px solid var(--myshop-border) !important;
  background: var(--myshop-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.theme-myshop #adminView .two-col .panel h3 {
  color: #fff !important;
}

body.theme-myshop #adminView .dashboard-head h3 {
  color: #fff !important;
}


/* --- Premium WOW Overrides --- */
body.theme-myshop .category-card,
body.theme-myshop .store-card,
body.theme-myshop .myshop-wallet-channel,
body.theme-myshop .service-strip article {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

body.theme-myshop .category-card:hover,
body.theme-myshop .store-card:hover,
body.theme-myshop .myshop-wallet-channel:hover,
body.theme-myshop .service-strip article:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.25) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

/* Make modals use the dark card background */
body.theme-myshop .premium-edit-modal,
body.theme-myshop .modal-content,
body.theme-myshop .ad-popup-card {
    background: var(--panel) !important;
    color: var(--ink) !important;
    border: 1px solid var(--myshop-border) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
}

/* Inputs inside modals */
body.theme-myshop .premium-edit-modal input,
body.theme-myshop .modal-content input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid var(--line) !important;
}

/* Ensure text on cards isn't strictly black */
body.theme-myshop .category-card h3,
body.theme-myshop .store-card h3,
body.theme-myshop .service-strip strong,
body.theme-myshop .myshop-wallet-channel strong {
    color: var(--ink) !important;
}

body.theme-myshop .service-strip span,
body.theme-myshop .myshop-wallet-channel span,
body.theme-myshop .myshop-wallet-channel small {
    color: var(--muted) !important;
}

/* --- Fix Split Button (Premium Checkout) --- */
body.theme-myshop .pay-transaction-btn .pay-visual {
  background: rgba(0, 0, 0, 0.15) !important;
}
body.theme-myshop .pay-transaction-btn:hover .pay-visual {
  background: rgba(0, 0, 0, 0.25) !important;
}
/* Change the text color in the button to white to be safe */
body.theme-myshop .pay-transaction-btn .pay-copy span {
  color: #fff !important;
}
/* Fix arrow color to match */
body.theme-myshop .pay-transaction-btn .pay-copy svg {
  stroke: #fff !important;
}

/* --- Desktop Popup Modal (Overrides sidebar) --- */
@media (min-width: 761px) {
  /* Hide the checkout panel by default on desktop */
  body.premium-fullscreen .premium-checkout-panel {
    display: none !important;
  }
  
  /* Show as a popup when active */
  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(480px, 90%) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    background: var(--panel) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8) !important;
    border: 1px solid var(--myshop-border) !important;
    padding: 24px !important;
  }

  /* Frosted glass backdrop removed because it traps the popup behind it (z-index bug with .view).
     The backdrop is now handled universally by .premium-layout::after in styles.css */
  
  /* Ensure the close button inside the modal is styled nicely */
  body.premium-fullscreen.premium-detail-open .premium-checkout-panel .premium-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: var(--muted);
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  /* Prevent background scrolling */
  body.premium-fullscreen.premium-detail-open {
    overflow: hidden !important;
  }
}

/* --- Force 3 columns on mobile for premium grid --- */
@media (max-width: 760px) {
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.premium-fullscreen .premium-card {
    min-height: auto !important; /* adjust height to fit narrow columns */
    padding: 0 0 8px !important;
  }
  body.premium-fullscreen .premium-card h3 {
    font-size: 11px !important; /* make text smaller to fit */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.premium-fullscreen .premium-card .premium-price-box,
  body.premium-fullscreen .premium-card .premium-card-stats {
    padding: 0 4px !important;
  }
  body.premium-fullscreen .premium-card-stats strong {
    font-size: 10px !important;
  }
}


/* --- Fix Toast Colors --- */
body.theme-myshop .toast-card {
  background: rgba(20, 20, 20, 0.95) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.theme-myshop .toast-text {
  color: #fff !important;
}

body.theme-myshop .toast-close {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-myshop .toast-close:hover {
  color: #fff !important;
}

/* Fix error icon background */
body.theme-myshop .toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

/* Fix success icon background */
body.theme-myshop .toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
}
