/* ==========================================================================
   Dragon  - Master Stylesheet
   Luxury Gaming  & Cafe Aesthetic + Book Flip Swipe Viewer
   ========================================================================== */

:root {
  --bg-primary: #0a080e;
  --bg-card: rgba(19, 16, 26, 0.85);
  --bg-card-hover: rgba(27, 22, 38, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);

  --dragon-red: #ff2a4b;
  --dragon-red-glow: rgba(255, 42, 75, 0.35);
  --dragon-ember: #ff6b35;
  --dragon-gold: #ffb703;
  --dragon-gold-glow: rgba(255, 183, 3, 0.3);

  --instapay-purple: #7928ca;
  --instapay-pink: #ff0080;
  --instapay-gradient: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);

  --vf-red: #e60000;
  --vf-red-dark: #b30000;
  --vf-gradient: linear-gradient(135deg, #e60000 0%, #8a0000 100%);

  --ps-blue: #0070d1;
  --ps-gradient: linear-gradient(135deg, #0070d1 0%, #003791 100%);

  --text-main: #f5f5f7;
  --text-muted: #9e9cb0;
  --text-dim: #68657a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 42, 75, 0.3);
  --border-gold: rgba(255, 183, 3, 0.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-ar:
    "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en: "Outfit", sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #060204;
}

body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  color: var(--text-main);
  background-color: #060204;
  background-image:
    radial-gradient(
      ellipse at 50% 120px,
      rgba(185, 12, 35, 0.38) 0%,
      rgba(70, 4, 14, 0.45) 45%,
      rgba(6, 2, 4, 0.95) 85%
    ),
    radial-gradient(
      circle at 10% 300px,
      rgba(220, 20, 45, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 700px,
      rgba(160, 10, 25, 0.1) 0%,
      transparent 40%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Decorative 3D Red Gaming Prisms from the brand theme */
.theme-prisms-decor {
  position: fixed;
  top: 70px;
  left: -12px;
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0.85;
}

.theme-prism {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 32px 0 32px 55px;
  border-color: transparent transparent transparent rgba(230, 20, 45, 0.85);
  filter: drop-shadow(0 0 16px rgba(255, 30, 56, 0.6))
    drop-shadow(0 0 30px rgba(180, 10, 25, 0.4));
  transform: rotate(-10deg);
}

.theme-prism.prism-2 {
  border-width: 24px 0 24px 42px;
  border-color: transparent transparent transparent rgba(180, 15, 35, 0.7);
  transform: rotate(5deg) scale(0.9);
}

.theme-prism.prism-3 {
  border-width: 28px 0 28px 48px;
  border-color: transparent transparent transparent rgba(230, 20, 45, 0.6);
  transform: rotate(-18deg) scale(0.85);
}

/* Glowing Red Neon Floor Laser Line from the brand theme */
.neon-floor-laser {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 30, 56, 0.4) 15%,
    #ff2a4b 50%,
    rgba(255, 30, 56, 0.4) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 15px #ff2a4b,
    0 0 30px rgba(255, 42, 75, 0.8);
  z-index: 99;
  pointer-events: none;
}

/* Ambient Dragon Glow Orbs */
.dragon-ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.glow-orb.orb-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #ff2a4b, transparent 70%);
  top: 15%;
  right: -90px;
  animation: orbDrift1 12s ease-in-out infinite alternate;
}

.glow-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ff6b35, transparent 70%);
  top: 55%;
  left: -80px;
  animation: orbDrift2 14s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translateY(0) scale(1); opacity: 0.25; }
  100% { transform: translateY(60px) scale(1.15); opacity: 0.45; }
}

@keyframes orbDrift2 {
  0% { transform: translateY(0) scale(1); opacity: 0.2; }
  100% { transform: translateY(-50px) scale(1.2); opacity: 0.4; }
}

/* Main Container */
.app-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px 14px 36px 14px;
  position: relative;
  z-index: 1;
}

/* Header & Brand Identity */
.hero-header {
  text-align: center;
  padding: 18px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand Lockup Image Display */
.brand-lockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: center;
}

.brand-lockup-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(230, 22, 45, 0.4) 0%,
    transparent 70%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
  animation: pulseBrandGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseBrandGlow {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.05);
  }
}

