/* ============================================================
   MEDIA69 DIGITAL STORE — style.css
   Production-Ready | Mobile-First | SEO Optimized
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06060f;
  --bg2: #080812;
  --surface: #0e0e1c;
  --surface2: #12121f;
  --surface3: #1a1a2e;
  --primary: #9069e9;
  --primary-dark: #7a3fd6;
  --primary-light: #b08fff;
  --cyan: #00f9ff;
  --cyan2: #00e5f0;
  --pink: #ff2d78;
  --gold: #f5c518;
  --red: #ff4444;
  --green: #00d4aa;
  --text: #f4f4fa;
  --text2: #c8c8d8;
  --text3: #7878a0;
  --rg: linear-gradient(90deg, #9933cc, #9369db, #da69d3, #00f9ff, #9069e9, magenta);
  --rg2: linear-gradient(90deg, #9069e9, #00f9ff);
  --rg3: linear-gradient(90deg, #9069e9, #da69d3, #00f9ff);
  --border: rgba(144, 105, 233, .28);
  --border-cyan: rgba(0, 249, 255, .3);
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .5);
  --shadow-p: 0 4px 24px rgba(144, 105, 233, .4);
  --glow-p: 0 0 20px rgba(144, 105, 233, .35);
  --glow-c: 0 0 20px rgba(0, 249, 255, .25);
  --t: .22s ease;
  --t-fast: .15s ease;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.6;
}

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

button {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

input, select, textarea {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

input:focus:not(:focus-visible), select:focus:not(:focus-visible), textarea:focus:not(:focus-visible) {
  outline: none;
}

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

h1, h2, h3 {
  font-family: 'oswald', sans-serif;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(144, 105, 233, .45);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes pgIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pgBack {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(1.6); }
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@keyframes ddIn {
  from { opacity: 0; transform: translateY(-10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes gradBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes checkoutPop {
  0% { transform: scale(.9); opacity: 0; }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tgPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, .45); }
  70% { box-shadow: 0 0 0 12px rgba(0, 139, 204, 0); }
}

@keyframes waTooltipIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== PAGE SYSTEM ===== */
.page {
  display: none;
  min-height: 100svh;
  animation: pgIn .28s cubic-bezier(.4, 0, .2, 1);
}

.page.active {
  display: block;
}

.page.back {
  animation: pgBack .28s cubic-bezier(.4, 0, .2, 1);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(6, 6, 15, .96), rgba(8, 8, 18, .93));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9069e9 20%, #00f9ff 50%, #ec3899 80%, transparent);
}

.header-inner {
  max-width: 639px;
  margin: 0 auto;
  padding: 0 12px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 10px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img-wrap {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(144, 105, 233, .9);
}

.logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #9069e9, #00f9ff, #da69d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 6px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: .9px;
  text-transform: uppercase;
  margin-top: .69px;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex;
  gap: 7px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(144, 105, 233, .1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  color: var(--text2);
  position: relative;
}

.icon-btn:hover {
  background: rgba(144, 105, 233, .22);
  color: var(--text);
  border-color: var(--primary);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.cs-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--bg);
}

/* ===== BACK HEADER ===== */
.back-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(6, 6, 15, .97), rgba(8, 8, 18, .98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.back-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9069e9 20%, #00f9ff 50%, #ec3899 80%, transparent);
}

.back-btn {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: rgba(144, 105, 233, .1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t);
}

.back-btn:hover {
  background: rgba(144, 105, 233, .22);
  border-color: var(--primary);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.back-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'oswald', sans-serif;
}

.header-action-right {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

/* ===== SEARCH ===== */
.search-wrap {
  padding: 8px 0 7px;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-container {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text3);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(120, 120, 160, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), opacity var(--t-fast);
  border: none;
  padding: 0;
}

.search-clear[hidden] {
  display: none;
}

.search-clear:hover {
  background: rgba(255, 68, 68, .3);
  color: var(--red);
}

.search-clear svg {
  width: 12px;
  height: 12px;
  color: var(--text3);
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--text);
  transition: box-shadow .25s, transform .25s;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.search-input::placeholder {
  color: var(--text3);
}

.search-input:focus {
  box-shadow: 0 0 18px rgba(0, 249, 255, .2);
  transform: translateY(-1px);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  z-index: 300;
  display: none;
  overflow-y: auto;
  max-height: 300px;
}

.search-results.show {
  display: block;
  animation: ddIn .2s ease;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--t-fast);
}

.search-item:hover {
  background: rgba(144, 105, 233, .09);
}

.search-item img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.si-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
}

.si-cat {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

/* ===== FILTER DROPDOWN ===== */
.filter-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: box-shadow var(--t), transform var(--t);
  color: var(--text);
  white-space: nowrap;
  position: relative;
}

.filter-btn:hover,
.filter-btn.active {
  box-shadow: 0 0 14px rgba(144, 105, 233, .4);
  transform: translateY(-1px);
}

.filter-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.filter-btn-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.filter-chevron {
  width: 14px;
  height: 14px;
  color: var(--text2);
  transition: transform var(--t);
  flex-shrink: 0;
}

