@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap");

/* Arther Shop — ธีมฟ้าสดใส สนุก ตามแบรนด์ */
:root {
  --bg-deep: #0c5adb;
  --bg-panel: #1a72f0;
  --bg-card: #ffffff;
  --bg-elevated: #eaf5ff;
  --red: #2eb0ff;
  --red-dim: #1480ef;
  --red-glow: rgba(46, 176, 255, 0.5);
  --yellow: #ffd400;
  --yellow-hot: #ff9f1a;
  --yellow-glow: rgba(255, 212, 0, 0.45);
  --text: #ffffff;
  --text-muted: #d0e7ff;
  --text-ink: #0d3a72;
  --text-ink-muted: #4d6f9a;
  --border: rgba(255, 255, 255, 0.32);
  --card-border: #5eb6ff;
  --sidebar-w: 280px;
  --font-display: "Kanit", system-ui, sans-serif;
  --font-body: "Kanit", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 56px;
  --shadow: 0 12px 36px rgba(10, 70, 180, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% 20%, #5ec8ff 0%, transparent 42%),
    radial-gradient(circle at 15% 80%, rgba(255, 220, 80, 0.18), transparent 35%),
    radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(165deg, #3aa0ff 0%, #0c5adb 42%, #0a4bc4 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Global scrollbar (theme: bright Arther blue) */
* {
  scrollbar-width: thin;
  scrollbar-color: #7ed0ff #0c5adb;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #2b8cff, #0c5adb);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7ed0ff, #2b9fff);
  border: 2px solid #0c5adb;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b8ecff, #4db8ff);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ——— Layout ——— */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #1a78f5 0%, #0b55d4 55%, #0948b8 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.3s ease;
}

.sidebar__brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand__logo-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  mix-blend-mode: normal;
}

.brand--logo-fallback {
  min-height: 50px;
  border-radius: 10px;
  border: 1px dashed #3a3a3a;
  color: #d1d1d1;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4db0ff 0%, #1565c0 55%, #0d4a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--text);
}

.brand__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.sidebar__lang {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.lang-head {
  color: #d7d7d7;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lang-current {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #123456, #0a1f3a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.lang-current__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.flag-badge {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.flag-th {
  background:
    linear-gradient(
      to bottom,
      #c8102e 0 20%,
      #ffffff 20% 35%,
      #1f2a7a 35% 65%,
      #ffffff 65% 80%,
      #c8102e 80% 100%
    );
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 0 39%, #c8102e 39% 61%, transparent 61%),
    linear-gradient(0deg, transparent 0 39%, #c8102e 39% 61%, transparent 61%),
    #ffffff;
}

.lang-current__name {
  line-height: 1.1;
}

.lang-current .lang-btn__sub {
  display: none;
}

.lang-current__chevron {
  font-size: 0.8rem;
  color: #b8b8b8;
}

.lang-panel {
  margin-top: 0.55rem;
  display: none;
  gap: 0.55rem;
}

.lang-panel.is-open {
  display: grid;
}

.lang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  background: linear-gradient(180deg, #123456, #0c2748);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn__title {
  line-height: 1.1;
}

.lang-btn__sub {
  font-size: 0.75rem;
  color: #b5b5b5;
  margin-top: 0.1rem;
}

.lang-btn.is-active {
  background: linear-gradient(180deg, #ffdd66, #f8c833);
  color: #111;
  border-color: #ffdc74;
  box-shadow: 0 2px 10px rgba(248, 200, 51, 0.28);
}

.lang-btn.is-active .lang-btn__sub {
  color: #2b2b2b;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem 1.5rem;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.2rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--bg-panel);
  color: var(--text);
}

.nav a[href="contact.html"] {
  display: none !important;
}

.cart-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge.is-empty {
  opacity: 0.45;
}

/* Toast notification */
.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  background: linear-gradient(180deg, #0f2a4a, #081828);
  border: 1px solid #2b2b2b;
  border-left: 4px solid var(--red);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  padding: 0.7rem 0.8rem;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.toast__msg {
  font-size: 0.84rem;
  color: #cfcfcf;
}

/* Spin: center prize modal */
.spin-prize-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.spin-prize-modal.is-open {
  display: flex;
}

.spin-prize-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

.spin-prize-modal__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 400px);
  background: linear-gradient(165deg, #123456, #071828);
  border: 1px solid #2f2f2f;
  border-top: 3px solid var(--red);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(43, 159, 255, 0.12);
  padding: 1.6rem 1.35rem 1.35rem;
  text-align: center;
  animation: spinPrizeIn 0.3s ease-out;
}

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

.spin-prize-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #bbb;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.spin-prize-modal__close:hover {
  background: rgba(43, 159, 255, 0.2);
  color: #fff;
}

.spin-prize-modal__icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.spin-prize-modal__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f2f2f2;
  margin: 0 0 0.5rem;
}

.spin-prize-modal__prize {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
  margin: 0 0 0.6rem;
  min-height: 1.4em;
}

.spin-prize-modal__hint {
  font-size: 0.78rem;
  color: #8f8f8f;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.spin-prize-modal__ok {
  width: 100%;
  justify-content: center;
}

.nav a.is-active {
  background: linear-gradient(90deg, var(--red-dim), transparent);
  color: #fff;
  border-left: 3px solid var(--red);
  margin-left: 0;
  padding-left: calc(0.9rem - 3px);
}

.nav-group {
  margin-bottom: 0.3rem;
}

.nav-parent {
  position: relative;
}

.nav-hint {
  margin-left: auto;
  font-size: 0.72rem;
  color: #a8d4ff;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.nav-submenu {
  margin: 0.25rem 0 0.4rem 1.8rem;
  border-left: 1px solid #2f2f2f;
  padding-left: 0.45rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-submenu.is-open {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.nav-submenu.is-open::-webkit-scrollbar {
  width: 8px;
}

.nav-submenu.is-open::-webkit-scrollbar-track {
  background: #081828;
  border-radius: 8px;
}

.nav-submenu.is-open::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a3a3a, #676767);
  border-radius: 8px;
}

.nav-submenu a {
  padding: 0.42rem 0.65rem;
  font-size: 0.83rem;
  color: #b7b7b7;
  margin-bottom: 0.15rem;
}

.nav-submenu a:hover {
  color: #fff;
}

.nav-submenu a.is-active {
  background: rgba(43, 159, 255, 0.2);
  border-left: 2px solid var(--red);
  padding-left: calc(0.65rem - 2px);
}

.nav-icon {
  width: 1.25rem;
  text-align: center;
  opacity: 0.9;
  font-size: 1rem;
}

.sidebar__footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Main */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(12, 90, 219, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  z-index: 100;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.topbar__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.topbar__spacer {
  flex: 1;
}

.badge-netflix {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.content {
  flex: 1;
  padding: 1.25rem 1.5rem 2.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Page blocks */
.page-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-height: 200px;
  background: linear-gradient(135deg, #0a2548 0%, #061428 50%, #0c1f3a 100%);
  border: 1px solid var(--border);
  position: relative;
  /* Default / package app pages: same banner as Home */
  background-image: url("../assets/images/packages/banner-1.1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Package app pages (Netflix, Spotify, etc.) — match Home banner */
body[data-package-page="1"] .page-hero {
  background-image: none;
}

body[data-package-page="1"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Lucky Spin page hero banner */
body[data-title-en="Lucky Spin | Arther Shop"] .page-hero {
  background-image: none;
}

body[data-title-en="Lucky Spin | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Home page hero banner on inner wrapper */
body[data-title-en="Arther Shop | Home Streaming & Digital Services"] .page-hero {
  background-image: none;
}

body[data-title-en="Arther Shop | Home Streaming & Digital Services"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Packages page hero banner on inner wrapper */
body[data-title-en="All Packages | Arther Shop"] .page-hero {
  background-image: none;
}

body[data-title-en="All Packages | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Promotions page hero banner on inner wrapper */
body[data-title-en="Promotions | Arther Shop"] .page-hero {
  background-image: none;
}

body[data-title-en="Promotions | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.6.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Reviews page hero banner on inner wrapper */
body[data-title-en="Reviews | Arther Shop"] .page-hero {
  background-image: none;
}

body[data-title-en="Reviews | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.7.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cart page hero banner on inner wrapper */
body[data-title-en="Cart | Arther Shop"] .page-hero {
  background-image: none;
}

body[data-title-en="Cart | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.8.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Netflix Household / Unlock VIP page hero */
body[data-title-en="Netflix Household Verification | Arther Shop"] .page-hero {
  background-image: none;
}

body[data-title-en="Netflix Household Verification | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__inner {
  padding: 0;
  min-height: 200px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  /*
    Mobile covers — sizing handled in final override block at file end
    (edge-to-edge cover + balanced height)
  */
  .page-hero__glow {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .page-hero {
    border-radius: 12px;
  }
}

.page-hero__inner > * {
  display: none !important;
}

.page-hero__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 0.95rem;
}

.page-hero__glow {
  position: absolute;
  right: -20%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
}

.section-block {
  margin-bottom: 2rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.home-stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 90% 10%, rgba(43, 159, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #123456 0%, #0a1f3a 50%, #061428 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.home-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 159, 255, 0.52);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
}

.home-stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(43, 159, 255, 0.12);
  border: 1px solid rgba(43, 159, 255, 0.45);
  font-size: 1.2rem;
  color: var(--red);
}

.home-stat-card__title {
  color: #f1f1f1;
  font-weight: 700;
  line-height: 1.2;
}

.home-stat-card__value {
  color: #b6b6b6;
  font-size: 0.88rem;
  font-weight: 600;
}

.section-block h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-block h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--red);
  border-radius: 2px;
}

/* Search / ID input (home) */
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.field {
  flex: 1;
  min-width: 200px;
}

.order-timeline {
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  width: max-content;
  animation: order-marquee 72s linear infinite;
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(145deg, #123456 0%, #0a1f3a 52%, #061830 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  min-height: 88px;
  min-width: min(520px, 85vw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.order-item__thumb {
  width: 74px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  filter: saturate(0.9) contrast(1.02);
}

.order-item__meta {
  min-width: 0;
}

.order-item__title {
  margin: 0;
  font-size: 0.9rem;
  color: #f3f3f3;
  line-height: 1.2;
}

.order-item__chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.order-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.order-chip--sold {
  background: rgba(43, 159, 255, 0.2);
  color: #7ec4ff;
  border: 1px solid rgba(43, 159, 255, 0.45);
}

.order-chip--qty {
  background: rgba(43, 159, 255, 0.1);
  color: #b8d4ec;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.order-time {
  margin: 0.2rem 0 0.35rem;
  color: #8eb8d8;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-recent {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.8rem;
  margin: 0 0 1.35rem;
  background:
    radial-gradient(circle at 82% -10%, rgba(43, 159, 255, 0.22), transparent 40%),
    linear-gradient(160deg, #0c2748 0%, #081828 62%, #061428 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.order-marquee {
  overflow: hidden;
  position: relative;
}

.order-marquee::before,
.order-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  pointer-events: none;
  z-index: 2;
}

.order-marquee::before {
  left: 0;
  background: linear-gradient(to right, #081828 20%, transparent);
}

.order-marquee::after {
  right: 0;
  background: linear-gradient(to left, #081828 20%, transparent);
}

.home-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(43, 159, 255, 0.2);
  padding-bottom: 0.45rem;
}

.home-recent__head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.home-recent__spark {
  color: #4db0ff;
  opacity: 0.9;
  animation: spark-pulse 1.6s ease-in-out infinite;
}

.home-recent:hover .order-timeline {
  animation-play-state: paused;
}

@keyframes order-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.35rem));
  }
}

@keyframes spark-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.home-promo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-promo-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.home-promo-item--image {
  display: block;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 0;
  background: #eaf5ff;
}

.home-promo-item--image img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.home-promo-item--image:hover img {
  transform: scale(1.03);
}

.home-promo-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.home-promo-item p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.howto-step-card {
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 0.75rem 0.72rem;
  background:
    radial-gradient(circle at 95% -5%, rgba(43, 159, 255, 0.18), transparent 42%),
    linear-gradient(165deg, #123456 0%, #0a1f3a 66%, #061428 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.howto-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 159, 255, 0.45);
}

.howto-step-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.howto-step-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(43, 159, 255, 0.16);
  border: 1px solid rgba(43, 159, 255, 0.35);
}

.howto-step-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9fd0ff;
  letter-spacing: 0.04em;
}

.howto-step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.howto-step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background:
    radial-gradient(circle at 92% -20%, rgba(43, 159, 255, 0.16), transparent 46%),
    linear-gradient(150deg, #181818 0%, #101010 62%, #0d0d0d 100%);
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  padding: 0.25rem 0.85rem;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(43, 159, 255, 0.55);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(43, 159, 255, 0.12) inset;
  transform: translateY(-1px);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.45;
  color: #f5f5f5;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(43, 159, 255, 0.4);
  color: #4db0ff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(43, 159, 255, 0.08);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.faq-item[open] {
  border-color: rgba(43, 159, 255, 0.72);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(43, 159, 255, 0.2) inset;
}

.faq-item[open] summary {
  color: #fff;
}

.faq-item[open] summary::after {
  content: "−";
  color: #d0eaff;
  border-color: rgba(43, 159, 255, 0.7);
  background: rgba(43, 159, 255, 0.22);
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0 0 0.8rem;
  padding-top: 0.15rem;
  border-top: 1px dashed rgba(43, 159, 255, 0.22);
  color: #d0d0d0;
  font-size: 0.9rem;
  line-height: 1.65;
  animation: faqFadeIn 0.24s ease;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .faq-item {
    border-radius: 12px;
    padding: 0.2rem 0.72rem;
  }

  .faq-item summary {
    font-size: 0.92rem;
    padding: 0.68rem 0;
  }

  .faq-item p {
    font-size: 0.86rem;
    line-height: 1.58;
  }
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
}

.btn--primary:hover:not(:disabled) {
  background: #4db0ff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  color: #151515;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  border-color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #eaeaea 100%);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.btn-secondary:focus-visible {
  outline: none;
  border-color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.42),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn-secondary:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Product card */
.product-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.product-card {
  background: #fafafa;
  color: #111;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 480px;
}

.product-card__head {
  background: linear-gradient(90deg, #e8e8e8, #f5f5f5);
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid #ddd;
}

.product-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.stars {
  color: #ffdc74;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-card__desc {
  font-size: 0.88rem;
  color: #444;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
}

.product-card .btn--primary {
  min-width: 120px;
}

/* Grid packages */
.grid-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-packages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .howto-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .order-item {
    min-width: min(420px, 90vw);
  }

  .grid-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-promo-list {
    grid-template-columns: 1fr;
  }

  .grid-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .howto-steps {
    grid-template-columns: 1fr;
  }
}

.card-package {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.card-package__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #123456, #081828);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 0.1em;
}

.card-package__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-package__img--native {
  aspect-ratio: auto;
  height: auto;
}

.card-package__img--native img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-package__body {
  padding: 1.1rem;
}

.card-package__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card-package__body p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-package__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 620px) {
  .card-package__body {
    padding: 0.95rem 0.85rem 1rem;
  }

  .card-package__body h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  .card-package__body p {
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
  }

  .card-package__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .card-package__footer .price {
    font-size: 1.02rem;
    font-weight: 800;
  }

  .card-package__footer .btn {
    width: 100%;
    min-height: 42px;
  }
}

/* Spin wheel */
.spin-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 2rem;
  width: 100%;
}

.wheel-box {
  position: relative;
  width: min(420px, 100%);
  max-width: 92vw;
  aspect-ratio: 1 / 1;
  height: auto;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--red);
  box-shadow: 0 0 40px var(--red-glow);
  position: relative;
  overflow: hidden;
  transform-origin: 50% 50%;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  background: conic-gradient(
    from -45deg,
    #1a1a1a 0deg 90deg,
    #2a0a0a 90deg 180deg,
    #1a1a1a 180deg 270deg,
    #2a0a0a 270deg 360deg
  );
}

.wheel__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
  width: 36%;
}

.wheel__label--nf {
  color: var(--red);
  font-size: 1.08rem;
  line-height: 1.05;
}

.wheel__label--points,
.wheel__label--bad {
  font-size: 0.98rem;
}

.wheel .wheel__label:nth-child(1) {
  left: 50%;
  top: 21%;
  transform: translate(-50%, -50%);
}

.wheel .wheel__label:nth-child(2) {
  left: 79%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wheel .wheel__label:nth-child(3) {
  left: 50%;
  top: 79%;
  transform: translate(-50%, -50%);
}

.wheel .wheel__label:nth-child(4) {
  left: 21%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wheel__pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--red);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.wheel__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #1a78f5 0%, #0b55d4 55%, #0948b8 100%);
  border: 3px solid var(--red);
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--red);
}

.spin-side {
  max-width: 320px;
}

.spin-side p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#spin-result {
  min-height: 1.5rem;
  font-weight: 600;
  color: var(--red);
}

.spin-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.spin-header {
  margin-bottom: 0.8rem;
}

.spin-header__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 2rem;
  font-weight: 800;
  color: #ff3b3b;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.spin-header__icon {
  font-size: 1.7rem;
  filter: drop-shadow(0 2px 6px rgba(43, 159, 255, 0.35));
}

.spin-header__subtitle {
  margin: 0;
  color: #e5e5e5;
  font-size: 1.05rem;
  font-weight: 600;
}

.spin-code-input {
  background: #11131d;
  color: #fff;
}

.spin-wrap--stacked {
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.spin-wheel-holder {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.spin-wrap--stacked .spin-wheel-holder {
  padding-bottom: 1.5rem;
}

/* Promotions */
.grid-promo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card-promo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.card-promo__banner {
  height: 120px;
  background: linear-gradient(135deg, var(--red-dim) 0%, #0a3058 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.card-promo__body {
  padding: 1.1rem;
}

.card-promo__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card-promo__body .old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-promo__body .new-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  margin: 0.25rem 0 0.75rem;
}

.promo-rows {
  display: grid;
  gap: 1rem;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.3fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.promo-row::after {
  content: "PROMOTION";
  position: absolute;
  top: 14px;
  right: -42px;
  width: 170px;
  text-align: center;
  padding: 0.22rem 0;
  transform: rotate(33deg);
  background: linear-gradient(180deg, #3aa0f0, #1a7acc);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.38);
  z-index: 2;
}

.promo-row__media {
  background: #0a1f3a;
}

.promo-row__media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.promo-row__body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
}

.promo-row__tag {
  display: inline-flex;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d0eaff;
  background: rgba(43, 159, 255, 0.2);
  border: 1px solid rgba(43, 159, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.promo-row__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.promo-row__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.promo-points {
  margin: 0.05rem 0 0.1rem 1rem;
  padding: 0;
  color: #d7d7d7;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .promo-row {
    grid-template-columns: 1fr;
  }

  .promo-row__media img {
    min-height: 180px;
  }
}

/* Reviews */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--red);
}

.review-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-item__name {
  font-weight: 700;
}

.review-item__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.review-photo {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.review-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: linear-gradient(145deg, #123456, #081828);
}

.review-photo figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid #242424;
}

@media (max-width: 1100px) {
  .review-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .review-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .review-gallery {
    grid-template-columns: 1fr;
  }
}

.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.review-lightbox.is-open {
  display: flex;
}

.review-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
}

.review-lightbox__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  background: #081828;
  border: 1px solid #2f2f2f;
  border-top: 3px solid var(--red);
  border-radius: 14px;
  padding: 0.9rem;
}

.review-lightbox__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #f2f2f2;
}

.review-lightbox__card img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: #0a1f3a;
}

.review-lightbox__close {
  position: absolute;
  right: 0.7rem;
  top: 0.6rem;
  width: 30px;
  height: 30px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.9rem;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contact-aside p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-btns a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}

.social-btns a:hover {
  border-color: var(--red);
  color: var(--red);
}

.fab-admin {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9980;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #123456 0%, #0a1f3a 100%);
  border: 1px solid rgba(43, 159, 255, 0.45);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(43, 159, 255, 0.14) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fab-admin:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 159, 255, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(43, 159, 255, 0.22);
  color: #fff;
}

.fab-admin__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(43, 159, 255, 0.2);
  border: 1px solid rgba(43, 159, 255, 0.4);
  font-size: 0.92rem;
}

.fab-admin__text {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Cart */
.cart-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.cart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #242424;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item__name {
  font-weight: 600;
}

.cart-item__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.cart-item__thumb {
  width: 92px;
  height: 62px;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  background: #081828;
}

.cart-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .cart-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: stretch;
  }

  .cart-item__thumb {
    width: 110px;
    height: 72px;
  }
}

.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #131313;
  color: var(--text);
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin: 0.55rem 0;
  color: var(--text-muted);
}

