/* ===== LUMAYN APPSTORE — Apple-style, Mobile-first ===== */

/* --- Martian Grotesk (self-hosted) --- */
@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-xWdBl.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #007AFF;
  --blue-light: #5AC8FA;
  --blue-dark: #0051D5;
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-tertiary: #AEAEB2;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 122, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: 0.4s cubic-bezier(0, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Martian Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:active {
  opacity: 0.7;
}

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

/* --- Glass Effect --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 122, 255, 0.12);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 6px 12px;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: calc(100% - 20px);
  max-width: 440px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 26px;
  width: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-links a {
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.08);
}

/* --- Hero Section --- */
.hero {
  padding: 120px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(0, 122, 255, 0.25);
  top: -60px;
  left: -40px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(90, 200, 250, 0.22);
  top: -30px;
  right: -60px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 81, 213, 0.18);
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat3 12s ease-in-out infinite;
}

/* Page-level orbs (game, orders, support pages) */
.page-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 15px) scale(0.95); }
  66% { transform: translate(15px, -10px) scale(1.08); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  50% { transform: translateX(-50%) translate(20px, -15px) scale(1.1); }
}

.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 122, 255, 0.08);
  margin-bottom: 20px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 0;
  margin: 0 auto 16px;
  box-shadow: none;
  background: transparent;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 0;
}

.scroll-chevron {
  opacity: 0.7;
  animation: chevronBounce 2s ease-in-out infinite;
}

.scroll-chevron-2 {
  margin-top: -10px;
  opacity: 0.45;
  animation: chevronBounce 2s ease-in-out infinite 0.15s;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 0.35; }
}

.scroll-chevron-2 {
  animation-name: chevronBounce2;
}

@keyframes chevronBounce2 {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(6px); opacity: 0.2; }
}

/* --- Game Cards --- */
.games-section {
  padding: 20px 0 80px;
  position: relative;
  background: var(--bg);
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-card:hover {
  box-shadow:
    0 8px 32px rgba(0, 122, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.game-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 70%;
  z-index: 2;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  letter-spacing: 0.01em;
}


.game-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(0, 122, 255, 0.18);
  transition: transform var(--spring), box-shadow var(--transition);
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(0, 122, 255, 0.15); }
  50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 40px rgba(0, 122, 255, 0.3); }
}

