/* Live chat: no auto prompts handled in JS; keep widget visible */
/* Christmas chat theme v46 - updated */
:root {
  /* Dark theme (default) */
  --bg: #0b0f14;
  --card: #000000;
  --border: #1e2633;
  --text: #e6ecf2;
  --muted: #a9b4c2;
  --primary: #d8b07a;
  --primary-600: #b87449;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --accent: #f4e7d2;
  --bg-image: none; /* per-store override only */

  /* Extended color variables */
  --bg-primary: #0b0f14;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #232936;
  --card-bg: #000000;
  --border-color: #1e2633;
  --text-primary: #e6ecf2;
  --text-secondary: #c8d1dc;
  --text-muted: #a9b4c2;
  --primary-color: #d8b07a;
  --success: #22c55e;
}

/* FCCOINSUAE-only hero background */
body[data-store="fccoinsuae"] {
  --bg-image: url('/assets/bg-dubai-3.jpg');
  --uae-skyline-navy: #132235;
  --uae-dusk-blue: #34506b;
  --uae-sand-gold: #d8b07a;
  --uae-sunset-copper: #b87449;
  --uae-haze-cream: #f4e7d2;
  --uae-step-border: rgba(216, 176, 122, 0.34);
}

/* FCCOINSUAE mobile-only hero background (portrait) */
@media (max-width: 768px) {
  body[data-store="fccoinsuae"] {
    --bg-image: url('/assets/bg-dubai-3.jpg?v=2');
  }
}

body.tots-theme-enabled {
  --bg: #080808;
  --card: #141414;
  --border: #2b2b2b;
  --text: #f5f1e6;
  --muted: #b6ae9b;
  --primary: #caa54a;
  --primary-600: #a6802d;
  --accent: #6a665b;
  --bg-primary: #080808;
  --bg-secondary: #121212;
  --bg-tertiary: #1a1a1a;
  --card-bg: #141414;
  --border-color: #2b2b2b;
  --text-primary: #f5f1e6;
  --text-secondary: #d8d0bf;
  --text-muted: #b6ae9b;
  --primary-color: #caa54a;
}

body.tots-theme-enabled .main-wrap::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at top, rgba(216, 176, 122, 0.18), rgba(19, 34, 53, 0) 46%),
    linear-gradient(180deg, #132235 0%, #34506b 52%, #d8b07a 100%);
  background-position: center top, center top, center top;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll;
}

body.tots-theme-enabled .site-header,
body.tots-theme-enabled .site-footer {
  background: rgba(8, 8, 8, 0.9);
  border-color: rgba(202, 165, 74, 0.22);
}