.filter-btn[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

.filter-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--bg);
  display: none;
}

.filter-btn.filtered .filter-dot {
  display: block;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 225px;
  background: linear-gradient(160deg, var(--surface2), var(--surface3));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  z-index: 400;
  overflow: hidden;
  display: none;
}

.filter-dropdown.show {
  display: block;
  animation: ddIn .2s ease;
}

.filter-dd-header {
  padding: 10px 14px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .9px;
  border-bottom: 1px solid rgba(144, 105, 233, .12);
}

.filter-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 1px solid rgba(144, 105, 233, .06);
}

.filter-dd-item:last-child {
  border-bottom: none;
}

.filter-dd-item:hover {
  background: rgba(144, 105, 233, .1);
  color: var(--text);
}

.filter-dd-item.active {
  color: var(--cyan);
  background: rgba(0, 249, 255, .05);
}

.filter-dd-item.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
}

.filter-dd-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.filter-dd-wrap {
  position: relative;
}

/* ===== TAB SYSTEM ===== */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== MAIN CONTENT ===== */
.main {
  max-width: 640px;
  margin: 0 auto;
  padding: 6px 9px 100px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible;
  margin-bottom: 12px;
  aspect-ratio: 16/7;
  padding: 0;
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--r-lg) + 1.5px);
  background: linear-gradient(90deg, #9069e9, #00f9ff, #da69d3, #9069e9);
  background-size: 300% 300%;
  animation: gradBorder 3s ease infinite;
  z-index: 0;
}

.hero-slider-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-lg) - 1px);
  overflow: hidden;
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.77, 0, .175, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 5, 25, .88) 0%, rgba(5, 2, 15, .6) 60%, rgba(20, 10, 40, .35) 100%);
  pointer-events: none;
  z-index: 1;
}