.game-card:hover .game-icon-img,
.game-card:active .game-icon-img {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-icon-img.large {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 12px;
}

.game-card h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.game-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.game-card .btn {
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.btn-secondary:active {
  background: rgba(0, 122, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(0, 122, 255, 0.3);
}

.btn-outline:active {
  background: rgba(0, 122, 255, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

/* --- Access Page --- */
.access-page {
  padding: 100px 20px 40px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.access-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
}

.access-card .game-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(0, 122, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
}

.access-card h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.access-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.credential-box {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.credential-box label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  flex-shrink: 0;
  width: 56px;
}

.credential-box .cred-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credential-box .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
}

.credential-box .copy-btn {
  padding: 8px;
  background: rgba(0, 122, 255, 0.08);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.85rem;
  transition: all var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-box .copy-btn:active {
  transform: scale(0.92);
  background: rgba(0, 122, 255, 0.15);
}

.timer-section {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.timer-section .timer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timer-section .timer-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* --- Expired Page --- */
.expired-page {
  padding: 100px 20px 40px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.expired-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.expired-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.expired-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Game Detail Page --- */
.game-detail {
  padding: 80px 20px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.game-detail-header {
  text-align: center;
  margin-bottom: 16px;
}

.game-detail-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.game-detail-header .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}

.game-detail-body {
  padding: 24px;
  margin-bottom: 24px;
}

.game-detail-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.game-detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row span {
  color: var(--text-secondary);
}

/* SVG icon animations */

.icon-bolt svg {
  animation: boltFlash 3s ease-in-out infinite;
}

@keyframes boltFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 1; }
  80% { opacity: 0.6; }
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0); }
}

/* Wave icon in chat prompt */
.wave-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Copy button success state */
.copy-btn.copied {
  color: #34C759;
  border-color: rgba(52, 199, 89, 0.3);
}

.purchase-section {
  text-align: center;
  padding: 16px 0;
}

.purchase-section .btn {
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Delivery steps on game page */
.delivery-steps {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.delivery-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.delivery-step {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.delivery-step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* (email input removed — random email is generated server-side) */

/* --- Chat Widget --- */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  bottom: calc(24px + var(--safe-bottom));
}

.chat-fab:active {
  transform: scale(0.92);
}

.chat-fab .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF3B30;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overflow: hidden;
}

.chat-modal.open {
  transform: translateY(0);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  padding-top: calc(14px + var(--safe-top));
  margin: 10px 10px 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-header .status {
  font-size: 0.75rem;
  color: #34C759;
  font-weight: 500;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: hidden;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: msgIn 0.25s ease-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 60px;
}

.chat-access-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--blue);
  color: white !important;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.chat-access-btn:hover { opacity: 0.85; }
.chat-access-btn:active { opacity: 0.7; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message.user {
  align-self: flex-end;
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.admin {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.chat-message .time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}

.chat-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
  display: block;
  margin-top: 4px;
}

/* Image viewer overlay */
.img-viewer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 24px;
}
.img-viewer-overlay.open { opacity: 1; }

.img-viewer-glass {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: imgViewerIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.img-viewer-overlay:not(.open) .img-viewer-glass {
  transform: scale(0.9);
}

@keyframes imgViewerIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.img-viewer-img {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  border-radius: 14px;
  object-fit: contain;
}

.img-viewer-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.img-viewer-close:hover { transform: scale(1.1); }

/* Chat alert overlay (liquid glass) */
.chat-alert-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chat-alert-overlay.open { opacity: 1; }
.chat-alert-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 24px 28px 20px;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-alert-overlay.open .chat-alert-glass { transform: scale(1); }
.chat-alert-text {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.chat-alert-ok {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.chat-alert-ok:active { transform: scale(0.95); opacity: 0.85; }

.chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.chat-attach-btn:active { transform: scale(0.9); }
.chat-attach-btn.uploading {
  opacity: 0.5;
  pointer-events: none;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{ opacity:0.5; } 50%{ opacity:0.2; } }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg-secondary);
}

.chat-input-area input:focus {
  border-color: var(--blue);
  background: white;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.chat-send-btn:active {
  transform: scale(0.92);
}

/* Chat name input */
.chat-name-prompt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 48px;
  text-align: center;
}

.chat-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  animation: chatStepIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatStepIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: chatIconFloat 3s ease-in-out infinite;
}

@keyframes chatIconFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(0, 122, 255, 0.08); }
  50% { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15); }
}

.chat-name-prompt h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.chat-name-prompt p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.chat-name-prompt input,
.chat-name-prompt .chat-prompt-input {
  width: 100%;
  max-width: 260px;
  padding: 12px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  text-align: center;
  outline: none;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.02);
  transition: border-color var(--transition), background var(--transition);
}

.chat-name-prompt input:focus,
.chat-name-prompt .chat-prompt-input:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.08);
}

.chat-name-prompt .btn {
  margin-top: 6px;
  max-width: 260px;
  width: 100%;
}

/* --- Footer --- */
.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--blue);
}

/* --- Animations (iOS-style) --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }

/* Page transition handled by fade-in class + Intersection Observer */

/* Pulse animation for chat FAB */
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35); transform: scale(1); }
  50% { box-shadow: 0 4px 30px rgba(0, 122, 255, 0.55); transform: scale(1.04); }
}

.chat-fab {
  animation: pulse 3s ease-in-out infinite;
}

/* Smooth button press */
.btn {
  transition: all var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

/* Smooth link transitions */
a {
  transition: color var(--transition), opacity var(--transition), background var(--transition);
}

/* --- Admin Styles --- */
.admin-layout {
  padding-top: 60px;
  min-height: 100vh;
  animation: adminFadeIn 0.35s ease-out;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

.admin-layout.page-exit {
  animation: adminFadeOut 0.2s ease-in forwards;
}

@keyframes adminFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.97); }
}