body.tots-theme-enabled .top-banner.info {
  background: rgba(18, 18, 18, 0.96);
  border-bottom-color: rgba(202, 165, 74, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

body.tots-theme-enabled .timeline-step .step-number,
body.tots-theme-enabled .timeline-connector {
  background: linear-gradient(135deg, #7d611f, #caa54a, #f0cf76);
  box-shadow: 0 6px 18px rgba(202, 165, 74, 0.22);
}

body.tots-theme-enabled .about-section,
body.tots-theme-enabled .comparison-section,
body.tots-theme-enabled .seo-content-fullwidth {
  background: linear-gradient(180deg, #0d0d0d 0%, #161616 100%);
  border-top-color: rgba(202, 165, 74, 0.12);
}

body.tots-theme-enabled .about-card,
body.tots-theme-enabled .comparison-table,
body.tots-theme-enabled .comparison-card {
  background: rgba(20, 20, 20, 0.96);
  border-color: rgba(202, 165, 74, 0.14);
}

body.tots-theme-enabled .about-icon {
  background: rgba(202, 165, 74, 0.14);
  color: var(--primary);
}

body.tots-theme-enabled .platform-card:hover {
  transform: scale(1.15);
  border-color: rgba(202, 165, 74, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

body.tots-theme-enabled .platform-card:hover .platform-image {
  box-shadow: 0 16px 34px rgba(202, 165, 74, 0.24);
}

body.tots-theme-enabled .price-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(8, 8, 8, 0.88));
}

body.summer-sale-theme-enabled {
  --bg: #140d0b;
  --card: #1c120f;
  --border: #513126;
  --text: #fff4e8;
  --muted: #f2c7a5;
  --primary: #ffb347;
  --primary-600: #ff7a45;
  --accent: #8be9f9;
  --bg-primary: #140d0b;
  --bg-secondary: #221310;
  --bg-tertiary: #321b15;
  --card-bg: #1c120f;
  --border-color: #513126;
  --text-primary: #fff4e8;
  --text-secondary: #ffd9bb;
  --text-muted: #f2c7a5;
  --primary-color: #ffb347;
}

body.summer-sale-theme-enabled .main-wrap::before {
  background-image:
    linear-gradient(rgba(20, 13, 11, 0.14), rgba(20, 13, 11, 0.26)),
    radial-gradient(circle at 18% 16%, rgba(255, 199, 95, 0.62), rgba(255, 199, 95, 0) 24%),
    radial-gradient(circle at 78% 12%, rgba(139, 233, 249, 0.22), rgba(139, 233, 249, 0) 26%),
    linear-gradient(180deg, #ff934f 0%, #ff7a45 26%, #c84d2f 58%, #1d1719 100%);
  background-position: center top, left top, right top, center top;
  background-size: 100% 100%, 32% 32%, 30% 30%, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll;
}

body.summer-sale-theme-enabled .site-header,
body.summer-sale-theme-enabled .site-footer {
  background: rgba(22, 12, 8, 0.9);
  border-color: rgba(255, 179, 71, 0.28);
}

body.summer-sale-theme-enabled .top-banner.info {
  background: rgba(28, 18, 15, 0.95);
  border-bottom-color: rgba(255, 122, 69, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.summer-sale-theme-enabled .timeline-step .step-number,
body.summer-sale-theme-enabled .timeline-connector {
  background: linear-gradient(135deg, #ffb347, #ff7a45, #ff5f6d);
  box-shadow: 0 8px 22px rgba(255, 122, 69, 0.28);
}

body.summer-sale-theme-enabled .about-section,
body.summer-sale-theme-enabled .comparison-section,
body.summer-sale-theme-enabled .seo-content-fullwidth {
  background: linear-gradient(180deg, rgba(30, 17, 13, 0.96) 0%, rgba(21, 11, 9, 0.98) 100%);
  border-top-color: rgba(255, 179, 71, 0.12);
}

body.summer-sale-theme-enabled .about-card,
body.summer-sale-theme-enabled .comparison-table,
body.summer-sale-theme-enabled .comparison-card {
  background: linear-gradient(180deg, rgba(35, 20, 16, 0.96), rgba(23, 13, 11, 0.98));
  border-color: rgba(255, 179, 71, 0.14);
}

body.summer-sale-theme-enabled .about-icon {
  background: rgba(255, 179, 71, 0.16);
  color: #ffd080;
}

body.summer-sale-theme-enabled .platform-card:hover {
  transform: scale(1.15);
  border-color: rgba(139, 233, 249, 0.46);
  box-shadow: 0 18px 38px rgba(255, 95, 109, 0.18);
}

body.summer-sale-theme-enabled .platform-card:hover .platform-image {
  box-shadow: 0 18px 38px rgba(255, 179, 71, 0.22);
}

body.summer-sale-theme-enabled .price-overlay {
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.04), rgba(20, 13, 11, 0.9));
}

/* Process timeline (How It Works) */
.process-timeline-section {
  margin: 0;
  padding: 0 0 36px;
}

.timeline-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--uae-haze-cream, var(--text));
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.process-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
}

.timeline-step {
  flex: 1;
  text-align: center;
  padding: 20px 18px 18px;
  border: 1px solid rgba(216, 176, 122, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 31, 46, 0.74), rgba(12, 21, 33, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline-step .step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--uae-sand-gold, #d8b07a), var(--uae-sunset-copper, #b87449));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #132235;
  margin: 0 auto 15px;
  box-shadow: 0 10px 24px rgba(184, 116, 73, 0.28);
}

.timeline-step .step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--uae-haze-cream, var(--text));
  margin-bottom: 8px;
}

.timeline-step .step-content p {
  font-size: 14px;
  color: rgba(244, 231, 210, 0.78);
  line-height: 1.55;
}

.timeline-connector {
  flex: 0 0 40px;
  height: 3px;
  background: linear-gradient(90deg, rgba(216, 176, 122, 0.35), rgba(184, 116, 73, 0.95), rgba(216, 176, 122, 0.35));
  margin-bottom: 60px;
  border-radius: 999px;
}

.about-section {
  margin: 0;
  padding: 48px 0;
  background: #0d1220;
  border-top: 1px solid var(--border);
}

.about-section .timeline-title {
  color: var(--text);
}

.about-section .seo-text-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.about-card h3 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 18px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .process-timeline {
    flex-direction: column;
    gap: 4px;
  }
  .timeline-connector {
    display: none;
  }
  .process-timeline-section {
    margin: 16px 0;
    padding: 24px 0;
  }
  .timeline-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .timeline-step {
    width: 100%;
    padding: 16px 14px;
  }
  .timeline-step .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin: 0 auto 6px;
  }
  .timeline-step .step-content h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .timeline-step .step-content p {
    font-size: 12px;
  }
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #d8b07a;
  --primary-600: #b87449;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --accent: #f4e7d2;

  /* Extended color variables for light theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary-color: #d8b07a;
  --success: #22c55e;
}

/* Force light theme for admin dashboard */
.admin-page {
  --bg: #ffffff !important;
  --card: #f8f9fa !important;
  --border: #e5e7eb !important;
  --text: #1f2937 !important;
  --muted: #6b7280 !important;
  --primary: #3b82f6 !important;
  --primary-600: #2563eb !important;
  --primary-color: #3b82f6 !important;
  --accent: #22d3ee !important;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page { min-height: 100%; display: flex; flex-direction: column; }
.bg-pitch { display: none; }
.site-header, .site-footer {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: #0a0a0a;
  z-index: 100010;
  overflow: visible;
}
.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 0;
  text-align: center;
  padding: 30px 20px;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-copyright {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.smallprint { color: var(--muted); font-size: 12px; text-align: center; }
.top-banner { position: sticky; top: 0; z-index: 10000; padding: 14px 16px; text-align: center; font-weight: 600; font-size: 15px; }
.top-banner.success { background: rgba(34,197,94,.95); color: #ffffff; border-bottom: 2px solid #16a34a; box-shadow: 0 2px 8px rgba(34,197,94,.3); }
.top-banner.error { background: rgba(239,68,68,.95); color: #ffffff; border-bottom: 2px solid #dc2626; box-shadow: 0 2px 8px rgba(239,68,68,.3); }
.top-banner.info { background: rgba(59,130,246,.95); color: #ffffff; border-bottom: 2px solid #2563eb; box-shadow: 0 2px 8px rgba(59,130,246,.3); }
.top-banner.sale { background: rgba(244,63,94,.95); color: #ffffff; border-bottom: 2px solid #e11d48; box-shadow: 0 2px 8px rgba(244,63,94,.3); }

.sale-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid #f43f5e; color:#f43f5e; background:rgba(244,63,94,.1); border-radius:999px; font-weight:700; font-size:12px; }
.sale-dot { width:6px; height:6px; border-radius:50%; background:#f43f5e; animation:pulse 1.5s infinite; }

.logo-wrap, .logo, .logo-fallback { display: none; }
.brand-text { text-align: center; font-weight: 900; color: var(--text); letter-spacing: .6px; font-size: 16px; line-height: 1.2; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; }

.rotating-text {
  min-width: 300px;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
}
.brand-icon { height: 1em; width: auto; vertical-align: middle; }
.site-header .header-actions { position: absolute; right: 12px; top: 0; bottom: 0; margin: auto 0; height: fit-content; display: flex; gap: 8px; align-items: center; z-index: 100015; }
.lang-switch { display: flex; gap: 6px; }
.site-header .header-left { position: absolute; left: 12px; top: 0; bottom: 0; margin: auto 0; height: fit-content; display: flex; gap: 8px; align-items: center; }
.site-header .header-left .link-btn { width: 34px; padding: 0; }
.site-header .header-left .live-prices-indicator { width: 34px; padding: 0; gap: 0; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  color: var(--text);
}

.mobile-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
  line-height: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
  color: var(--text);
  transition: color 0.2s ease;
}

.whatsapp-btn:hover {
  color: #25D366;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  display: flex;
  opacity: 1;
}

.mobile-nav-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
}

.mobile-nav-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-logo {
  height: 96px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.mobile-nav-header .mobile-nav-logo {
  grid-column: 2;
  justify-self: center;
}

.mobile-nav-header .mobile-menu-close {
  grid-column: 3;
  justify-self: end;
}

.brand-text-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: .6px;
  font-size: 18px;
  text-transform: uppercase;
}

.mobile-menu-close {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--text);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.mobile-nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  border: 2px solid var(--border);
  background: rgba(16, 23, 35, 0.9);
  color: var(--text);
  border-radius: 15px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
}

.mobile-nav-btn:hover {
  border-color: #00c853;
  background: rgba(0, 200, 83, 0.1);
  transform: translateY(-2px);
}

.lang-switch-mobile {
  display: flex;
  gap: 10px;
}

.lang-switch-mobile .mobile-nav-btn {
  flex: 1;
}

.instagram-btn-mobile {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: none !important;
  color: white !important;
}

.instagram-btn-mobile:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.back-btn {
  background: rgba(100, 100, 100, 0.2) !important;
  border-color: #666 !important;
  color: #ccc !important;
  margin-top: 20px;
}

.back-btn:hover {
  background: rgba(100, 100, 100, 0.3) !important;
  border-color: #888 !important;
  color: #fff !important;
}
.link-btn, .account-btn { 
  display: inline-flex; align-items: center; justify-content: center; 
  height: 34px; padding: 0 10px; border: 1px solid var(--border); 
  background: var(--card); color: var(--text); border-radius: 10px;
  font-weight: 700; cursor: pointer; text-decoration: none; 
  font-size: 14px; font-family: 'Inter', sans-serif;
}
.link-btn:hover, .account-btn:hover { border-color: #00c853; }

/* Currency Dropdown Styles */
.currency-dropdown {
  position: relative;
  display: inline-block;
  z-index: 100005;
}

#currency-toggle {
  cursor: pointer;
}

.currency-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 100007 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.currency-menu.active {
  display: block;
}

.currency-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.currency-option:hover {
  background: var(--bg-secondary);
}

/* Language Dropdown Styles */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 100005;
}

#lang-toggle {
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 100007 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.lang-menu.active {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.lang-option:hover {
  background: var(--bg-secondary);
}

/* Mobile Currency Dropdown */
.currency-dropdown-mobile {
  width: 100%;
}

.currency-menu-mobile {
  display: none;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.currency-menu-mobile.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.currency-option-mobile {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.currency-option-mobile:hover,
.currency-option-mobile.active {
  background: rgba(0, 200, 83, 0.2);
  border-color: #00c853;
}

/* Mobile Language Dropdown */
.lang-dropdown-mobile {
  width: 100%;
}

.lang-menu-mobile {
  display: none;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.lang-menu-mobile.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lang-option-mobile {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-option-mobile:hover,
.lang-option-mobile.active {
  background: rgba(0, 200, 83, 0.2);
  border-color: #00c853;
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: none !important;
  color: white !important;
}

.instagram-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
  border: none !important;
}

.instagram-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-btn svg {
  margin: 0;
}

.live-prices-indicator {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; 
  background: rgba(0, 200, 83, 0.1); border: 1px solid #00c853; 
  border-radius: 8px; color: #00c853; font-size: 14px; font-weight: 700;
  font-family: 'Inter', sans-serif; height: 34px;
}
.indicator-dot {
  width: 8px; height: 8px; background: #00c853; border-radius: 50%; 
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.main-wrap {
  --hero-banner-height: min(40vw, 793px);
  position: relative;
  z-index: 0;
  padding-bottom: 0;
}

.main-wrap::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--hero-banner-height);
  margin: 0 0 20px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14)),
    var(--bg-image, none),
    linear-gradient(180deg, #132235 0%, #34506b 52%, #d8b07a 100%);
  background-position: center top, center top, center top;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll;
}

.main-wrap.hide-hero-bg::before {
  height: 0 !important;
  margin: 0 !important;
  display: none !important;
}

.hero-overlay {
  min-height: var(--hero-banner-height);
  margin-top: calc(-1 * (var(--hero-banner-height) + 20px));
  padding: clamp(12px, 2vw, 24px) 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.hero-overlay .platform-section:not(.is-hidden) {
  min-height: auto !important;
  padding: 0 !important;
}
.content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 24px; position: relative; min-height: inherit; z-index: 0; }
.hero { text-align: center; padding: 8px 0 8px; }
.title { font-size: 32px; line-height: 1.15; margin: 0 0 8px; color: #ffffff; }
.subtitle { font-size: 16px; color: #ffffff; margin: 0; }

.section-title { font-size: 18px; margin: 28px 0 12px; color: var(--text); text-align: center; }

.platform-section { margin-top: 226px; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.platform-grid-three {
  --platform-visual-width: 300px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "pc pc"
    "xbox ps";
  column-gap: 28px;
  row-gap: 0;
  width: fit-content;
  max-width: none;
  margin: 0 auto;
  justify-items: center;
  justify-content: center;
  align-items: start;
}
.platform-card {
  appearance: none; background: transparent; color: var(--text);
  padding: 0; cursor: pointer; text-align: left; display: block; border: none;
  transition: transform 0.3s ease, z-index 0s 0s;
  position: relative;
  z-index: 1;
  overflow: visible;
}
.platform-card--xbox { grid-area: xbox; justify-self: end; }
.platform-card--pc { grid-area: pc; transform: translateY(-12px); }
.platform-card--ps { grid-area: ps; justify-self: start; }
.platform-card--xbox,
.platform-card--ps { margin-top: -110px; }
.platform-card:hover {
  transform: scale(1.08);
  z-index: 10;
}
.platform-card--pc:hover { transform: translateY(-12px) scale(1.08); }
.platform-image {
  width: var(--platform-visual-width);
  max-width: none;
  margin: 0 auto;
  background-color: transparent;
  display: block;
  position: relative;
  overflow: visible;
}
.platform-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.platform-image.placeholder { background: repeating-linear-gradient(45deg, #101723 0 10px, #0f1624 10px 20px); border: 1px dashed var(--border); }

/* Price overlay - show on hover only */
.price-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.platform-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.price-label {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.price-value {
  font-size: 36px;
  font-weight: 800;
}

.platform-image:hover img { filter: brightness(0.9); }
.platform-image:hover .price-overlay { opacity: 1; }
.platform-label { font-weight: 600; }

.quantity-section, .account-section, .dump-section { margin-top: 12px; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 16px; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; justify-content: center; }
.preset-btn { appearance: none; border: 1px solid var(--border); background: var(--card); color: var(--text); padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; transition: all 0.15s ease; }
.preset-btn:hover { border-color: var(--primary); color: var(--primary); }
.preset-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-600)); border-color: var(--primary-600); color: #111111; box-shadow: 0 6px 12px rgba(216,176,122,0.28); }
.account-section { padding: 12px; }
.account-section .form { gap: 10px; }
.account-section .form-row { gap: 4px; }
.account-section .form-row input { padding: 8px 10px; }
.account-section .form-row label { font-size: 13px; }
.account-section .actions { margin-top: 12px; }

/* Connect Later Button Tooltip */
#connect-later-btn {
  position: relative;
}

#connect-later-btn::after {
  content: "If you don't know your EA details, you can complete later using the link in your store account or link via email. Contact support if needed.";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 16px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

#connect-later-btn::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  margin-bottom: 2px;
}

#connect-later-btn:hover::after,
#connect-later-btn:hover::before {
  opacity: 1;
  visibility: visible;
}
.is-hidden { display: none; }

.slider-row { margin: 16px 0; }
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--range-progress, 0%),
    rgba(148, 163, 184, 0.28) var(--range-progress, 0%),
    rgba(148, 163, 184, 0.18) 100%
  );
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #f4e7d2;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(216,176,122,0.18);
  margin-top: -7px;
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}
input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #f4e7d2;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(216,176,122,0.18);
}
.quantity-readout { color: var(--muted); }

.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { color: var(--muted); font-size: 14px; }
.payment-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.payment-option-tile {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.payment-option-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(216,176,122,.55);
  box-shadow: 0 10px 26px rgba(15,23,42,.16);
}
.payment-option-tile.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(216,176,122,.18);
  background:
    linear-gradient(180deg, rgba(216,176,122,.14), rgba(184,116,73,.05)),
    var(--card);
}
.payment-option-tile__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.payment-option-tile__title {
  display: grid;
  gap: 4px;
}
.payment-option-tile__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.payment-option-tile__description {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.payment-option-tile__badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(216,176,122,.14);
  color: #f4e7d2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.payment-option-tile__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.payment-option-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.03);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.payment-option-logo--visa {
  background: #1a1f71;
  border-color: #3143c9;
  color: #ffffff;
}
.payment-option-logo--mastercard {
  background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50% 100%);
  border-color: rgba(247,158,27,.5);
  color: #fff7ed;
}
.payment-option-logo--amex {
  background: #2e77bc;
  border-color: #5fa4e0;
  color: #ffffff;
}
.payment-option-logo--apple {
  background: #111827;
  border-color: #4b5563;
  color: #ffffff;
}
.payment-option-logo--gpay {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}
.payment-option-logo--stripe {
  background: #635bff;
  border-color: #8b86ff;
  color: #ffffff;
}
.payment-option-logo--paypal {
  background: #003087;
  border-color: #0070e0;
  color: #ffffff;
}
.payment-option-logo--revolut {
  background: #0b0f19;
  border-color: #3b4254;
  color: #ffffff;
}
.payment-option-logo--payop,
.payment-option-logo--epayouts,
.payment-option-logo--more,
.payment-option-logo--bank,
.payment-option-logo--cash {
  background: rgba(30,41,59,.6);
  color: #e2e8f0;
}
.payment-option-logo--payop {
  border-color: rgba(216,176,122,.35);
}
.payment-option-logo--epayouts {
  border-color: rgba(184,116,73,.35);
}
.payment-option-logo--bank {
  border-color: rgba(148,163,184,.3);
}
.payment-option-logo--cash {
  border-color: rgba(234,179,8,.35);
}
.payment-more-toggle {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 999px;
  background: rgba(15,23,42,.2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.payment-more-toggle:hover {
  border-color: rgba(216,176,122,.55);
  color: #f4e7d2;
}
.payment-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}
.payment-more-grid.is-hidden {
  display: none;
}
.payment-more-grid .payment-option-tile {
  min-height: 84px;
}
.form-row input {
  appearance: none; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.form-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(216,176,122,.18); }
.form-row textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(216,176,122,.18); }
.form-hint { font-size: 12px; color: var(--muted); }
.info-note { background: rgba(216,176,122,.09); border: 1px solid rgba(216,176,122,.35); color: #f4e7d2; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.bank-row { margin-top: 6px; color: var(--text); }
.bank-title { font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.bank-hint { margin-top: 8px; color: var(--muted); }
.form-hint ol { margin: 6px 0 0 16px; padding: 0; }
.form-hint ol li { margin: 2px 0; }

/* Input suffix (e.g., "K") - rendered INSIDE the input field */
.input-with-suffix {
  position: relative;
  display: block;
}
.input-with-suffix input {
  width: 100%;
  padding-right: 44px; /* room for suffix */
}
.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* Hide number input spinners for the K-balance input only */
.input-with-suffix input[type="number"]::-webkit-outer-spin-button,
.input-with-suffix input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-with-suffix input[type="number"] {
  -moz-appearance: textfield;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.price-summary { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: 8px; 
  border-top: 1px solid var(--border); 
  padding-top: 12px; 
  margin-top: 8px; 
}
.price-summary div:nth-child(odd) { color: var(--muted); }
.price-summary div:nth-child(even) { font-weight: 600; }

.actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.btn { appearance: none; border: 1px solid var(--border); background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--primary); border-color: var(--primary-600); }
.btn-primary:hover { background: var(--primary-600); }
.btn-danger { background: var(--danger); border-color: var(--danger-600); }
.btn-danger:hover { background: var(--danger-600); }
.btn-ghost { background: transparent; }

@media (max-width: 720px) {
  .payment-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payment-more-grid {
    grid-template-columns: 1fr;
  }
  .payment-option-tile {
    min-height: 88px;
  }
  .payment-option-tile__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .payment-option-tile__title {
    width: 100%;
  }
  .payment-option-tile__badge {
    justify-self: start;
  }
  .payment-option-tile__logos {
    width: 100%;
  }
  .payment-option-logo {
    max-width: 100%;
  }
}

/* Preflight info notice (shown above EA account connect form) */
.info-notice.info-notice--preflight {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

[data-theme="light"] .info-notice.info-notice--preflight {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.info-notice__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-notice__icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
  flex: 0 0 auto;
}

.info-notice__title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.info-notice__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.info-notice__list strong {
  color: var(--text);
}

.summary { display: grid; gap: 8px; color: var(--muted); }
.summary-label { color: var(--text); font-weight: 600; margin-right: 6px; }
.verification-message { color: #16a34a; }

/* Price Comparison Styles (used in live pricing modal across all stores) */
.price-comparison-box {
  background: rgba(245, 245, 245, 0.5);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

[data-theme="light"] .price-comparison-box {
  background: rgba(0, 0, 0, 0.03);
}

.price-comparison-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  text-align: center;
  color: #fff;
}

[data-theme="light"] .price-comparison-title {
  color: #333;
}

.price-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.price-comparison-our-price {
  background: #4CAF50;
  color: white;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

.price-comparison-competitor {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

[data-theme="light"] .price-comparison-competitor {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.price-comparison-label {
  font-size: 9px;
  margin-bottom: 2px;
  opacity: 0.9;
  color: inherit;
}

.price-comparison-competitor .price-comparison-label {
  color: #666;
}

.price-comparison-value {
  font-size: 16px;
  font-weight: bold;
  color: inherit;
}

.price-comparison-competitor .price-comparison-value {
  font-size: 15px;
  color: #333;
}

.price-comparison-badge {
  font-size: 8px;
  margin-top: 2px;
  opacity: 0.9;
}

.price-comparison-savings {
  font-size: 8px;
  margin-top: 2px;
  color: #4CAF50;
}

.price-comparison-summary {
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  color: #4CAF50;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translate(-50%, 12px);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--primary);
  color: var(--text);
  box-shadow: 0 5px 18px rgba(0, 200, 83, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  z-index: 1100;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript { background: #1f2937; color: #f9fafb; padding: 10px 14px; text-align: center; }

/* Modal */
.modal.is-hidden { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100020; /* keep all modals above header/top-banner on every site */
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-content {
  position: relative;
  width: min(720px, 94vw);
  margin: 8vh auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title { margin: 4px 0 12px; font-size: 18px; }
.modal-header-actions { position: absolute; right: 44px; top: 10px; }
.modal-close { position: absolute; right: 10px; top: 6px; background: transparent; border: none; color: var(--text); font-size: 24px; cursor: pointer; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; margin-top: 12px; padding: 2px; }
.tab { appearance: none; background: rgba(0, 0, 0, 0.2); color: var(--text); border: 2px solid rgba(255, 255, 255, 0.3); padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.tab:hover { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.5); }
.tab.is-active { background: var(--primary); border-color: rgba(255, 255, 255, 0.7); color: white; }

/* Ensure customer account modal appears fully below the header */
#account-modal {
  align-items: flex-start;
}

#account-modal .modal-content {
  margin: 80px auto 16px; /* push content below ~60px header with a bit of spacing */
}

/* Wider raffle modal (match FCCOINSUAE layout) */
#raffle-modal .modal-content {
  width: min(1000px, 95vw);
  max-width: 1000px;
}

/* Make next draw look more premium */
#raffle-modal .raffle-card-expanded {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
#raffle-modal .raffle-card-expanded::before {
  content: "Next draw";
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
}
#raffle-modal .raffle-card-expanded .raffle-timer {
  font-size: 40px !important;
}

/* Ensure live pricing modal appears fully below the header and in a compact card */
#live-pricing-modal {
  align-items: flex-start;
}

#live-pricing-modal .modal-content {
  margin: 80px auto 16px;
  max-width: 480px;
}

/* Ensure rewards/FAQ/contact modals appear fully below the header on mobile */
@media (max-width: 768px) {
  #rewards-modal,
  #faq-modal,
  #contact-modal {
    align-items: flex-start;
  }

  #rewards-modal .modal-content,
  #faq-modal .modal-content,
  #contact-modal .modal-content {
    margin: 80px auto 16px;
  }
}

/* Mobile Tabs Dropdown */
.tabs-mobile-dropdown {
  display: none;
  margin-top: 12px;
  margin-bottom: 12px;
}

.tabs-mobile-select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.panels { min-height: 240px; }
.tab-panel.is-hidden { display: none; }
.list { display: grid; gap: 8px; }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 8px 0 16px; }
.stat-card { border: 1px solid var(--border); background: #0f1624; border-radius: 12px; padding: 12px; }
.stat-label { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.stat-value { font-weight: 700; font-size: 18px; }

.balance-card {
  background: linear-gradient(135deg, #00c853 0%, #00a041 100%);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.balance-card .stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.balance-card .stat-value {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0;
}

.balance-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.balance-details small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}
.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1624;
}

.account-item.inactive {
  opacity: 0.6;
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.account-toggle input {
  accent-color: #00c853;
}

.badge { padding: 2px 8px; border-radius: 999px; background: #0b7; color: white; font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.select-inline { appearance: none; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 8px; padding: 8px 10px; }
.section-actions .select-inline { min-width: 170px; padding: 8px 12px; }
.section-actions .checkbox-label { white-space: nowrap; }
.form select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
/* Ensure admin selects and their menus match theme */
.admin-page select { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.admin-page select option { background: var(--card); color: var(--text); }

/* Admin Page Styles */
.admin-stats { margin: 20px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.payouts-section, .activity-section { margin-top: 24px; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 20px; }

.payouts-list, .activity-list { display: grid; gap: 12px; }

.payout-item {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #0f1624;
  transition: border-color 0.2s ease;
}
.payout-item:hover { border-color: var(--accent); }

.payout-info { display: grid; gap: 4px; }
.payout-user { font-weight: 600; color: var(--text); }
.payout-method { color: var(--muted); font-size: 14px; }
.payout-amount { font-weight: 700; color: var(--primary); font-size: 18px; }
.payout-date { color: var(--muted); font-size: 12px; }

.payout-actions { display: flex; gap: 8px; }
.payout-actions .btn { padding: 6px 12px; font-size: 12px; }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px; color: var(--text); }
.empty-state p { margin: 0; }

.activity-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: #0f1624;
}
.activity-info { display: grid; gap: 2px; }
.activity-action { font-weight: 600; color: var(--text); }
.activity-details { color: var(--muted); font-size: 13px; }
.activity-time { color: var(--muted); font-size: 12px; }

.payout-details { display: grid; gap: 16px; margin-bottom: 20px; }
.detail-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.detail-label { color: var(--muted); font-weight: 500; }
.detail-value { color: var(--text); font-weight: 600; }

.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }
.confirm-message { color: var(--text); margin-bottom: 20px; }

/* Modal notes styling */
.modal-notes {
  margin: 20px 0;
  padding: 0 20px;
}

.modal-notes label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.modal-notes textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  background: #101723;
  color: var(--text);
  transition: border-color 0.3s ease;
}

.modal-notes textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* ===== BASIC ADMIN PANEL STYLES ===== */

/* Admin page layout */
.admin-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
}

/* Admin sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}


.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
  background: var(--border);
}

.sidebar-menu {
  padding: 16px 0;
}

.menu-section {
  margin-bottom: 24px;
}

.menu-section h3 {
  margin: 0 0 12px 0;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Menu Section Dropdown Styles */
.menu-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin: 0 0 8px 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}
.menu-section-header:hover {
  color: var(--text);
}
.menu-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.menu-section-header[aria-expanded="true"] .menu-arrow {
  transform: rotate(180deg);
}
.menu-section-content {
  display: block;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.menu-section-content[aria-hidden="true"] {
  max-height: 0;
  opacity: 0;
  display: none;
}
.menu-section-content[aria-hidden="false"] {
  max-height: 1000px;
  opacity: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: var(--bg);
  color: var(--text);
}

.menu-item.active {
  background: var(--bg);
  color: var(--primary);
  border-left-color: var(--primary);
}

.menu-icon {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Main content area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Content sections */
.content-section {
  display: none;
  flex: 1;
}

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

/* Sidebar toggle button in header */
.sidebar-toggle-btn {
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-right: 16px;
}

.sidebar-toggle-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
}

/* Admin header */
.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 500;
  backdrop-filter: blur(6px);
}

/* Live Chat Notification Banner */
.chat-notification-banner {
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.chat-notification-banner.is-hidden {
  display: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-icon {
  font-size: 32px;
  animation: bounce 2s infinite;
}

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

.notification-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-text strong {
  font-size: 16px;
  font-weight: 600;
}

.notification-text span {
  font-size: 13px;
  opacity: 0.9;
}

.notification-actions {
  display: flex;
  gap: 12px;
}

.chat-notification-banner .btn {
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
}

.chat-notification-banner .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Admin content */
.admin-content {
  max-width: none;
  margin: 0;
  padding: 16px 24px;
  width: 100%;
}

/* Admin polish */
.admin-page .admin-content {
  background: var(--bg);
}

.admin-page .section-header {
  gap: 12px;
}

.admin-page .admin-actions-bar {
  position: static;
  top: auto;
  z-index: auto;
  background: var(--bg);
  padding: 8px 0;
}

.admin-page .admin-actions {
  gap: 10px;
}

.admin-page .table-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}

.admin-page .orders-table,
.admin-page .customers-table {
  box-shadow: none;
  border-radius: 10px;
}

.admin-page .orders-table thead th,
.admin-page .customers-table thead th {
  background: var(--bg);
  color: var(--text);
  position: static;
  top: auto;
  z-index: auto;
}

.admin-page .status-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.admin-page .status-badge.pending { background: #fef3c7; color: #92400e; }
.admin-page .status-badge.verify { background: #dbeafe; color: #1e40af; }
.admin-page .status-badge.paid { background: #dcfce7; color: #166534; }
.admin-page .status-badge.in_process,
.admin-page .status-badge.waiting { background: #e0e7ff; color: #3730a3; }
.admin-page .status-badge.completed { background: #d1fae5; color: #065f46; }
.admin-page .status-badge.failed,
.admin-page .status-badge.wrong_info { background: #fee2e2; color: #991b1b; }
.admin-page .status-badge.refunded { background: #f3f4f6; color: #374151; }
.admin-page .status-badge.active { background: #dcfce7; color: #166534; }
.admin-page .status-badge.inactive { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
  .admin-page .admin-actions-bar {
    top: auto;
  }

  .admin-page .admin-actions {
    width: 100%;
  }
}

/* Sections */
.stats-section,
.traffic-section,
.activity-section,
.payouts-section,
.accounts-section,
.tickets-section,
.transfers-section,
.pricing-section,
.analytics-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.stats-section h2,
.traffic-section h2,
.activity-section h2,
.payouts-section h2,
.accounts-section h2,
.tickets-section h2,
.transfers-section h2,
.pricing-section h2,
.analytics-section h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.section-actions {
  display: flex;
  gap: 8px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary);
}

.stat-icon {
  font-size: 24px;
  opacity: 0.8;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Page view store cards */
.page-view-store-card {
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.page-view-store-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.page-view-store-card .store-name {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.page-view-store-card .store-views {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

/* Traffic content */
.traffic-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.traffic-chart {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.traffic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.traffic-source-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.traffic-source-item:hover {
  border-color: var(--primary);
}

.source-info {
  flex: 1;
}

.source-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.source-medium {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}

.source-stats {
  text-align: right;
}

.source-visitors {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.source-percentage {
  font-size: 12px;
  color: var(--muted);
}

/* Activity list */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.activity-item:hover {
  border-color: var(--primary);
}

.activity-icon {
  font-size: 20px;
  opacity: 0.8;
}

.activity-info {
  flex: 1;
}

.activity-description {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.activity-time {
  font-size: 12px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg);
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.toast-error {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.toast-info {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Admin section styles */
.payout-item,
.account-item,
.ticket-item,
.transfer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: border-color 0.3s ease;
}

.payout-item:hover,
.account-item:hover,
.ticket-item:hover,
.transfer-item:hover {
  border-color: var(--primary);
}

.payout-info,
.account-info,
.ticket-info,
.transfer-info {
  flex: 1;
}

.payout-user,
.account-user,
.ticket-user,
.transfer-user {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.payout-method,
.account-platform,
.ticket-subject,
.transfer-platform {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2px;
}

.payout-date,
.account-coins,
.ticket-date,
.transfer-amount {
  font-size: 12px;
  color: var(--muted);
}

.payout-amount {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  margin: 0 16px;
}

.payout-actions,
.account-actions,
.ticket-actions,
.transfer-actions {
  display: flex;
  gap: 8px;
}

.ticket-priority {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 16px;
}

.priority-high {
  background: #fecaca;
  color: #991b1b;
}

.priority-medium {
  background: #fed7aa;
  color: #9a3412;
}

.priority-low {
  background: #dcfce7;
  color: #166534;
}

.priority-urgent {
  background: #fecaca;
  color: #991b1b;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.pricing-override {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.analytics-content {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Button sizes */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-600);
  border-color: var(--danger-600);
}

/* Status badges */
.status-connected {
  background: #dcfce7;
  color: #166534;
}

.status-disconnected {
  background: #fecaca;
  color: #991b1b;
}

.status-open {
  background: #fbbf24;
  color: #1f2937;
}

.status-closed {
  background: #6b7280;
  color: white;
}

.status-completed {
  background: #10b981;
  color: white;
}

.status-in_progress {
  background: #3b82f6;
  color: white;
}

/* Customer Account / Raffle Section */
.account-tab-btn {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.account-tab-btn:hover {
  color: var(--text);
}

.account-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.account-tab-content {
  animation: fadeIn 0.3s ease;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Account Details Modal */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.info-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.info-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-item label {
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}

.info-item span {
  font-weight: 600;
  color: var(--text);
}

.balance-amount {
  color: var(--primary) !important;
  font-size: 16px;
  font-weight: 700;
}

.target-amount {
  color: #fbbf24 !important;
  font-size: 16px;
  font-weight: 700;
}

.strategy-badge {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.strategy-instant {
  background: #10b981;
}

.strategy-scheduled {
  background: #f59e0b;
}

.strategy-manual {
  background: #6b7280;
}

.account-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.account-actions .btn {
  min-width: 140px;
}

/* Responsive design */
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 12px;
    text-align: left;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions .btn {
    flex: 1 1 140px;
  }
  
  .traffic-content {
    grid-template-columns: 1fr;
  }
  
  .admin-content {
    padding: 12px 16px 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .payout-item,
  .account-item,
  .ticket-item,
  .transfer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .payout-amount,
  .ticket-priority {
    margin: 0;
  }
  
  .payout-actions,
  .account-actions,
  .ticket-actions,
  .transfer-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .search-input {
    width: 100%;
    margin-right: 0;
  }
}

.status-badge {
  padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.status-pending { background: #fbbf24; color: #1f2937; }
.status-approved { background: #10b981; color: white; }
.status-sent { background: #3b82f6; color: white; }
.status-completed { background: #059669; color: white; }
.status-rejected { background: #ef4444; color: white; }

@media (max-width: 768px) {
  .payout-item { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .payout-actions { justify-content: center; }
  .section-header { flex-direction: column; align-items: stretch; }
  .section-actions { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Authentication Styles */
.auth-modal-content { max-width: 480px; }
.auth-panel { display: block; }
.auth-panel.is-hidden { display: none; }
.auth-subtitle { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.auth-inline-message,
.auth-inline-error {
  margin: 10px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.auth-inline-message,
.auth-inline-error {
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.06);
  color: #1d4ed8;
}
.auth-inline-message.is-error,
.auth-inline-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}
.auth-inline-message.is-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}
.auth-inline-message.is-info {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}
.auth-inline-message.is-hidden,
.auth-inline-error.is-hidden { display: none; }
.auth-form { margin-top: 8px; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.form-actions .btn { width: 100%; justify-content: center; }

/* User Status in Header */
.user-status { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 12px; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-name { color: var(--text); font-weight: 500; font-size: 14px; }
.signout-btn { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.signout-btn:hover { color: var(--text); }

/* Live Price Updates */
.price-updated {
  animation: priceFlash 2s ease-in-out;
  background: rgba(0, 200, 83, 0.2) !important;
  border-radius: 4px;
  padding: 2px 4px;
}

@keyframes priceFlash {
  0% { background: rgba(0, 200, 83, 0.4); transform: scale(1.05); }
  50% { background: rgba(0, 200, 83, 0.2); }
  100% { background: transparent; transform: scale(1); }
}

.price-timestamp {
  font-family: 'Inter', monospace;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Loading indicator for price updates */
.price-loading {
  opacity: 0.7;
  position: relative;
}

.price-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  width: 12px;
  height: 12px;
  border: 2px solid #00c853;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Live Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: #00c853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 200, 83, 0.4);
}

.chat-toggle svg {
  color: white;
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.chat-badge.show {
  opacity: 1;
  transform: scale(1);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: bold;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.chat-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.chat-close:active {
  transform: scale(0.95);
  background: rgba(255,255,255,0.4);
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-content {
  background: #f1f5f9;
  color: #1e293b;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.user-message .message-content {
  background: var(--primary);
  color: white;
}

.bot-message .message-content {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Dark theme bot messages */
[data-theme="dark"] .bot-message .message-content {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

/* Override eafcshop white primary color for bot messages */
body .bot-message .message-content {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

[data-theme="dark"] body .bot-message .message-content {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

/* Ensure visibility for alternative class names (socket-based widget compatibility) */
.chat-messages .customer-message .message-content { background: #ffffff !important; color: #1e293b !important; }
.chat-messages .admin-message .message-content { background: #f1f5f9 !important; color: #1e293b !important; }
[data-theme="dark"] .chat-messages .customer-message .message-content { background: #ffffff !important; color: #1e293b !important; }
[data-theme="dark"] .chat-messages .admin-message .message-content { background: #0f172a !important; color: #e2e8f0 !important; }

/* CHRISTMAS THEME - NUCLEAR OVERRIDE FOR ALL SITES */
body #chat-widget #chat-panel #chat-messages .chat-message.customer-message .message-content,
body #chat-widget #chat-messages .chat-message.customer-message .message-content,
body #chat-panel #chat-messages .chat-message.customer-message .message-content,
#chat-widget #chat-panel #chat-messages .chat-message.customer-message .message-content,
#chat-widget #chat-messages .chat-message.customer-message .message-content,
#chat-panel #chat-messages .chat-message.customer-message .message-content,
#chat-messages .chat-message.customer-message .message-content,
div#chat-messages div.chat-message.customer-message div.message-content,
div.chat-message.customer-message div.message-content,
body #chat-widget #chat-panel #chat-messages .user-message .message-content,
body #chat-widget #chat-messages .user-message .message-content,
body #chat-panel #chat-messages .user-message .message-content,
#chat-widget #chat-panel #chat-messages .user-message .message-content,
#chat-widget #chat-messages .user-message .message-content,
#chat-panel #chat-messages .user-message .message-content,
#chat-messages .user-message .message-content,
div#chat-messages div.user-message div.message-content,
div.user-message div.message-content,
.user-message .message-content {
  background: #c41e3a !important;
  background-color: #c41e3a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body #chat-widget #chat-panel #chat-messages .chat-message.admin-message .message-content,
body #chat-widget #chat-messages .chat-message.admin-message .message-content,
body #chat-panel #chat-messages .chat-message.admin-message .message-content,
#chat-widget #chat-panel #chat-messages .chat-message.admin-message .message-content,
#chat-widget #chat-messages .chat-message.admin-message .message-content,
#chat-panel #chat-messages .chat-message.admin-message .message-content,
#chat-messages .chat-message.admin-message .message-content,
div#chat-messages div.chat-message.admin-message div.message-content,
div.chat-message.admin-message div.message-content {
  background: #165b33 !important;
  background-color: #165b33 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#chat-messages .chat-message.bot-message .message-content,
div.chat-message.bot-message div.message-content {
  background: #165b33 !important;
  background-color: #165b33 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Christmas theme - Chat send button */
#chat-widget .chat-send-btn,
.chat-widget .chat-send-btn,
.chat-panel .chat-send-btn,
#chat-panel .chat-send-btn,
button.chat-send-btn {
  background: #c41e3a !important;
  background-color: #c41e3a !important;
  color: #ffffff !important;
}

#chat-widget .chat-send-btn:hover,
.chat-widget .chat-send-btn:hover,
.chat-panel .chat-send-btn:hover,
#chat-panel .chat-send-btn:hover,
button.chat-send-btn:hover {
  background: #a01730 !important;
  background-color: #a01730 !important;
  opacity: 1 !important;
}

.message-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  align-self: flex-end;
}

.user-message .message-time {
  align-self: flex-start;
}

.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 14px;
  outline: none;
}

/* Ensure input text is visible in all themes */
.chat-input-area input::placeholder {
  color: var(--muted) !important;
}

[data-theme="light"] .chat-input-area input {
  background: #ffffff !important;
  color: #1e293b !important;
}

[data-theme="dark"] .chat-input-area input {
  background: #121722 !important;
  color: #e6ecf2 !important;
}

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

/* Force visible text color for customer chat input - override any theme issues */
.chat-widget .chat-input-area input,
.chat-widget #chat-input {
  color: #1e293b !important;
  background: #ffffff !important;
  -webkit-text-fill-color: #1e293b !important;
}

[data-theme="dark"] .chat-widget .chat-input-area input,
[data-theme="dark"] .chat-widget #chat-input {
  color: #e6ecf2 !important;
  background: #121722 !important;
  -webkit-text-fill-color: #e6ecf2 !important;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  background: var(--primary-600);
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Navigation - Simple and Reliable */
@media screen and (max-width: 768px) {
  /* Hide theme toggle on mobile (keep IG, live prices, language & currency visible) */
  .theme-toggle-icons {
    display: none !important;
    visibility: hidden !important;
  }

  /* Hide ALL desktop navigation buttons except mobile menu */
  .header-actions button:not(.mobile-menu-btn),
  .header-actions .lang-switch {
    display: none !important;
    visibility: hidden !important;
  }

  /* Keep left header tools (IG, live prices, lang, currency) visible on mobile */
  .header-left {
    display: flex !important;
    visibility: visible !important;
  }

  /* Small 3-line menu button sized like IG/live buttons */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-direction: column !important;
  }

  /* Simplify & center header for mobile - hide brand text, center tabs */
  .site-header {
    padding: 10px 12px !important;
    height: 60px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .brand-text {
    display: none !important;
  }

  .rotating-text {
    display: none !important;
  }

  /* Put header-left icons and menu button on one centered row */
  .header-left,
  .header-actions {
    position: static !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .header-actions {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Make all header-left buttons consistent size on mobile */
  .header-left .link-btn,
  .header-left a.link-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .live-prices-indicator {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 10px !important;
  }

  /* WhatsApp button - same size as other icons */
  .whatsapp-btn {
    width: 34px !important;
    height: 34px !important;
  }

  /* Language and currency dropdowns on mobile */
  .lang-dropdown,
  .currency-dropdown {
    position: relative !important;
  }

  .lang-dropdown .link-btn,
  .currency-dropdown .link-btn {
    width: 34px !important;
    height: 34px !important;
  }

  /* Hide footer partner links on mobile */
  .partner-column,
  .partner-link {
    display: none !important;
  }

  /* Larger touch targets for buttons */
  .platform-card .btn,
  .quantity-btn,
  .buy-btn {
    min-height: 48px;
    font-size: 1rem;
  }

  /* Better quantity selector on mobile */
  .quantity-selector {
    gap: 8px;
  }

  .quantity-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Scale down Christmas Sale badge */
  .bf-floating-badge {
    transform: scale(0.85);
    bottom: 10px;
    left: 10px;
  }
  
  /* Make live prices square same size as Instagram button */
  .live-prices-indicator {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    flex-direction: column !important;
    line-height: 1 !important;
  }
  
  .indicator-dot {
    width: 4px !important;
    height: 4px !important;
  }
  
  .live-text {
    font-size: 8px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
  }
  
  /* Sticky mobile CTA bar */
  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: none; /* toggled via JS */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  }
  .mobile-sticky-cta .summary {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: var(--text-secondary);
  }
  .mobile-sticky-cta .summary .line {
    line-height: 1.2;
  }
  .mobile-sticky-cta .total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
  }
  .mobile-sticky-cta .btn-primary {
    min-width: 120px;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
  }
  
  .header-actions {
    right: 15px !important;
    top: 12px !important;
    z-index: 10 !important;
  }
  
  /* Mobile nav overlay - compact dropdown (like EASPORTSCOINS/FCUTSTORE) */
  .mobile-nav-overlay {
    /* Full-screen transparent click-catcher so tapping outside closes the menu */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100020 !important;
    background: transparent !important;  /* keep dropdown feel, but capture outside taps */
    backdrop-filter: none !important;    /* remove blur */
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .mobile-nav-content {
    position: absolute !important;
    top: 60px !important;           /* just below the header */
    right: 12px !important;
    left: auto !important;
    width: 190px !important;        /* compact dropdown width */
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    padding: 4px 6px !important;
    align-items: stretch !important;
    margin: 0 !important;
    background: var(--card) !important;           /* solid background like currency dropdown */
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
  }

  .mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start !important;
  }

  .mobile-nav-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    border: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  .mobile-nav-btn:hover {
    background: rgba(0, 200, 83, 0.1) !important;
    transform: none !important;
  }

  .instagram-btn-mobile {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
  }
  
  /* Content spacing and centering */
  .main-wrap {
    --hero-banner-height: min(150vw, 900px);
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: auto !important;
    display: block !important;
  }
  
  .content {
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hero-overlay {
    min-height: var(--hero-banner-height);
    margin-top: calc(-1 * (var(--hero-banner-height) + 14px));
    padding: 10px 0 16px;
  }

  /* Center platform cards side by side */
  .platform-section:not(.is-hidden) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 50vh !important;
    margin-top: 168px !important;
  }

  .platform-section.is-hidden {
    display: none !important;
  }
  
  .platform-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  /* 3-column grid on tablet: show 2 columns, then 1 column on mobile */
  .platform-grid-three {
    --platform-visual-width: 320px;
    grid-template-columns: auto auto !important;
    grid-template-areas:
      "xbox pc"
      "ps ps" !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
    width: fit-content !important;
    max-width: none !important;
    justify-content: center !important;
  }

  /* Make platform cards full-width when stacked on mobile */
  .platform-card {
    max-width: none !important;
    min-width: 0 !important;
    transform: none !important;
  }

  .platform-card--xbox,
  .platform-card--ps {
    margin-top: -80px !important;
  }

  .platform-card:hover {
    transform: scale(1.05) !important;
  }
  
  .platform-image {
    width: var(--platform-visual-width) !important;
    max-width: none !important;
    height: auto !important;
  }
  
  /* Mobile background positioning - show Burj Khalifa */
  .main-wrap::before {
    height: var(--hero-banner-height);
    margin-bottom: 14px;
    background-position: center top !important;
    background-size: 100% 100%, 100% 100%, 100% 100% !important;
    background-attachment: scroll !important;
  }

  .hero-overlay .platform-section:not(.is-hidden) {
    min-height: auto !important;
    padding: 6px 0 0 !important;
  }
}

@media (max-width: 768px) {
  .main-wrap {
    min-height: 100vh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .main-wrap::before {
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    margin: 0 !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .hero-overlay {
    min-height: auto !important;
    margin-top: 0 !important;
    padding: 12px 0 12px;
  }

  .hero {
    padding: 8px 0 8px !important;
  }

  .title {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 14px;
  }

  .platform-section {
    margin-top: 20px !important;
  }

  .platform-section:not(.is-hidden) {
    min-height: auto !important;
    margin-top: 20px !important;
    padding: 0 !important;
  }

  .platform-grid-three {
    --platform-visual-width: min(82vw, 300px);
    width: 100% !important;
    max-width: 340px !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "pc"
      "xbox"
      "ps" !important;
    justify-items: center !important;
    justify-content: center !important;
    column-gap: 0 !important;
    row-gap: 8px !important;
  }

  .platform-card,
  .platform-card--pc,
  .platform-card--xbox,
  .platform-card--ps {
    width: 100% !important;
    max-width: 340px !important;
    margin-top: 0 !important;
    transform: none !important;
    justify-self: center !important;
  }

  .platform-card:hover,
  .platform-card--pc:hover {
    transform: scale(1.03) !important;
  }

  .platform-image {
    width: var(--platform-visual-width) !important;
    max-width: var(--platform-visual-width) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .title { font-size: 22px; }
  .platform-image { max-width: min(80vw, 280px); }
  .stats-grid { grid-template-columns: 1fr; }
  .auth-modal-content { margin: 4vh auto; width: 90vw; }
  .price-timestamp {
    top: 5px;
    right: 5px;
    padding: 6px 8px;
    font-size: 10px;
  }

  /* Reduce spacing on smaller mobile screens */
  .hero {
    padding: 4px 0 !important;
  }

  .platform-section:not(.is-hidden) {
    min-height: auto !important;
    padding: 0 !important;
  }

  .platform-section.is-hidden {
    display: none !important;
  }

  /* Hide tabs on small mobile screens, show dropdown */
  .tabs {
    display: none !important;
  }

  .tabs-mobile-dropdown {
    display: block !important;
  }

  .modal-title {
    font-size: 18px;
    margin-bottom: 20px !important;
  }
  
  .platform-grid {
    gap: 10px !important;
    max-width: 300px !important;
  }

  /* 3-column grid on mobile: single column */
  .platform-grid-three {
    grid-template-columns: 1fr !important;
    max-width: 280px !important;
  }

  .platform-card {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 0 !important;
  }
  
  /* Additional mobile menu improvements */
  .mobile-nav-content {
    padding: 15px;
  }
  
  .mobile-nav-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
  }
  
  .mobile-nav-items {
    gap: 25px;
  }
  
  .mobile-nav-section {
    gap: 12px;
  }
  
  .mobile-nav-btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}

  
  .chat-widget {
    bottom: 10px;
    right: 10px;
  }
  
  .chat-panel {
    width: 320px;
    height: 450px;
    right: 10px;
    bottom: 80px;
  }
  
  .chat-toggle {
    width: 50px;
    height: 50px;
  }
}

/* Support Tickets Section */
.tickets-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.ticket-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ticket-info {
  flex: 1;
}

.ticket-id {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}

.ticket-customer {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.ticket-message {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-date {
  color: var(--muted);
  font-size: 12px;
}

.ticket-actions {
  display: flex;
  gap: 8px;
}

.ticket-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-status.open {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.ticket-status.in-progress {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.ticket-status.resolved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.ticket-status.closed {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.ticket-reply-section {
  margin: 12px 0;
  padding: 12px;
  background: rgba(0, 200, 83, 0.05);
  border: 1px solid rgba(0, 200, 83, 0.2);
  border-radius: 8px;
}

.ticket-reply-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
  outline: none;
}

.ticket-reply-input:focus {
  border-color: #00c853;
}

.ticket-reply-input::placeholder {
  color: var(--muted);
}

/* Archived Sections */
.archived-section {
  background: rgba(107, 114, 128, 0.05);
  border-color: rgba(107, 114, 128, 0.2);
}

.archived-section .section-title {
  color: #6b7280;
}

/* Payout Status */
.payout-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-block;
}

.payout-status.status-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.payout-status.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.payout-status.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Payment Methods Footer */
.payment-methods {
  display: none;
}

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.payment-icon svg {
  transition: transform 0.3s ease;
}

.payment-icon:hover svg {
  transform: scale(1.1);
}

.sell-flow-section {
  display: block;
}

.sell-flow-container {
  width: 60%;
  max-width: 420px;
  margin: 0;
  text-align: left;
}

.sell-flow-container .input-group,
.sell-flow-container .payout-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
}

.sell-flow-container .btn {
  align-self: flex-start;
}

.account-section {
  display: block;
}

.account-section.is-hidden {
  display: none !important;
}

.account-card {
  width: 30%;
  max-width: 280px;
  margin: 0;
  text-align: left;
}

.account-actions {
  justify-content: flex-start;
}

.dashboard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.btn.btn-secondary {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.5);
  color: #00c853;
}

.btn.btn-secondary:hover {
  background: rgba(0, 200, 83, 0.25);
}

.dump-all-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.dump-all-toggle label {
  font-size: 14px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: #111725;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.3;
  font-size: 12px;
}

.platform-card[data-platform="pc"] .platform-image img { transform: none; }

.features-section {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: stretch;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 200, 83, 0.12);
  color: #00c853;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.feature-testimonial {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 20px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.testimonial-quote {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
}

.testimonial-author {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.testimonial-quote,
.testimonial-author {
  transition: opacity 0.25s ease-in-out;
}

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

.account-status-section,
.transfer-feed-section,
.payouts-table-section {
  margin-top: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
}

.status-table {
  display: grid;
  gap: 12px;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 160px 140px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101723;
}

.status-row.inactive {
  opacity: 0.55;
}

.status-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.status-toggle input {
  accent-color: #00c853;
}

.transfer-feed {
  display: grid;
  gap: 12px;
}

.transfer-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101723;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.transfer-status {
  font-weight: 700;
  text-transform: uppercase;
}

.transfer-actions {
  display: flex;
  gap: 8px;
}

.payouts-table {
  overflow-x: auto;
}

.payouts-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.payouts-table thead {
  background: #101723;
}

.payouts-table th,
.payouts-table td {
  border: 1px solid var(--border);
  padding: 12px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}

.payouts-table tbody tr:nth-child(even) {
  background: rgba(15, 22, 36, 0.6);
}

.payouts-table input[type="text"] {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0e1420;
  color: var(--text);
}

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

.analytics-section,
.top-sellers-section,
.funnel-section {
  margin-top: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
}

.sales-chart {
  display: grid;
  gap: 16px;
}

.sales-chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  align-items: end;
}

.sales-chart-bar {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.55), rgba(34, 197, 94, 0.15));
  border-radius: 10px 10px 4px 4px;
  position: relative;
  padding: 12px 10px 50px;
  overflow: hidden;
}

.sales-chart-bar .bar-revenue {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 40px;
  background: #22c55e;
  border-radius: 6px 6px 2px 2px;
}

.sales-chart-bar .bar-coins {
  position: absolute;
  left: 8px;
  right: 26px;
  bottom: 40px;
  background: rgba(59, 130, 246, 0.7);
  border-radius: 6px 6px 2px 2px;
}

.sales-chart-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.sales-chart-value {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
}

.sales-chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.sales-chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sales-chart-legend .legend-item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.sales-chart-legend .legend-item.revenue::before {
  background: #22c55e;
}

.sales-chart-legend .legend-item.coins::before {
  background: rgba(59, 130, 246, 0.7);
}

.top-sellers-list {
  display: grid;
  gap: 12px;
}

.top-sellers-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101723;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 120px;
  gap: 12px;
  align-items: center;
}

.top-sellers-item .seller-name {
  font-weight: 600;
}

.top-sellers-item .seller-email {
  font-size: 12px;
  color: var(--muted);
}

.funnel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.funnel-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101723;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.funnel-step {
  font-size: 13px;
  color: var(--muted);
}

.funnel-value {
  font-size: 20px;
  font-weight: 700;
}

.funnel-rate {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .top-sellers-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* New Pricing Interface Styles */
.pricing-platform-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.pricing-platform-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-tier label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
}

.pricing-tier input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.pricing-tier input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pricing-tier .price-unit {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

.pricing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.pricing-actions .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
}

.status-text {
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pricing-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.warning-message {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #facc15;
  font-size: 13px;
  line-height: 1.5;
}

/* Progress UI */
.progress-wrap { display: grid; gap: 10px; margin-top: 8px; }
.progress-label { color: var(--muted); font-size: 14px; }
.progress-bar { width: 100%; height: 14px; background: #0e1420; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); width: 0%; transition: width .3s ease; }
.progress-eta { color: var(--muted); font-size: 12px; }

/* Live Pricing Modal Styles */
.pricing-info-content {
  text-align: center;
  padding: 2rem;
}

.pricing-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.pricing-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #555;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: 8px;
  text-align: left;
  color: var(--text);
}

.feature-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

/* Admin Live Visitors Styles */
.visitors-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.visitor-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visitor-stat .stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.visitor-stat .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
}

.visitors-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.visitors-table th,
.visitors-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.visitors-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.visitors-table tr:hover {
  background: #f8f9fa;
}

/* Admin Staff Management Styles */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.staff-table th,
.staff-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.staff-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.staff-table tr:hover {
  background: #f8f9fa;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
}

/* Full Width Section Styles */
.full-width-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.full-width-table {
  width: 100%;
  table-layout: auto;
}

/* Search Container Styles */
.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

.search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 300px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Section Actions Layout */
.section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .search-container {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }

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

  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Admin Orders and Customers Table Styles */
.orders-table,
.customers-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.orders-table th,
.orders-table td,
.customers-table th,
.customers-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.orders-table th,
.customers-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orders-table thead th,
.customers-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.orders-table tr:hover,
.customers-table tr:hover {
  background: #f8f9fa;
}

.orders-table tr:last-child td,
.customers-table tr:last-child td {
  border-bottom: none;
}

/* Mobile card views for orders/customers */
.order-cards,
.customer-cards {
  display: none;
  gap: 12px;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: grid;
  gap: 8px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.admin-card-meta {
  font-size: 12px;
  color: var(--muted);
}

.admin-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 12px;
}

.admin-card-grid strong {
  color: var(--text);
  font-weight: 600;
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .orders-table,
  .customers-table {
    display: none;
  }

  .order-cards,
  .customer-cards {
    display: grid;
  }
}

/* Order History Styles */
.order-history-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.order-history-section h4 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.order-history-list {
  max-height: 300px;
  overflow-y: auto;
}

.order-history-item {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.order-id {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.order-date {
  color: #6b7280;
  font-size: 0.85rem;
}

.order-amount {
  font-weight: 600;
  color: #059669;
  font-size: 0.9rem;
}

/* Status Badge Styles */
.status-badge.verify {
  background: #f3e8ff;
  color: #7c3aed;
}

.status-badge.paid {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.completed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.in-progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.wrong-info {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.failed {
  background: #fde2e7;
  color: #be185d;
}

.status-badge.rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* Status Change Section */
.status-change-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.status-change-section h4 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.status-controls {
  display: grid;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}

/* TIP Button Styles */
.input-with-tip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.tip-btn:active {
  transform: translateY(0);
}

.tip-popup {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.tip-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tip-popup h4 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.tip-popup ol {
  margin: 0;
  padding-left: 16px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.tip-popup li {
  margin-bottom: 4px;
}

/* Improved Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-label:hover {
  background: #f9fafb;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #10b981;
  border-color: #10b981;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
  color: #10b981;
  font-weight: 500;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
}

.checkbox-text {
  color: #374151;
  font-size: 14px;
  transition: all 0.2s ease;
}


/* Modal Content Improvements */
.info-section {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.info-item label {
  font-weight: 600;
  color: #374151;
  min-width: 120px;
}

.info-item span {
  color: #6b7280;
  text-align: right;
}

/* Responsive Table Styles */
@media (max-width: 768px) {
  .orders-table,
  .customers-table {
    font-size: 0.8rem;
  }

  .orders-table th,
  .orders-table td,
  .customers-table th,
  .customers-table td {
    padding: 0.5rem;
  }

  .order-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Customer Dashboard Order Styles */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: white;
  transition: box-shadow 0.2s;
}

.order-item:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-info {
  flex: 1;
}

.order-id {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.order-details {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.order-date {
  color: #9ca3af;
  font-size: 0.8rem;
}

.order-status {
  margin-left: 1rem;
}

/* Status badges for customer dashboard */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Order Status Message */
.status-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.status-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

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

/* Sales Analytics Styles */
.analytics-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.analytics-tabs .tab {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.analytics-tabs .tab:hover {
  color: var(--text);
}

.analytics-tabs .tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.analytics-panel {
  display: none;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: var(--danger);
}

.chart-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-container h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
}

.chart-placeholder {
  height: 300px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
}

.daily-stats,
.weekly-stats,
.monthly-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-item strong {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Theme Toggle Icons */
.theme-toggle-icons {
  display: none !important; /* Hidden - light theme not fully working */
  gap: 4px;
}

.theme-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.theme-icon-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-icon-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Rewards Popup Modal Styles */
.rewards-modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.rewards-main-selection {
  display: block;
}

.selection-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.selection-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.selection-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.selection-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.selection-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.selection-card p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.container-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.back-btn {
  background: var(--muted);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: var(--primary);
}

.container-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.rewards-points-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.points-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.points-label {
  color: var(--muted);
  font-weight: 500;
}

.points-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.daily-bonus-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.daily-bonus-btn:hover {
  transform: scale(1.05);
}

.daily-bonus-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}


.rewards-container {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  padding: 1.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.game-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.game-card p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.spin-wheel-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
}

.spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 6px solid var(--border);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.wheel-section {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--primary);
  z-index: 10;
}

/* Large Spin Wheel Modal Styles */
.spin-wheel-modal-content {
  max-width: 600px;
  text-align: center;
}

.spin-wheel-game-container {
  position: relative;
  width: 450px;
  height: 450px;
  margin: 20px auto;
}

.spin-wheel-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 15px solid #2c3e50;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 0 0 8px rgba(52, 152, 219, 0.3),
    0 0 0 12px rgba(46, 204, 113, 0.2);
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 70%);
  overflow: hidden;
}

.wheel-section-large {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.wheel-section-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.wheel-section-large:hover {
  transform: scale(1.05);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.prize-icon {
  font-size: 28px;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.prize-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #f39c12, #e67e22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  border: 4px solid #2c3e50;
  z-index: 20;
}

.center-logo {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.wheel-pointer-large {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 60px solid #e74c3c;
  z-index: 15;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.wheel-pointer-large::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #c0392b;
}

.spin-wheel-controls {
  margin-top: 30px;
}

.btn-large {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  min-width: 200px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.btn-large:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.spin-result-large {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  min-height: 24px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scratch-card {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
  cursor: pointer;
}

.scratch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #c0c0c0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #666;
}

.dice-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.dice {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text);
}

.game-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
}

.game-button:hover {
  background: #0891b2;
}

.game-button:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.reward-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.reward-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.reward-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.reward-description {
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.reward-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.reward-button {
  width: 100%;
  padding: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.reward-button:hover {
  background: var(--primary-600);
}

.reward-button:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .rewards-modal-content {
    max-width: 95vw;
    margin: 1rem;
  }

  .rewards-points-display {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .rewards-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .spin-wheel-container {
    width: 120px;
    height: 120px;
  }
}

/* Analytics styling - using dark theme variables */

/* Customer Table Styles */
.customers-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.customers-table th,
.customers-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.customers-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.customers-table td {
  color: var(--text);
  font-size: 14px;
}

.customers-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.search-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  width: 250px;
  margin-right: 12px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.customer-stats {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

/* Customer Details Modal */
.customer-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.detail-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.detail-section h4 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-item label {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.info-item span {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.orders-list {
  max-height: 200px;
  overflow-y: auto;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-id {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.order-details {
  color: var(--muted);
  font-size: 12px;
}

.order-date {
  color: var(--muted);
  font-size: 11px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #10b981;
  color: white;
}

.status-badge.inactive {
  background: #ef4444;
  color: white;
}

.status-badge.pending {
  background: #f59e0b;
  color: white;
}

.status-badge.completed {
  background: #10b981;
  color: white;
}

.status-badge.failed {
  background: #ef4444;
  color: white;
}

.status-badge.refunded {
  background: #6b7280;
  color: white;
}

/* Orders Table Styles */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.orders-table th,
.orders-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.orders-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orders-table td {
  color: var(--text);
  font-size: 14px;
}

.orders-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.order-stats {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 16px;
}

/* Order Details Modal */
.order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.status-update-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.status-update-form select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}

/* Order Status Badges */
.status-badge.paid {
  background: #10b981;
  color: white;
}

.status-badge.verify {
  background: #3b82f6;
  color: white;
}

.status-badge.in_process {
  background: #f59e0b;
  color: white;
}

.status-badge.waiting {
  background: #f59e0b;
  color: white;
}

.status-badge.shipped {
  background: #8b5cf6;
  color: white;
}

.status-badge.completed {
  background: #10b981;
  color: white;
}

.status-badge.failed {
  background: #ef4444;
  color: white;
}

.status-badge.wrong_info {
  background: #f97316;
  color: white;
  font-weight: 600;
}

.status-badge.fraud {
  background: #dc2626;
  color: white;
}

.status-badge.refunded {
  background: #6b7280;
  color: white;
}

.status-badge.chargeback {
  background: #991b1b;
  color: white;
}

.status-badge.pending {
  background: #f59e0b;
  color: white;
}

/* Order notes styling for customer account */
.order-notes {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  padding: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.order-notes strong {
  color: #92400e;
}

.order-platform {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

/* ===== NEW CUSTOMER DASHBOARD STYLES ===== */

/* Customer Dashboard Container */
.customer-dashboard {
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

/* Customer Stats Overview */
.customer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.customer-stats .stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.customer-stats .stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.stat-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  color: #6b7280;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

/* Overview Tab Styles */
.overview-section {
  margin-bottom: 2rem;
}

.overview-section h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.25rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.activity-item.loading {
  border-left-color: #f59e0b;
}

.activity-icon {
  font-size: 1.5rem;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-weight: 500;
  color: #374151;
}

.activity-time {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.action-icon {
  font-size: 2rem;
}

.action-text {
  font-weight: 600;
  color: #374151;
}

/* Orders Tab Styles */
.orders-section h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.25rem;
}

.orders-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.filter-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
}

.loading-icon {
  font-size: 2rem;
  opacity: 0.6;
}

.loading-text {
  color: #6b7280;
  font-size: 1rem;
}

/* Order Item Styles */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.order-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.order-info {
  flex: 1;
}

.order-id {
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.25rem;
}

.order-details {
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.order-date {
  font-size: 0.875rem;
  color: #9ca3af;
}

.order-platform {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.order-status {
  margin-left: 1rem;
}

/* Order Card Styles */
.order-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-card .order-id {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.order-card .order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0;
}

.order-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.status-paid {
  background: #dbeafe;
  color: #1e40af;
}

.order-status.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.order-status.status-shipped {
  background: #d1fae5;
  color: #065f46;
}

.order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.order-card .order-info {
  flex: 1;
}

.order-coins {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

/* Cashback Tab Styles */
.cashback-section h3 {
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 1.25rem;
}

.cashback-balance-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #374151;
  margin-bottom: 2rem;
}

.balance-icon {
  font-size: 2.5rem;
  opacity: 0.7;
  color: #6b7280;
}

.balance-content {
  flex: 1;
}

.balance-label {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.balance-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.balance-description {
  font-size: 0.875rem;
  color: #9ca3af;
}

.cashback-history h4 {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1.125rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.empty-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
}

.empty-description {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Prizes Tab Styles */
.prizes-section h3 {
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 1.25rem;
}

.prizes-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.prize-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.prize-stat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.prize-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  color: #6b7280;
}

.prize-content {
  flex: 1;
}

.prize-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.prize-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.prizes-history h4 {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .customer-stats {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .orders-filter {
    justify-content: center;
  }
  
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .order-status {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .cashback-balance-card {
    flex-direction: column;
    text-align: center;
  }
  
  .prizes-stats {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .customers-table,
  .orders-table {
    font-size: 12px;
  }
  
  .customers-table th,
  .customers-table td,
  .orders-table th,
  .orders-table td {
    padding: 8px 12px;
  }
  
  .customer-stats,
  .order-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .customer-details-grid,
  .order-details-grid {
    grid-template-columns: 1fr;
  }
  
  .search-input {
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .status-update-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================
   LIVE ORDER STATUS PAGE STYLES
   ============================================ */

/* Main Container */
.live-status-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
}

/* Order Status Header */
.order-status-header {
  text-align: center;
  margin-bottom: 12px;
}

/* Grid Layout */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

.status-main {
  min-width: 0;
}

.status-sidebar {
  min-width: 0;
}

/* Sidebar Card */
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  border-radius: 6px;
  align-items: center;
}

.sidebar-item:last-child {
  margin-bottom: 0;
}

/* Instagram Ad Box Animations */
@keyframes instagramPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(240, 148, 51, 0.15), inset 0 0 30px rgba(220, 38, 67, 0.1), 0 0 0 0 rgba(220, 38, 67, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(240, 148, 51, 0.25), inset 0 0 30px rgba(220, 38, 67, 0.15), 0 0 20px 5px rgba(220, 38, 67, 0.2);
  }
}

@keyframes instagramButtonGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(220, 38, 67, 0.4), 0 0 20px rgba(240, 148, 51, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 25px rgba(220, 38, 67, 0.6), 0 0 30px rgba(240, 148, 51, 0.4);
    transform: scale(1.02);
  }
}

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

#instagram-ad-inner {
  animation: instagramPulse 3s ease-in-out infinite;
}

#instagram-follow-btn {
  background-size: 200% 200%;
  animation: instagramButtonGlow 2s ease-in-out infinite, instagramGradient 3s ease infinite;
}

#instagram-follow-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 30px rgba(220, 38, 67, 0.6), 0 0 40px rgba(240, 148, 51, 0.5) !important;
  animation: none;
}

#instagram-follow-btn:active {
  transform: scale(0.98) !important;
}

#instagram-rotating-text {
  animation: fadeIn 0.5s ease-in;
}

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

.sidebar-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-content {
  flex: 1;
  min-width: 0;
}

.sidebar-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  font-weight: 500;
}

.sidebar-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.order-details-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}

/* Responsive - stack sidebar on mobile */
@media (max-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

/* Review & Global Modals
   NOTE: Keep modal z-index above header (100010) and header actions (100015)
   so all popups (auth, contact, FAQ, rewards, account, etc.) sit on top of the header. */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.is-hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.modal-body {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions .btn {
  flex: 1;
}

/* Form Group Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

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

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
  }

  .modal-title {
    font-size: 20px;
    margin: 8px 0 16px !important;
  }

  /* Hide tabs on mobile, show dropdown instead */
  .tabs {
    display: none !important;
  }

  .tabs-mobile-dropdown {
    display: block !important;
  }

  /* Ensure customer dashboard modal fits on mobile */
  .customer-dashboard {
    width: 98vw;
    padding: 16px 12px;
  }
}

/* Error Notice for Wrong Info Status */
.error-notice {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.10));
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.14);
  animation: slideDown 0.4s ease;
}

.error-notice.is-hidden {
  display: none !important;
}

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

.error-notice-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  text-align: center;
}

.error-notice-content {
  flex: 1;
  width: 100%;
}

.error-notice-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text) !important;
  margin-bottom: 12px;
  text-shadow: none;
}

.error-notice-message {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.error-notice-admin-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.error-notice-list {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.22);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.error-notice-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.error-notice-list ul {
  margin: 0;
  padding-left: 20px;
}

.error-notice-list li {
  margin-bottom: 4px;
}

.error-notice-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .error-notice {
    text-align: left;
  }

  .error-notice-icon {
    font-size: 34px;
  }
}

/* Refunded Notice */
.refunded-notice {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  animation: slideDown 0.4s ease;
}

.refunded-notice.is-hidden {
  display: none !important;
}

.refunded-notice .notice-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.refunded-notice .notice-content {
  flex: 1;
}

.refunded-notice .notice-title {
  font-size: 22px;
  font-weight: 800;
  color: #1e40af !important;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.refunded-notice .notice-message {
  font-size: 15px;
  color: #1e40af;
  margin-bottom: 16px;
  line-height: 1.6;
}

.refunded-notice .notice-details {
  font-size: 14px;
  color: #1e40af;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 16px;
  border-radius: 8px;
}

.refunded-notice .notice-details strong {
  display: block;
  margin-bottom: 8px;
  color: #1e3a8a;
}

.refunded-notice .notice-details ul {
  margin: 0;
  padding-left: 20px;
}

.refunded-notice .notice-details li {
  margin-bottom: 4px;
}

.refunded-notice .notice-details li:last-child {
  margin-bottom: 0;
}

.refunded-notice .notice-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.refunded-notice .notice-actions .btn {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 768px) {
  .refunded-notice {
    flex-direction: column;
    text-align: center;
  }

  .refunded-notice .notice-icon {
    font-size: 40px;
  }

  .refunded-notice .notice-actions {
    flex-direction: column;
  }

  .refunded-notice .notice-actions .btn {
    width: 100%;
  }
}

.status-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-processing {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.status-badge.status-delivering {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-badge.status-shipped {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.status-badge.status-completed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Order Details Card */
.order-details-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.order-detail-row:last-child {
  margin-bottom: 0;
}

.order-detail-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.order-detail-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.order-detail-content {
  flex: 1;
}

.order-detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  font-weight: 500;
}

.order-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Progress Container */
.progress-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-percentage {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-bar-wrapper {
  margin-bottom: 12px;
}

.progress-bar-track {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
  position: relative;
  animation: shimmer 2s linear infinite;
}

/* Make the live-status progress bar read as a true "fill" indicator (no sweeping beam). */
.progress-container .progress-bar-fill {
  animation: none;
  background-size: 100% 100%;
}

.progress-container .progress-bar-glow {
  animation: none;
  opacity: 0.35;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.progress-bar-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.progress-stat {
  text-align: center;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.progress-stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.progress-stat-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Status Timeline */
.status-timeline {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.status-step {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  position: relative;
  transition: all 0.3s ease;
}

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

.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 35px;
  top: 60px;
  width: 2px;
  height: calc(100% - 44px);
  background: var(--border-color);
}

.status-step.status-completed {
  background: rgba(16, 185, 129, 0.1);
}

.status-step.status-completed::after {
  background: #10b981;
}

.status-step.status-active {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-step.status-active::after {
  background: linear-gradient(to bottom, #3b82f6, var(--border-color));
}

.status-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.status-step.status-completed .status-step-icon {
  background: #10b981;
  color: white;
  font-weight: bold;
}

.status-step.status-active .status-step-icon {
  background: #3b82f6;
  color: white;
}

.status-step:not(.status-completed):not(.status-active) .status-step-icon {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.status-step-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.status-step-content {
  flex: 1;
}

.status-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.status-step-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Order Notice */
.order-notice {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Proof Images */
.proof-images-container {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.proof-images-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.proof-images-icon {
  font-size: 32px;
  line-height: 1;
}

.proof-images-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.proof-images-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.proof-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.proof-image-item {
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.proof-image-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

.proof-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notice-content {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Review Section */
.review-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-header {
  text-align: center;
  margin-bottom: 32px;
}

.review-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Referral Source Section */
.referral-source-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.referral-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.referral-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.referral-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.referral-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Brand-specific colors */
.referral-google {
  border-color: #4285F4;
  color: #4285F4;
}
.referral-google:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: #4285F4;
}
.referral-google.selected {
  background: rgba(66, 133, 244, 0.2);
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.referral-instagram {
  border-color: #E1306C;
  color: #E1306C;
}
.referral-instagram:hover {
  background: rgba(225, 48, 108, 0.1);
  border-color: #E1306C;
}
.referral-instagram.selected {
  background: rgba(225, 48, 108, 0.2);
  border-color: #E1306C;
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.2);
}

.referral-facebook {
  border-color: #1877F2;
  color: #1877F2;
}
.referral-facebook:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877F2;
}
.referral-facebook.selected {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877F2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
}

.referral-youtube {
  border-color: #FF0000;
  color: #FF0000;
}
.referral-youtube:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: #FF0000;
}
.referral-youtube.selected {
  background: rgba(255, 0, 0, 0.2);
  border-color: #FF0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.referral-friend {
  border-color: #00C853;
  color: #00C853;
}
.referral-friend:hover {
  background: rgba(0, 200, 83, 0.1);
  border-color: #00C853;
}
.referral-friend.selected {
  background: rgba(0, 200, 83, 0.2);
  border-color: #00C853;
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.referral-other {
  border-color: #757575;
  color: #757575;
}
.referral-other:hover {
  background: rgba(117, 117, 117, 0.1);
  border-color: #757575;
}
.referral-other.selected {
  background: rgba(117, 117, 117, 0.2);
  border-color: #757575;
  box-shadow: 0 0 0 3px rgba(117, 117, 117, 0.2);
}

/* Other input field */
.referral-other-input {
  margin-top: 12px;
}

.referral-other-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.referral-other-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.referral-other-field::placeholder {
  color: var(--text-secondary);
}


.review-form {
  max-width: 500px;
  margin: 0 auto;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 48px;
  color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.star-btn:hover,
.star-btn.active {
  color: #fbbf24;
  transform: scale(1.1);
}

.star-btn.active {
  animation: starPop 0.3s ease;
}

@keyframes starPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.1);
  }
}

.review-rating-text {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 24px;
}

.review-text-container {
  margin-bottom: 16px;
}

.review-textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.review-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.review-char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

#submit-review-btn {
  width: 100%;
}

#review-modal {
  position: fixed !important;
  inset: 0 !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2147483000 !important;
}

#review-modal .modal-content {
  z-index: 1;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#review-modal.review-stage-referral .modal-actions {
  display: none !important;
}

#review-modal.review-stage-referral .star-rating,
#review-modal.review-stage-referral #review-rating-text,
#review-modal.review-stage-referral #review-text-container {
  display: none !important;
}

body:has(#review-modal:not(.is-hidden)) {
  overflow: hidden;
}

body.review-modal-open {
  overflow: hidden;
}

body:has(#review-modal:not(.is-hidden)) .top-banner,
body:has(#review-modal:not(.is-hidden)) .toty-promo-badge,
body:has(#review-modal:not(.is-hidden)) .flash-sale-promo-badge,
body:has(#review-modal:not(.is-hidden)) .cny-promo-badge,
body:has(#review-modal:not(.is-hidden)) .chat-widget,
body:has(#review-modal:not(.is-hidden)) .chat-notification-banner,
body:has(#review-modal:not(.is-hidden)) iframe[src*="tawk.to"],
body:has(#review-modal:not(.is-hidden)) iframe[title*="tawk" i],
body:has(#review-modal:not(.is-hidden)) iframe[title*="chat" i],
body:has(#review-modal:not(.is-hidden)) div[id*="tawk" i],
body:has(#review-modal:not(.is-hidden)) div[class*="tawk" i] {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.review-thank-you {
  text-align: center;
  padding: 40px 20px;
}

.thank-you-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 1s ease infinite;
}

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

.thank-you-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.thank-you-message {
  font-size: 16px;
  color: var(--text-muted);
}

/* Order Actions */
.order-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.order-actions .btn {
  min-width: 150px;
  padding: 8px 16px;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #review-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom)) !important;
    min-height: 100dvh !important;
  }

  #review-modal .modal-content {
    width: min(500px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0 auto;
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 12px;
  }

  #review-modal .modal-header {
    margin-bottom: 16px;
  }

  #review-modal .modal-title {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.15;
  }

  #review-modal .modal-subtitle {
    margin-bottom: 0;
    font-size: 15px;
  }

  #review-modal .review-form {
    max-width: none;
  }

  #review-modal .referral-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #review-modal .modal-actions {
    position: sticky;
    bottom: calc(-14px - env(safe-area-inset-bottom));
    margin: 16px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(15, 22, 36, 0.92), var(--card));
    border-top: 1px solid var(--border);
  }

  .live-status-container {
    padding: 16px;
  }

  .order-details-card {
    padding: 20px;
  }

  .order-detail-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .progress-stats {
    grid-template-columns: 1fr;
  }

  .star-btn {
    font-size: 36px;
  }

  .review-section {
    padding: 24px 16px;
  }

  .order-actions {
    flex-direction: column;
  }

  .order-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #review-modal .modal-content {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 16px 12px calc(12px + env(safe-area-inset-bottom));
  }

  #review-modal .modal-actions {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  #review-modal .referral-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .progress-percentage {
    font-size: 20px;
  }

  .review-title {
    font-size: 24px;
  }

  .star-btn {
    font-size: 32px;
    gap: 4px;
  }
}

/* Status History Styles */
.status-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.email-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.history-entry {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.history-entry:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.email-history-entry {
  border-left: 3px solid #f59e0b;
}

.email-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.email-type-welcome {
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
}

.email-type-order_confirmation {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.email-type-reminder {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.email-type-completed {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

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

.history-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.history-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.history-change {
  color: var(--text-primary);
  font-weight: 500;
}

.old-status {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.new-status {
  color: var(--primary-color);
}

.history-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.history-notes {
  background: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 4px;
}

.history-notes strong {
  color: var(--primary-color);
  margin-right: 4px;
}

.loading-text,
.no-history-text,
.error-text {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.error-text {
  color: #ef4444;
}

/* My Details Tab Styles */
.detail-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.detail-container:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.detail-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.detail-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.btn-edit {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-edit:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-edit:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.detail-edit-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.detail-edit-form.is-hidden {
  display: none;
}

.detail-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.detail-input:focus {
  outline: none;
  border-color: var(--primary);
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.details-section {
  padding: 0;
}

/* Toggle Switch for Admin Reviews */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Admin Live Chat Panel Styles */
.live-chat-container {
  display: flex;
  gap: 24px;
  height: 700px;
}

.conversations-panel {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.conversations-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conversations-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.conversations-list {
  display: none !important; /* Hidden - using Zopim tabs now */
}

/* Chat Filter Tabs */
.chat-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--card);
  border-radius: 8px;
}

.filter-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Override for Zopim tabs container */
#admin-conversations-list.zopim-conversation-tabs {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  flex-wrap: wrap;
}

/* Conversation Item Styles */
.conversation-item {
  display: flex !important;
  flex-direction: column;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  min-width: 120px;
  flex: 0 0 auto;
}

.conversation-item:hover {
  display: flex !important;
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary);
}

.conversation-item.active {
  display: flex !important;
  background: var(--primary);
  border-color: var(--primary);
}

.conversation-item.active * {
  display: initial !important;
  color: white;
}

/* Simplified conversation name display */
.conversation-name-simple {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}

.conversation-item.active .conversation-name-simple {
  color: white;
}

/* Store label below name */
.conversation-store-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  margin-top: 4px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conversation-item.active .conversation-store-label {
  color: white;
  opacity: 0.9;
}

/* Store-specific color coding */
.conversation-item[data-store="fcutstore"] {
  border-left: 4px solid #00b4d8;
}

.conversation-item[data-store="fcutstore"] .conversation-store-label {
  color: #00b4d8;
}

.conversation-item[data-store="eafcshop"] {
  border-left: 4px solid #8b5cf6;
}

.conversation-item[data-store="eafcshop"] .conversation-store-label {
  color: #8b5cf6;
}

.conversation-item[data-store="fccoinsuae"] {
  border-left: 4px solid #f59e0b;
}

.conversation-item[data-store="fccoinsuae"] .conversation-store-label {
  color: #f59e0b;
}

.conversation-item[data-store="easportspc"] {
  border-left: 4px solid #10b981;
}

.conversation-item[data-store="easportspc"] .conversation-store-label {
  color: #10b981;
}

.conversation-item[data-store="eafccshop"] {
  border-left: 4px solid #ec4899;
}

.conversation-item[data-store="eafccshop"] .conversation-store-label {
  color: #ec4899;
}

/* Active store conversations keep white text */
.conversation-item.active .conversation-store-label {
  color: white !important;
}

/* Flashing animation for conversations waiting for reply */
.conversation-item.waiting-reply {
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: var(--border);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
  }
}

.conversation-item.waiting-reply .conversation-name-simple {
  color: #ef4444;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.conversation-item.active.waiting-reply .conversation-name-simple {
  color: white;
  animation: none;
}

/* Closed conversation styling - grayed out with lower opacity */
.conversation-item.closed {
  opacity: 0.6;
  background: rgba(100, 100, 100, 0.1);
}

.conversation-item.closed:hover {
  opacity: 0.8;
}

.conversation-item.closed .conversation-name-simple {
  font-style: italic;
  color: var(--muted);
}

.conversation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.conversation-item.active .conversation-avatar {
  background: white;
  color: var(--primary);
}

.conversation-details {
  flex: 1;
  min-width: 0;
}

/* Hide old conversation item elements - we use simplified structure now */
.conversation-header,
.conversation-name,
.message-count,
.conversation-time,
.conversation-preview,
.zopim-tab-preview,
.zopim-tab-meta,
.zopim-tab-time,
.zopim-tab-website,
.zopim-tab-badge {
  display: none !important;
}

.conversation-badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

/* Admin chat panel styling - NOT for customer widget */
.admin-panel .chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.admin-panel .chat-panel.is-hidden {
  display: none;
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.customer-info {
  margin-bottom: 8px;
}

.customer-info h3 {
  margin: 0 0 4px 0;
  color: var(--text);
  font-size: 16px;
}

.customer-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.conversation-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* Admin Chat Styles */
.admin-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.admin-chat-messages .chat-message {
  display: flex;
  gap: 12px;
  max-width: 75%;
}

.admin-chat-messages .customer-message {
  align-self: flex-start;
  flex-direction: row;
}

.admin-chat-messages .admin-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.admin-chat-messages .message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.admin-chat-messages .message-bubble {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  flex: 1;
}

.admin-chat-messages .customer-message .message-bubble {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.admin-chat-messages .admin-message .message-bubble {
  background: #4a90e2;
  border: 1px solid #357abd;
}

.admin-chat-messages .admin-message .message-header strong,
.admin-chat-messages .admin-message .message-time,
.admin-chat-messages .admin-message .message-content {
  color: white !important;
}

.admin-chat-messages .message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-chat-messages .message-header strong {
  color: #333;
  font-size: 14px;
}

.admin-chat-messages .message-time {
  color: #666;
  font-size: 12px;
}

.admin-chat-messages .customer-message .message-time {
  color: #666;
}

.admin-chat-messages .message-content {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.admin-chat-messages .customer-message .message-content {
  color: #1e293b !important;
  background: transparent !important;
}

.admin-chat-messages .customer-message .message-bubble {
  background: #f5f5f5 !important;
  color: #1e293b !important;
}

.admin-chat-messages .customer-message .message-header strong {
  color: #1e293b !important;
}

.admin-chat-messages .customer-message .message-time {
  color: #64748b !important;
}

/* Dark theme support for admin chat */
[data-theme="dark"] .admin-chat-messages .customer-message .message-bubble {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-chat-messages .customer-message .message-content {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-chat-messages .customer-message .message-header strong {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-chat-messages .customer-message .message-time {
  color: #94a3b8 !important;
}

.admin-chat-messages .message-status {
  margin-top: 6px;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  display: inline-block;
}

.admin-chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: var(--card);
}

.admin-chat-input-area textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  min-height: 60px;
}

.admin-chat-input-area textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-chat-input-area button {
  flex-shrink: 0;
}

/* ========================================
   ZOPIM-STYLE CHAT LAYOUT
   ======================================== */

.zopim-chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 600px;
  position: relative;
}

.zopim-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin-bottom: 0;
}

.zopim-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 12px;
}

.zopim-empty-state .empty-icon {
  font-size: 64px;
  opacity: 0.5;
}

.zopim-empty-state .empty-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.zopim-empty-state .empty-description {
  font-size: 14px;
}

.zopim-chat-panel {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
}

.zopim-chat-panel.is-hidden {
  display: none !important;
}

/* Zopim Header */
.zopim-header {
  padding: 16px 20px;
  background: var(--card);
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zopim-customer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zopim-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

.zopim-customer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zopim-customer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.zopim-customer-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zopim-separator {
  color: var(--border);
}

.zopim-website {
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.zopim-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zopim-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #4caf50;
  color: white;
}

.zopim-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.zopim-btn-close {
  background: #ff9800;
  color: white;
}

.zopim-btn-close:hover {
  background: #f57c00;
}

.zopim-btn-archive {
  background: #9e9e9e;
  color: white;
}

.zopim-btn-archive:hover {
  background: #757575;
}

/* Zopim Messages Area */
.zopim-messages-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f9f9f9;
}

[data-theme="dark"] .zopim-messages-area {
  background: #1a1a1a;
}

/* Reuse existing message styles but ensure they work */
.zopim-messages-area .chat-message {
  display: flex;
  gap: 12px;
  max-width: 75%;
}

.zopim-messages-area .customer-message {
  align-self: flex-start;
  flex-direction: row;
}

.zopim-messages-area .admin-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* Zopim Input Area */
.zopim-input-wrapper {
  background: var(--card);
  border-top: 2px solid var(--border);
  padding: 12px 20px;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.zopim-quick-replies {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  max-height: 80px;
  overflow-y: auto;
}

.zopim-quick-replies:empty {
  display: none;
}

.zopim-quick-reply-btn {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.zopim-quick-reply-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.zopim-input-container {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.zopim-textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  min-height: 40px;
  max-height: 120px;
}

.zopim-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.zopim-input-buttons {
  display: flex;
  gap: 8px;
}

.zopim-btn-icon {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 18px;
}

.zopim-btn-icon:hover {
  background: var(--border);
}

.zopim-btn-send {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.zopim-btn-send:hover {
  background: #5a7bc7;
  transform: scale(1.05);
}

/* Zopim Bottom Bar (Fixed) */
.zopim-bottom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.zopim-bar-header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.zopim-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.zopim-conversations-icon {
  font-size: 20px;
}

.zopim-btn-refresh {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.zopim-btn-refresh:hover {
  background: var(--border);
  transform: rotate(180deg);
}

.zopim-conversation-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  max-height: 120px;
  overflow-y: auto;
}

.zopim-conversation-tab {
  flex-shrink: 0;
  width: 200px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.zopim-conversation-tab:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zopim-conversation-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.zopim-conversation-tab.active * {
  color: white !important;
}

.zopim-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.zopim-tab-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zopim-tab-badge {
  background: #f44336;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.zopim-tab-preview {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.zopim-tab-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.zopim-tab-website {
  padding: 2px 6px;
  background: var(--card);
  border-radius: 4px;
  font-size: 10px;
}

/* Admin Chat Panel with Sidebar Layout (Keep for compatibility) */
.admin-chat-panel {
  display: flex !important;
  flex-direction: row;
  flex: 1;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}

.admin-chat-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-chat-sidebar {
  width: 350px;
  background: var(--card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-sidebar-section {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.chat-sidebar-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.chat-sidebar-section .admin-chat-input-area {
  padding: 0;
  border: none;
  background: transparent;
  flex-direction: column;
}

.chat-sidebar-section .admin-chat-input-area textarea {
  margin-bottom: 12px;
  min-height: 100px;
}

.btn-block {
  width: 100%;
  display: block;
}

.quick-replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-reply-btn {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply-btn:hover {
  background: var(--border);
  border-color: var(--primary);
}

.customer-website {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  display: inline-block;
}

/* Fix dark theme text visibility */
[data-theme="dark"] .admin-chat-messages {
  background: #1a1a1a;
  color: #e0e0e0;
}

[data-theme="dark"] .admin-chat-messages .message-content {
  color: #e0e0e0;
}

[data-theme="dark"] .admin-chat-messages .message-bubble {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

[data-theme="dark"] .admin-chat-messages .admin-message .message-bubble {
  background: #3a4a5a;
}

[data-theme="dark"] .admin-chat-input-area textarea {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #3a3a3a;
}

[data-theme="dark"] .chat-sidebar-section {
  border-color: #3a3a3a;
}

[data-theme="dark"] .quick-reply-btn {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #e0e0e0;
}

[data-theme="dark"] .quick-reply-btn:hover {
  background: #3a3a3a;
}

/* Coupons admin UI (scoped) */
#coupons-section .coupon-create-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}
#coupons-section .coupon-create-grid input[type="text"],
#coupons-section .coupon-create-grid input[type="number"],
#coupons-section .coupon-create-grid input[type="datetime-local"],
#coupons-section .coupon-create-grid select {
  width: 100%;
}
.coupon-grid {
  display: grid;
  grid-template-columns: 28px 1.1fr 0.8fr 0.7fr 1fr 1.4fr 70px 1fr 1fr 0.7fr 110px;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.coupon-header {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.coupon-row .btn.btn-danger.btn-sm { padding: 6px 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Admin Login Overlay */
.admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.admin-login-overlay.hidden {
  display: none;
}
.admin-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-header h2 {
  font-size: 24px;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.login-header p {
  color: #666;
  font-size: 14px;
}
.login-field {
  margin-bottom: 20px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.login-field input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}
.login-lockout {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}
.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}
.login-footer {
  text-align: center;
  margin-top: 20px;
  color: #999;
}

/* EA Details Protection */
.protected-badge {
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}
.ea-protected-overlay {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.ea-protected-overlay p {
  color: #64748b;
  margin-bottom: 12px;
  font-size: 14px;
}
.ea-details-hidden {
  display: none;
}
.ea-details-visible {
  display: block;
}

/* PIN Modal */
.pin-input-container {
  text-align: center;
}
.pin-input {
  width: 180px;
  padding: 16px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: monospace;
}
.pin-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Dark mode support for login */
[data-theme="dark"] .admin-login-box {
  background: #1e1e1e;
}
[data-theme="dark"] .login-header h2 {
  color: #fff;
}
[data-theme="dark"] .login-header p {
  color: #aaa;
}
[data-theme="dark"] .login-field label {
  color: #ddd;
}
[data-theme="dark"] .login-field input {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #fff;
}
[data-theme="dark"] .ea-protected-overlay {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-color: #444;
}
[data-theme="dark"] .ea-protected-overlay p {
  color: #aaa;
}
[data-theme="dark"] .pin-input {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #fff;
}

/* Security logs table */
.login-logs-table {
  overflow-x: auto;
}
.login-logs-table table {
  border-collapse: collapse;
}
.login-logs-table th,
.login-logs-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.login-logs-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
[data-theme="dark"] .login-logs-table th {
  background: #1a1a1a;
}

/* Force deployment - Christmas theme chat update v45 */

/* SEO Content Section */
.seo-content-fullwidth {
  width: 100%;
  background: var(--bg);
  padding: 0 20px 40px;
  position: relative;
}

.seo-content-fullwidth::before {
  content: "";
  display: block;
  width: min(100%, 1200px);
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 176, 122, 0), rgba(244, 231, 210, 0.95) 18%, rgba(216, 176, 122, 1) 50%, rgba(244, 231, 210, 0.95) 82%, rgba(216, 176, 122, 0));
  box-shadow: 0 0 10px rgba(216, 176, 122, 0.45), 0 0 26px rgba(216, 176, 122, 0.3);
}

#epayouts-instructions {
  background: rgba(216,176,122,.12) !important;
  border-color: rgba(216,176,122,.5) !important;
}

#epayouts-instructions strong,
#epayouts-instructions p,
#epayouts-methods-loading,
#keep-page-open-notice,
#keep-page-open-notice .notice-content,
#forgot-username-btn,
#forgot-password-btn {
  color: var(--primary) !important;
}

#epayouts-more-toggle {
  border-color: rgba(216,176,122,.5) !important;
  color: var(--primary) !important;
}

#epayouts-country {
  border-color: var(--primary) !important;
  color: #111111 !important;
  background: #f4e7d2 !important;
}

#epayouts-instructions p[style*="background"],
#keep-page-open-notice {
  background: rgba(0,0,0,.35) !important;
  border-color: rgba(216,176,122,.45) !important;
}

#epayouts-methods-loading .spinner {
  border-color: var(--primary) !important;
  border-top-color: transparent !important;
}

.seo-text-block {
  max-width: 1200px;
  margin: 0 auto;
}

/* Comparison Table */
.comparison-section {
  margin: 0;
  padding: 24px 0 40px;
}

.comparison-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 30px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.72);
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}

.comparison-table thead th {
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid rgba(216, 176, 122, 0.45);
  font-size: 16px;
  color: #ffffff;
}

.comparison-table .highlight-col {
  background: linear-gradient(180deg, rgba(216, 176, 122, 0.2), rgba(184, 116, 73, 0.06));
  border-left: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

.table-header-badge {
  background: var(--primary-color);
  color: #111111;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table tbody td {
  padding: 16px 20px;
  min-height: 72px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.comparison-table .feature-name {
  font-weight: 600;
  text-align: left;
  color: #ffffff;
}

.check-icon {
  color: #22c55e;
  font-weight: 900;
  font-size: 18px;
  margin-right: 8px;
}

.cross-icon {
  color: #f44336;
  font-weight: 900;
  font-size: 18px;
  margin-right: 8px;
}

/* Footer Network Logos */
.footer-network-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 20px 10px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.network-logo-link {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.network-logo-link:hover {
  transform: translateY(-5px);
  opacity: 1;
}

.network-logo {
  height: 150px;
  width: auto;
  max-width: 540px;
  object-fit: contain;
  display: block;
}

.footer-network-tagline {
  text-align: center;
  padding: 10px 20px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-network-logos {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 10px 10px;
    justify-content: center;
  }

  .network-logo {
    height: 60px;
    max-width: 150px;
  }

  .footer-network-tagline {
    font-size: 13px;
  }
}

/* Temporarily hide Sell Coins (feature not ready yet) */
body #sell-coins-btn,
body #sell-coins-btn-mobile {
  display: none !important;
}
/* === UNIFIED MOBILE HEADER (single menu system) === */
@media (max-width: 768px) {
  body .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    min-height: 60px !important;
    height: auto !important;
  }

  body .header-actions,
  body .header-actions * {
    display: none !important;
    visibility: hidden !important;
  }

  body .header-actions {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
  }

  body .header-actions > :not(#account-btn) {
    display: none !important;
    visibility: hidden !important;
  }

  body #account-btn {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .header-left {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
  }

  body .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    width: 34px !important;
    height: 34px !important;
  }

  body .header-left > :not(.mobile-menu-btn):not(.whatsapp-btn):not(.lang-dropdown):not(.currency-dropdown) {
    display: none !important;
    visibility: hidden !important;
  }

  body .brand-text {
    display: flex !important;
    justify-content: center !important;
    font-size: 14px !important;
    flex: 1 !important;
  }

  body .brand-text { order: 2 !important; }
  body .header-left { order: 1 !important; }
  body .header-actions { order: 3 !important; }

  body .lang-dropdown,
  body .currency-dropdown {
    position: relative !important;
  }

  body .lang-menu,
  body .currency-menu {
    position: fixed !important;
    top: 64px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: 200px !important;
    max-width: calc(100vw - 24px) !important;
    width: 220px !important;
    z-index: 100030 !important;
  }

  body .mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 100020 !important;
  }

  body .mobile-nav-content {
    width: 100% !important;
    height: 100% !important;
    padding: 20px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}


/* ========================================
   TOTS THEME
   ======================================== */

:root {
  --tots-navy: #081f4d;
  --tots-blue: #0f4cc3;
  --tots-aqua: #5cf2ff;
  --tots-mint: #7dffd6;
  --tots-gold: #f4d47c;
}

.flash-sale-promo-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.flash-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--uae-skyline-navy) 0%, var(--uae-sunset-copper) 100%);
  padding: 15px 20px;
  border-radius: 14px;
  border: 1px solid rgba(216, 176, 122, 0.62);
  box-shadow: 0 12px 30px rgba(19, 34, 53, 0.36), 0 0 18px rgba(216, 176, 122, 0.18);
  cursor: pointer;
  transition: all 0.3s ease;
}

.flash-badge-content:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 231, 210, 0.84);
  box-shadow: 0 16px 34px rgba(19, 34, 53, 0.44), 0 0 22px rgba(216, 176, 122, 0.28);
}

.flash-badge-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.flash-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flash-badge-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--uae-haze-cream);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.36);
}

.flash-badge-discount {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.46);
}

.flash-badge-code {
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.5px;
  color: var(--uae-sand-gold);
}

.flash-badge-ends {
  font-size: 10px;
  font-weight: 500;
  color: rgba(244, 231, 210, 0.86);
}

.flash-lightning-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

.flash-sale-promo-badge,
.flash-lightning-overlay {
  display: none !important;
}

body.flash-sale-theme-enabled .flash-sale-promo-badge,
body.flash-sale-theme-enabled .flash-lightning-overlay,
body.summer-sale-theme-enabled .flash-sale-promo-badge,
body.summer-sale-theme-enabled .flash-lightning-overlay,
body.tots-theme-enabled .flash-sale-promo-badge,
body.tots-theme-enabled .flash-lightning-overlay {
  display: block !important;
}

body.summer-sale-theme-enabled .flash-sale-promo-badge {
  display: block !important;
  animation: summer-badge-float 3.2s ease-in-out infinite;
}

body.summer-sale-theme-enabled .flash-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 232, 166, 0.45), rgba(255, 232, 166, 0) 32%),
    linear-gradient(135deg, #ff934f 0%, #ff7a45 44%, #ff5f6d 100%);
  padding: 15px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 235, 188, 0.68);
  box-shadow: 0 12px 30px rgba(89, 33, 13, 0.3), 0 0 24px rgba(255, 179, 71, 0.24);
}

body.summer-sale-theme-enabled .flash-badge-content:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 233, 249, 0.86);
  box-shadow: 0 18px 36px rgba(89, 33, 13, 0.4), 0 0 28px rgba(255, 179, 71, 0.34);
}

body.summer-sale-theme-enabled .flash-badge-title {
  color: #fff5df;
  text-shadow: 0 2px 4px rgba(99, 34, 16, 0.28);
}

body.summer-sale-theme-enabled .flash-badge-discount {
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(115, 34, 13, 0.28);
}

body.summer-sale-theme-enabled .flash-badge-code {
  color: #fff2b2;
}

body.summer-sale-theme-enabled .flash-badge-ends {
  color: rgba(255, 248, 231, 0.92);
}

body.summer-sale-theme-enabled #apply-coupon {
  background: linear-gradient(135deg, #ff934f 0%, #ff7a45 50%, #ff5f6d 100%) !important;
  border: 2px solid rgba(255, 232, 166, 0.65) !important;
  color: #fffaf5 !important;
  box-shadow: 0 8px 24px rgba(201, 78, 47, 0.24);
}

body.summer-sale-theme-enabled #apply-coupon:hover {
  border-color: rgba(139, 233, 249, 0.86) !important;
  box-shadow: 0 12px 28px rgba(201, 78, 47, 0.34), 0 0 18px rgba(139, 233, 249, 0.18) !important;
}

body.summer-sale-theme-enabled .summer-sun-icon {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 243, 194, 0.95) 0%, rgba(255, 210, 84, 0.98) 38%, rgba(255, 146, 79, 1) 78%, rgba(255, 95, 109, 1) 100%);
  box-shadow: 0 0 0 4px rgba(255, 223, 128, 0.18), 0 0 24px rgba(255, 179, 71, 0.36);
  animation: summer-sun-pulse 2.8s ease-in-out infinite;
}

body.summer-sale-theme-enabled .summer-sun-icon::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(255, 222, 125, 0.95) 0deg 16deg,
      transparent 16deg 30deg,
      rgba(255, 222, 125, 0.95) 30deg 46deg,
      transparent 46deg 60deg,
      rgba(255, 222, 125, 0.95) 60deg 76deg,
      transparent 76deg 90deg,
      rgba(255, 222, 125, 0.95) 90deg 106deg,
      transparent 106deg 120deg,
      rgba(255, 222, 125, 0.95) 120deg 136deg,
      transparent 136deg 150deg,
      rgba(255, 222, 125, 0.95) 150deg 166deg,
      transparent 166deg 180deg,
      rgba(255, 222, 125, 0.95) 180deg 196deg,
      transparent 196deg 210deg,
      rgba(255, 222, 125, 0.95) 210deg 226deg,
      transparent 226deg 240deg,
      rgba(255, 222, 125, 0.95) 240deg 256deg,
      transparent 256deg 270deg,
      rgba(255, 222, 125, 0.95) 270deg 286deg,
      transparent 286deg 300deg,
      rgba(255, 222, 125, 0.95) 300deg 316deg,
      transparent 316deg 330deg,
      rgba(255, 222, 125, 0.95) 330deg 346deg,
      transparent 346deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 61% 100%);
  mask: radial-gradient(circle, transparent 0 60%, #000 61% 100%);
  animation: summer-sun-rays 8s linear infinite;
}

body.summer-sale-theme-enabled .summer-sun-core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 235, 1) 0%, rgba(255, 230, 148, 1) 54%, rgba(255, 184, 65, 1) 100%);
}

body.summer-sale-theme-enabled .flash-lightning-overlay {
  display: block !important;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}

body.summer-sale-theme-enabled .flash-lightning-overlay.active {
  opacity: 1;
}

body.summer-sale-theme-enabled .flash-lightning-bolt {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 216, 0.95) 0%, rgba(255, 214, 102, 0.78) 26%, rgba(255, 160, 74, 0.34) 48%, rgba(255, 160, 74, 0) 70%);
  filter: blur(3px);
  animation: summer-heatwave-glow 1.8s ease-out forwards;
}

body.summer-sale-theme-enabled .flash-lightning-bolt::before,
body.summer-sale-theme-enabled .flash-lightning-bolt::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
}

body.summer-sale-theme-enabled .flash-lightning-bolt::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 201, 95, 0.18) 36%, rgba(255, 201, 95, 0) 70%);
  animation: summer-heatwave-ring 1.8s ease-out forwards;
}

body.summer-sale-theme-enabled .flash-lightning-bolt::after {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0) 68%);
  transform: skewX(-18deg) translateX(-120%);
  animation: summer-shimmer-sweep 1.4s ease-out forwards;
}

body.summer-sale-theme-enabled .flash-screen-flash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 229, 148, 0.24), rgba(255, 229, 148, 0) 18%),
    linear-gradient(180deg, rgba(255, 164, 92, 0.12), rgba(255, 95, 109, 0.02));
  animation: summer-screen-warmth 1.8s ease-out forwards;
}

body.tots-theme-enabled .flash-sale-promo-badge {
  display: block !important;
  animation: tots-badge-float 3s ease-in-out infinite;
}

body.tots-theme-enabled .flash-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--tots-navy) 0%, var(--tots-blue) 58%, #159dcb 100%);
  padding: 15px 20px;
  border-radius: 14px;
  border: 1px solid rgba(125, 255, 214, 0.75);
  box-shadow: 0 12px 30px rgba(8, 31, 77, 0.35), 0 0 18px rgba(92, 242, 255, 0.22);
}

body.tots-theme-enabled .flash-badge-content:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 212, 124, 0.9);
  box-shadow: 0 16px 34px rgba(8, 31, 77, 0.45), 0 0 22px rgba(92, 242, 255, 0.32);
}

body.tots-theme-enabled .flash-badge-icon {
  font-size: 0;
  line-height: 1;
  filter: none;
  animation: none;
}

body.tots-theme-enabled .tots-shield-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 58px;
  clip-path: polygon(50% 0%, 88% 14%, 88% 60%, 50% 100%, 12% 60%, 12% 14%);
  background: linear-gradient(180deg, var(--tots-gold) 0%, var(--tots-mint) 34%, var(--tots-aqua) 66%, #0b5ed7 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36), inset 0 0 0 2px rgba(255, 255, 255, 0.24);
  animation: tots-shield-glow 2.8s ease-in-out infinite;
}

body.tots-theme-enabled .tots-shield-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #17130b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.tots-theme-enabled .flash-badge-title {
  color: var(--tots-mint);
  animation: none;
  text-shadow: 0 2px 4px rgba(2, 12, 32, 0.45);
}

body.tots-theme-enabled .flash-badge-discount {
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(2, 12, 32, 0.45);
}

body.tots-theme-enabled .flash-badge-code {
  color: var(--tots-gold);
}

body.tots-theme-enabled .flash-badge-ends {
  color: rgba(255, 255, 255, 0.86);
}

body.tots-theme-enabled #apply-coupon {
  background: linear-gradient(135deg, var(--tots-navy) 0%, var(--tots-blue) 62%, #159dcb 100%) !important;
  border: 2px solid rgba(125, 255, 214, 0.62) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(8, 31, 77, 0.32);
}

body.tots-theme-enabled #apply-coupon:hover {
  border-color: rgba(244, 212, 124, 0.9) !important;
  box-shadow: 0 10px 26px rgba(8, 31, 77, 0.4), 0 0 16px rgba(92, 242, 255, 0.24) !important;
}

body.tots-theme-enabled .flash-lightning-overlay {
  display: block !important;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

body.tots-theme-enabled .flash-lightning-overlay.active {
  opacity: 1;
}

body.tots-theme-enabled .flash-lightning-bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64vmax;
  height: 64vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(92, 242, 255, 0.2) 0%, rgba(15, 76, 195, 0.16) 36%, rgba(244, 212, 124, 0.12) 58%, transparent 72%);
  box-shadow: none;
  filter: blur(10px);
  animation: tots-aura-bloom 1.4s ease-out;
}

body.tots-theme-enabled .flash-lightning-bolt::before,
body.tots-theme-enabled .flash-lightning-bolt::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 255, 214, 0.24) 0%, transparent 72%);
  box-shadow: none;
  filter: blur(6px);
}

body.tots-theme-enabled .flash-lightning-bolt::before {
  width: 18vmax;
  height: 18vmax;
  top: 10%;
  left: 12%;
  transform: none;
}

body.tots-theme-enabled .flash-lightning-bolt::after {
  width: 16vmax;
  height: 16vmax;
  right: 14%;
  bottom: 14%;
  transform: none;
}

body.tots-theme-enabled .flash-screen-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(92, 242, 255, 0.05) 28%, rgba(255, 255, 255, 0.12) 50%, rgba(244, 212, 124, 0.08) 72%, transparent 100%);
  animation: tots-sheen-sweep 1.4s ease-out;
}

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

@keyframes tots-shield-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36), inset 0 0 0 2px rgba(255, 255, 255, 0.24);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42), 0 0 14px rgba(92, 242, 255, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  }
}

@keyframes tots-aura-bloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes tots-sheen-sweep {
  0% {
    opacity: 0;
    transform: translateX(-10%);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(10%);
  }
}

@keyframes summer-badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes summer-sun-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(255, 223, 128, 0.18), 0 0 24px rgba(255, 179, 71, 0.36);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(255, 223, 128, 0.22), 0 0 32px rgba(255, 179, 71, 0.46);
  }
}

@keyframes summer-sun-rays {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes summer-heatwave-glow {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.26);
  }
}

@keyframes summer-heatwave-ring {
  0% {
    opacity: 0.1;
    transform: scale(0.9);
  }
  34% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes summer-shimmer-sweep {
  0% {
    opacity: 0;
    transform: skewX(-18deg) translateX(-120%);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: skewX(-18deg) translateX(140%);
  }
}

@keyframes summer-screen-warmth {
  0% {
    opacity: 0;
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .flash-sale-promo-badge {
    bottom: 10px;
    left: 10px;
  }

  body.tots-theme-enabled .flash-badge-content {
    padding: 12px 16px;
    gap: 10px;
  }

  body.tots-theme-enabled .tots-shield-icon {
    width: 42px;
    height: 50px;
  }

  body.tots-theme-enabled .tots-shield-label {
    font-size: 9px;
  }

  body.summer-sale-theme-enabled .flash-badge-content {
    padding: 12px 16px;
    gap: 10px;
  }

  body.summer-sale-theme-enabled .summer-sun-icon {
    width: 44px;
    height: 44px;
  }

  body.summer-sale-theme-enabled .summer-sun-core {
    width: 18px;
    height: 18px;
  }

  body.summer-sale-theme-enabled .flash-lightning-bolt {
    top: 12%;
    right: 4%;
    width: 140px;
    height: 140px;
  }
}


/* August Sale Theme - AUG10 ticket badge */
body.august-sale-theme-enabled .flash-sale-promo-badge {
  display: block !important;
}

body.august-sale-theme-enabled .flash-badge-content {
  background: linear-gradient(135deg, #050708 0%, #12171c 52%, #20272f 100%);
  border: 1px solid rgba(216, 255, 61, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

body.august-sale-theme-enabled .flash-badge-content:hover {
  border-color: rgba(216, 255, 61, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

body.august-sale-theme-enabled .flash-badge-icon {
  width: 58px;
  height: 48px;
  font-size: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  animation: none;
}

body.august-sale-theme-enabled .august-ticket-icon {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 16, 8, 0.7);
  border-radius: 9px;
  background: #d8ff3d;
  color: #071008;
  transform: rotate(-5deg);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
}

body.august-sale-theme-enabled .august-ticket-icon::before,
body.august-sale-theme-enabled .august-ticket-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b0f12;
  transform: translateY(-50%);
}

body.august-sale-theme-enabled .august-ticket-icon::before {
  left: -6px;
}

body.august-sale-theme-enabled .august-ticket-icon::after {
  right: -6px;
}

body.august-sale-theme-enabled .august-ticket-icon span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

body.august-sale-theme-enabled .flash-badge-title {
  color: #f7f8fb;
  animation: none;
}

body.august-sale-theme-enabled .flash-badge-discount {
  color: #d8ff3d;
}

body.august-sale-theme-enabled .flash-badge-code {
  color: #ffffff;
}

body.august-sale-theme-enabled .flash-badge-ends {
  color: rgba(229, 231, 235, 0.86);
}

body.august-sale-theme-enabled #apply-coupon {
  background: #d8ff3d !important;
  border: 2px solid rgba(216, 255, 61, 0.78) !important;
  color: #071008 !important;
}

body.august-sale-theme-enabled #apply-coupon:hover {
  background: #f0ff70 !important;
  border-color: rgba(240, 255, 112, 0.92) !important;
}