.brand-lockup-img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 24px rgba(230, 22, 45, 0.35));
  z-index: 2;
  display: block;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 42, 75, 0.12);
  border: 1px solid rgba(255, 42, 75, 0.3);
  color: #ff6b81;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.brand-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #ffffff 40%, #e2dfed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand-title .dragon-flame {
  -webkit-text-fill-color: initial;
}

.brand-slogan {
  font-size: 0.95rem;
  color: var(--dragon-gold);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brand-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
  margin: 0 auto 14px auto;
}

/* ==========================================================================
   Dragon Folders System & Dossier Hub
   ========================================================================== */

/* Folders Intro Bar */
.folders-intro-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.14) 0%, rgba(22, 16, 28, 0.85) 100%);
  border: 1px solid rgba(255, 42, 75, 0.35);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-top: 6px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 42, 75, 0.12);
}

.dragon-crest-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ff2a4b, #ffb703);
  box-shadow: 0 0 12px rgba(255, 42, 75, 0.55);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.folders-intro-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  flex: 1;
}

.intro-headline {
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.intro-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Dragon Folders Hub Grid */
.dragon-folders-hub {
  margin: 16px 0 20px 0;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dragon-folder-card {
  position: relative;
  background: linear-gradient(155deg, rgba(30, 22, 40, 0.92) 0%, rgba(14, 10, 18, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 10px 10px 10px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  user-select: none;
}

.folder-ear-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
}

.folder-ear-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-family: var(--font-en);
}

.folder-ear-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 42, 75, 0.14);
  color: #ff6b81;
  border: 1px solid rgba(255, 42, 75, 0.28);
}

.folder-ear-badge.tiktok-pulse {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(254, 9, 121, 0.3));
  border-color: rgba(0, 242, 254, 0.5);
  color: #fff;
  animation: pulseBadge 1.8s infinite alternate;
}

@keyframes pulseBadge {
  0% { box-shadow: 0 0 4px rgba(254, 9, 121, 0.3); }
  100% { box-shadow: 0 0 14px rgba(0, 242, 254, 0.65); }
}

.folder-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.folder-dragon-emblem {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ff2a4b, #ff6b35);
  box-shadow: 0 0 14px rgba(255, 42, 75, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-dragon-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.folder-icon-overlay {
  position: absolute;
  bottom: -4px;
  left: -4px;
  font-size: 0.95rem;
  background: #0a080e;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.folder-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.folder-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.folder-card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dragon-gold);
  margin-top: 4px;
}

.folder-card-arrow .arrow-sym {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

/* Card Hover & Active States */
.dragon-folder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 75, 0.5);
  box-shadow: 0 10px 28px rgba(255, 42, 75, 0.22), 0 0 18px rgba(255, 42, 75, 0.15);
}

.dragon-folder-card:hover .arrow-sym {
  transform: translateX(-4px);
}

.dragon-folder-card.active {
  border-color: var(--dragon-red);
  background: linear-gradient(155deg, rgba(45, 18, 30, 0.96) 0%, rgba(20, 10, 18, 0.98) 100%);
  box-shadow: 0 0 24px rgba(255, 42, 75, 0.35), 0 8px 25px rgba(0, 0, 0, 0.6);
}

.dragon-folder-card.active .folder-title {
  color: #ff6b81;
}

/* Sticky Folder Tabs Strip (Balanced 4-Column Grid) */
.folder-tabs-strip {
  position: sticky;
  top: 10px;
  z-index: 85;
  background: rgba(14, 10, 20, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 42, 75, 0.35);
  border-radius: var(--radius-full);
  padding: 5px;
  margin: 0 auto 16px auto;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 42, 75, 0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  box-sizing: border-box;
}

.folder-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 4px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.folder-tab-btn .tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.folder-tab-btn .tab-label {
  font-size: 0.82rem;
  letter-spacing: -0.2px;
}

.folder-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.folder-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ff2a4b 0%, #b80f28 100%);
  border-color: rgba(255, 183, 3, 0.45);
  box-shadow: 0 4px 15px rgba(255, 42, 75, 0.5), 0 0 10px rgba(255, 183, 3, 0.25);
}

/* Dragon Dossier Stage & Dossier Header */
.dragon-dossier-stage {
  position: relative;
  min-height: 480px;
}