.s1 { background-image: linear-gradient(90deg, #150e35 0%, #2d1b6b 50%, #1a0e3f 100%); }
.s2 { background-image: linear-gradient(90deg, #061828 0%, #0a3060 50%, #0e1f3f 100%); }
.s3 { background-image: linear-gradient(90deg, #1f0810 0%, #5c1029 50%, #2d0e1a 100%); }
.s4 { background-image: linear-gradient(90deg, #0a1a10 0%, #0d3020 50%, #0a2015 100%); }
.s5 { background-image: linear-gradient(90deg, #1a1000 0%, #3d2800 50%, #1a1500 100%); }

.slide-deco {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  opacity: .9;
  user-select: none;
  pointer-events: none;
  z-index: 3;
}

.slide-deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 130%;
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.slide-deco ~ .slide-content {
  max-width: calc(100% - 96px);
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, .69);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(144, 105, 233, .45);
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cyan);
}

.slide-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.slide-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, .69);
  margin-bottom: 9px;
  line-height: 1.2;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(144, 105, 233, .69), rgba(144, 105, 233, .39));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 249, 255, .3);
  border-radius: 99px;
  padding: 6px 15px;
  font-size: 12.6px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background .3s;
}

.slide-cta:hover {
  background: rgba(144, 105, 233, .96);
}

.slide-cta svg {
  width: 12px;
  height: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 9px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .3);
  transition: width .3s, background .3s;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.dot.active {
  width: 12px;
  background: var(--cyan);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .39);
  backdrop-filter: blur(9px);
  color: rgba(255, 255, 255, .81);
  cursor: pointer;
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(144, 105, 233, .6);
  color: #fff;
}

.slider-arrow svg {
  width: 12px;
  height: 12px;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* ===== FLASH / PROMO BUNDLING ===== */
.flash-wrap {
  padding: 7px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.flash-wrap::before {
  content: '';
  position: absolute;
  top: -36px;
  right: -36px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 0, 110, .1), transparent 70%);
  pointer-events: none;
}

.flash-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flash-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.flash-label span:first-child {
  animation: flash 1s linear infinite;
}


.timer {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tblock {
  background: linear-gradient(45deg, #9069e9, #060609);
  color: #fff;
  border-radius: 9px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  min-width: 33px;
  text-align: center;
  font-family: 'oswald', sans-serif;
}

.tsep {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  animation: flash 1s linear infinite;
}

.flash-scroll-wrap {
  overflow-x: auto;
  padding-bottom: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(144, 105, 233, .9) transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.flash-scroll-wrap:active {
  cursor: grabbing;
}

.flash-scroll-wrap::-webkit-scrollbar {
  height: 1px;
}

.flash-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(144, 105, 233, .9);
  border-radius: 99px;
}

.flash-scroll {
  display: flex;
  gap: 9px;
  width: max-content;
}

.flash-card {
  flex-shrink: 0;
  width: 269px;
  border: 1px solid transparent;
  background-image: linear-gradient(#111118, #0a0a18), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform .2s;
  position: relative;
  padding: 1px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  -webkit-tap-highlight-color: transparent;
}

.flash-card:hover {
  transform: translateY(-3px);
}

.flash-img-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
}

.flash-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flash-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flash-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'oswald', sans-serif;
}

.flash-subtitle {
  font-size: 9px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 600;
  margin-top: 1px;
}

.flash-price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.flash-price {
  font-size: 12.9px;
  font-weight: 800;
  color: var(--text);
}

.flash-orig {
  font-size: 12px;
  color: var(--text3);
  text-decoration: line-through;
}

.flash-cta {
  display: inline-block;
  width: 93%;
  margin-top: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #9069e9, #050510);
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform .2s;
  border: none;
  font-family: 'oswald', sans-serif;
}

.flash-cta:hover {
  transform: scale(1.02);
}

.ribbon {
  font-size: .5rem;
  font-weight: 700;
  color: #fff;
  --f: .3em;
  --r: .9em;
  position: absolute;
  right: 3px;
  top: calc(-1 * var(--f));
  padding: .3em;
  border: solid #ff1293;
  border-width: 0 0 var(--r) calc(2 * var(--f));
  background: radial-gradient(69% 100% at bottom, #ff006e 99%, #ff1293 102%) 0 0 / calc(2 * var(--f)) var(--f) no-repeat border-box;
  background-color: #ff1293;
  border-radius: var(--f) var(--f) 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(50% + var(--f)) calc(100% - var(--r)), calc(2 * var(--f)) 100%, calc(2 * var(--f)) var(--f), 0 var(--f));
}

/* ===== SECTION HEADERS ===== */
.sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.sec-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.ic-purple { background: rgba(144, 105, 233, .18); }
.ic-green { background: rgba(0, 212, 170, .12); }
.ic-pink { background: rgba(255, 0, 110, .12); }
.ic-orange { background: rgba(255, 130, 0, .12); }
.ic-blue { background: rgba(59, 130, 246, .12); }

.see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  background: none;
  border: none;
  transition: opacity var(--t);
  font-family: 'oswald', sans-serif;
}

.see-all:hover {
  opacity: .7;
}

.see-all svg {
  width: 12px;
  height: 12px;
}

.tab-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  transition: color var(--t), border-color var(--t);
  font-family: 'oswald', sans-serif;
  white-space: nowrap;
}

.tab-back-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.tab-back-btn svg {
  width: 12px;
  height: 12px;
}

/* ===== PRODUCT GRID ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .22s;
  animation: fadeUp .33s ease both;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid transparent;
  background-image: linear-gradient(#090909, #0b0b17), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card:active {
  transform: scale(.97);
}

.game-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}

.game-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.game-card:hover .game-img-wrap img {
  transform: scale(1.02);
}

.badge-recomend {
  position: absolute;
  top: 3px;
  right: 9px;
  background: linear-gradient(180deg, #9069e9, #050510);
  color: #fff;
  font-size: 6px;
  font-weight: 700;
  border-radius: 3px;
  padding: 3px 6px;
  text-transform: uppercase;
  pointer-events: none;
}

.badge-new {
  position: absolute;
  top: 3px;
  right: 9px;
  background: linear-gradient(180deg, #00d4aa, #065c44);
  color: #fff;
  font-size: 6px;
  font-weight: 700;
  border-radius: 3px;
  padding: 3px 6px;
  text-transform: uppercase;
  pointer-events: none;
}

.badge-populer {
  position: absolute;
  top: 3px;
  right: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 6px;
  font-weight: 700;
  border-radius: 3px;
  padding: 3px 6px;
  text-transform: uppercase;
  pointer-events: none;
}

.share-btn {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f9ff;
  transition: color .2s, background .2s;
  padding: 0;
}

.share-btn:hover {
  color: var(--cyan);
  background: rgba(0, 249, 255, .15);
  border-color: rgba(0, 249, 255, .3);
}

.game-card-info {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  background: #090913;
}

.game-name {
  font-size: 10.9px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--cyan);
  font-family: 'oswald', sans-serif;
}

.game-desc-block {
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-desc-p1 {
  font-size: 8.1px;
  color: var(--text3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: .15px;
  font-weight: 500;
}

.game-desc-p2 {
  font-size: 8px;
  color: rgba(120, 120, 160, .7);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

.game-price-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.game-price {
  font-size: 10.6px;
  font-weight: 700;
  color: #f9f9f9;
}

.game-orig {
  font-size: 8.1px;
  color: var(--text3);
  text-decoration: line-through;
}

/* ===== AD CARD ===== */
.game-card--ad {
  cursor: default;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}

.game-card--ad::before {
  content: 'recomend';
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: .9px;
}

.game-img-wrap--ad {
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(144, 105, 233, .08), rgba(0, 249, 255, .06));
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  position: relative;
}

.ad-slot-container {
  width: 100%;
  min-height: 127px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-container:empty::after {
  content: '🔥';
  font-size: 39px;
  opacity: .3;
}

.game-name--ad {
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ad-price-label {
  font-size: 12px;
  color: #9069e9;
  letter-spacing: .5px;
}

.ad-visit-btn {
  width: 100%;
  margin-top: 9px;
  padding: 3px 0;
  border-radius: 9px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
  transition: transform .2s, box-shadow .2s;
}

.ad-visit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(144, 105, 233, .5);
}

/* ===== ABOUT CARD ===== */
.footer {
  text-align: center;
  margin-bottom: -51px;
  padding: 1rem;
  font-size: .699rem;
  color: var(--text3);
  opacity: .9;
  border-top: .69px solid rgba(144, 105, 233, .3);
}

/* BOARD CONTAINER */

.media69-board{
position:relative;
padding:21px 15px;
border-radius:12px;
background:#0f0f1a;
z-index:1;
}

/* BORDER PELANGI */

.media69-board::before{
content:"";
position:absolute;
inset:0;
padding:1px; /* ketebalan border */
border-radius:12px;

background:conic-gradient(
red,
orange,
yellow,
purple,
cyan,
blue,
violet,
magenta
);

-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);

-webkit-mask-composite:xor;
mask-composite:exclude;

pointer-events:none;
}

/* isi card */

.media69-board-inner{
background:linear-gradient(145deg,#0d0d18,#121224);
border-radius:12px;
padding:21px 15px;
}

/* TITLE FRAME */

.board-title-box{
text-align:center;
padding:9px 12px;
border:1px dashed rgba(150,150,255,.6);
border-radius:8px;
margin-bottom:18px;
background:rgba(255,255,255,.02);
}

/* TITLE */

.board-title{
font-size:15px;
font-weight:800;
letter-spacing:1px;
font-family:'oswald',sans-serif;
color:#ffffff;
}

/* SUBTITLE */

.board-sub{
font-size:12px;
color:#a7a7c7;
margin-top:3px;
}

/* FEATURE LIST */

.board-features{
display:flex;
flex-direction:column;
gap:12px;
}

/* ITEM */

.board-item{
display:flex;
align-items:flex-start;
gap:9px;
padding:9px;
border-left:3px solid #9069e9;
background:rgba(255,255,255,.03);
border-radius:9px;
}

/* ICON */


.board-icon{
width:36px;
height:36px;
border-radius:9px;

display:flex;
align-items:center;
justify-content:center;

font-size:18px;

background:linear-gradient(145deg,#151528,#1a1a34);
border:1px solid rgba(120,100,255,.35);

box-shadow:
0 3px 9px rgba(0,0,0,.6),
0 0 9px rgba(120,100,255,.25);

flex-shrink:0;
}
/* TITLE */

.board-item-title{
font-size:12px;
font-weight:700;
color:#ffffff;
margin-bottom:2px;
}

/* TEXT */

.board-item-text{
font-size:11px;
color:#a6a6c6;
line-height:1.2;
}
/* ===== PROTECTION SECTION ===== */
.protection-container {
  width: 96%;
  max-width: 100%;
  margin: 21px auto;
  background: linear-gradient(90deg, rgba(144, 105, 233, .09), rgba(0, 245, 255, .03));
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.protection {
  background: linear-gradient(3deg, #090909, #9069e9);
  padding: 9px;
  display: flex;
  align-items: center;
}

.protection-icon {
  width: 33px;
  height: 33px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 3px;
}

.protection-icon img {
  width: 21px;
  height: 21px;
  filter: invert(1);
}

.protection-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.protection-box {
  background-color: rgba(144, 105, 233, .09);
  border: 1px solid #9069e9;
  border-radius: 9px;
  margin: 9px 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  min-height: 39px;
}

.protect-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.protection-text {
  font-size: 12px;
  color: #ccc;
  flex-grow: 1;
  font-weight: 600;
  width: 100%;
}

.protect-brand-name {
  margin: 0;
  font-weight: 700;
  color: var(--primary-light);
  font-size: 12px;
}

.protect-brand-sub {
  margin: 0;
  font-size: 12px;
  color: var(--primary-light);
}

.checkout-anim-text {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: checkoutPop .3s cubic-bezier(.175, .885, .32, 1.275) both;
}

.checkout-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.checkout-msg {
  font-size: 9px;
  color: var(--text2);
  flex: 1;
  line-height: 1.2;
}

.checkout-msg strong {
  color: var(--cyan);
}

.checkout-time {
  font-size: 9px;
  color: var(--text3);
  flex-shrink: 0;
  white-space: nowrap;
}

.top-section {
  display: flex;
  justify-content: space-between;
  margin: 9px;
  align-items: center;
  margin-bottom: 9px;
}

.left-section {
  display: flex;
  align-items: center;
}

.left-section img {
  width: 33px;
  height: 33px;
  margin-right: 3px;
}

.right-section {
  display: flex;
  align-items: center;
}

.status-box {
  display: flex;
  align-items: center;
  background: linear-gradient(139deg, #4C5BA7, #DA64DB);
  color: white;
  padding: 3px 9px;
  border-radius: 6px 0 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.status-box img {
  width: 18px;
  height: 18px;
  filter: invert(100%) sepia(3%) saturate(0%) hue-rotate(274deg) brightness(106%) contrast(106%);
  margin-right: 6px;
}

.outline-box {
  display: flex;
  align-items: center;
  border: 1.2px solid #9069e9;
  border-radius: 0 6px 6px 0;
  padding: 3px 9px;
  color: var(--primary-light);
  font-size: .69rem;
  font-weight: 700;
}

/* ===== GLOBAL NAV ===== */
#globalNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: linear-gradient(to bottom, rgba(6, 6, 15, .97), rgba(6, 6, 15, .99));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 640px) {
  #globalNav {
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
  }
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 9px;
  gap: 3px;
  cursor: pointer;
  color: var(--text3);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t);
  position: relative;
  user-select: none;
  letter-spacing: .3px;
  -webkit-tap-highlight-color: transparent;
  font-family: 'oswald', sans-serif;
}

.nav-item.active {
  color: var(--cyan);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.nav-icon {
  width: 21px;
  height: 21px;
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 5px;
  border: 1px solid var(--bg);
  min-width: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== VIDEO69 NAV SPECIAL ===== */
.nav-item-video69 {
  position: relative;
}

.nav-icon-video69 {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 12px;
  background-image:
    linear-gradient(#121212, #090909),
    conic-gradient(#9933cc, #9369db, #da69d3, #00f9ff, #9069e9, magenta, #9933cc);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1px;
}

.nav-icon-video69 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* ===== PRODUCT DETAIL ===== */
.product-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}

.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .1) 0%, var(--bg) 100%);
}

.product-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px 22px;
}

.product-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(144, 105, 233, .18);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 7px;
  letter-spacing: .3px;
}

.product-title-lg {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: .4px;
  background: linear-gradient(90deg, #f4f4fa, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'oswald', sans-serif;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
}

.detail-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

/* ===== PI TABS ===== */
.pi-tabs {
  display: flex;
  margin: 20px 0 0;
  background: linear-gradient(90deg, #0a0a18, #0f0d20);
  border: 1px solid rgba(144, 105, 233, .25);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.pi-tab {
  flex: 1;
  padding: 9px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  border-radius: 9px;
  transition: color .25s, background .25s;
  letter-spacing: .1px;
  text-align: center;
  border: 1px solid transparent;
  font-family: 'oswald', sans-serif;
}

.pi-tab:hover {
  color: var(--text2);
  background: rgba(144, 105, 233, .08);
}

.pi-tab.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
}

.pi-content {
  display: none;
  padding-top: 16px;
}

.pi-content.active {
  display: block;
}

/* ===== INFO TABS CONTENT ===== */
.info-list {
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #0a0a18, #0e0c1c);
  border: 1px solid rgba(144, 105, 233, .2);
  border-radius: var(--r);
  overflow: hidden;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(144, 105, 233, .08);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row:nth-child(even) {
  background: rgba(144, 105, 233, .03);
}

.info-key {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}

.info-val {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--cyan);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  background: linear-gradient(90deg, #0a0a18, #0e0c1c);
  border: 1px solid rgba(144, 105, 233, .18);
  border-radius: var(--r);
  padding: 12px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.reviewer {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.review-stars {
  color: var(--gold);
  font-size: 12px;
}

.review-date {
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 5px;
}

.review-text {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.65;
}

.review-product {
  font-size: 10px;
  color: var(--text3);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.cara-video-wrap {
  margin-bottom: 14px;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  position: relative;
  border: 1px solid rgba(144, 105, 233, .25);
  display: flex;
  justify-content: center;
}

.cara-video-wrap video {
  width: auto;
  max-width: 100%;
  display: block;
  max-height: 75svh;
  object-fit: contain;
  outline: none;
  background: #000;
  aspect-ratio: 9/16;
}

.cara-video-wrap iframe {
  width: auto;
  aspect-ratio: 9/16;
  max-height: 75svh;
  border: none;
  display: block;
  margin: 0 auto;
}

/* ===== STICKY BUY BAR ===== */
.sticky-buy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px 12px;
  background: linear-gradient(to top, rgba(6, 6, 15, .98), rgba(6, 6, 15, .9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .sticky-buy {
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
  }
}

.buy-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-info {
  flex: 1;
}

.buy-label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.buy-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-light);
  font-family: 'oswald', sans-serif;
}

.buy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--r-lg);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform .2s;
  cursor: pointer;
  border: none;
  letter-spacing: .3px;
  white-space: nowrap;
  font-family: 'oswald', sans-serif;
}

.buy-btn:hover {
  transform: translateY(-1px);
}

.info-desc-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(144, 105, 233, .12);
}

.info-desc-block p {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 8px;
}

.info-desc-block p:last-child {
  margin-bottom: 0;
}

.info-desc-block p strong {
  color: var(--text);
  font-weight: 700;
}

.info-price-card {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(144, 105, 233, .1), rgba(0, 249, 255, .04));
  border: 1px solid rgba(144, 105, 233, .3);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ipc-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .6px;
  flex-basis: 100%;
}

.ipc-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.ipc-orig {
  font-size: 12px;
  color: var(--text3);
  text-decoration: line-through;
  margin-top: 2px;
}

.ipc-disc {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), #a0003e);
  padding: 3px 10px;
  border-radius: 99px;
  margin-left: auto;
}

/* ===== PAYMENT PAGE ===== */
.pay-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 140px;
}

.order-summary {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.os-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.os-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.os-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.os-game {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  font-family: 'oswald', sans-serif;
}

.os-denom {
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 2px;
}

.os-uid {
  font-size: 11px;
  color: var(--text3);
}

.price-rows {
  border-top: 1px solid rgba(144, 105, 233, .12);
  padding-top: 12px;
}

.pr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 5px 0;
}

.pr[hidden] {
  display: none;
}

.pr-label {
  color: var(--text2);
}

.pr-val {
  font-weight: 600;
  color: var(--text);
}

.pr.total {
  border-top: 1px solid rgba(144, 105, 233, .12);
  margin-top: 5px;
  padding-top: 10px;
}

.pr.total .pr-label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.pr.total .pr-val {
  color: var(--cyan);
  font-size: 16px;
  font-weight: 700;
}

.discount-row .pr-val {
  color: var(--green);
}

/* ===== FORM CARD ===== */
.form-card {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r-lg);
  padding: 18px;
  margin: 0 0 14px;
}