.admin-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.admin-nav .title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 16px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tabs a {
  flex: 1;
  min-width: max-content;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.admin-tabs a:hover {
  color: var(--text-primary);
}

.admin-tabs a.active {
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  box-shadow: 0 1px 8px rgba(0, 122, 255, 0.1);
}

.admin-content {
  padding: 0 20px 40px;
  animation: adminSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.admin-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

.admin-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat-card .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Admin forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Admin chat list */
.chat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  border-radius: var(--radius-xs);
  overflow: hidden;
  min-width: 0;
}

.chat-list-item:active {
  transform: scale(0.98);
  background: rgba(0, 122, 255, 0.04);
}

.chat-list-item:last-child {
  border-bottom: none;
}

.chat-list-item .info {
  flex: 1;
  min-width: 0;
}

.chat-list-item .name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-item .preview {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-list-item .meta {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.chat-list-item .time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.open {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.status-badge.closed {
  background: rgba(142, 142, 147, 0.1);
  color: #8E8E93;
}

/* Admin login */
.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-secondary);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 28px;
  text-align: center;
}

.login-card form {
  text-align: left;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.login-card .error {
  color: #FF3B30;
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(255, 59, 48, 0.08);
  border-radius: var(--radius-xs);
}

/* Purchase table */
.purchase-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.purchase-table table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.purchase-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.purchase-table td {
  padding: 12px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.purchase-table .token {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Success alert */
.alert-success {
  padding: 12px 16px;
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  animation: adminSlideUp 0.5s ease-out;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
}

/* Admin logo */
.admin-logo img {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Admin tabs with icons */
.admin-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-tabs a svg {
  flex-shrink: 0;
}

/* Revenue grid */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.revenue-card {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: adminSlideUp 0.4s ease-out both;
}

.revenue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.revenue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  margin: 0 auto 8px;
}

.revenue-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.revenue-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Stat card icon */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  margin: 0 auto 8px;
}

/* Chart */
.chart-container {
  padding: 8px 0;
  overflow-x: auto;
}

.revenue-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Payment badges */
.payment-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.payment-badge.sbp {
  background: rgba(88, 86, 214, 0.1);
  color: #5856D6;
}

.payment-badge.transfer {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
}

/* Settings sections */
.settings-section {
  margin-bottom: 32px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Receipt Viewer Modal */
.receipt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.receipt-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.receipt-viewer {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.receipt-overlay.open .receipt-viewer {
  transform: scale(1) translateY(0);
}
.receipt-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.receipt-viewer-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.receipt-viewer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-secondary);
}
.receipt-viewer-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.receipt-viewer-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: calc(85vh - 65px);
}

/* Chat detail back link */
.chat-detail-back {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px;
}
.chat-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.chat-detail-back a:hover { opacity: 0.7; }

/* Telegram-style chat detail */
.chat-detail-wrapper {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  height: calc(100vh - 110px);
  height: calc(100dvh - 110px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.chat-info-panel {
  width: 240px;
  flex-shrink: 0;
  padding: 24px 16px;
  border-right: none;
  overflow-y: auto;
  background: none;
  position: relative;
  z-index: 1;
}

.chat-info-panel .client-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.chat-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Orbs inside chat wrapper */
.chat-detail-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.chat-detail-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.chat-detail-orbs .orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(0, 122, 255, 0.12);
  top: -60px;
  left: -40px;
  animation: orbFloat1 8s ease-in-out infinite;
}
.chat-detail-orbs .orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(90, 200, 250, 0.10);
  top: 50%;
  right: -30px;
  animation: orbFloat2 10s ease-in-out infinite;
}
.chat-detail-orbs .orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 81, 213, 0.08);
  bottom: -40px;
  left: 30%;
  animation: orbFloat3 12s ease-in-out infinite;
}

.chat-main-panel .admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: hidden;
}

.chat-main-panel .admin-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.chat-main-panel .admin-chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-secondary);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.chat-main-panel .admin-chat-input input:focus {
  border-color: var(--blue);
  background: white;
}

/* Quick command button */
.quick-cmd-wrap {
  position: relative;
}

.chat-cmd-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-cmd-btn:hover {
  background: rgba(0, 122, 255, 0.15);
}

.quick-cmd-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 8px 32px rgba(0, 122, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 10;
}

.quick-cmd-menu.open {
  display: block;
  animation: chatStepIn 0.25s ease-out;
}

.quick-cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.quick-cmd-item:hover {
  background: rgba(0, 122, 255, 0.08);
}

/* Client info rows */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
}

.info-row .info-label {
  color: var(--text-secondary);
}

.info-row .info-value {
  font-weight: 600;
}

/* Block/danger button */
.btn-danger {
  background: rgba(255, 59, 48, 0.08);
  color: #FF3B30;
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.15);
}

.btn-success {
  background: rgba(52, 199, 89, 0.08);
  color: #34C759;
}