.dossier-folder-header {
  background: linear-gradient(135deg, rgba(32, 22, 40, 0.95) 0%, rgba(16, 11, 22, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.dossier-folder-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dragon-red), var(--dragon-gold), var(--dragon-red));
}

.dossier-tab-notch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notch-crest {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ff2a4b, #ffb703);
  box-shadow: 0 0 12px rgba(255, 42, 75, 0.5);
  flex-shrink: 0;
}

.notch-crest img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.notch-info {
  display: flex;
  flex-direction: column;
}

.notch-code {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--dragon-gold);
  letter-spacing: 0.8px;
  font-family: var(--font-en);
}

.notch-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.dossier-badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 42, 75, 0.12);
  color: #ff6b81;
  border: 1px solid rgba(255, 42, 75, 0.3);
  white-space: nowrap;
}

.dossier-folder-body {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
}

.folder-pane {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.folder-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dragon-dossier-stage.all-folders-view .folder-pane {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: 30px;
}

.folder-pane-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.folder-jump-next-btn {
  border: 1px solid rgba(255, 42, 75, 0.4);
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.15) 0%, rgba(20, 10, 16, 0.6) 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.folder-jump-next-btn:hover {
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.35) 0%, rgba(20, 10, 16, 0.8) 100%);
  border-color: var(--dragon-red);
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(255, 42, 75, 0.3);
}

/* ==========================================================================
   Payment Hub (InstaPay & Vodafone Cash)
   ========================================================================== */
.payment-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 42, 75, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.payment-card-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--vf-red),
    var(--dragon-gold),
    var(--instapay-purple),
    var(--instapay-pink)
  );
}

.payment-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.tab-btn.vf-tab.active {
  background: var(--vf-gradient);
}

.tab-btn.instapay-tab.active {
  background: var(--instapay-gradient);
}

.payment-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.payment-panel.active {
  display: block;
}

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

.pay-qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}

.qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
}

.qr-box canvas,
.qr-box svg {
  display: block;
  width: 170px !important;
  height: 170px !important;
}

.qr-badge-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: #0a080e;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--dragon-red);
}

.qr-badge-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.qr-scan-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.copy-info-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.copy-info-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.copy-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  direction: ltr;
  text-align: right;
  font-family: var(--font-en);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.copy-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.copy-btn:hover,
.copy-btn:active {
  background: var(--dragon-red);
  border-color: var(--dragon-red);
  transform: scale(0.97);
}

.pay-btn-primary {
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.pay-btn-primary.vf-btn {
  background: var(--vf-gradient);
}
.pay-btn-primary.instapay-btn {
  background: var(--instapay-gradient);
}

.pay-btn-primary:hover,
.pay-btn-primary:active {
  opacity: 0.95;
  transform: translateY(-2px);
}

.pay-note-alert {
  margin-top: 12px;
  background: rgba(255, 183, 3, 0.08);
  border-right: 3px solid var(--dragon-gold);
  padding: 8px 12px;
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  font-size: 0.78rem;
  color: #f7dfa5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

/* ==========================================================================
   Interactive 3D Digital Flipbook Menu
   ========================================================================== */
.menu-flipbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  position: relative;
}

/* Book Controls Bar */
.book-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.book-counter-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--dragon-gold);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.book-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-tool-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.book-tool-btn:hover {
  background: var(--dragon-red);
  border-color: var(--dragon-red);
  transform: translateY(-1px);
}

.book-title-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.book-title-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ff8099;
  background: rgba(255, 42, 75, 0.12);
  border: 1px solid rgba(255, 42, 75, 0.25);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Progress Bar */
.book-progress-wrapper {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  overflow: hidden;
}

.book-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dragon-gold), var(--dragon-red));
  width: 7.7%; /* 1/13 */
  transition: width 0.3s ease;
}

/* ==========================================================================
   Fluid Mobile Menu Slider (Smooth Native Mobile Carousel)
   ========================================================================== */
.slider-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 12px auto 16px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(255, 42, 75, 0.14);
  background: #000;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  direction: rtl;
}

/* Subtle luxury spine accent on right edge */
.slider-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(25, 10, 15, 0.7) 60%,
    rgba(255, 42, 75, 0.5) 100%
  );
  border-right: 2px solid rgba(255, 42, 75, 0.6);
  z-index: 10;
  pointer-events: none;
}