.form-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.form-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.input-group {
  margin-bottom: 12px;
}

.input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  display: block;
  letter-spacing: .2px;
}

.input-field {
  width: 100%;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface2), var(--surface2)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text);
  transition: box-shadow .25s, transform .25s;
}

.input-field:focus {
  box-shadow: 0 0 0 3px rgba(0, 249, 255, .15);
  transform: translateY(-1px);
}

.input-field::placeholder {
  color: var(--text3);
}

/* ===== PROMO ===== */
.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text);
  transition: border-color .2s;
}

.promo-input:focus {
  border-color: var(--primary);
}

.promo-input::placeholder {
  color: var(--text3);
}

.promo-btn {
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s;
  white-space: nowrap;
  font-family: 'oswald', sans-serif;
}

.promo-btn:hover {
  transform: scale(1.03);
}

.promo-success {
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 170, .08);
  border: 1px solid rgba(0, 212, 170, .25);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
}

.promo-success[hidden] {
  display: none;
}

.promo-success svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== PAYMENT METHODS ===== */
.pm-section {
  margin-bottom: 14px;
}

.pm-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.pm-section-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.pm-logo {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .06);
}

.pm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.pm-info {
  flex: 1;
  min-width: 0;
}

.pm-name {
  font-size: 12px;
  font-weight: 600;
}