/* Review card header */
.review-card {
  animation: adminSlideUp 0.4s ease-out;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Order status badges */
.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

.order-status.awaiting {
  background: rgba(255, 193, 7, 0.12);
  color: #F5A623;
}

.order-status.paid {
  background: rgba(52, 199, 89, 0.12);
  color: #34C759;
}

.order-status.rejected {
  background: rgba(255, 59, 48, 0.12);
  color: #FF3B30;
}

.order-status.pending {
  background: rgba(142, 142, 147, 0.12);
  color: #8E8E93;
}

/* Cooldown on send button */
.chat-send-btn.cooldown {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Responsive (Tablet) --- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 24px;
  }

  .game-card {
    padding: 32px 24px;
  }

  .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  }

  .container {
    padding: 0 24px;
  }

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

  .admin-content {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* --- Responsive (Large Tablet) --- */
@media (min-width: 900px) {
  .games-grid {
    padding: 0 40px;
  }
  .container {
    padding: 0 40px;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

/* --- Responsive (Desktop) --- */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    max-width: 960px;
  }

  .chat-modal {
    top: auto;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 400px;
    height: 560px;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .chat-header {
    padding-top: 14px;
    margin: 12px 12px 0;
    border-radius: 100px;
  }

  .chat-input-area {
    padding-bottom: 12px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .navbar {
    padding: 10px 16px;
  }
}

/* --- Gate Icon --- */
.gate-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: gateIconFloat 3s ease-in-out infinite;
  position: relative;
}

.gate-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 122, 255, 0.12);
  animation: gateIconRing 3s ease-in-out infinite;
}

@keyframes gateIconFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(0, 122, 255, 0.08); }
  50% { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0, 122, 255, 0.15); }
}

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

/* --- Disabled Button --- */
.btn-disabled {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:active {
  transform: none;
}

/* --- Instruction Modal --- */
.instruction-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.instruction-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.instruction-modal {
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.instruction-overlay.open .instruction-modal {
  transform: translateY(0) scale(1);
}

.instruction-modal-header {
  padding: 20px 24px 12px;
  flex-shrink: 0;
}

.instruction-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.instruction-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  -webkit-overflow-scrolling: touch;
}

.instruction-modal-footer {
  padding: 12px 24px 20px;
  flex-shrink: 0;
}

/* --- Quiz Section --- */
.quiz-step {
  display: none;
}

.section-exit {
  animation: sectionFadeOut 0.3s ease forwards;
}

.section-enter {
  animation: sectionFadeIn 0.4s ease forwards;
}

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

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

.quiz-question {
  margin-bottom: 16px;
}

.quiz-q-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.quiz-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-primary);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.quiz-option:hover {
  border-color: var(--blue);
  background: rgba(0, 122, 255, 0.04);
}

.quiz-option-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.quiz-option.correct {
  border-color: #34c759;
  background: rgba(52, 199, 89, 0.08);
}

.quiz-option.correct .quiz-option-num {
  background: #34c759;
  color: #fff;
}

.quiz-option.wrong {
  border-color: #ff3b30;
  background: rgba(255, 59, 48, 0.08);
}

.quiz-option.wrong .quiz-option-num {
  background: #ff3b30;
  color: #fff;
}

.quiz-reread {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin-top 0.35s ease;
}

.quiz-reread.visible {
  opacity: 1;
  max-height: 60px;
  pointer-events: auto;
  margin-top: 16px;
}

#quizIcon {
  transition: all 0.3s ease;
}

.transfer-step {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#transferModal .transfer-step {
  display: flex;
  flex-direction: column;
}

#transferModal .instruction-modal-footer {
  margin-top: auto;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 0 20px 60px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  z-index: 1;
}