.cart-total-row--grand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid #2a2a2a;
  padding-top: 0.7rem;
  margin-top: 0.75rem;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pay-modal.is-open {
  display: flex;
}

.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(43, 159, 255, 0.2), transparent 40%),
    radial-gradient(circle at 84% 78%, rgba(43, 159, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(7px);
}

.pay-modal__card {
  position: relative;
  z-index: 1;
  width: min(94vw, 500px);
  border-radius: 18px;
  border: 1px solid rgba(43, 159, 255, 0.42);
  background:
    radial-gradient(circle at 96% -22%, rgba(43, 159, 255, 0.28), transparent 52%),
    linear-gradient(165deg, rgba(26, 26, 26, 0.98), rgba(10, 10, 10, 0.97));
  box-shadow:
    0 34px 78px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 30px rgba(43, 159, 255, 0.14);
  padding: 1.25rem 1.15rem 1.1rem;
  animation: payModalIn 0.28s ease-out;
}

@keyframes payModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pay-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.68rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(43, 159, 255, 0.3);
  border-radius: 10px;
  background: rgba(43, 159, 255, 0.1);
  color: #c8e4ff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pay-modal__close:hover {
  background: rgba(43, 159, 255, 0.22);
  color: #fff;
  transform: scale(1.04);
}