/* Horizontal Sliding Track (RTL) */
.slider-track {
  display: flex;
  width: 100%;
  direction: rtl; /* RTL: Slide 0 at right, subsequent slides to the left */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Individual Slide Item (Smooth Scale & Opacity) */
.slide-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  opacity: 0.65;
  transform: scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.slide-item.active {
  opacity: 1;
  transform: scale(1);
}

/* High-Res Menu Page Image */
.slide-img {
  width: 100%;
  max-width: 100%;
  max-height: 640px;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.slide-img:hover {
  transform: scale(1.01);
}

/* Floating Navigation Arrows - Discreet edge chevrons that NEVER block center menu content */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 8, 14, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0.55;
}

.arrow-btn:hover {
  background: rgba(255, 42, 75, 0.9);
  border-color: #ff2a4b;
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.arrow-btn.next {
  left: 6px; /* In RTL: Next is on the Left */
}

.arrow-btn.prev {
  right: 6px; /* In RTL: Prev is on the Right */
}

.arrow-btn:disabled {
  opacity: 0.1;
  cursor: not-allowed;
  pointer-events: none;
}

/* Touch Gesture Hint Overlay */
.swipe-hint-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 45;
  white-space: nowrap;
  animation: pulseHint 3s infinite;
}

@keyframes pulseHint {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.35;
  }
}

/* Bottom Thumb Navigation Bar (Comfortable thumb buttons below the image) */
.book-bottom-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 6px 10px;
  background: rgba(14, 10, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.book-step-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 42, 75, 0.35);
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.18) 0%, rgba(180, 15, 35, 0.22) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.book-step-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff2a4b 0%, #b80f28 100%);
  border-color: #ff2a4b;
  box-shadow: 0 4px 15px rgba(255, 42, 75, 0.45);
  transform: translateY(-1px);
}

.book-step-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.page-indicator {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dragon-gold);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.28);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}

/* Chapter / Section Quick Jump Pills */
.book-jump-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 2px 2px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.book-jump-strip::-webkit-scrollbar {
  display: none;
}

.jump-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jump-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.jump-pill.active {
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.3) 0%, rgba(212, 160, 23, 0.25) 100%);
  color: #fff;
  border-color: rgba(255, 42, 75, 0.6);
  box-shadow: 0 2px 10px rgba(255, 42, 75, 0.25);
}

/* ==========================================================================
   Social Media Links Hub
   ========================================================================== */
.social-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(12px);
}

.link-card:hover,
.link-card:active {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.link-card.fb-card:hover {
  border-color: #1877f2;
}
.link-card.ig-card:hover {
  border-color: #e1306c;
}
.link-card.wa-card:hover {
  border-color: #25d366;
}
.link-card.maps-card:hover {
  border-color: #ea4335;
}

.link-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-card.fb-card .link-icon-circle {
  background: #1877f2;
}
.link-card.ig-card .link-icon-circle {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.link-card.wa-card .link-icon-circle {
  background: #25d366;
}
.link-card.maps-card .link-icon-circle {
  background: #ea4335;
}

/* Featured TikTok Card Styling */
.link-card.tiktok-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(254, 9, 121, 0.12) 100%), rgba(16, 12, 22, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(254, 9, 121, 0.22);
  position: relative;
  overflow: hidden;
}

.link-card.tiktok-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.link-card.tiktok-card:hover::before {
  transform: translateX(100%);
}

.link-card.tiktok-card:hover {
  border-color: #fe0979;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 242, 254, 0.45), 0 0 30px rgba(254, 9, 121, 0.35);
  transform: translateY(-3px);
}

.tiktok-icon-box {
  background: #000000 !important;
  color: #fff;
  border: 1px solid rgba(0, 242, 254, 0.55);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.45), 0 0 16px rgba(254, 9, 121, 0.4);
}

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

.featured-glow-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00f2fe 0%, #fe0979 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(254, 9, 121, 0.5);
  animation: pulseBadge 1.8s infinite alternate;
}

.link-action-badge.tiktok-action {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(254, 9, 121, 0.2);
  border: 1px solid rgba(254, 9, 121, 0.45);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

.link-info {
  display: flex;
  flex-direction: column;
}

.link-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
}