.pm-desc {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

.pm-extra {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 2px;
}

.pm-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}

.pm-dd-option.selected .pm-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.pm-radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .2s;
}

.pm-dd-option.selected .pm-radio-dot {
  opacity: 1;
}

.pm-dropdown {
  position: relative;
  margin-bottom: 12px;
}

.pm-dd-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r);
  padding: 12px 14px;
  cursor: pointer;
  transition: box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}

.pm-dropdown.open .pm-dd-trigger {
  box-shadow: 0 0 0 1px var(--primary), 0 3px 18px rgba(144, 105, 233, .6);
}

.pm-dd-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pm-dd-placeholder-text {
  font-size: 12px;
  color: var(--text3);
}

.pm-dd-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text3);
  transition: transform .25s;
}

.pm-dd-arrow svg {
  width: 18px;
  height: 18px;
}

.pm-dd-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  z-index: 200;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1), opacity .2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

.pm-dropdown.open .pm-dd-list {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.pm-dd-group-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 10px 14px 4px;
  background: rgba(144, 105, 233, .06);
}

.pm-dd-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.pm-dd-option:last-child {
  border-bottom: none;
}

.pm-dd-option:hover {
  background: rgba(144, 105, 233, .1);
}

.pm-dd-option.selected {
  background: rgba(144, 105, 233, .09);
}