.pay-modal__title {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.pay-modal__subtitle {
  margin: 0 0 0.95rem;
  color: #bbbbbb;
  font-size: 0.87rem;
  line-height: 1.5;
}

.pay-steps {
  display: flex;
  gap: 0.52rem;
  margin-bottom: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.pay-step {
  border: 1px solid #343434;
  border-radius: 999px;
  padding: 0.4rem 0.58rem;
  font-size: 0.76rem;
  color: #9f9f9f;
  text-align: center;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 128px;
  background: rgba(255, 255, 255, 0.015);
}

.pay-step span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin-right: 0.2rem;
  background: #252525;
  color: #d9d9d9;
  font-weight: 700;
}

.pay-step.is-active {
  border-color: rgba(43, 159, 255, 0.72);
  color: #fff;
  background: rgba(43, 159, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(43, 159, 255, 0.16) inset;
}

.pay-step.is-active span {
  background: var(--red);
  color: #fff;
}

.pay-step.is-done {
  border-color: #3a3a3a;
  color: #d5d5d5;
}

.pay-step-tag {
  font-size: 0.79rem;
  color: #a8d4ff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pay-review-list {
  border: 1px solid #313131;
  border-radius: 12px;
  background: linear-gradient(180deg, #151515, #101010);
  max-height: 260px;
  overflow: auto;
}

.pay-review-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #242424;
  font-size: 0.95rem;
}

.pay-review-item:last-child {
  border-bottom: 0;
}

.pay-review-item__main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.pay-review-item__thumb {
  width: 78px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  background: #081828;
}

.pay-review-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.35;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pay-method-btn {
  border: 1px solid #3b3b3b;
  background: linear-gradient(180deg, #171717, #101010);
  color: #f0f0f0;
  border-radius: 12px;
  padding: 0.65rem 0.55rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-method-btn:hover {
  border-color: rgba(43, 159, 255, 0.5);
  transform: translateY(-1px);
}

.pay-method-btn.is-active {
  border-color: rgba(43, 159, 255, 0.76);
  box-shadow:
    0 0 0 2px rgba(43, 159, 255, 0.22) inset,
    0 8px 20px rgba(43, 159, 255, 0.16);
}

.pay-method-panel {
  border: 1px solid #333;
  border-radius: 12px;
  background: linear-gradient(175deg, #151515, #101010);
  padding: 0.8rem;
}

.pay-panel__hint {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.pay-panel__note {
  color: #919191;
  font-size: 0.76rem;
  margin: 0.6rem 0 0;
}

.pay-qr-image {
  width: 100%;
  max-width: 260px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  display: block;
  margin: 0 auto;
}

.bank-box {
  display: grid;
  gap: 0.65rem;
  font-size: 0.93rem;
}

.bank-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: #181818;
  border: 1px solid #2f2f2f;
}

.bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.bank-name {
  font-weight: 700;
  line-height: 1.2;
}

.bank-owner {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.bank-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.bank-account-no {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffe29b;
}

.bank-copy-btn {
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pay-timer-row {
  margin-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(43, 159, 255, 0.3);
  padding-top: 0.72rem;
  font-size: 0.93rem;
}

#pay-timer.is-danger {
  color: #ff7a82;
}

.pay-actions-row {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

@media (max-width: 560px) {
  .pay-modal__card {
    width: min(96vw, 460px);
    border-radius: 14px;
    padding: 1.05rem 0.88rem 0.9rem;
  }

  .pay-modal__title {
    font-size: 1.06rem;
    padding-right: 1.8rem;
  }

  .pay-modal__subtitle {
    font-size: 0.82rem;
    margin-bottom: 0.78rem;
  }

  .pay-step {
    min-width: 118px;
    font-size: 0.72rem;
  }

  .pay-methods,
  .pay-actions-row {
    grid-template-columns: 1fr;
  }
}

.spin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.spin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 0;
}

.spin-promo {
  display: flex;
  flex-direction: column;
}

.spin-promo__media {
  flex: 1;
  min-height: 380px;
  border-radius: 12px;
  border: 1px dashed #3a3a3a;
  background: radial-gradient(circle at center, rgba(43, 159, 255, 0.16), #081828 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d7d7d7;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.spin-promo__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

@media (max-width: 980px) {
  .cart-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .spin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .spin-code-row {
    grid-template-columns: 1fr;
  }

  .spin-code-row .btn {
    width: 100%;
  }
}

/* Utility */
.hidden {
  display: none !important;
}

/* Page transition loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(43, 159, 255, 0.2), transparent 40%),
    radial-gradient(circle at 78% 82%, rgba(43, 159, 255, 0.16), transparent 42%),
    rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.page-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-loader__card {
  min-width: 180px;
  padding: 0.95rem 1rem 0.88rem;
  border-radius: 14px;
  border: 1px solid rgba(43, 159, 255, 0.4);
  background: linear-gradient(165deg, #123456, #081828);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.page-loader__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--red);
  border-right-color: rgba(43, 159, 255, 0.65);
  animation: pageLoaderSpin 0.78s linear infinite;
}

.page-loader__text {
  font-size: 0.8rem;
  color: #9fd0ff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.page-hero--referral {
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--referral .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .page-hero--referral {
    background-size: cover;
    background-position: center;
  }

  .page-hero--referral .page-hero__inner {
    /* Keep banner background visible on mobile */
    display: block;
  }
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ref-card,
.ref-info-card {
  padding: 18px;
  border-radius: 16px;
}

.ref-card {
  background:
    radial-gradient(circle at 96% -18%, rgba(43, 159, 255, 0.2), transparent 44%),
    linear-gradient(165deg, #123456 0%, #0c2748 64%, #081828 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.33);
}

.ref-card__eyebrow {
  width: fit-content;
  margin-bottom: 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 98, 113, 0.45);
  background: rgba(43, 159, 255, 0.16);
  color: #d0eaff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.52rem;
}

.ref-card__desc {
  margin: -4px 0 12px;
  color: #b9b9b9;
  font-size: 0.84rem;
}

.ref-card h3,
.ref-info-card h3 {
  margin: 0 0 12px;
}

.ref-form {
  display: grid;
  gap: 12px;
}

.ref-form .btn,
.ref-form .btn-secondary {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
}

.ref-form .btn {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 11px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(255, 79, 107, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 79, 107, 0.24), 0 10px 24px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.ref-result {
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 13px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.ref-result code {
  font-size: 13px;
}

.ref-create-box {
  display: grid;
  gap: 0.55rem;
}

.ref-create-box__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.5rem;
}

.ref-create-box__label {
  color: #d4d4d4;
  font-size: 0.8rem;
  font-weight: 600;
}

.ref-create-box__value code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #f2f8ff;
}

.ref-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #f8f8f8, #e8e8e8);
  color: #141414;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.34rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}

.ref-copy-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff, #ececec);
}

.ref-copy-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

.ref-create-box__hint {
  margin: 0.1rem 0 0;
  color: #d2d2d2;
  font-size: 0.83rem;
}

.ref-status-box {
  display: grid;
  gap: 0.62rem;
}

.ref-status-box__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.62rem;
}

.ref-status-box__label {
  color: #cfcfcf;
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}

.ref-status-box__code code {
  color: #fff;
  font-size: 0.9rem;
}

.ref-status-box__owner {
  color: #e7e7e7;
  font-size: 0.82rem;
  white-space: nowrap;
}

.ref-status-box__reward {
  border: 1px solid rgba(255, 96, 110, 0.38);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(43, 159, 255, 0.18), rgba(15, 15, 15, 0.88));
  padding: 0.52rem 0.62rem;
  display: grid;
  gap: 0.08rem;
}

.ref-status-box__reward span {
  color: #cce6ff;
  font-size: 0.77rem;
}

.ref-status-box__reward strong {
  color: #fff;
  font-size: 0.9rem;
}

.ref-status-box__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ref-status-box__stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.55rem;
  display: grid;
  gap: 0.12rem;
}

.ref-status-box__stat small {
  color: #cecece;
  font-size: 0.76rem;
}

.ref-status-box__stat b {
  color: #fff;
  font-size: 0.86rem;
}

.ref-status-box__stat span {
  color: #b7b7b7;
  font-size: 0.77rem;
}

.ref-result.is-ok {
  border-color: rgba(29, 185, 84, 0.4);
  background: rgba(29, 185, 84, 0.1);
}

.ref-result.is-error {
  border-color: rgba(255, 79, 107, 0.4);
  background: rgba(255, 79, 107, 0.12);
}

.ref-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.ref-highlight {
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 95, 109, 0.34);
  background: linear-gradient(145deg, rgba(43, 159, 255, 0.2), rgba(15, 15, 15, 0.92));
  color: #e0f0ff;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  font-size: 0.9rem;
}

.ref-highlight strong {
  color: #fff;
}

.ref-howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.ref-howto__step {
  border: 2px solid #9ed2ff;
  border-radius: 16px;
  padding: 0.72rem 0.75rem;
  background: #f7fbff;
  box-shadow: 0 6px 16px rgba(20, 100, 200, 0.1);
}

.ref-howto__badge {
  width: fit-content;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #ffe566, #ffd000);
  color: #0a3a7a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  margin-bottom: 0.45rem;
}

.ref-howto__step h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: #0d3a72;
  font-weight: 800;
}

.ref-howto__step p {
  margin: 0;
  color: #3d628f;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 500;
}

.ref-reward {
  border: 2px solid #9ed2ff;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
}

.ref-reward__head {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d3a72;
}

.ref-reward__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ref-reward__item {
  border: 2px solid #cfe6ff;
  border-radius: 12px;
  background: #f3f9ff;
  padding: 0.55rem 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.ref-reward__item span {
  color: #3d628f;
  font-size: 0.86rem;
  font-weight: 700;
}

.ref-reward__item strong {
  color: #0d6ef5;
  font-size: 0.95rem;
  font-weight: 800;
}

.ref-conditions {
  border-radius: 10px;
  border: 2px solid #ffd54f;
  background: #fff8e1;
  color: #6a5200;
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .ref-howto {
    grid-template-columns: 1fr;
  }

  .ref-reward__grid {
    grid-template-columns: 1fr;
  }

  .ref-create-box__row {
    grid-template-columns: 1fr;
  }

  .ref-status-box__head {
    flex-direction: column;
  }

  .ref-status-box__owner {
    white-space: normal;
  }

  .ref-status-box__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 220;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Overlay must stay BELOW sidebar (220) so menu stays clickable */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .overlay:not(.is-visible) {
    visibility: hidden;
    pointer-events: none !important;
  }
}

/* ——— Admin: spin code manager (admin-spin.html) ——— */
.admin-spin {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.admin-spin__hero {
  background: linear-gradient(160deg, #171717, #101010 60%);
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.admin-spin__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-spin__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.admin-spin__subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-spin__links {
  display: flex;
  gap: 0.75rem;
}

.admin-spin__links a {
  color: #c8e4ff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(43, 159, 255, 0.15);
  border: 1px solid rgba(43, 159, 255, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.admin-spin__links a:hover {
  background: rgba(43, 159, 255, 0.24);
}

.admin-spin__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-spin__stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.admin-spin__stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.admin-spin__stat-value {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.admin-spin__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.admin-spin__form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-spin__form-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-spin__badge {
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d4eaff;
  background: rgba(43, 159, 255, 0.17);
  border: 1px solid rgba(43, 159, 255, 0.36);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.admin-spin__badge:hover {
  background: rgba(43, 159, 255, 0.3);
  transform: translateY(-1px);
}

.admin-spin__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.admin-spin__form label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.admin-spin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.admin-spin__btn-soft {
  border: 1px solid var(--border);
  background: #0d2748;
  color: #efefef;
}

.admin-spin__table-wrap {
  border-radius: 14px;
}

.admin-spin__controls {
  display: grid;
  grid-template-columns: 1.2fr auto auto auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.admin-spin__search,
.admin-spin__sort {
  height: 38px;
}

.admin-spin__sort {
  min-width: 190px;
  height: auto;
  line-height: 1.2;
  padding: 0.58rem 2rem 0.58rem 0.8rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.admin-spin__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-spin__filter-btn {
  border: 1px solid #2f2f2f;
  background: #141414;
  color: #cfcfcf;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  font-size: 0.76rem;
  cursor: pointer;
}

.admin-spin__filter-btn.is-active {
  border-color: rgba(43, 159, 255, 0.5);
  background: rgba(43, 159, 255, 0.2);
  color: #fff;
}

.admin-spin__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-spin__cards-empty {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed #343434;
  color: var(--text-muted);
  background: #141414;
}

.admin-spin__code-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 0.8rem;
  position: relative;
  overflow: hidden;
}

.admin-spin__code-card.is-used {
  background: #081828;
  border-color: #3a3a3a;
  opacity: 0.52;
  filter: grayscale(0.55);
}

.admin-spin__code-card.is-used .admin-spin__code {
  color: #8f8f8f;
}

.admin-spin__code-card.is-used::after {
  content: "SOLD";
  position: absolute;
  top: 12px;
  right: -30px;
  width: 130px;
  text-align: center;
  padding: 0.15rem 0;
  transform: rotate(32deg);
  background: rgba(43, 159, 255, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.admin-spin__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid #252525;
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
}

.admin-spin__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.admin-spin__meta {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.admin-spin__meta--full {
  grid-column: 1 / -1;
}

.admin-spin__meta-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.admin-spin__meta-value {
  color: #f2f2f2;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-spin__meta-sub {
  color: var(--text-muted);
  font-size: 0.73rem;
  margin-top: 0.16rem;
}

.admin-spin__code {
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}

.admin-spin__used {
  font-weight: 700;
}

.admin-spin__actions-cell {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.admin-spin__mini-btn {
  border: 1px solid var(--border);
  background: #171717;
  color: #fff;
  border-radius: 8px;
  font-size: 0.74rem;
  padding: 0.2rem 0.5rem;
}

.admin-spin__mini-btn:hover {
  border-color: #444;
}

.admin-spin__msg {
  min-height: 1.2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.admin-spin__msg.is-error {
  color: #ff7a7a;
}
.admin-spin__msg.is-ok {
  color: #8fd88f;
}

@media (max-width: 900px) {
  .admin-spin__stats {
    grid-template-columns: 1fr;
  }
  .admin-spin__controls {
    grid-template-columns: 1fr;
  }
  .admin-spin__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-spin__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-spin__form-row {
    grid-template-columns: 1fr;
  }
}

.admin-action-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-action-modal.is-open {
  display: flex;
}

.admin-action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}

.admin-action-modal__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 390px);
  border-radius: 14px;
  border: 1px solid #2f2f2f;
  border-top: 3px solid var(--red);
  background: linear-gradient(180deg, #123456, #0a1f3a);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  padding: 1.15rem 1rem 1rem;
  text-align: center;
}

.admin-action-modal__close {
  position: absolute;
  right: 0.55rem;
  top: 0.5rem;
  width: 28px;
  height: 28px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0d2748;
  color: #ddd;
  cursor: pointer;
}

.admin-action-modal__icon {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: var(--red);
}

.admin-action-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-action-modal__msg {
  margin: 0 0 0.9rem;
  color: #d0d0d0;
  font-size: 0.9rem;
}

.admin-login-gate {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.admin-login-gate.is-open {
  display: flex;
}

.admin-login-card {
  width: min(94vw, 420px);
  background: linear-gradient(180deg, #171717, #101010);
  border: 1px solid #2f2f2f;
  border-top: 3px solid var(--red);
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.55);
  padding: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.admin-login-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-login-card__subtitle {
  margin: 0 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.admin-login-card label {
  color: #cfcfcf;
  font-size: 0.78rem;
}

.admin-login-card__error {
  min-height: 1.1rem;
  margin: 0;
  color: #6bb8ff;
  font-size: 0.82rem;
}

/* ——— Admin dashboard ——— */
.admin-dashboard--v2 {
  display: grid;
  gap: 1rem;
}

.admin-dashboard-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(43, 159, 255, 0.35);
  border-radius: 18px;
  padding: 1.25rem 1.15rem;
  background:
    radial-gradient(circle at 92% -18%, rgba(43, 159, 255, 0.33), transparent 45%),
    linear-gradient(155deg, #123456 0%, #0a1f3a 55%, #061428 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.admin-dashboard-hero__glow {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(43, 159, 255, 0.4), transparent 68%);
  pointer-events: none;
}

.admin-dashboard-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.admin-dashboard-hero__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd0ff;
  font-weight: 700;
}

.admin-dashboard-hero h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.18;
}

.admin-dashboard-hero p {
  margin: 0.45rem 0 0;
  color: #d2d2d2;
}

.admin-dashboard-hero__chip {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(43, 159, 255, 0.48);
  background: rgba(43, 159, 255, 0.16);
  color: #d6ecff;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-dashboard-kpi {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(165deg, #123456, #0c2748);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  padding: 0.85rem 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.admin-dashboard-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.admin-dashboard-kpi--spin .admin-dashboard-kpi__icon {
  color: #ffd98f;
  border-color: rgba(255, 206, 117, 0.42);
  background: rgba(255, 185, 65, 0.13);
}

.admin-dashboard-kpi--pending .admin-dashboard-kpi__icon {
  color: #ffc5a5;
  border-color: rgba(255, 160, 96, 0.42);
  background: rgba(255, 146, 68, 0.15);
}

.admin-dashboard-kpi--approved .admin-dashboard-kpi__icon {
  color: #9ff1c5;
  border-color: rgba(93, 220, 149, 0.42);
  background: rgba(44, 184, 109, 0.15);
}

.admin-dashboard-kpi__label {
  color: #bdbdbd;
  font-size: 0.78rem;
}

.admin-dashboard-kpi__value {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.admin-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-dashboard__grid--v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.admin-dashboard__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.admin-dashboard__card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-dashboard__card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
}

.admin-dashboard__card--feature {
  background:
    radial-gradient(circle at 100% -16%, rgba(43, 159, 255, 0.18), transparent 45%),
    linear-gradient(170deg, #123456 0%, #0a1f3a 60%, #061428 100%);
  border-color: #2d2d2d;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard__card--feature:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 159, 255, 0.48);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.admin-dashboard__pending-panel {
  margin-bottom: 0;
}

.admin-dashboard__pending {
  display: grid;
  gap: 0.55rem;
}

.admin-dashboard__pending-row {
  border: 1px solid var(--border);
  background: #141414;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.admin-dashboard__pending-link {
  font-size: 0.84rem;
  color: #9fd0ff;
  text-decoration: none;
}

.admin-dashboard__pending-link:hover {
  color: #d4eaff;
  text-decoration: underline;
}

.admin-dashboard__empty {
  color: var(--text-muted);
  margin: 0;
}

.admin-nav-logout {
  margin: 0.65rem 0 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  border: 1px solid rgba(255, 56, 72, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 48, 66, 0.28), rgba(130, 8, 17, 0.3)),
    linear-gradient(180deg, #1a1112, #0f0a0b 68%, #0b0708);
  color: #f2f8ff;
  border-radius: 0;
  padding: 0.64rem 0.78rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 92, 104, 0.12) inset;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-nav-logout:hover {
  border-color: rgba(255, 97, 110, 0.98);
  background:
    linear-gradient(145deg, rgba(255, 68, 84, 0.48), rgba(183, 12, 24, 0.36)),
    linear-gradient(180deg, #231213, #140c0d);
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 142, 150, 0.25) inset;
}

.admin-nav-logout:active {
  transform: translateY(0);
}

.admin-nav-logout .nav-icon {
  font-size: 0.96rem;
  opacity: 0.95;
}

/* ——— Admin login page ——— */
.admin-login-v2 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 18%, rgba(43, 159, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 78%, rgba(43, 159, 255, 0.14), transparent 42%),
    #090909;
}

.admin-login-v2__card {
  width: min(92vw, 420px);
  background: linear-gradient(180deg, #123456, #0c2748);
  border: 1px solid #2e2e2e;
  border-top: 3px solid var(--red);
  border-radius: 16px;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.55);
  padding: 1.15rem;
  display: grid;
  gap: 0.58rem;
}

.admin-login-v2__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.admin-login-v2__brand .brand__logo-image {
  max-width: 160px;
}

.admin-login-v2__card h1 {
  margin: 0;
  font-size: 1.26rem;
}

.admin-login-v2__card p {
  margin: 0 0 0.22rem;
  color: var(--text-muted);
}

.admin-login-v2__card label {
  font-size: 0.82rem;
  color: #d4d4d4;
}

.admin-login-v2__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  color: #d4d4d4;
}

.admin-login-v2__msg {
  min-height: 1.15rem;
  margin: 0.12rem 0 0;
  color: #6bb8ff;
  font-size: 0.83rem;
}

/* ——— Members page visuals ——— */
.member-page__create {
  background:
    radial-gradient(circle at 10% 0%, rgba(43, 159, 255, 0.1), transparent 35%),
    linear-gradient(180deg, #171717, #101010);
}

.member-page__tip {
  margin-bottom: 0.7rem;
  border: 1px solid rgba(255, 94, 106, 0.28);
  background: linear-gradient(145deg, rgba(43, 159, 255, 0.14), rgba(17, 17, 17, 0.88));
  color: #cce6ff;
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  font-size: 0.86rem;
}

.member-page__tip strong {
  color: #eef6ff;
}

.member-page__list-wrap {
  margin-top: 0.35rem;
}

.member-page__list-head {
  margin-bottom: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.member-page__list-head h2 {
  margin: 0;
}

.member-search {
  max-width: 340px;
}

.member-page__list {
  display: grid;
  gap: 0.7rem;
}

.member-page__empty {
  margin: 0;
  color: var(--text-muted);
}

.member-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #121212;
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  gap: 0.48rem;
}

.member-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.member-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f8ff;
}

.member-card__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.5rem;
  align-items: center;
}

.member-card__row span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.member-card__row strong {
  font-weight: 600;
  color: #f3f3f3;
}

.member-card__row code {
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8f3ff;
  font-size: 0.8rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.member-badge {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.member-badge.is-active {
  color: #dbffe8;
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(74, 222, 128, 0.3);
}

.member-badge.is-inactive {
  color: #d0eaff;
  background: rgba(43, 159, 255, 0.2);
  border-color: rgba(255, 110, 122, 0.34);
}

.member-card__actions {
  margin-top: 0.22rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.member-btn {
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
}

.member-btn--muted {
  background: #1b1b1b;
  border: 1px solid var(--border);
  color: #e5e5e5;
}

.member-btn--accent {
  background: linear-gradient(145deg, rgba(43, 159, 255, 0.36), rgba(20, 90, 160, 0.33));
  border: 1px solid rgba(255, 85, 97, 0.5);
  color: #f2f8ff;
}

/* ——— Referral admin redesign ——— */
.ref-admin-page {
  display: grid;
  gap: 0.9rem;
}

.ref-admin-toolbar {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #123456, #0c2748);
  display: grid;
  gap: 0.65rem;
}

.ref-admin-toolbar__search {
  max-width: 360px;
}

.ref-admin-toolbar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.ref-admin-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.9rem;
}

.ref-admin-toolbar__actions .btn.is-active {
  background: linear-gradient(145deg, rgba(43, 159, 255, 0.35), rgba(20, 90, 160, 0.3));
  border-color: rgba(255, 87, 101, 0.55);
  color: #f2f8ff;
}

.ref-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #121212;
}

.ref-table thead th {
  text-align: left;
  font-size: 0.82rem;
  color: #cfcfcf;
  background: #171717;
  border-bottom: 1px solid #2c2c2c;
  padding: 0.62rem 0.68rem;
  font-weight: 700;
}

.ref-table tbody td {
  padding: 0.65rem 0.68rem;
  border-bottom: 1px solid #232323;
  color: #f0f0f0;
  vertical-align: middle;
}

.ref-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.ref-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ref-admin-toolbar .btn,
.ref-row-actions .btn,
.ref-notice-modal__actions .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 9px;
  min-height: 34px;
  box-shadow: none;
}

.ref-row-actions .btn {
  border: 2px solid #9ed2ff;
  background: #ffffff;
  color: #0d3a72;
}

.ref-row-actions .btn:hover:not(:disabled) {
  background: #eaf5ff;
  border-color: #2eb0ff;
  transform: translateY(-1px);
}

.ref-row-actions .btn.btn--primary,
.ref-admin-toolbar .btn.btn--primary,
.ref-notice-modal__actions .btn.btn--primary {
  background: linear-gradient(180deg, #ffe566, #ffd000);
  border: 1px solid #e0b800;
  color: #0a3a7a;
}

.ref-row-actions .btn.btn--primary:hover:not(:disabled),
.ref-admin-toolbar .btn.btn--primary:hover:not(:disabled),
.ref-notice-modal__actions .btn.btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff0a0, #ffdc40);
  border-color: #e0b800;
  color: #0a3a7a;
}

.ref-code-cards {
  display: grid;
  gap: 0.6rem;
}

.ref-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.45rem;
}

.ref-loadmore-btn {
  min-width: 220px;
}

.ref-code-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #123456, #0c2748);
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.ref-code-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ref-code-card__head strong {
  color: #fff;
  font-size: 0.95rem;
}

.ref-code-card__head span {
  color: #d6d6d6;
  font-size: 0.85rem;
}

.ref-code-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ref-code-card__stats div {
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #141414;
  padding: 0.4rem 0.45rem;
}

.ref-code-card__stats small {
  display: block;
  color: #b9b9b9;
  font-size: 0.73rem;
}

.ref-code-card__stats b {
  display: block;
  color: #fff;
  margin-top: 0.12rem;
  font-size: 0.88rem;
}

.ref-matrix {
  display: grid;
  gap: 0.7rem;
}

.ref-matrix__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0a1f3a;
}

.ref-matrix__owner {
  border-right: 1px solid var(--border);
  padding: 0.75rem;
  background: #151515;
  display: grid;
  gap: 0.32rem;
  align-content: start;
}

.ref-matrix__owner-code {
  color: #fff;
  font-size: 1rem;
}

.ref-matrix__owner-name {
  color: #d6d6d6;
  font-size: 0.9rem;
}

.ref-matrix__entries {
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.ref-matrix__entry {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.64rem 0.72rem;
  background: linear-gradient(180deg, #181818, #121212);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 0.56rem;
}

.ref-matrix__entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ref-matrix__entry-contact {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
}

.ref-matrix__entry-main {
  color: #e9e9e9;
  font-size: 0.84rem;
  display: grid;
  gap: 0.18rem;
}

.ref-matrix__entry-meta {
  color: #bdbdbd;
}

.ref-status-badge {
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.ref-status-badge.is-pending {
  background: rgba(255, 196, 66, 0.15);
  border-color: rgba(255, 196, 66, 0.5);
  color: #ffd77f;
}

.ref-status-badge.is-approved {
  background: rgba(77, 212, 146, 0.15);
  border-color: rgba(77, 212, 146, 0.45);
  color: #89f0bf;
}

.ref-status-badge.is-other {
  background: rgba(124, 124, 124, 0.16);
  border-color: rgba(176, 176, 176, 0.35);
  color: #d6d6d6;
}

.ref-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ref-notice-modal.is-open {
  display: flex;
}

.ref-notice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.ref-notice-modal__card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 89, 103, 0.42);
  background: linear-gradient(180deg, #123456, #0a1f3a);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(43, 159, 255, 0.15) inset;
  padding: 1.05rem;
  display: grid;
  gap: 0.75rem;
}

.ref-notice-modal__icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 89, 103, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(43, 159, 255, 0.5), rgba(12, 70, 130, 0.7));
  color: #fff;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ref-notice-modal__title {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
}

.ref-notice-modal__msg {
  margin: 0;
  color: #d9d9d9;
  line-height: 1.55;
}

.ref-notice-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ref-input-modal__fields {
  display: grid;
  gap: 0.42rem;
}

.ref-input-modal__fields label {
  color: #d6d6d6;
  font-size: 0.84rem;
}

.ref-input-help {
  color: #a9a9a9;
  font-size: 0.76rem;
  margin-top: -0.12rem;
}

.ref-required {
  color: #ff616f;
}

@media (max-width: 1100px) {
  .ref-admin-layout {
    grid-template-columns: 1fr;
  }

  .ref-matrix__row {
    grid-template-columns: 1fr;
  }

  .ref-matrix__owner {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ——— Admin shell layout ——— */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: radial-gradient(circle at 0% 0%, rgba(43, 159, 255, 0.14), transparent 35%), #061428;
}

.admin-shell__sidebar {
  border-right: 1px solid #232323;
  background: linear-gradient(180deg, #0a1f3a, #061428);
  padding: 1rem 0.85rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-shell__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  margin-bottom: 0.95rem;
  padding: 0.7rem 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.96), rgba(13, 13, 13, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.admin-shell__brand:hover {
  border-color: rgba(43, 159, 255, 0.32);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(43, 159, 255, 0.12) inset;
}

.admin-shell__brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4db0ff 0%, #1565c0 55%, #0d4a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}

.admin-shell__brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--text);
}

.admin-shell__brand-copy small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.admin-shell__nav {
  display: grid;
  gap: 0.35rem;
}

.admin-shell__nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #d4d4d4;
  padding: 0.62rem 0.66rem;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.admin-shell__nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.admin-shell__nav a.is-active {
  background: rgba(43, 159, 255, 0.15);
  color: #e6f2ff;
  border-color: rgba(43, 159, 255, 0.35);
}

.admin-shell__main {
  padding: 1rem 1.2rem 1.6rem;
}

.admin-shell__topbar {
  background: linear-gradient(165deg, #123456, #0a1f3a);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}

.admin-shell__topbar h1 {
  margin: 0;
  font-size: 1.22rem;
}

.admin-shell__topbar p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .admin-dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .admin-dashboard__grid--v2 {
    grid-template-columns: 1fr;
  }

  .admin-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell__sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #232323;
  }
}

/* ——— Netflix Household Verification ——— */
.netflix-household-card {
  background: linear-gradient(165deg, #180a0a 0%, #0d0404 60%, #120505 100%);
  border: 1px solid #3a1515;
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow:
    0 12px 48px rgba(43, 159, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.netflix-household-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(43, 159, 255, 0.12);
}

.netflix-household-card__icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4db0ff 0%, #1565c0 55%, #0d4a8a 100%);
  border-radius: 12px;
  box-shadow: 0 4px 18px var(--red-glow);
  flex-shrink: 0;
}

.netflix-household-card__header h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #0d3a72;
  color: #0d3a72;
  letter-spacing: 0.03em;
  text-shadow: none;
}

.netflix-household-card__sub {
  margin: 0;
  font-size: 0.85rem;
  color: #3d628f;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.netflix-household-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.netflix-household-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(43, 159, 255, 0.18), rgba(15, 75, 140, 0.12));
  border: 1px solid rgba(43, 159, 255, 0.3);
  color: #ff858d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.netflix-household-badge:hover {
  background: linear-gradient(135deg, rgba(43, 159, 255, 0.28), rgba(15, 75, 140, 0.2));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 159, 255, 0.15);
}

/* ═══════════════════════════════
   NATIVE NETFLIX FORM UI (DARK MODE)
═══════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

.native-nf-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #0a1f3a;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.nf-sec-label {
  display:flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700; color: #aaa;
  text-transform:uppercase; letter-spacing:.9px; margin-bottom:12px;
}
.nf-sec-label i { color:var(--red); font-size:13px; }
.nf-input-wrap { position:relative; }
.nf-input-ico {
  position:absolute; left:17px; top:50%; transform:translateY(-50%);
  color:#666; font-size:18px; pointer-events:none;
  transition:color .2s;
}
.nf-input-wrap:focus-within .nf-input-ico { color:var(--red); }
.nf-email-inp {
  width:100%; padding:17px 16px 17px 50px;
  border:2px solid #333; border-radius:12px;
  font-family:var(--font); font-size:17px; font-weight:500; color:#fff;
  background:#1a1a1a; outline:none;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.nf-email-inp::placeholder { color:#666; font-weight:400; }
.nf-email-inp:focus {
  border-color:var(--red); background:#222;
  box-shadow:0 0 0 4px rgba(43,159,255,.15);
}
.nf-input-hint {
  font-size:13px; color:#888; margin-top:8px;
  display:flex; align-items:center; gap:6px;
}
.nf-input-hint i { color:var(--red); font-size:12px; }

/* Buttons */
.nf-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:none; border-radius:12px; cursor:pointer;
  font-family:var(--font); font-weight:700; font-size:17px;
  padding:16px 22px; width:100%; transition:all .2s;
  color:#fff;
}
.nf-btn-primary {
  background:linear-gradient(135deg,#f01420 0%,#c40812 50%,#9b0008 100%);
  box-shadow:0 6px 20px rgba(43,159,255,.38);
}
.nf-btn-primary:hover:not(:disabled) { box-shadow:0 10px 28px rgba(43,159,255,.48); transform:translateY(-2px); }
.nf-btn-primary:active:not(:disabled) { transform:translateY(0); }
.nf-btn-primary:disabled { opacity:0.5; cursor:not-allowed; }
.nf-btn-ghost {
  background:#222; color:#fff;
  border:2px solid #444; font-weight:600;
}
.nf-btn-ghost:hover { background:#333; border-color:#666; }
.nf-btn-green { background:linear-gradient(135deg,#22c55e,#16a34a); box-shadow:0 6px 20px rgba(22,163,74,.35); }
.nf-btn-green:hover { transform:translateY(-2px); }

/* Warning / Status */
.nf-warn-box {
  background: rgba(43,159,255,0.1); border:1px solid rgba(43,159,255,0.3);
  border-radius:10px; padding:14px 16px;
  display:flex; align-items:flex-start; gap:11px;
  font-size:14px; line-height:1.6; color:#eab308;
}
.nf-warn-box i { color:var(--red); margin-top:3px; }
.nf-status-area { margin-top:14px; }
.nf-loading-box {
  display:flex; align-items:center; justify-content:center; gap:13px;
  background:rgba(43,159,255,0.1); border:1px solid rgba(43,159,255,0.3);
  border-radius:10px; padding:16px; color:#ff4d4f; font-weight:600;
}
.nf-spin { animation:spin 1s linear infinite; }
.nf-retry-box { background:#1a1a1a; border:1px solid #444; border-radius:10px; padding:14px; margin-top:10px; }
.nf-retry-label { display:flex; justify-content:space-between; font-size:14px; color:#eab308; font-weight:600; margin-bottom:8px; }
.nf-retry-label i { animation:spin 1s linear infinite; color:var(--red); }
.nf-prog-track { background:#333; border-radius:99px; height:6px; overflow:hidden; }
.nf-prog-bar { height:100%; background:var(--red); border-radius:99px; transition:width .4s; }

/* Messages */
.nf-msg { border-radius:10px; padding:14px; display:flex; gap:11px; font-size:14px; margin-top:12px; }
.nf-msg i { margin-top:2px; font-size:16px; }
.nf-msg-ok { background:rgba(34,197,94,0.15); border:1px solid rgba(34,197,94,0.4); color:#4ade80; }
.nf-msg-err { background:rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.4); color:#60b4ff; }
.nf-msg-info { background:rgba(59,130,246,0.15); border:1px solid rgba(59,130,246,0.4); color:#60a5fa; }

/* Modals */
.nf-ov {
  position:fixed; inset:0; z-index:9000; background:rgba(0,0,0,0.8); backdrop-filter:blur(8px);
  display:none; align-items:center; justify-content:center; padding:16px;
}
.nf-ov.open { display:flex; }
.nf-modal-box {
  background:#111; border-radius:24px; width:100%; max-width:460px;
  border:1px solid #333; overflow:hidden; position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.8);
}
.nf-modal-close-x {
  position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
  background:rgba(0,0,0,0.5); border:1px solid #444; color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:10;
}
.nf-modal-close-x:hover { background:var(--red); border-color:var(--red); }

/* Modal Headers */
.nf-m-success-hd { background:linear-gradient(135deg,#064e3b,#065f46); padding:36px 24px; text-align:center; }
.nf-m-nf-hd { background:linear-gradient(135deg,#451a03,#78350f); padding:36px 24px; text-align:center; }
.nf-help-hd { background:linear-gradient(135deg,#7f1d1d,#991b1b); padding:32px 24px; text-align:center; color:#fff; }
.nf-m-ico-wrap { position:relative; width:80px; height:80px; margin:0 auto 16px; }
.nf-m-ico { width:100%; height:100%; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:36px; color:#fff; position:relative; z-index:2; }
.nf-m-ico-green { background:#16a34a; box-shadow:0 0 30px rgba(22,163,74,0.5); }
.nf-m-ico-amber { background:#d97706; box-shadow:0 0 30px rgba(217,119,6,0.5); }
.nf-help-hd-icon { width:60px; height:60px; border-radius:16px; background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.2); display:grid; place-items:center; font-size:24px; margin:0 auto 12px; }
.nf-m-title-white { font-size:22px; font-weight:800; color:#fff; }
.nf-m-sub-white { font-size:14px; color:#ccc; margin-top:6px; }
.nf-help-hd-title { font-size:20px; font-weight:800; }

/* Modal Body */
.nf-m-body { padding:24px; }
.nf-help-body { padding:24px; max-height:60vh; overflow-y:auto; }
.nf-info-cards { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.nf-info-card { display:flex; gap:12px; background:#1a1a1a; border:1px solid #333; padding:12px; border-radius:12px; }
.nf-info-card-ico { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-size:16px; }
.nf-ico-red { background:rgba(43,159,255,0.2); color:#60b4ff; }
.nf-ico-blue { background:rgba(59,130,246,0.2); color:#60a5fa; }
.nf-ico-purple { background:rgba(168,85,247,0.2); color:#c084fc; }
.nf-ico-green { background:rgba(34,197,94,0.2); color:#4ade80; }
.nf-info-card-text { flex:1; }
.nf-info-lbl { font-size:11px; font-weight:700; color:#888; text-transform:uppercase; }
.nf-info-val { font-size:15px; font-weight:600; color:#fff; }

.nf-m-alert { padding:14px; border-radius:12px; display:flex; gap:10px; font-size:14px; line-height:1.5; margin-bottom:16px; }
.nf-m-alert i { margin-top:3px; }
.nf-m-alert-ok { background:rgba(34,197,94,0.15); color:#4ade80; border:1px solid rgba(34,197,94,0.3); }
.nf-m-alert-err { background:rgba(239,68,68,0.15); color:#60b4ff; border:1px solid rgba(239,68,68,0.3); }

.nf-m-countdown { margin:16px 0; }
.nf-m-cd-label { display:flex; justify-content:space-between; font-size:14px; color:#aaa; margin-bottom:8px; }
.nf-cd-num { background:rgba(43,159,255,0.2); color:#60b4ff; padding:2px 10px; border-radius:99px; font-weight:800; border:1px solid rgba(43,159,255,0.4); }
.nf-prog-track-2 { background:#333; height:8px; border-radius:99px; }
.nf-prog-bar-2 { background:linear-gradient(90deg,#f59e0b,#ef4444); height:100%; border-radius:99px; transition:width .4s; }

.nf-m-actions { display:flex; flex-direction:column; gap:10px; }
.nf-help-sec { margin-bottom:20px; }
.nf-help-sec-title { display:flex; align-items:center; gap:10px; font-size:16px; font-weight:700; color:#fff; border-bottom:1px solid #333; padding-bottom:10px; margin-bottom:12px; }
.nf-sec-ico { width:32px; height:32px; border-radius:8px; background:rgba(43,159,255,0.2); color:var(--red); display:grid; place-items:center; }
.nf-step-list { list-style:none; padding:0; counter-reset:step; }
.nf-step-list li { display:flex; gap:12px; margin-bottom:12px; font-size:14px; color:#ccc; line-height:1.6; }
.nf-step-list li::before {
  content:counter(step); counter-increment:step;
  width:24px; height:24px; border-radius:50%; background:var(--red); color:#fff;
  display:grid; place-items:center; font-size:12px; font-weight:800; flex-shrink:0; margin-top:2px;
}

/* Accordion Guides */
.nf-accordion { display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.nf-acc-item { border:1px solid #333; border-radius:12px; overflow:hidden; transition:border-color .2s; }
.nf-acc-item:hover, .nf-acc-item.open { border-color:rgba(43,159,255,0.5); }
.nf-acc-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px; cursor:pointer; background:#1a1a1a;
  user-select:none; transition:background .15s;
}
.nf-acc-head:hover { background:#222; }
.nf-acc-left { display:flex; align-items:center; gap:13px; }
.nf-acc-ico {
  width:40px; height:40px; border-radius:10px;
  background:rgba(43,159,255,0.15); border:1px solid rgba(43,159,255,0.3);
  display:grid; place-items:center; color:var(--red); font-size:17px;
}
.nf-acc-title { font-size:15px; font-weight:700; color:#fff; }
.nf-acc-sub { font-size:12px; color:#888; margin-top:2px; }
.nf-acc-arrow {
  width:28px; height:28px; border-radius:50%; background:#333; display:flex; align-items:center; justify-content:center;
  color:#aaa; font-size:11px; transition:transform .25s,background .2s,color .2s;
}
.nf-acc-item.open .nf-acc-arrow { transform:rotate(180deg); background:rgba(43,159,255,0.2); color:var(--red); }
.nf-acc-body { display:none; border-top:1px solid #333; background:#111; }
.nf-acc-item.open .nf-acc-body { display:block; animation:fadeUp .24s ease; }
.nf-acc-body-inner { padding:16px 16px 20px; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.netflix-household-card__note {
  margin: 1.15rem 0 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(43, 159, 255, 0.07), rgba(10, 55, 100, 0.06));
  border: 1px solid rgba(43, 159, 255, 0.14);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-ink-muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .netflix-household-card {
    padding: 1rem;
  }

  .netflix-household-card__header {
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .netflix-household-card__icon {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    border-radius: 10px;
  }

  .netflix-household-card__header h3 {
    font-size: 0.95rem;
  }

  .netflix-household-card__frame {
    aspect-ratio: 9 / 16;
    max-height: 700px;
  }
}


/* =========================================================
   Arther Shop — Bright & Fun theme polish (match brand art)
   ========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 18%,
      rgba(255, 255, 255, 0.09) 0deg 8deg,
      transparent 8deg 18deg
    );
  mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, #000 20%, transparent 75%);
}

/* Do NOT put z-index on .app — it traps .sidebar below .overlay */
.app {
  position: relative;
  z-index: auto;
}

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

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 8px 0 32px rgba(8, 60, 160, 0.25);
  z-index: 220;
}

.sidebar__brand {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.brand__mark {
  background: linear-gradient(145deg, #7ed4ff 0%, #2eb0ff 45%, #1570ef 100%);
  border-radius: 16px;
  box-shadow:
    0 6px 0 #0d5bc4,
    0 10px 22px rgba(46, 176, 255, 0.45);
  animation: arther-bob 2.8s ease-in-out infinite;
}

.brand__text {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgba(8, 60, 140, 0.35);
}

.brand__sub {
  color: #ffe566;
  font-weight: 700;
}

.lang-head {
  color: #e8f5ff;
}

.lang-current {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(8, 60, 160, 0.2);
}

.lang-btn.is-active {
  background: linear-gradient(180deg, #ffe566, #ffd000);
  color: #0a3a7a;
  border-color: #ffdc74;
}

.nav a {
  border-radius: 14px;
  color: #e5f3ff;
  font-weight: 600;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateX(3px);
}

.nav a.is-active {
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.35), transparent);
  color: #fff;
  border-left: 4px solid var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cart-badge {
  background: linear-gradient(180deg, #ffe566, #ffd000);
  color: #0a3a7a;
  box-shadow: 0 3px 0 #e0b800;
}

.sidebar__footer {
  border-top-color: rgba(255, 255, 255, 0.22);
  color: #cfe6ff;
}

.topbar {
  background: rgba(20, 110, 230, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.topbar__title {
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(8, 50, 140, 0.35);
}

.badge-netflix {
  color: #0a3a7a;
  background: linear-gradient(180deg, #ffe566, #ffd000);
  border: none;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  box-shadow: 0 3px 0 #e0b800, 0 6px 14px rgba(255, 200, 0, 0.35);
}

.page-hero {
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow:
    0 16px 40px rgba(10, 70, 180, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  /* Do not use background shorthand here — it wipes page banner images */
}

.page-hero__label {
  color: var(--yellow);
  font-weight: 800;
}

.section-block h2 {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(8, 50, 140, 0.35);
}

.section-block h2::before {
  background: linear-gradient(180deg, #ffe566, #ff9f1a);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--yellow-glow);
}

/* White bubbly cards like brand panels */
.home-stat-card,
.card-package,
.howto-step-card,
.faq-item,
.home-promo-item,
.card-promo,
.promo-row,
.toast,
.spin-prize-modal__card,
.product-card,
.review-card,
.home-recent {
  background: #ffffff !important;
  border: 3px solid var(--card-border) !important;
  border-radius: 22px !important;
  box-shadow:
    0 10px 0 rgba(30, 120, 230, 0.18),
    0 16px 32px rgba(10, 80, 200, 0.2) !important;
  color: var(--text-ink);
}

.home-stat-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(46, 176, 255, 0.18), transparent 42%),
    #ffffff !important;
}

.home-stat-card:hover,
.card-package:hover,
.howto-step-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: #2eb0ff !important;
  box-shadow:
    0 14px 0 rgba(30, 120, 230, 0.2),
    0 22px 40px rgba(10, 80, 200, 0.28) !important;
}

.home-stat-card__icon {
  background: linear-gradient(145deg, #e8f7ff, #c8ebff) !important;
  border: 2px solid #7ec8ff !important;
  border-radius: 14px;
  box-shadow: 0 4px 0 #8fd0ff;
}

.home-stat-card__title,
.card-package__body h3,
.howto-step-card h3,
.faq-item summary,
.home-promo-item h3,
.card-promo__body h3,
.product-card__title {
  color: var(--text-ink) !important;
}

.home-stat-card__value,
.card-package__body p,
.howto-step-card p,
.home-promo-item p,
.faq-item p,
.product-card__desc {
  color: var(--text-ink-muted) !important;
}

.home-recent__head h2 {
  color: var(--text-ink) !important;
  text-shadow: none;
}

.order-item {
  background: linear-gradient(145deg, #f3f9ff, #ffffff) !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 16px rgba(30, 120, 220, 0.12) !important;
}

.order-item__title {
  color: var(--text-ink) !important;
}

.order-chip--sold {
  background: rgba(46, 176, 255, 0.15) !important;
  color: #0d6ef5 !important;
  border-color: #7ec8ff !important;
}

.order-chip--qty {
  background: rgba(255, 212, 0, 0.2) !important;
  color: #8a6a00 !important;
  border-color: #ffd96a !important;
}

.order-time {
  color: #5a86b8 !important;
}

.order-marquee::before {
  background: linear-gradient(to right, #ffffff 20%, transparent) !important;
}

.order-marquee::after {
  background: linear-gradient(to left, #ffffff 20%, transparent) !important;
}

.howto-step-card__num {
  color: #1480ef !important;
}

.faq-item summary::after {
  background: linear-gradient(180deg, #2eb0ff, #1480ef) !important;
  color: #fff !important;
  border-radius: 999px;
}

.price,
.card-promo__body .new-price,
.product-card .price {
  color: #0d7ef5 !important;
  font-weight: 800;
}

.btn--primary {
  background: linear-gradient(180deg, #ffe566 0%, #ffd000 100%);
  color: #0a3a7a !important;
  border-radius: 999px !important;
  font-weight: 800;
  box-shadow:
    0 5px 0 #e0b800,
    0 10px 22px rgba(255, 200, 0, 0.4) !important;
  text-shadow: none;
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff0a0 0%, #ffdc40 100%) !important;
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #e0b800,
    0 14px 28px rgba(255, 200, 0, 0.5) !important;
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost:hover {
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
  background: rgba(255, 212, 0, 0.12);
}

.card-package .btn--ghost,
.product-card .btn--ghost,
.card-promo .btn--ghost,
.home-promo-item .btn--ghost,
.faq-item .btn--ghost {
  border-color: #7ec8ff !important;
  color: #0d3a72 !important;
  background: #eaf5ff !important;
}

.card-package .btn--ghost:hover,
.product-card .btn--ghost:hover,
.card-promo .btn--ghost:hover,
.home-promo-item .btn--ghost:hover,
.faq-item .btn--ghost:hover {
  border-color: #ffd000 !important;
  color: #0a3a7a !important;
  background: #fff6cc !important;
}

.btn-secondary {
  border-radius: 999px !important;
  border: 2px solid #7ec8ff !important;
  color: #0d3a72 !important;
}

.input {
  background: #ffffff !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 14px !important;
  color: var(--text-ink) !important;
}

.input:focus {
  border-color: #2eb0ff !important;
  box-shadow: 0 0 0 4px rgba(46, 176, 255, 0.25) !important;
}

.card-package__img {
  background: linear-gradient(145deg, #d9f0ff, #a8dcff) !important;
}

.card-promo__banner {
  background: linear-gradient(135deg, #4db8ff 0%, #1480ef 100%) !important;
}

.promo-row::after {
  background: linear-gradient(180deg, #ffe566, #ff9f1a) !important;
  color: #0a3a7a !important;
  font-weight: 800;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 14px !important;
}

.toast {
  border-left: 5px solid var(--yellow) !important;
}

.toast__title {
  color: var(--text-ink) !important;
}

.toast__msg {
  color: var(--text-ink-muted) !important;
}

.spin-prize-modal__title,
.spin-prize-modal__prize {
  color: #0d7ef5 !important;
}

.spin-prize-modal__hint {
  color: var(--text-ink-muted) !important;
}

.spin-prize-modal__close:hover {
  background: rgba(46, 176, 255, 0.2) !important;
}

/* Admin / forms sitting on bright theme */
.admin-card,
.panel,
.ref-card,
.nf-card,
.netflix-household-card,
.modal__card,
.login-card {
  background: #ffffff !important;
  border: 3px solid var(--card-border) !important;
  border-radius: 20px !important;
  color: var(--text-ink);
  box-shadow: 0 12px 32px rgba(10, 80, 200, 0.2) !important;
}

@keyframes arther-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes arther-sparkle {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.home-recent__spark {
  color: var(--yellow) !important;
  animation: arther-sparkle 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--yellow-glow));
}

.stars {
  color: #ffd400 !important;
  filter: drop-shadow(0 0 4px rgba(255, 212, 0, 0.45));
}

/* Soft white cloud blobs for fun atmosphere */
.main::after {
  content: "";
  position: fixed;
  right: -80px;
  bottom: 8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 900px) {
  body::before {
    opacity: 0.35;
  }
}


/* Extra contrast fixes for bright theme */
.home-recent__head h2::before,
.section-block h2 {
  color: #fff;
}

.card-package .btn--primary,
.product-card .btn--primary,
.card-promo .btn--primary {
  color: #0a3a7a !important;
}

.nav-hint {
  color: #ffe566 !important;
}

.lang-panel {
  background: #ffffff !important;
  border: 2px solid #7ec8ff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(10, 80, 200, 0.25) !important;
}

.lang-btn {
  color: #0d3a72 !important;
  background: transparent !important;
}

.lang-btn__sub {
  color: #4d6f9a !important;
}

.lang-btn.is-active {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  color: #0a3a7a !important;
}

.lang-btn.is-active .lang-btn__sub {
  color: #6a5200 !important;
}


/* =========================================================
   Contrast audit — ink on light surfaces, light on blue chrome
   ========================================================= */

:root {
  --ink: #0d3a72;
  --ink-soft: #3d628f;
  --ink-faint: #5a7eab;
  --on-blue: #ffffff;
  --on-blue-soft: #e5f3ff;
}

/* --- Blue chrome: keep light text --- */
.sidebar,
.sidebar a,
.topbar,
.topbar__title,
.section-block > h2,
.content > .section-block > h2,
.page-hero h1,
.page-hero p,
.spin-header__subtitle {
  color: var(--on-blue);
}

.sidebar .brand__text { color: #fff !important; }
.sidebar .brand__sub { color: #ffe566 !important; }
.nav a { color: #e5f3ff !important; }
.nav a.is-active,
.nav a:hover { color: #fff !important; }
.sidebar__footer { color: #cfe6ff !important; }

/* Spin page title on blue bg */
.spin-header__title {
  color: #ffe566 !important;
  text-shadow: 0 2px 10px rgba(8, 50, 140, 0.35);
}
.spin-header__subtitle {
  color: #e5f3ff !important;
}

/* --- Expand white surfaces --- */
.review-item,
.review-photo,
.form-card,
.cart-card,
.spin-panel,
.contact-aside,
.ref-card,
.ref-info-card,
.ref-create-box,
.ref-status-box,
.ref-howto__step,
.ref-reward,
.ref-highlight,
.ref-result,
.admin-spin__stat,
.admin-spin__form,
.admin-spin__code-card,
.admin-spin__table-wrap,
.admin-dashboard__card,
.admin-dashboard-kpi,
.admin-login-card,
.admin-login-v2__card,
.admin-action-modal__card,
.ref-notice-modal__card,
.ref-code-card,
.ref-table-wrap,
.ref-matrix__owner,
.ref-matrix__entry,
.netflix-household-card,
.nf-modal-box,
.product-shell .product-card,
.privacy-card,
.login-card,
.error-card {
  background: #ffffff !important;
  border: 3px solid var(--card-border) !important;
  border-radius: 20px !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 28px rgba(10, 80, 200, 0.18) !important;
}

/* --- Default ink for all text inside light panels --- */
.home-stat-card,
.card-package,
.howto-step-card,
.faq-item,
.home-promo-item,
.card-promo,
.promo-row,
.toast,
.spin-prize-modal__card,
.product-card,
.review-card,
.review-item,
.review-photo,
.home-recent,
.form-card,
.cart-card,
.spin-panel,
.ref-card,
.ref-info-card,
.ref-create-box,
.ref-status-box,
.ref-howto__step,
.ref-reward,
.ref-highlight,
.ref-result,
.admin-spin__stat,
.admin-spin__form,
.admin-spin__code-card,
.admin-dashboard__card,
.admin-dashboard-kpi,
.admin-login-card,
.admin-login-v2__card,
.admin-action-modal__card,
.ref-notice-modal__card,
.ref-code-card,
.ref-table-wrap,
.netflix-household-card {
  color: var(--ink) !important;
}

.home-stat-card h1, .home-stat-card h2, .home-stat-card h3, .home-stat-card h4,
.home-stat-card p, .home-stat-card span, .home-stat-card small, .home-stat-card strong, .home-stat-card b,
.card-package h1, .card-package h2, .card-package h3, .card-package h4,
.card-package p, .card-package span:not(.price), .card-package small, .card-package strong,
.howto-step-card h1, .howto-step-card h2, .howto-step-card h3, .howto-step-card p, .howto-step-card span, .howto-step-card small,
.faq-item h1, .faq-item h2, .faq-item h3, .faq-item p, .faq-item span, .faq-item summary, .faq-item small,
.home-promo-item h1, .home-promo-item h2, .home-promo-item h3, .home-promo-item p, .home-promo-item span,
.card-promo h1, .card-promo h2, .card-promo h3, .card-promo p, .card-promo span:not(.price),
.promo-row h1, .promo-row h2, .promo-row h3, .promo-row p, .promo-row span, .promo-row li, .promo-row small,
.product-card h1, .product-card h2, .product-card h3, .product-card p, .product-card span:not(.price),
.review-item h1, .review-item h2, .review-item h3, .review-item p, .review-item span, .review-item small,
.review-photo figcaption,
.home-recent h1, .home-recent h2, .home-recent h3, .home-recent p, .home-recent span, .home-recent small,
.form-card h1, .form-card h2, .form-card h3, .form-card p, .form-card label, .form-card span, .form-card small,
.cart-card h1, .cart-card h2, .cart-card h3, .cart-card p, .cart-card span, .cart-card small, .cart-card strong, .cart-card b, .cart-card label,
.spin-panel h1, .spin-panel h2, .spin-panel h3, .spin-panel p, .spin-panel span, .spin-panel small, .spin-panel label,
.ref-card h1, .ref-card h2, .ref-card h3, .ref-card p, .ref-card span, .ref-card small, .ref-card label, .ref-card strong,
.ref-info-card h1, .ref-info-card h2, .ref-info-card h3, .ref-info-card p, .ref-info-card span, .ref-info-card small, .ref-info-card li,
.ref-create-box span, .ref-create-box small, .ref-create-box p, .ref-create-box strong, .ref-create-box code,
.ref-status-box span, .ref-status-box small, .ref-status-box p, .ref-status-box strong, .ref-status-box b, .ref-status-box code,
.ref-howto__step h3, .ref-howto__step p, .ref-howto__step span,
.ref-reward span, .ref-reward strong, .ref-reward p, .ref-reward small,
.ref-highlight, .ref-highlight strong, .ref-highlight span,
.admin-spin__stat, .admin-spin__stat-label, .admin-spin__stat-value,
.admin-spin__form label, .admin-spin__form-title, .admin-spin__form span, .admin-spin__form p, .admin-spin__form small,
.admin-spin__code-card, .admin-spin__code, .admin-spin__meta-label, .admin-spin__meta-value, .admin-spin__meta-sub,
.admin-dashboard__card h2, .admin-dashboard__card p, .admin-dashboard__card span, .admin-dashboard__card small,
.admin-dashboard-kpi__label, .admin-dashboard-kpi__value,
.admin-login-card__title, .admin-login-card__subtitle, .admin-login-card label,
.admin-login-v2__card h1, .admin-login-v2__card p, .admin-login-v2__card label,
.ref-code-card strong, .ref-code-card span, .ref-code-card small, .ref-code-card b,
.ref-table, .ref-table th, .ref-table td,
.toast__title, .toast__msg,
.spin-prize-modal__title, .spin-prize-modal__hint {
  color: var(--ink) !important;
}

/* Soft secondary text on light panels */
.home-stat-card__value,
.card-package__body p,
.howto-step-card p,
.faq-item p,
.home-promo-item p,
.card-promo__body p,
.promo-row__body p,
.promo-points,
.product-card__desc,
.review-item__date,
.review-photo figcaption,
.form-card label,
.field label,
.field span,
.cart-total-row,
.spin-side p,
.ref-card__desc,
.ref-card__eyebrow,
.ref-create-box__label,
.ref-create-box__hint,
.ref-status-box__label,
.ref-status-box__owner,
.ref-howto__step p,
.ref-conditions,
.admin-spin__stat-label,
.admin-spin__subtitle,
.admin-spin__meta-label,
.admin-spin__meta-sub,
.admin-spin__form label,
.admin-dashboard__card p,
.admin-dashboard-kpi__label,
.admin-login-card__subtitle,
.admin-login-v2__card p,
.ref-code-card__stats small,
.toast__msg,
.spin-prize-modal__hint,
.howto-step-card__num,
.order-time {
  color: var(--ink-soft) !important;
}

/* FAQ open state was white-on-white */
.faq-item summary,
.faq-item[open] summary {
  color: var(--ink) !important;
}
.faq-item[open] summary::after {
  color: #fff !important;
  background: linear-gradient(180deg, #2eb0ff, #1480ef) !important;
  border-color: #1480ef !important;
}

/* Promo tags / points on white */
.promo-row__tag {
  color: #0d6ef5 !important;
  background: rgba(46, 176, 255, 0.12) !important;
  border-color: #7ec8ff !important;
}
.promo-points {
  color: var(--ink-soft) !important;
}

/* Prices stay blue (readable on white) */
.price,
.card-promo__body .new-price,
.product-card .price,
.cart-item .price,
.spin-prize-modal__prize {
  color: #0d7ef5 !important;
}

/* Cart specifics */
.cart-item__name,
.cart-card h2,
.cart-card h3 {
  color: var(--ink) !important;
}
.cart-total-row--grand {
  color: var(--ink) !important;
  border-top-color: #cfe6ff !important;
}
.qty-btn {
  background: #eaf5ff !important;
  border-color: #7ec8ff !important;
  color: var(--ink) !important;
}
.qty-box {
  border-color: #9ed2ff !important;
  background: #f7fbff;
}
.cart-item {
  border-bottom-color: #d6eaff !important;
}

/* Spin panel / code input on light */
.spin-code-input,
.spin-panel .input,
.spin-panel input {
  background: #f7fbff !important;
  color: var(--ink) !important;
  border: 2px solid #9ed2ff !important;
}
.spin-promo__media {
  background: linear-gradient(160deg, #e8f6ff, #cfeaff) !important;
  border-color: #7ec8ff !important;
  color: var(--ink-soft) !important;
}

/* Review photos */
.review-photo img {
  background: linear-gradient(145deg, #e8f6ff, #cfeaff) !important;
}
.review-photo figcaption {
  border-top-color: #d6eaff !important;
  color: var(--ink-soft) !important;
}
.review-item__name {
  color: var(--ink) !important;
}

/* Referral */
.ref-create-box__value code,
.ref-status-box__code code,
.ref-result code {
  color: #0d6ef5 !important;
  background: #eaf5ff;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.ref-status-box__stat small { color: var(--ink-soft) !important; }
.ref-status-box__stat b,
.ref-status-box__reward strong,
.ref-howto__step h3,
.ref-reward__item strong {
  color: var(--ink) !important;
}
.ref-card__eyebrow {
  color: #0d6ef5 !important;
}

/* Admin surfaces */
.admin-spin__meta {
  background: #f3f9ff !important;
  border-color: #cfe6ff !important;
}
.admin-spin__meta-value,
.admin-spin__code,
.admin-spin__stat-value,
.admin-dashboard-kpi__value,
.admin-dashboard__card h2 {
  color: var(--ink) !important;
}
.admin-spin__cards-empty {
  background: #f3f9ff !important;
  border-color: #9ed2ff !important;
  color: var(--ink-soft) !important;
}
.admin-spin__code-card.is-used {
  background: #eef3f8 !important;
  opacity: 0.75;
}
.admin-spin__filter-btn {
  color: var(--ink) !important;
  background: #f3f9ff !important;
  border-color: #9ed2ff !important;
}
.admin-spin__filter-btn.is-active {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  color: #0a3a7a !important;
  border-color: #e0b800 !important;
}
.admin-spin__search,
.admin-spin__sort,
.admin-spin__form input,
.admin-spin__form select,
.admin-login-card input,
.admin-login-v2__card input {
  background: #ffffff !important;
  color: var(--ink) !important;
  border: 2px solid #9ed2ff !important;
}
.admin-spin__btn-soft {
  color: var(--ink) !important;
  background: #eaf5ff !important;
}
.admin-spin__mini-btn {
  background: #0d7ef5 !important;
  color: #fff !important;
}
.admin-dashboard-hero h1,
.admin-dashboard-hero p,
.admin-dashboard-hero__eyebrow {
  color: #fff !important;
}
.admin-dashboard-hero__chip {
  color: #0a3a7a !important;
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
}
.admin-dashboard-kpi__icon {
  color: #0d7ef5 !important;
}
.admin-shell__topbar h1 { color: #fff !important; }
.admin-shell__topbar p { color: #e5f3ff !important; }
.admin-shell__brand-copy strong { color: #fff !important; }
.admin-shell__brand-copy small { color: #ffe566 !important; }
.admin-shell__nav a { color: #e5f3ff !important; }
.admin-shell__nav a.is-active,
.admin-shell__nav a:hover { color: #fff !important; }

/* Referral admin table */
.ref-table thead th {
  color: var(--ink) !important;
  background: #eaf5ff !important;
}
.ref-table tbody td {
  color: var(--ink) !important;
  border-color: #d6eaff !important;
}
.ref-table-wrap {
  overflow: auto;
}
.ref-code-card__stats div {
  background: #f3f9ff !important;
}
.ref-matrix__owner-code,
.ref-matrix__entry-main {
  color: var(--ink) !important;
}
.ref-matrix__owner-name,
.ref-matrix__entry-meta,
.ref-matrix__entry-contact {
  color: var(--ink-soft) !important;
}
.ref-notice-modal__title { color: var(--ink) !important; }
.ref-notice-modal__msg { color: var(--ink-soft) !important; }
.ref-input-modal__fields label { color: var(--ink) !important; }
.ref-input-help { color: var(--ink-soft) !important; }

/* Forms / labels on light */
.form-card input,
.form-card textarea,
.field input,
.input {
  color: var(--ink) !important;
  background: #ffffff !important;
}
.form-card input::placeholder,
.form-card textarea::placeholder,
.field input::placeholder,
.input::placeholder {
  color: #7a9bbb !important;
}

/* Contact aside */
.contact-aside p {
  color: var(--ink-soft) !important;
}

/* Product card (already light shell) */
.product-shell {
  color: var(--ink);
}
.product-card__title { color: var(--ink) !important; }
.product-card__desc { color: var(--ink-soft) !important; }

/* Privacy / error pages if using cards */
.privacy-content,
.privacy-card,
.error-box,
.error-card {
  color: var(--ink) !important;
}
.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.privacy-content p,
.privacy-content li {
  color: var(--ink) !important;
}
.privacy-content p,
.privacy-content li {
  color: var(--ink-soft) !important;
}

/* Keep modal overlays readable: if still dark, force light text */
.pay-modal__card {
  color: #f5faff !important;
}
.pay-modal__card h2,
.pay-modal__card h3,
.pay-modal__card strong {
  color: #fff !important;
}
.pay-modal__card p,
.pay-modal__card span,
.pay-modal__card small,
.pay-modal__card label {
  color: #d0e7ff !important;
}

/* Netflix verify page panels — dark form keeps light text */
.nf-sec-label { color: #ffe566 !important; }
.nf-email-inp {
  background: #fff !important;
  color: var(--ink) !important;
  border: 2px solid #9ed2ff !important;
}
.nf-input-hint { color: #cfe6ff !important; }
.nf-btn-ghost {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: #7ec8ff !important;
}
.nf-btn-ghost:hover {
  background: #eaf5ff !important;
  border-color: #2eb0ff !important;
}
.nf-retry-box,
.nf-loading-box {
  background: #f3f9ff !important;
  border-color: #9ed2ff !important;
  color: var(--ink) !important;
}
.nf-warn-box {
  background: rgba(255, 212, 0, 0.16) !important;
  border-color: rgba(255, 212, 0, 0.45) !important;
  color: #fff8d6 !important;
}
.nf-acc-item {
  background: #fff !important;
  border-color: #9ed2ff !important;
  color: var(--ink) !important;
}

/* 404 / 500 */
body .error-page h1,
body .error-page p {
  color: #fff !important;
}

/* Buttons inside light panels: yellow stays dark text */
.home-stat-card .btn--primary,
.card-package .btn--primary,
.card-promo .btn--primary,
.promo-row .btn--primary,
.product-card .btn--primary,
.cart-card .btn--primary,
.spin-panel .btn--primary,
.form-card .btn--primary,
.ref-card .btn--primary,
.ref-info-card .btn--primary,
.admin-spin__form .btn--primary,
.admin-dashboard__card .btn--primary,
.admin-login-card .btn--primary,
.admin-login-v2__card .btn--primary,
.review-item .btn--primary,
.toast .btn--primary,
.spin-prize-modal__card .btn--primary {
  color: #0a3a7a !important;
}

/* Old-price muted but visible */
.old-price,
.card-promo__body .old-price {
  color: #7a9bbb !important;
}

/* Home recent head inside white card */
.home-recent__head h2 {
  color: var(--ink) !important;
}

/* Ensure section titles ON blue background remain white */
.content > .section-block > h2,
.section-block > h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(8, 50, 140, 0.35);
}

/* Exception: h2 inside white panels stay ink */
.home-recent h2,
.cart-card h2,
.spin-panel h2,
.form-card h2,
.ref-card h3,
.ref-info-card h3,
.admin-dashboard__card h2,
.admin-spin__form-title {
  color: var(--ink) !important;
  text-shadow: none !important;
}


/* --- Final contrast pass: spin/cart/privacy/netflix --- */

/* Spin header is inside white spin-panel */
.spin-panel .spin-header__title,
.spin-panel .spin-header__title span {
  color: #0d6ef5 !important;
  text-shadow: none !important;
}
.spin-panel .spin-header__subtitle {
  color: var(--ink-soft) !important;
}
.spin-panel #spin-result {
  color: var(--ink) !important;
  font-weight: 700;
}

/* Ghost buttons on white cards */
.cart-card .btn--ghost,
.spin-panel .btn--ghost,
.form-card .btn--ghost,
.ref-card .btn--ghost,
.admin-dashboard__card .btn--ghost,
.cart-card .btn.btn--ghost {
  border: 2px solid #7ec8ff !important;
  color: #0d3a72 !important;
  background: #eaf5ff !important;
}
.cart-card .btn--ghost:hover,
.spin-panel .btn--ghost:hover,
.form-card .btn--ghost:hover,
.ref-card .btn--ghost:hover,
.admin-dashboard__card .btn--ghost:hover {
  border-color: #ffd000 !important;
  color: #0a3a7a !important;
  background: #fff6cc !important;
}

/* Section descriptions sitting on blue background */
.section-block > p {
  color: #e5f3ff !important;
}

/* Privacy page: title on blue, body in white card */
.cart-card h3,
.cart-card p,
.cart-card a {
  color: var(--ink) !important;
}
.cart-card a {
  color: #0d6ef5 !important;
  text-decoration: underline;
}

/* Netflix verify: help text was forced white for dark theme */
.netflix-household-card > .netflix-household-card__header b[style*="color:#fff"],
.nf-modal-box b[style*="color:#fff"],
.nf-acc-item b[style*="color:#fff"] {
  color: #0d3a72 !important;
}
/* Keep emphasis readable on the dark form panel */
.native-nf-form .nf-warn-box b,
.native-nf-form b[style*="color:#fff"],
.native-nf-form b[style*="color:#ffe566"] {
  color: inherit !important;
}
.native-nf-form .nf-warn-box b[style*="color:#ffe566"] {
  color: #ffe566 !important;
}
.native-nf-form .nf-warn-box b[style*="color:#ffffff"] {
  color: #ffffff !important;
}

/* Admin netflix light-gray helper text on white */
.admin-dashboard__card p[style*="color:#aaa"],
.admin-shell__main p[style*="color:#aaa"] {
  color: var(--ink-soft) !important;
}

/* Wheel labels must stay readable on colored slices */
.wheel__label {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.wheel__hub {
  color: #fff !important;
}

/* Pay modal steps / labels */
.pay-modal__title { color: #fff !important; }
.pay-modal__subtitle { color: #d0e7ff !important; }
.pay-step { color: #d0e7ff !important; }
.pay-step.is-active { color: #ffe566 !important; }

/* Lang current name on blue sidebar */
.lang-current__name,
.lang-current__chevron {
  color: #fff !important;
}
.lang-current .lang-btn__sub,
.lang-current small {
  color: #d0e7ff !important;
}

/* Menu toggle icon */
.menu-toggle { color: #fff !important; }

/* Ensure package category intros on blue are light */
.section-block > p[style] {
  color: #e5f3ff !important;
}


/* Referral glass cards + generic .btn on light panels */
.glass-card,
.ref-card.glass-card {
  background: #ffffff !important;
  border: 3px solid var(--card-border) !important;
  color: var(--ink) !important;
}
.ref-card .btn:not(.btn--ghost):not(.btn-secondary),
.ref-form .btn {
  background: linear-gradient(180deg, #ffe566 0%, #ffd000 100%) !important;
  color: #0a3a7a !important;
  border-radius: 999px !important;
  font-weight: 800;
  box-shadow: 0 5px 0 #e0b800, 0 10px 22px rgba(255, 200, 0, 0.35) !important;
  border: none !important;
}
.ref-form .field span {
  color: var(--ink-soft) !important;
}
.ref-form .field input {
  color: var(--ink) !important;
  background: #fff !important;
  border: 2px solid #9ed2ff !important;
}
.ref-result {
  color: var(--ink) !important;
}
.ref-result.is-error { color: #c62828 !important; }
.ref-result.is-ok { color: #1b7a3d !important; }

/* Review lightbox stays dark — keep light text */
.review-lightbox__card,
.review-lightbox__title {
  color: #f2f8ff !important;
}
.review-lightbox__close {
  color: #fff !important;
}


/* =========================================================
   Page polish: Netflix Verify + Referral (high contrast)
   ========================================================= */

/* --- Netflix Household card --- */
.netflix-household-card {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-top: 4px solid #1480ef !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 32px rgba(10, 80, 200, 0.2) !important;
  color: #0d3a72 !important;
}

.netflix-household-card__header {
  border-bottom: 1px solid #d6eaff !important;
}

.netflix-household-card__header h3 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #0d3a72 !important;
  color: #0d3a72 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

.netflix-household-card__sub {
  color: #3d628f !important;
  font-weight: 500 !important;
}

.netflix-household-card__icon {
  background: linear-gradient(145deg, #4db8ff, #1480ef) !important;
  box-shadow: 0 4px 0 #0d5bc4, 0 8px 18px rgba(20, 128, 239, 0.35) !important;
  color: #fff !important;
}

.netflix-household-badge {
  background: #eaf5ff !important;
  border: 2px solid #7ec8ff !important;
  color: #0d3a72 !important;
  box-shadow: none !important;
}

.netflix-household-badge:hover {
  background: #fff6cc !important;
  border-color: #ffd000 !important;
  color: #0a3a7a !important;
}

.netflix-household-card__note {
  background: #eaf5ff !important;
  border: 2px solid #9ed2ff !important;
  border-left: 4px solid #1480ef !important;
  color: #0d3a72 !important;
}

/* Netflix form panel */
.native-nf-form {
  background: linear-gradient(165deg, #123456 0%, #0a1f3a 100%) !important;
  border: 2px solid #5eb6ff !important;
  border-radius: 18px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.nf-sec-label {
  color: #ffe566 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

.nf-sec-label i {
  color: #ffe566 !important;
}

.nf-input-ico {
  color: #7ec8ff !important;
}

.nf-input-wrap:focus-within .nf-input-ico {
  color: #ffe566 !important;
}

.nf-email-inp {
  background: #ffffff !important;
  color: #0d3a72 !important;
  border: 2px solid #9ed2ff !important;
  font-weight: 600 !important;
}

.nf-email-inp::placeholder {
  color: #7a9bbb !important;
}

.nf-email-inp:focus {
  border-color: #2eb0ff !important;
  background: #f7fbff !important;
  box-shadow: 0 0 0 4px rgba(46, 176, 255, 0.25) !important;
}

.nf-input-hint {
  color: #cfe6ff !important;
  font-weight: 500 !important;
}

.nf-input-hint i {
  color: #ffe566 !important;
}

.nf-btn-primary {
  background: linear-gradient(180deg, #ffe566 0%, #ffd000 100%) !important;
  color: #0a3a7a !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 0 #e0b800, 0 10px 22px rgba(255, 200, 0, 0.4) !important;
}

.nf-btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff0a0 0%, #ffdc40 100%) !important;
  box-shadow: 0 7px 0 #e0b800, 0 14px 28px rgba(255, 200, 0, 0.5) !important;
}

.nf-btn-ghost {
  background: #ffffff !important;
  color: #0d3a72 !important;
  border: 2px solid #7ec8ff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.nf-btn-ghost:hover {
  background: #eaf5ff !important;
  border-color: #2eb0ff !important;
  color: #0a3a7a !important;
}

.nf-warn-box {
  background: rgba(255, 212, 0, 0.16) !important;
  border: 1px solid rgba(255, 212, 0, 0.45) !important;
  color: #fff8d6 !important;
  font-weight: 600 !important;
}

.nf-warn-box i {
  color: #ffe566 !important;
}

.nf-warn-box b {
  color: #ffffff !important;
}

/* Accordion FAQ on Netflix page */
.nf-accordion .nf-acc-item,
.nf-acc-item {
  background: #ffffff !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 14px !important;
  color: #0d3a72 !important;
}

.nf-acc-head {
  background: #f3f9ff !important;
  color: #0d3a72 !important;
}

.nf-acc-head:hover {
  background: #eaf5ff !important;
}

.nf-acc-title {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}

.nf-acc-sub {
  color: #3d628f !important;
}

.nf-acc-arrow {
  background: #eaf5ff !important;
  color: #1480ef !important;
  border: 1px solid #9ed2ff !important;
}

.nf-acc-item.open .nf-acc-arrow {
  background: #1480ef !important;
  color: #fff !important;
}

.nf-acc-body,
.nf-acc-item.open .nf-acc-body {
  background: #ffffff !important;
  border-top: 1px solid #d6eaff !important;
}

.nf-acc-body-inner,
.nf-step-list li {
  color: #0d3a72 !important;
}

.nf-step-list li {
  font-weight: 500 !important;
}

.nf-step-list li::before {
  background: #1480ef !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.nf-acc-body-inner b,
.nf-step-list b {
  color: #0a3a7a !important;
  font-weight: 800 !important;
}

/* --- Referral page --- */
.ref-card,
.ref-info-card,
.ref-card.glass-card {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(10, 80, 200, 0.18) !important;
  color: #0d3a72 !important;
}

.ref-card__eyebrow {
  background: #eaf5ff !important;
  border: 2px solid #7ec8ff !important;
  color: #0d6ef5 !important;
}

.ref-card__desc,
.ref-card p,
.ref-info-card p {
  color: #3d628f !important;
}

.ref-card h3,
.ref-info-card h3 {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}

.ref-form .field span {
  color: #3d628f !important;
  font-weight: 700 !important;
}

.ref-form .field input {
  background: #ffffff !important;
  color: #0d3a72 !important;
  border: 2px solid #9ed2ff !important;
  font-weight: 600 !important;
}

.ref-form .field input::placeholder {
  color: #7a9bbb !important;
}

.ref-highlight {
  background: #eaf5ff !important;
  border: 2px solid #7ec8ff !important;
  color: #0d3a72 !important;
  font-weight: 600 !important;
}

.ref-highlight strong {
  color: #0a3a7a !important;
  font-weight: 800 !important;
}

.ref-howto__step {
  background: #f7fbff !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 16px rgba(20, 100, 200, 0.1) !important;
}

.ref-howto__badge {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  border: none !important;
  color: #0a3a7a !important;
  font-weight: 800 !important;
}

.ref-howto__step h3 {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}

.ref-howto__step p {
  color: #3d628f !important;
  font-weight: 500 !important;
}

.ref-reward {
  background: #ffffff !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 16px !important;
}

.ref-reward__head {
  color: #0d3a72 !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  -webkit-text-fill-color: #0d3a72 !important;
}

.ref-reward__item {
  background: #f3f9ff !important;
  border: 2px solid #cfe6ff !important;
  border-radius: 12px !important;
}

.ref-reward__item span {
  color: #3d628f !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
}

.ref-reward__item strong {
  color: #0d6ef5 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
}

.ref-conditions {
  background: #fff8e1 !important;
  border: 2px solid #ffd54f !important;
  color: #6a5200 !important;
  font-weight: 600 !important;
}

.ref-conditions strong,
.ref-conditions b {
  color: #5a4500 !important;
}

.ref-create-box,
.ref-status-box {
  background: #f7fbff !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 14px !important;
  color: #0d3a72 !important;
}

.ref-create-box__label,
.ref-status-box__label,
.ref-create-box__hint,
.ref-status-box__owner {
  color: #3d628f !important;
}

.ref-create-box__value code,
.ref-status-box__code code {
  color: #0d6ef5 !important;
  background: #eaf5ff !important;
  font-weight: 800 !important;
}

.ref-status-box__stat small {
  color: #3d628f !important;
}

.ref-status-box__stat b,
.ref-status-box__reward strong {
  color: #0d3a72 !important;
}

.section-block > h2 {
  color: #ffffff !important;
}


/* Extra: keep Netflix form dark + readable even inside white card */
.netflix-household-card .native-nf-form {
  background: linear-gradient(165deg, #123456 0%, #0a1f3a 100%) !important;
  color: #e8f4ff !important;
  border: 2px solid #5eb6ff !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}
.netflix-household-card .native-nf-form .nf-sec-label,
.netflix-household-card .native-nf-form .nf-sec-label i {
  color: #ffe566 !important;
}
.netflix-household-card .native-nf-form .nf-input-hint {
  color: #cfe6ff !important;
}
.netflix-household-card .nf-btn-primary {
  color: #0a3a7a !important;
}
.netflix-household-card .nf-btn-ghost {
  color: #0d3a72 !important;
}
.ref-howto__badge {
  color: #0a3a7a !important;
}
.ref-reward__item span {
  color: #3d628f !important;
}
.ref-reward__item strong {
  color: #0d6ef5 !important;
}
.ref-conditions,
.ref-conditions strong {
  color: #5a4500 !important;
}
/* =========================================================
   Admin backend — Arther theme + high contrast (all pages)
   Covers: login, dashboard, spin, referrals, netflix, members
   ========================================================= */

/* Login page atmosphere */
.admin-login-v2 {
  background:
    radial-gradient(circle at 50% 18%, #5ec8ff 0%, transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(255, 220, 80, 0.2), transparent 36%),
    linear-gradient(165deg, #3aa0ff 0%, #0c5adb 45%, #0a4bc4 100%) !important;
}
.admin-login-v2__card {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-top: 4px solid #1480ef !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 40px rgba(10, 80, 200, 0.28) !important;
  color: #0d3a72 !important;
}
.admin-login-v2__card h1,
.admin-login-v2__card label,
.admin-login-v2__remember,
.admin-login-v2__remember span {
  color: #0d3a72 !important;
}
.admin-login-v2__card p {
  color: #3d628f !important;
}
.admin-login-v2__msg {
  color: #0d6ef5 !important;
  font-weight: 600 !important;
}
.admin-login-v2__card .btn--primary {
  color: #0a3a7a !important;
}

/* Gate / modal cards */
.admin-login-card,
.admin-action-modal__card {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-top: 4px solid #1480ef !important;
  color: #0d3a72 !important;
}
.admin-login-card__title,
.admin-action-modal__title {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}
.admin-login-card__subtitle,
.admin-action-modal__msg,
.admin-login-card label {
  color: #3d628f !important;
}
.admin-action-modal__close {
  background: #eaf5ff !important;
  border: 2px solid #9ed2ff !important;
  color: #0d3a72 !important;
}
.admin-action-modal__icon {
  color: #1480ef !important;
}

/* Dashboard hero — keep rich blue, white text */
.admin-dashboard-hero {
  background:
    radial-gradient(circle at 92% -18%, rgba(94, 200, 255, 0.45), transparent 45%),
    linear-gradient(155deg, #1a72f0 0%, #0c5adb 55%, #0846b0 100%) !important;
  border: 3px solid #7ec8ff !important;
  box-shadow: 0 14px 32px rgba(10, 80, 200, 0.28) !important;
}
.admin-dashboard-hero h1,
.admin-dashboard-hero__copy h1 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 10px rgba(8, 50, 140, 0.35);
}
.admin-dashboard-hero p,
.admin-dashboard-hero__eyebrow {
  color: #e8f4ff !important;
}
.admin-dashboard-hero__chip {
  color: #0a3a7a !important;
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  border: none !important;
  font-weight: 800 !important;
}

/* KPI + feature cards on light */
.admin-dashboard-kpi,
.admin-dashboard__card,
.admin-dashboard__card--feature {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(10, 80, 200, 0.16) !important;
  color: #0d3a72 !important;
}
.admin-dashboard-kpi__label {
  color: #3d628f !important;
  font-weight: 600 !important;
}
.admin-dashboard-kpi__value {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}
.admin-dashboard-kpi__icon {
  background: #eaf5ff !important;
  border: 2px solid #9ed2ff !important;
  color: #1480ef !important;
}
.admin-dashboard-kpi--spin .admin-dashboard-kpi__icon {
  color: #c48a00 !important;
  background: #fff8e1 !important;
  border-color: #ffd54f !important;
}
.admin-dashboard-kpi--pending .admin-dashboard-kpi__icon {
  color: #c45c00 !important;
  background: #fff3e0 !important;
  border-color: #ffb74d !important;
}
.admin-dashboard-kpi--approved .admin-dashboard-kpi__icon {
  color: #1b7a3d !important;
  background: #e8f8ee !important;
  border-color: #81c784 !important;
}
.admin-dashboard__card h2,
.admin-dashboard__card--feature h2 {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}
.admin-dashboard__card p,
.admin-dashboard__card--feature p,
.admin-dashboard__empty {
  color: #3d628f !important;
}
.admin-dashboard__pending-row {
  background: #f3f9ff !important;
  border: 2px solid #cfe6ff !important;
  color: #0d3a72 !important;
  box-shadow: none !important;
}
.admin-dashboard__pending-link {
  color: #0d6ef5 !important;
  font-weight: 700 !important;
}

/* Spin / shared admin panels */
.admin-spin__hero {
  background:
    radial-gradient(circle at 90% -20%, rgba(94, 200, 255, 0.4), transparent 45%),
    linear-gradient(155deg, #1a72f0 0%, #0c5adb 60%, #0846b0 100%) !important;
  border: 3px solid #7ec8ff !important;
  border-radius: 18px !important;
  color: #fff !important;
}
.admin-spin__title {
  color: #ffffff !important;
  font-weight: 800 !important;
}
.admin-spin__subtitle {
  color: #e8f4ff !important;
}
.admin-spin__links a {
  color: #0a3a7a !important;
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  border: none !important;
  font-weight: 800 !important;
}

.admin-spin__stat,
.admin-spin__form,
.admin-spin__code-card,
.admin-spin__table-wrap {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-radius: 16px !important;
  color: #0d3a72 !important;
  box-shadow: 0 8px 22px rgba(10, 80, 200, 0.14) !important;
}
.admin-spin__stat-label,
.admin-spin__form label,
.admin-spin__meta-label,
.admin-spin__meta-sub,
.admin-spin__subtitle {
  color: #3d628f !important;
  font-weight: 600 !important;
}
.admin-spin__stat-value,
.admin-spin__form-title,
.admin-spin__meta-value,
.admin-spin__code {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}
.admin-spin__code {
  color: #0d6ef5 !important;
}
.admin-spin__badge {
  color: #0a3a7a !important;
  background: #fff6cc !important;
  border: 2px solid #ffd000 !important;
}
.admin-spin__card-head {
  border-bottom: 1px solid #d6eaff !important;
}
.admin-spin__meta {
  background: #f3f9ff !important;
  border: 2px solid #cfe6ff !important;
}
.admin-spin__btn-soft,
.admin-spin .btn:not(.btn--primary):not(.admin-spin__mini-btn):not(.member-btn--accent) {
  background: #eaf5ff !important;
  border: 2px solid #7ec8ff !important;
  color: #0d3a72 !important;
}
.admin-spin .btn--primary,
.admin-spin__form .btn--primary,
.member-page .btn--primary {
  color: #0a3a7a !important;
}
.admin-spin__filter-btn {
  background: #f3f9ff !important;
  border: 2px solid #9ed2ff !important;
  color: #0d3a72 !important;
}
.admin-spin__filter-btn.is-active {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  color: #0a3a7a !important;
  border-color: #e0b800 !important;
}
.admin-spin__cards-empty,
.admin-spin__msg {
  color: #3d628f !important;
}
.admin-spin__msg.is-ok { color: #1b7a3d !important; }
.admin-spin__msg.is-error { color: #c62828 !important; }
.admin-spin__search,
.admin-spin__sort,
.admin-spin__form .input,
.admin-spin__form input,
.admin-spin__form select,
.member-page .input,
.ref-admin-page .input {
  background: #ffffff !important;
  color: #0d3a72 !important;
  border: 2px solid #9ed2ff !important;
  font-weight: 600 !important;
}

/* Members */
.member-page__create,
.member-page .admin-spin__form {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
}
.member-page__tip {
  background: #eaf5ff !important;
  border: 2px solid #9ed2ff !important;
  color: #0d3a72 !important;
}
.member-page__tip strong {
  color: #0a3a7a !important;
  font-weight: 800 !important;
}
.member-page__list-head h2,
.member-page__empty {
  color: #0d3a72 !important;
}
.member-page__empty {
  color: #3d628f !important;
}
.member-card {
  background: #ffffff !important;
  border: 2px solid #9ed2ff !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(10, 80, 200, 0.1) !important;
  color: #0d3a72 !important;
}
.member-card__title {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}
.member-card__row span {
  color: #3d628f !important;
  font-weight: 600 !important;
}
.member-card__row strong {
  color: #0d3a72 !important;
}
.member-card__row code {
  background: #eaf5ff !important;
  color: #0d6ef5 !important;
  border: 1px solid #cfe6ff;
  font-weight: 700 !important;
}
.member-badge.is-active {
  color: #1b7a3d !important;
  background: #e8f8ee !important;
  border-color: #81c784 !important;
}
.member-badge.is-inactive {
  color: #8a4b00 !important;
  background: #fff3e0 !important;
  border-color: #ffb74d !important;
}
.member-btn--muted {
  background: #eaf5ff !important;
  border: 2px solid #7ec8ff !important;
  color: #0d3a72 !important;
}
.member-btn--accent {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  border: none !important;
  color: #0a3a7a !important;
  font-weight: 800 !important;
}

/* Referral admin */
.ref-admin-toolbar {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(10, 80, 200, 0.14) !important;
}
.ref-admin-toolbar__actions .btn.is-active {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  border-color: #e0b800 !important;
  color: #0a3a7a !important;
  font-weight: 800 !important;
}
.ref-table-wrap {
  background: #ffffff !important;
  border: 3px solid #5eb6ff !important;
  border-radius: 14px !important;
}
.ref-table {
  background: #ffffff !important;
}
.ref-table thead th {
  background: #eaf5ff !important;
  color: #0d3a72 !important;
  border-bottom: 2px solid #9ed2ff !important;
  font-weight: 800 !important;
}
.ref-table tbody td {
  color: #0d3a72 !important;
  border-bottom: 1px solid #d6eaff !important;
  background: #ffffff !important;
}
.ref-table tbody tr:hover td {
  background: #f3f9ff !important;
}
.ref-code-card,
.ref-matrix__owner,
.ref-matrix__entry {
  background: #ffffff !important;
  border: 2px solid #9ed2ff !important;
  color: #0d3a72 !important;
  box-shadow: 0 6px 16px rgba(10, 80, 200, 0.1) !important;
}
.ref-matrix__row {
  background: #f7fbff !important;
  border: 2px solid #9ed2ff !important;
}
.ref-code-card__head strong,
.ref-matrix__owner-code,
.ref-matrix__entry-contact,
.ref-matrix__entry-main,
.ref-code-card__stats b {
  color: #0d3a72 !important;
  font-weight: 800 !important;
}
.ref-code-card__head span,
.ref-matrix__owner-name,
.ref-matrix__entry-meta,
.ref-code-card__stats small {
  color: #3d628f !important;
  font-weight: 600 !important;
}
.ref-code-card__stats div {
  background: #f3f9ff !important;
  border: 2px solid #cfe6ff !important;
}
.ref-status-badge.is-pending {
  background: #fff8e1 !important;
  border-color: #ffd54f !important;
  color: #8a4b00 !important;
}
.ref-status-badge.is-approved {
  background: #e8f8ee !important;
  border-color: #81c784 !important;
  color: #1b7a3d !important;
}

/* Logout stays danger-clear but readable */
.admin-nav-logout {
  background: linear-gradient(180deg, #ff6b7a, #e5394a) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 0 #b71c2a, 0 8px 16px rgba(200, 40, 60, 0.35) !important;
}
.admin-nav-logout:hover {
  filter: brightness(1.05);
}

/* Topbar badge */
.badge-netflix {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  color: #0a3a7a !important;
  border: none !important;
  font-weight: 800 !important;
}

/* Ensure admin content titles on blue page bg stay white */
.content > .admin-spin > h1,
.content > .admin-spin > h2 {
  color: #ffffff !important;
}

/* Admin danger buttons stay red + readable */
.admin-spin .btn--danger,
.member-page .btn--danger,
.ref-admin-page .btn--danger,
.admin-dashboard .btn--danger {
  background: #e5394a !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
}
.admin-dashboard__pending-row,
.admin-dashboard__pending-row strong,
.admin-dashboard__pending-row div {
  color: #0d3a72 !important;
}
.topbar__title {
  color: #ffffff !important;
}
.admin-spin__mini-btn {
  background: #1480ef !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
}
/* Soft buttons should not override primary/danger */
.admin-spin .btn.btn--primary {
  background: linear-gradient(180deg, #ffe566, #ffd000) !important;
  color: #0a3a7a !important;
  border: none !important;
}

/* =========================================================
   Admin h2 spacing — less cramped, clearer on white cards
   ========================================================= */

/* White list panels need inner breathing room */
.admin-spin__table-wrap,
.admin-spin__table-wrap.member-page__list-wrap {
  padding: 1.15rem 1.2rem 1.25rem !important;
}

.member-page__list-head.section-block,
.admin-spin .section-block.member-page__list-head {
  margin: 0 0 1rem !important;
  padding: 0.15rem 0 0.85rem !important;
  border-bottom: 1px solid #d6eaff;
}

/* h2 inside admin white cards */
.admin-spin .section-block h2,
.member-page__list-head h2,
.admin-spin__table-wrap h2,
.admin-spin__form-title,
.admin-dashboard__card h2 {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0 0 0.35rem !important;
  padding: 0.15rem 0 0.1rem 0.1rem !important;
  color: #0d3a72 !important;
  font-weight: 800 !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
  letter-spacing: 0.01em;
}

.admin-spin .section-block h2::before,
.member-page__list-head h2::before,
.admin-spin__table-wrap .section-block h2::before {
  content: "" !important;
  width: 5px !important;
  height: 1.25em !important;
  flex-shrink: 0 !important;
  margin-right: 0.15rem !important;
  background: linear-gradient(180deg, #ffe566, #ff9f1a) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* Form section titles */
.admin-spin__form {
  padding: 1.2rem 1.25rem !important;
}
.admin-spin__form-head {
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid #d6eaff;
}
.admin-spin__form-title {
  gap: 0.65rem !important;
}
.admin-spin__form-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.15em;
  margin-right: 0.15rem;
  vertical-align: -0.15em;
  background: linear-gradient(180deg, #ffe566, #ff9f1a);
  border-radius: 4px;
}

/* Standalone section titles on blue page background (e.g. spin list) */
.admin-spin > .section-block {
  margin: 1.25rem 0 0.85rem !important;
  padding: 0.25rem 0.15rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.admin-spin > .section-block > h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(8, 50, 140, 0.3) !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  padding: 0.2rem 0 !important;
}
.admin-spin > .section-block > h2::before {
  width: 5px !important;
  height: 1.25em !important;
  box-shadow: none !important;
}

/* Dashboard card titles */
.admin-dashboard__card {
  padding: 1.15rem 1.2rem !important;
}
.admin-dashboard__card h2 {
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
}
.admin-dashboard__card h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.1em;
  margin-right: 0.55rem;
  vertical-align: -0.1em;
  background: linear-gradient(180deg, #ffe566, #ff9f1a);
  border-radius: 4px;
}

/* Search under list headings */
.member-page__list-head .member-search,
.member-page__list-head .input {
  margin-top: 0.35rem !important;
}

/* =========================================================
   Mobile sidebar nav — no color drop on tap/press
   ========================================================= */
.sidebar .nav a,
.sidebar .nav-submenu a {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  touch-action: manipulation;
}

/* Hover-only motion (avoid sticky hover wash on touch) */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    transform: translateX(3px);
  }
  .nav-submenu a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
}

@media (max-width: 900px) {
  .sidebar .nav a,
  .sidebar .nav a:link,
  .sidebar .nav a:visited {
    color: #eef7ff !important;
    background: transparent !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .sidebar .nav a:hover,
  .sidebar .nav a:focus,
  .sidebar .nav a:focus-visible,
  .sidebar .nav a:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.22) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .sidebar .nav a.is-active,
  .sidebar .nav a.is-active:hover,
  .sidebar .nav a.is-active:focus,
  .sidebar .nav a.is-active:active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(255, 212, 0, 0.42), rgba(255, 255, 255, 0.14)) !important;
    border-left: 4px solid #ffd000 !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
  }

  .sidebar .nav-submenu {
    border-left-color: rgba(255, 255, 255, 0.35) !important;
  }

  .sidebar .nav-submenu a,
  .sidebar .nav-submenu a:link,
  .sidebar .nav-submenu a:visited {
    color: #d7ecff !important;
    background: transparent !important;
    opacity: 1 !important;
  }

  .sidebar .nav-submenu a:hover,
  .sidebar .nav-submenu a:focus,
  .sidebar .nav-submenu a:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    opacity: 1 !important;
  }

  .sidebar .nav-submenu a.is-active,
  .sidebar .nav-submenu a.is-active:active {
    color: #ffffff !important;
    background: rgba(255, 212, 0, 0.28) !important;
    border-left: 3px solid #ffd000 !important;
    opacity: 1 !important;
  }

  .sidebar .nav-icon {
    opacity: 1 !important;
    color: inherit !important;
  }

  .sidebar .nav-hint {
    color: #ffe566 !important;
    opacity: 1 !important;
  }

  .sidebar .lang-current:active,
  .sidebar .lang-btn:active {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* =========================================================
   Mobile overlay stacking fix (sidebar above overlay)
   ========================================================= */
.app {
  z-index: auto !important;
}

@media (max-width: 900px) {
  .overlay,
  .overlay.is-visible {
    z-index: 180 !important;
  }
  .sidebar,
  .sidebar.is-open {
    z-index: 220 !important;
  }
  .overlay:not(.is-visible) {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  .page-loader:not(.is-visible) {
    pointer-events: none !important;
    visibility: hidden;
  }
}

/* Pay modal: spacing between referral field and primary button */
#pay-step-review .pay-referral-field,
#pay-step-review .field.pay-referral-field {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.1rem !important;
  width: 100%;
}
#pay-step-review .pay-referral-field span {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}
#pay-step-review #pay-next-btn {
  margin-top: 0.35rem !important;
}

/* =========================================================
   Restore page banners (must come AFTER theme polish)
   ========================================================= */
.page-hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body[data-title-en="Arther Shop | Home Streaming & Digital Services"] .page-hero,
body[data-package-page="1"] .page-hero {
  background-image: none !important;
  background-color: transparent !important;
}

body[data-title-en="Arther Shop | Home Streaming & Digital Services"] .page-hero__inner,
body[data-package-page="1"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.1.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 200px !important;
}

body[data-title-en="All Packages | Arther Shop"] .page-hero { background-image: none !important; }
body[data-title-en="All Packages | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.2.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

body[data-title-en="Lucky Spin | Arther Shop"] .page-hero { background-image: none !important; }
body[data-title-en="Lucky Spin | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.3.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

.page-hero--referral .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.4.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

body[data-title-en="Netflix Household Verification | Arther Shop"] .page-hero { background-image: none !important; }
body[data-title-en="Netflix Household Verification | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.5.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

body[data-title-en="Promotions | Arther Shop"] .page-hero { background-image: none !important; }
body[data-title-en="Promotions | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.6.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

body[data-title-en="Reviews | Arther Shop"] .page-hero { background-image: none !important; }
body[data-title-en="Reviews | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.7.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

body[data-title-en="Cart | Arther Shop"] .page-hero { background-image: none !important; }
body[data-title-en="Cart | Arther Shop"] .page-hero__inner {
  background-image: url("../assets/images/packages/banner-1.8.png") !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}

/* Default fallback banner (any other page-hero) */
.page-hero:not([class*="--"]) {
  background-image: url("../assets/images/packages/banner-1.1.png");
}

/* Home promotions images must stay visible */
.home-promo-item.home-promo-item--image {
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
.home-promo-item--image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.promo-row__media img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
}

/* Mobile banner sizing — edge-to-edge fill, balanced height */
@media (max-width: 900px) {
  .content {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .page-hero,
  body[data-title-en] .page-hero,
  body[data-package-page="1"] .page-hero,
  .page-hero--referral {
    position: relative !important;
    width: 100% !important;
    height: clamp(152px, 40vw, 176px) !important;
    min-height: 152px !important;
    max-height: 176px !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 22px rgba(8, 60, 160, 0.28) !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  /* Paint banner on the OUTER frame so it always reaches the edges */
  body[data-title-en="Arther Shop | Home Streaming & Digital Services"] .page-hero,
  body[data-package-page="1"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.1.png") !important;
  }
  body[data-title-en="All Packages | Arther Shop"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.2.png") !important;
  }
  body[data-title-en="Lucky Spin | Arther Shop"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.3.png") !important;
  }
  .page-hero--referral {
    background-image: url("../assets/images/packages/banner-1.4.png") !important;
  }
  body[data-title-en="Netflix Household Verification | Arther Shop"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.5.png") !important;
  }
  body[data-title-en="Promotions | Arther Shop"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.6.png") !important;
  }
  body[data-title-en="Reviews | Arther Shop"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.7.png") !important;
  }
  body[data-title-en="Cart | Arther Shop"] .page-hero {
    background-image: url("../assets/images/packages/banner-1.8.png") !important;
  }

  .page-hero__inner,
  body[data-title-en] .page-hero__inner,
  body[data-package-page="1"] .page-hero__inner,
  .page-hero--referral .page-hero__inner {
    position: absolute !important;
    inset: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: inherit !important;
    background-image: none !important; /* outer frame already has the image */
    background-size: cover !important;
    background-position: center center !important;
  }

  .page-hero__glow {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .page-hero,
  body[data-title-en] .page-hero,
  body[data-package-page="1"] .page-hero,
  .page-hero--referral {
    height: clamp(144px, 38vw, 168px) !important;
    min-height: 144px !important;
    max-height: 168px !important;
    border-radius: 12px !important;
  }
}