.link-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.link-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* Pay Proof WhatsApp Button */
.pay-proof-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.pay-proof-btn:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25d366;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   PlayStation Rates Section
   ========================================================================== */
.ps-rates-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 112, 209, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 112, 209, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ps-rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ps-rate-item:last-child {
  border-bottom: none;
}

.ps-rate-item.is-vip {
  background: rgba(212, 160, 23, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
  margin-top: 4px;
}

.ps-rate-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.ps-rate-meta h4 {
  font-size: 0.94rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-rate-item.is-vip .ps-rate-meta h4 {
  color: var(--dragon-gold);
}

.ps-rate-meta p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ps-rate-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dragon-gold);
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.ps-rate-item.is-vip .ps-rate-price {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.25), rgba(255, 42, 75, 0.2));
  border-color: rgba(212, 160, 23, 0.5);
  color: #fff;
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.25);
}

/* Folder Sub-Cards (Wi-Fi & Gaming in Folder 4) */
.folder-sub-card {
  background: rgba(14, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sub-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wifi-speed-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.wifi-inline-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

@media (max-width: 480px) {
  .wifi-inline-content {
    grid-template-columns: 1fr;
  }
}

.wifi-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.wifi-qr-box {
  width: 130px;
  height: 130px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.wifi-qr-box canvas,
.wifi-qr-box img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.wifi-qr-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.wifi-creds-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gaming-specs-box {
  margin-top: 14px;
  background: rgba(0, 112, 209, 0.08);
  border: 1px solid rgba(0, 112, 209, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
}

.specs-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

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

.spec-item {
  font-size: 0.74rem;
  color: var(--dragon-gold);
  line-height: 1.4;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #15111d;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Fullscreen Zoom Modal for Book (Clean Luxury Viewport with Full Touch Swipe) */
.zoom-modal-content {
  background: rgba(4, 2, 6, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

/* Top Bar */
.zoom-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.zoom-close-btn {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.zoom-close-btn:hover {
  background: var(--dragon-red);
  border-color: var(--dragon-red);
  transform: scale(1.08);
}

.zoom-top-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.zoom-hint-tag {
  font-size: 0.74rem;
  color: var(--dragon-gold);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Main Image Viewport */
.zoom-img-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.zoom-img-wrapper:active {
  cursor: grabbing;
}

.zoom-modal-img {
  max-width: 96vw;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.25s ease;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

/* Bottom Navigation Controls */
.zoom-bottom-controls {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 8px;
  z-index: 50;
  gap: 10px;
}

.zoom-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.zoom-ctrl-btn:hover {
  background: var(--dragon-red);
  border-color: var(--dragon-red);
  transform: scale(1.04);
}

.zoom-ctrl-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.zoom-caption-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-gold);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
}

.zoom-caption-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.zoom-caption-counter {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--dragon-gold);
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
  background: rgba(255, 183, 3, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

@media (max-width: 600px) {
  .zoom-top-bar {
    padding: 10px 14px;
  }
  .zoom-hint-tag {
    display: none;
  }
  .zoom-ctrl-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .zoom-caption-title {
    max-width: 110px;
    font-size: 0.8rem;
  }
  .zoom-modal-img {
    max-height: calc(100vh - 125px);
    max-height: calc(100dvh - 125px);
  }
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1f1b2b;
  border: 1px solid #00e676;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(0, 230, 118, 0.3);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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



/* Footer & Settings */
.app-footer,
.lounge-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.footer-dragon-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(255, 42, 75, 0.4);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.footer-admin-btn {
  background: transparent;
  border: 1px dashed var(--border-subtle);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-admin-btn:hover {
  color: var(--dragon-gold);
  border-color: var(--dragon-gold);
}

/* Dedicated Mobile Polish for Maximum Elegance */
@media (max-width: 600px) {
  .theme-prisms-decor {
    opacity: 0.18;
    transform: scale(0.6) translateX(-35px);
  }

  .payment-card-container {
    padding: 14px 12px;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .copy-info-box {
    padding: 9px 11px;
    gap: 8px;
  }

  .copy-label {
    font-size: 0.72rem;
  }

  .copy-value {
    font-size: 0.92rem;
  }

  .copy-btn {
    padding: 7px 11px;
    font-size: 0.78rem;
  }
}