/* ===== PAYMENT INSTRUCTIONS ===== */
.pay-instructions {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r-lg);
  padding: 18px;
  margin: 14px 0;
  display: none;
}

.pay-instructions.show {
  display: block;
  animation: fadeUp .25s ease;
}

.pi-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pi-logo {
  font-size: 28px;
}

.pi-bank-logo {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pi-bank-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.pi-bank-name {
  font-size: 15px;
  font-weight: 700;
  font-family: 'oswald', sans-serif;
}

.pi-bank-type {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

.qris-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.qris-img {
  width: 196px;
  height: 196px;
  border-radius: var(--r);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(144, 105, 233, .6);
  cursor: zoom-in;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.qris-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(144, 105, 233, .6);
}

.qris-img img {
  width: 100%;
  flex: 1;
  object-fit: contain;
}

.qris-zoom-hint {
  width: 100%;
  background: linear-gradient(90deg, rgba(144, 105, 233, .9), rgba(0, 249, 255, .75));
  color: #fff;
  font-size: 10.2px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  letter-spacing: .3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.qris-note {
  font-size: 12.3px;
  color: var(--text3);
  text-align: center;
  line-height: 1.5;
}

/* QRIS Lightbox */
#qrisLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

#qrisLightbox.show {
  opacity: 1;
}

.qlb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
}

.qlb-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.qlb-img {
  max-width: min(90vw, 440px);
  max-height: min(90vh, 440px);
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}

.qlb-close {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.qlb-close:hover {
  background: rgba(255, 255, 255, .3);
}

.account-box {
  background: rgba(144, 105, 233, .06);
  border: 1px solid rgba(144, 105, 233, .2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.acc-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.acc-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.acc-number span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--text);
  font-family: 'oswald', sans-serif;
}

.acc-name {
  font-size: 11px;
  color: var(--text3);
}

.amount-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(144, 105, 233, .1), rgba(0, 249, 255, .04));
  border: 1px solid rgba(144, 105, 233, .25);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.amount-label {
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.amount-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  font-family: 'oswald', sans-serif;
}

.amount-note {
  font-size: 10px;
  color: var(--gold);
  margin-top: 2px;
}

.copy-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .2s;
  font-family: 'oswald', sans-serif;
}