.faq-section .section-title {
  margin-bottom: 24px;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Payment Methods --- */
.payment-methods {
  margin-bottom: 8px;
}

.payment-method-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.payment-option {
  display: block;
  cursor: pointer;
  margin-bottom: 8px;
}

.payment-option input { display: none; }

.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.payment-option.selected .payment-option-inner {
  border-color: var(--blue);
  background: rgba(0, 122, 255, 0.06);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.08),
    0 2px 16px rgba(0, 122, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.payment-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-option-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-option-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* --- Upload Area --- */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 2px dashed rgba(0, 122, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(0, 122, 255, 0.02);
}

.upload-area:active {
  background: rgba(0, 122, 255, 0.06);
  border-color: var(--blue);
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --- Orders Page --- */
.orders-page {
  padding: 80px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.orders-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.order-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

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

.order-game {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-game img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.order-game-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.order-status.pending {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
}

.order-status.paid {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.order-status.rejected {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
}

.order-status.awaiting {
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.order-status.expired {
  background: rgba(142, 142, 147, 0.1);
  color: #8E8E93;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.order-detail-row .label {
  color: var(--text-secondary);
}

.order-detail-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

.order-actions {
  margin-top: 12px;
}

/* --- Empty State --- */
.orders-empty {
  text-align: center;
  padding: 80px 20px;
}

.orders-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: emptyGlow 3s ease-in-out infinite;
}

.empty-anim-icon {
  animation: emptyFloat 3s ease-in-out infinite;
}

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

@keyframes emptyGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.08); }
  50% { box-shadow: 0 0 20px 4px rgba(0, 122, 255, 0.12); }
}

.empty-anim-icon .sparkle {
  animation: sparkleFade 2s ease-in-out infinite;
}
.empty-anim-icon .sparkle-1 { animation-delay: 0s; }
.empty-anim-icon .sparkle-2 { animation-delay: 0.7s; }
.empty-anim-icon .sparkle-3 { animation-delay: 1.4s; }

@keyframes sparkleFade {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

.orders-empty h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.orders-empty p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* --- Admin Order Review --- */
.review-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
  animation: adminSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.review-card:nth-child(2) { animation-delay: 0.05s; }
.review-card:nth-child(3) { animation-delay: 0.1s; }
.review-card:nth-child(4) { animation-delay: 0.15s; }
.review-card:nth-child(5) { animation-delay: 0.2s; }

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

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-success {
  background: #34C759;
  color: white;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.25);
  transition: all 0.25s ease, transform 0.15s ease;
}

.btn-success:hover {
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.35);
  transform: translateY(-1px);
}

.btn-success:active {
  background: #2da44e;
  transform: translateY(0) scale(0.98);
}

.btn-danger {
  background: #FF3B30;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
  transition: all 0.25s ease, transform 0.15s ease;
}

.btn-danger:hover {
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35);
  transform: translateY(-1px);
}

.btn-danger:active {
  background: #d32f2f;
  transform: translateY(0) scale(0.98);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

@media (max-width: 600px) {
  .revenue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .revenue-grid .revenue-card:last-child {
    grid-column: span 2;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .chat-detail-wrapper {
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }
  .chat-info-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    max-height: none;
    overflow-y: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: transparent;
    margin: 0;
    border-radius: 0;
  }
  .chat-info-panel .client-avatar {
    width: 32px;
    height: 32px;
    margin: 0;
    flex-shrink: 0;
  }
  .chat-info-panel .client-avatar svg {
    width: 16px;
    height: 16px;
  }
  .chat-info-panel h4 {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  .chat-info-panel > div[style*="text-align:center"] {
    margin-bottom: 0 !important;
  }
  .info-rows-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    width: 100%;
    margin-top: 4px;
  }
  .info-rows-grid .info-row {
    padding: 2px 0;
    font-size: 0.75rem;
    border-bottom: none;
    gap: 4px;
  }
  .chat-info-panel form {
    margin-top: 0 !important;
    margin-left: auto;
  }
  .chat-info-panel form .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .chat-detail-orbs .orb-1 {
    width: 200px;
    height: 200px;
    top: -40px;
    left: -30px;
  }
  .chat-detail-orbs .orb-2 {
    width: 160px;
    height: 160px;
    right: -20px;
  }
  .chat-detail-orbs .orb-3 {
    width: 140px;
    height: 140px;
    bottom: -20px;
  }
}

/* --- Bulk Select Checkbox --- */
.bulk-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bulk-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bulk-checkmark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(0,0,0,0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.bulk-checkbox input:checked + .bulk-checkmark {
  background: var(--blue);
  border-color: var(--blue);
}
.bulk-checkbox input:checked + .bulk-checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* --- Bulk Delete Bar --- */
.bulk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 0 16px calc(16px + var(--safe-bottom));
}
.bulk-bar.visible {
  transform: translateY(0);
}
.bulk-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}
.bulk-count {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bulk-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #FF3B30;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bulk-delete-btn:active {
  transform: scale(0.96);
  background: #d32f2f;
}