.copy-btn:hover {
  transform: scale(1.04);
}

.pi-steps {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.9;
  border-top: 1px solid rgba(144, 105, 233, .12);
  padding-top: 12px;
}

.pi-steps strong {
  color: var(--cyan);
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  margin: 14px 0;
}

.upload-section[hidden] {
  display: none;
}

.upload-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: 'oswald', sans-serif;
}

.upload-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.upload-sub {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 12px;
}

.upload-area {
  border: 2px dashed rgba(144, 105, 233, .35);
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
  background: rgba(144, 105, 233, .04);
}

.upload-area:hover,
.upload-area.has-file {
  border-color: var(--primary);
  background: rgba(144, 105, 233, .08);
}

.upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 3px;
}

.upload-hint {
  font-size: 11px;
  color: var(--text3);
}

.upload-preview {
  width: 100%;
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  margin: 12px auto 0;
  border-radius: var(--r-sm);
  display: none;
  border: 1px solid var(--border);
}

.upload-preview.show {
  display: block;
}

.upload-filename {
  font-size: 11.5px;
  color: var(--green);
  margin-top: 8px;
  display: none;
  font-weight: 600;
}

.upload-filename.show {
  display: block;
}

.tg-progress {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.tg-progress.show {
  display: flex;
}

.tg-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 249, 255, .2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

/* ===== PAY BUTTON ===== */
.pay-btn {
  width: 100%;
  padding: 15px;
  margin: 16px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s;
  cursor: pointer;
  border: none;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pay-btn:disabled {
  background: var(--surface2);
  color: var(--text3);
  cursor: not-allowed;
}

.pay-btn svg {
  width: 16px;
  height: 16px;
}

.pay-notice {
  font-size: 9px;
  color: var(--text3);
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
}

.pay-notice strong {
  color: var(--text2);
}

/* ===== PROCESSING PAGE ===== */
.process-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 80svh;
  justify-content: center;
  gap: 10px;
}

.process-anim {
  font-size: 56px;
  margin-bottom: 14px;
  animation: floatUp 1.5s ease-in-out infinite;
}

.process-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.process-sub {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 300px;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 197, 24, .1);
  border: 1px solid rgba(245, 197, 24, .3);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.pending-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: livePulse 1s infinite;
}

.order-id-box {
  background: linear-gradient(90deg, rgba(144, 105, 233, .12), rgba(0, 249, 255, .06));
  border: 1px solid rgba(144, 105, 233, .35);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 18px 0;
  width: 100%;
  max-width: 340px;
}

.oid-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
}

.oid-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: .6px;
  font-family: 'oswald', sans-serif;
}

.success-detail {
  width: 100%;
  max-width: 360px;
  background: rgba(144, 105, 233, .06);
  border: 1px solid rgba(144, 105, 233, .2);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 20px;
}

.sd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(144, 105, 233, .07);
}

.sd-row:last-child {
  border-bottom: none;
}

.sd-key {
  color: var(--text3);
}

.sd-val {
  font-weight: 600;
  color: var(--text);
}

.action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

/* ===== ORDERS PAGE ===== */
.orders-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

.order-filter {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.order-filter::-webkit-scrollbar {
  display: none;
}

.of-btn {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(144, 105, 233, .08);
  color: var(--text3);
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  font-family: 'oswald', sans-serif;
}

.of-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r-lg);
  padding: 14px;
  animation: fadeUp .3s ease both;
}

.oi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.oi-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.oi-img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.oi-info {
  flex: 1;
  min-width: 0;
}

.oi-game {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  font-family: 'oswald', sans-serif;
}

.oi-denom {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.oi-date {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

.oi-id {
  font-size: 10px;
  color: var(--text3);
}

.oi-status {
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .3px;
  flex-shrink: 0;
}

.status-pending { background: rgba(245, 197, 24, .12); color: var(--gold); border: 1px solid rgba(245, 197, 24, .25); }
.status-success { background: rgba(0, 212, 170, .1); color: var(--green); border: 1px solid rgba(0, 212, 170, .25); }
.status-failed { background: rgba(255, 68, 68, .1); color: var(--red); border: 1px solid rgba(255, 68, 68, .25); }

.oi-price {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
  font-family: 'oswald', sans-serif;
}

.oi-actions {
  display: flex;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(144, 105, 233, .08);
}

.oi-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #128c7e, #075e54);
  color: #fff;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s;
  border: none;
  cursor: pointer;
  letter-spacing: .2px;
  font-family: 'oswald', sans-serif;
}

.oi-wa-btn:hover {
  transform: translateY(-1px);
}

.oi-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(144, 105, 233, .1);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  font-family: 'oswald', sans-serif;
}

.oi-copy-btn:hover {
  background: rgba(144, 105, 233, .22);
  border-color: var(--primary);
  color: var(--cyan);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.empty-icon {
  font-size: 54px;
  margin-bottom: 14px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  font-family: 'oswald', sans-serif;
}

.empty-sub {
  font-size: 12px;
  line-height: 1.6;
}

/* ===== EMBED PAGES ===== */
.info-page,
.embed-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}

.info-embed-wrap,
.embed-wrap {
  width: 100%;
  height: calc(100svh - 56px - 64px);
  position: relative;
  background: var(--surface);
}

.info-embed-wrap iframe,
.embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.info-embed-loader,
.embed-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  z-index: 1;
  transition: opacity .3s;
}

.info-embed-loader.hidden,
.embed-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.info-loader-spin,
.embed-loader-spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(144, 105, 233, .18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.info-loader-text,
.embed-loader-text {
  font-size: 12px;
  color: var(--text3);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(90deg, rgba(20, 10, 40, .97), rgba(10, 5, 25, .97));
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  color: #fff;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== BUTTONS ===== */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(90deg, #25d366, #128c7e);
  color: #fff;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s;
  letter-spacing: .3px;
  font-family: 'oswald', sans-serif;
}

.btn-wa:hover {
  transform: translateY(-1px);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s;
  border: none;
  letter-spacing: .3px;
  width: 100%;
  font-family: 'oswald', sans-serif;
}

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

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(144, 105, 233, .1);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-lg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  letter-spacing: .3px;
  width: 100%;
  font-family: 'oswald', sans-serif;
}

.btn-secondary:hover {
  background: rgba(144, 105, 233, .2);
  border-color: var(--primary);
}

/* ===== CS MODAL ===== */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.cs-modal.show {
  opacity: 1;
  visibility: visible;
}

.cs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .69);
  backdrop-filter: blur(3px);
}

.cs-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  height: 88svh;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cs-modal.show .cs-modal-box {
  transform: translateY(0);
}

.cs-modal-close-floating {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(144, 105, 233, .39);
  border: 1px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.cs-modal-close-floating:hover {
  background: rgba(255, 68, 68, .39);
  border-color: var(--red);
  color: var(--red);
}

.cs-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.cs-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.cs-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  z-index: 1;
  transition: opacity .3s;
}

.cs-modal-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== TELEGRAM FLOAT BUTTON ===== */
.tg-float {
  position: fixed;
  bottom: 86px;
  left: 16px;
  z-index: 450;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1), transform .4s cubic-bezier(.4, 0, .2, 1);
}

.tg-float.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.wa-float-inner {
  position: relative;
  flex-shrink: 0;
}

.tg-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(90deg, #2AABEE, #229ED9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 136, 204, .45);
  animation: tgPulse 2.2s infinite;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.tg-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 136, 204, .65);
}

.tg-float-btn svg {
  width: 26px;
  height: 26px;
}

.wa-tooltip {
  background: linear-gradient(90deg, rgba(34, 158, 217, .97), rgba(0, 100, 170, .97));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  animation: waTooltipIn .3s ease both;
  letter-spacing: .2px;
  pointer-events: none;
  transition: opacity .3s ease;
}

.wa-float-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(30, 30, 50, .85);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  position: absolute;
  top: -6px;
  right: -6px;
  line-height: 1;
  padding: 0;
  z-index: 1;
}

.wa-float-close:hover {
  background: rgba(255, 68, 68, .8);
}

@media (min-width: 640px) {
  .tg-float {
    left: calc(50% - 304px);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}

/* ===== LINK NAV ITEM ===== */
a.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
}
/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.page:not(.active) {
  content-visibility: auto;
}

.game-grid {
  contain: layout style;
}

.hero-slider {
  contain: layout;
}

/* ===== FONT SYSTEM — Updated to Syne + Plus Jakarta Sans ===== */
/* Syne: display/headings — distinctive & modern */
/* Plus Jakarta Sans: body text — better legibility at small sizes */
h1, h2, h3 {
  font-family: 'oswald', sans-serif;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

button {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

input, select, textarea {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ===== SCROLL PERFORMANCE ===== */
.flash-scroll-wrap,
.search-results,
.order-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ===== IMPROVED FOCUS RING FOR ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SKELETON LOADING STATES ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

/* ===== PRINT STYLES ===== */
@media print {
  nav, .tg-float, .cs-modal, .toast { display: none; }
}
