/**
 * FCUTSTORE Theme
 * Dark, premium aesthetic with blacks, greys, and whites
 */

:root {
  /* FCUTSTORE Color Palette */
  --fcutstore-black: #000000;
  --fcutstore-near-black: #0a0a0a;
  --fcutstore-dark-grey: #1a1a1a;
  --fcutstore-mid-grey: #2a2a2a;
  --fcutstore-light-grey: #3a3a3a;
  --fcutstore-border-grey: #2d2d2d;
  --fcutstore-text-white: #ffffff;
  --fcutstore-text-grey: #cccccc;
  --fcutstore-text-muted: #999999;
  --fcutstore-accent: #f0f0f0; /* Chalk white accent */
  --fcutstore-success: #22c55e; /* Success green */
  --fcutstore-error: #ff4444;

  /* TOTY Theme Colors */
  --toty-navy: #1E3A8A;
  --toty-gold: #FFD700;
  --toty-blue: #3B5FCF;

  /* Flash Sale Theme Colors */
  --flash-orange: #FF6B35;
  --flash-red: #DC2626;
  --flash-yellow: #FFD700;
  --flash-dark: #1A1A1A;

  /* Chinese New Year Theme Colors - Subtle & Elegant */
  --cny-crimson: #C41E3A; /* Deep crimson red */
  --cny-gold: #D4AF37; /* Antique gold */
  --cny-red: #DC143C; /* Imperial red */
  --cny-gold-bright: #FFD700; /* Bright gold for accents */
  --cny-dark-red: #8B0000; /* Dark red for depth */
  --cny-pearl: #F5F5DC; /* Pearl white/beige */
}

/* Background Images - Desktop (Christmas) */
@media (min-width: 769px) {
  body {
    background-image: url('/assets/bg3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
}

/* Background Images - Mobile (FCUTSBGM) */
@media (max-width: 768px) {
  body {
    /* Optimized mobile background (JPG) */
    background-image: url('/assets/FCUTSBGM.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
  }
}

/* Override main theme colors for FCUTSTORE - DARK THEME (default) */
body:not([data-theme="light"]) {
  --bg: rgba(10, 10, 10, 0.85); /* Semi-transparent to show background */
  --card: var(--fcutstore-dark-grey);
  --card-bg: var(--fcutstore-dark-grey);
  --text-primary: var(--fcutstore-text-white);
  --text-secondary: var(--fcutstore-text-grey);
  --border-color: var(--fcutstore-border-grey);
  --primary: var(--fcutstore-text-white);
  --primary-600: var(--fcutstore-light-grey);
  --primary-color: var(--fcutstore-text-white);
  --success-color: var(--fcutstore-success);
  --error-color: var(--fcutstore-error);
  --text: var(--fcutstore-text-white);
  --muted: var(--fcutstore-text-muted);
  --border: var(--fcutstore-border-grey);
  --accent: var(--fcutstore-accent);
}

/* LIGHT THEME for FCUTSTORE */
[data-theme="light"] {
  --bg: #ffffff;
  --card: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --primary-color: #3b82f6;
  --success-color: #22c55e;
  --error-color: #ff4444;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #3b82f6;
  --fcutstore-success: #22c55e;
}

/* Header - responsive to theme */
body:not([data-theme="light"]) .site-header {
  background: var(--fcutstore-dark-grey) !important;
}

[data-theme="light"] .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
}

/* Modal backgrounds - Dark theme */
body:not([data-theme="light"]) .modal-content,
body:not([data-theme="light"]) .customer-dashboard,
body:not([data-theme="light"]) #account-modal .modal-content,
body:not([data-theme="light"]) #contact-modal .modal-content,
body:not([data-theme="light"]) #faq-modal .modal-content,
body:not([data-theme="light"]) #cashback-modal .modal-content {
  background: var(--fcutstore-dark-grey) !important;
  border: 1px solid var(--fcutstore-border-grey);
  color: var(--fcutstore-text-white);
}

/* Modal backgrounds - Light theme */
[data-theme="light"] .modal-content,
[data-theme="light"] .customer-dashboard,
[data-theme="light"] #account-modal .modal-content,
[data-theme="light"] #contact-modal .modal-content,
[data-theme="light"] #faq-modal .modal-content,
[data-theme="light"] #cashback-modal .modal-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Modal titles - Dark theme */
body:not([data-theme="light"]) .modal-title,
body:not([data-theme="light"]) h2,
body:not([data-theme="light"]) h3 {
  color: var(--fcutstore-text-white) !important;
}

/* Modal titles - Light theme */
[data-theme="light"] .modal-title,
[data-theme="light"] h2,
[data-theme="light"] h3 {
  color: #0f172a !important;
}

/* Buttons - Dark theme */
body:not([data-theme="light"]) .btn-primary {
  background: var(--fcutstore-text-white);
  color: var(--fcutstore-black);
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

body:not([data-theme="light"]) .btn-primary:hover {
  background: var(--fcutstore-text-grey);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body:not([data-theme="light"]) .btn-secondary {
  background: var(--fcutstore-mid-grey);
  color: var(--fcutstore-text-white);
  border: 1px solid var(--fcutstore-border-grey);
}

body:not([data-theme="light"]) .btn-secondary:hover {
  background: var(--fcutstore-light-grey);
  border-color: var(--fcutstore-light-grey);
}

/* Buttons - Light theme */
[data-theme="light"] .btn-primary {
  background: #3b82f6;
  color: #0f172a;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

[data-theme="light"] .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

[data-theme="light"] .btn-secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Form inputs - Dark theme */
body:not([data-theme="light"]) input[type="text"],
body:not([data-theme="light"]) input[type="email"],
body:not([data-theme="light"]) input[type="password"],
body:not([data-theme="light"]) input[type="tel"],
body:not([data-theme="light"]) textarea,
body:not([data-theme="light"]) select {
  background: var(--fcutstore-mid-grey) !important;
  border: 1px solid var(--fcutstore-border-grey) !important;
  color: var(--fcutstore-text-white) !important;
}

body:not([data-theme="light"]) input[type="text"]:focus,
body:not([data-theme="light"]) input[type="email"]:focus,
body:not([data-theme="light"]) input[type="password"]:focus,
body:not([data-theme="light"]) input[type="tel"]:focus,
body:not([data-theme="light"]) textarea:focus,
body:not([data-theme="light"]) select:focus {
  border-color: var(--fcutstore-light-grey) !important;
  background: var(--fcutstore-light-grey) !important;
  outline: none;
}

body:not([data-theme="light"]) input::placeholder,
body:not([data-theme="light"]) textarea::placeholder {
  color: var(--fcutstore-text-muted) !important;
}

/* EXCEPTION: Chat input needs to be visible - override dark theme for chat widget */
body:not([data-theme="light"]) .chat-widget #chat-input,
body:not([data-theme="light"]) .chat-widget .chat-input-area input {
  background: #121722 !important;
  color: #e6ecf2 !important;
  -webkit-text-fill-color: #e6ecf2 !important;
  border-color: var(--fcutstore-border-grey) !important;
}

/* TOTY THEME FOR CHAT - ULTRA HIGH SPECIFICITY - Only when theme enabled */
/* Customer messages - TOTY blue bubble with white text */
body.toty-theme-enabled #chat-widget #chat-panel #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled #chat-widget #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled #chat-panel #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled #chat-widget #chat-panel #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled #chat-widget #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled #chat-panel #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled #chat-messages .chat-message.customer-message .message-content,
body.toty-theme-enabled .chat-panel .chat-message.customer-message .message-content,
body.toty-theme-enabled .chat-widget .chat-message.customer-message .message-content,
body.toty-theme-enabled div.chat-message.customer-message div.message-content,
body.toty-theme-enabled .chat-message.customer-message .message-content {
  background: #3B5FCF !important; /* TOTY blue */
  background-color: #3B5FCF !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 8px rgba(59, 95, 207, 0.3) !important;
}

/* Admin messages - TOTY navy */
body.toty-theme-enabled #chat-widget #chat-panel #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled #chat-widget #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled #chat-panel #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled #chat-widget #chat-panel #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled #chat-widget #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled #chat-panel #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled #chat-messages .chat-message.admin-message .message-content,
body.toty-theme-enabled .chat-panel .chat-message.admin-message .message-content,
body.toty-theme-enabled .chat-widget .chat-message.admin-message .message-content,
body.toty-theme-enabled div.chat-message.admin-message div.message-content,
body.toty-theme-enabled .chat-message.admin-message .message-content {
  background: #1E3A8A !important; /* TOTY navy */
  background-color: #1E3A8A !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3) !important;
}

/* Safety net: ensure customer bubble stays TOTY blue even if other styles load after */
body.toty-theme-enabled .chat-messages .customer-message .message-content,
body.toty-theme-enabled[data-theme="dark"] .chat-messages .customer-message .message-content {
  background: #3B5FCF !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Bot message override */
body.toty-theme-enabled #chat-messages .chat-message.bot-message .message-content,
body.toty-theme-enabled .chat-message.bot-message .message-content {
  background: #1E3A8A !important; /* TOTY navy */
  background-color: #1E3A8A !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Chat header - TOTY styling */
body.toty-theme-enabled .chat-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B5FCF 100%) !important;
  color: #ffffff !important;
}

body.toty-theme-enabled .chat-header h3 {
  color: #ffffff !important;
}

/* Chat send button - TOTY blue */
body.toty-theme-enabled #chat-widget .chat-send-btn,
body.toty-theme-enabled .chat-widget .chat-send-btn,
body.toty-theme-enabled .chat-panel .chat-send-btn,
body.toty-theme-enabled #chat-panel .chat-send-btn,
body.toty-theme-enabled button.chat-send-btn {
  background: #3B5FCF !important;
  background-color: #3B5FCF !important;
  color: #ffffff !important;
}

body.toty-theme-enabled #chat-widget .chat-send-btn:hover,
body.toty-theme-enabled .chat-widget .chat-send-btn:hover,
body.toty-theme-enabled .chat-panel .chat-send-btn:hover,
body.toty-theme-enabled #chat-panel .chat-send-btn:hover,
body.toty-theme-enabled button.chat-send-btn:hover {
  background: #2d4db5 !important;
  background-color: #2d4db5 !important;
  opacity: 1 !important;
}

/* Form inputs - Light theme */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] input[type="tel"]:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: #3b82f6 !important;
  background: #ffffff !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}

/* Cards and containers */
.platform-card {
  background: transparent !important;
  border: none !important;
}

.platform-card:hover {
  border: none !important;
  background: transparent !important;
}

/* Cards - Dark theme */
body:not([data-theme="light"]) .stat-card,
body:not([data-theme="light"]) .order-card {
  background: var(--fcutstore-dark-grey) !important;
  border: 1px solid var(--fcutstore-border-grey) !important;
}

/* Cards - Light theme */
[data-theme="light"] .stat-card,
[data-theme="light"] .order-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

/* Footer - Dark theme */
body:not([data-theme="light"]) .site-footer {
  background: var(--fcutstore-black) !important;
  border-top: 1px solid var(--fcutstore-border-grey);
  color: var(--fcutstore-text-grey);
}

/* Footer - Light theme */
[data-theme="light"] .site-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

.footer-logo {
  text-align: center;
  padding: 20px 0 15px;
}

.fcutstore-logo {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

/* Smallprint - Dark theme */
body:not([data-theme="light"]) .smallprint {
  color: var(--fcutstore-text-muted);
}

/* Smallprint - Light theme */
[data-theme="light"] .smallprint {
  color: #64748b;
}

/* Language Dropdown */
.lang-dropdown, .currency-dropdown {
  position: relative;
  display: inline-block;
}

#lang-toggle, #currency-toggle {
  cursor: pointer;
}

/* Lang/Currency Menu - Dark theme */
body:not([data-theme="light"]) .lang-menu,
body:not([data-theme="light"]) .currency-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--fcutstore-dark-grey);
  border: 1px solid var(--fcutstore-border-grey);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Lang/Currency Menu - Light theme */
[data-theme="light"] .lang-menu,
[data-theme="light"] .currency-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Lang/Currency Options - Dark theme */
body:not([data-theme="light"]) .lang-option,
body:not([data-theme="light"]) .currency-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--fcutstore-text-white);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

body:not([data-theme="light"]) .lang-option:hover,
body:not([data-theme="light"]) .currency-option:hover {
  background: var(--fcutstore-mid-grey);
}

/* Lang/Currency Options - Light theme */
[data-theme="light"] .lang-option,
[data-theme="light"] .currency-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

[data-theme="light"] .lang-option:hover,
[data-theme="light"] .currency-option:hover {
  background: #f8fafc;
}

/* Mobile language dropdown */
.lang-dropdown-mobile {
  position: relative;
}

/* Mobile language dropdown - Dark theme */
body:not([data-theme="light"]) .lang-menu-mobile {
  display: none;
  background: var(--fcutstore-mid-grey);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

/* Mobile language dropdown - Light theme */
[data-theme="light"] .lang-menu-mobile {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

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

/* Mobile language options - Dark theme */
body:not([data-theme="light"]) .lang-option-mobile {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--fcutstore-text-white);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

body:not([data-theme="light"]) .lang-option-mobile:hover {
  background: var(--fcutstore-light-grey);
}

/* Mobile language options - Light theme */
[data-theme="light"] .lang-option-mobile {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

[data-theme="light"] .lang-option-mobile:hover {
  background: #e2e8f0;
}

/* Footer Trust Signals */
.footer-trust-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--fcutstore-border-grey);
  max-width: 1000px;
  margin: 0 auto;
}

.footer-trust-signals .trust-item {
  text-align: center;
  padding: 0.5rem;
}

.footer-trust-signals .trustpilot-badge .trust-stars {
  color: #00b67a;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

/* Footer Trust Signals - Dark theme */
body:not([data-theme="light"]) .footer-trust-signals .trust-rating {
  color: var(--fcutstore-text-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

body:not([data-theme="light"]) .footer-trust-signals .trust-number {
  color: var(--fcutstore-text-white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

body:not([data-theme="light"]) .footer-trust-signals .trust-label {
  color: var(--fcutstore-text-grey);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Trust Signals - Light theme */
[data-theme="light"] .footer-trust-signals .trust-rating {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .footer-trust-signals .trust-number {
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .footer-trust-signals .trust-label {
  color: #64748b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer-trust-signals {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 1rem 1.5rem;
  }

  .footer-trust-signals .trust-number {
    font-size: 1.5rem;
  }
}

/* Payment method icons container */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 1.5rem;
  margin-bottom: 1rem;
}

.payment-icon-svg {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .payment-methods {
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .payment-icon-svg {
    width: 60px !important;
    height: 36px !important;
  }
}

/* Trust Signals Section - Dark theme */
body:not([data-theme="light"]) .trust-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--fcutstore-dark-grey);
  border: 1px solid var(--fcutstore-border-grey);
  border-radius: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust Signals Section - Light theme */
[data-theme="light"] .trust-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.trust-item {
  text-align: center;
  padding: 0.5rem;
}

.trustpilot-badge .trust-stars {
  color: #00b67a;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

/* Trust ratings/numbers/labels - Dark theme */
body:not([data-theme="light"]) .trust-rating {
  color: var(--fcutstore-text-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

body:not([data-theme="light"]) .trust-number {
  color: var(--fcutstore-text-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body:not([data-theme="light"]) .trust-label {
  color: var(--fcutstore-text-grey);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trust ratings/numbers/labels - Light theme */
[data-theme="light"] .trust-rating {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .trust-number {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .trust-label {
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .trust-signals {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .trust-number {
    font-size: 1.25rem;
  }
}

/* Delivery Badge on Platform Cards */
.delivery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--fcutstore-success);
  color: var(--fcutstore-black);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

/* Quantity Preset Buttons */
.quantity-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: var(--fcutstore-mid-grey);
  color: var(--fcutstore-text-white);
  border: 2px solid var(--fcutstore-border-grey);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.preset-btn:hover {
  background: var(--fcutstore-light-grey);
  border-color: var(--fcutstore-text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.preset-btn.active {
  background: var(--fcutstore-text-white);
  color: var(--fcutstore-black);
  border-color: var(--fcutstore-text-white);
}

@media (max-width: 768px) {
  .quantity-presets {
    gap: 0.5rem;
  }

  .preset-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: 75px;
  }
}

/* Status badges */
.status-badge {
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.status-badge.active,
.status-badge.shipped,
.status-badge.completed {
  background: rgba(0, 255, 136, 0.15);
  color: var(--fcutstore-success);
  border: 1px solid var(--fcutstore-success);
}

.status-badge.pending,
.status-badge.processing {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fcutstore-text-white);
  border: 1px solid var(--fcutstore-border-grey);
}

/* Tabs - Dark theme */
body:not([data-theme="light"]) .tab {
  background: transparent;
  color: var(--fcutstore-text-grey);
  border-bottom: 2px solid transparent;
}

body:not([data-theme="light"]) .tab.is-active {
  color: var(--fcutstore-text-white);
  border-bottom-color: var(--fcutstore-text-white);
}

body:not([data-theme="light"]) .tab:hover {
  color: var(--fcutstore-text-white);
  background: var(--fcutstore-mid-grey);
}

/* Tabs - Light theme */
[data-theme="light"] .tab {
  background: transparent;
  color: #64748b;
  border-bottom: 2px solid transparent;
}

[data-theme="light"] .tab.is-active {
  color: #0f172a;
  border-bottom-color: #3b82f6;
}

[data-theme="light"] .tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

/* Stats cards - Dark theme */
body:not([data-theme="light"]) .stat-value {
  color: var(--fcutstore-text-white);
  font-weight: 700;
}

body:not([data-theme="light"]) .stat-label {
  color: var(--fcutstore-text-grey);
}

/* Stats cards - Light theme */
[data-theme="light"] .stat-value {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .stat-label {
  color: #64748b;
}

/* Links - Dark theme */
body:not([data-theme="light"]) a {
  color: var(--fcutstore-text-white);
}

body:not([data-theme="light"]) a:hover {
  color: var(--fcutstore-text-grey);
}

/* Links - Light theme */
[data-theme="light"] a {
  color: #0f172a;
}

[data-theme="light"] a:hover {
  color: #3b82f6;
}

/* Cashback section - Dark theme */
body:not([data-theme="light"]) #cashback-modal .modal-content {
  background: var(--fcutstore-dark-grey) !important;
}

body:not([data-theme="light"]) .cashback-balance {
  background: var(--fcutstore-mid-grey);
  border: 1px solid var(--fcutstore-border-grey);
}

/* Cashback section - Light theme */
[data-theme="light"] #cashback-modal .modal-content {
  background: #ffffff !important;
}

[data-theme="light"] .cashback-balance {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* FAQ items - Dark theme */
body:not([data-theme="light"]) .faq-item {
  background: var(--fcutstore-mid-grey);
  border: 1px solid var(--fcutstore-border-grey);
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}

body:not([data-theme="light"]) .faq-item h3 {
  color: var(--fcutstore-text-white);
  margin-bottom: 0.35rem;
}

body:not([data-theme="light"]) .faq-item p {
  color: var(--fcutstore-text-grey);
  margin: 0;
}

/* FAQ items - Light theme */
[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}

[data-theme="light"] .faq-item h3 {
  color: #0f172a;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .faq-item p {
  color: #475569;
  margin: 0;
}

/* FCUTSTORE FAQ modal specific tweaks – match compact FAQ on EAFC Coin Store */
#faq-modal .modal-content {
  padding: 12px 14px;
}

#faq-modal .faq-list {
  gap: 6px;
}

#faq-modal .faq-item {
  margin-bottom: 4px;
  padding: 8px 10px;
}

#faq-modal .faq-item h3 {
  font-size: 13px;
}

#faq-modal .faq-item p {
  font-size: 12px;
  line-height: 1.3;
}

/* Contact form */
#contact-modal textarea {
  min-height: 120px;
}

/* Success/Error states */
.success {
  color: var(--fcutstore-success);
}

.error {
  color: var(--fcutstore-error);
}

/* Table styling - Dark theme */
body:not([data-theme="light"]) table {
  background: var(--fcutstore-dark-grey);
  color: var(--fcutstore-text-white);
}

body:not([data-theme="light"]) th {
  background: var(--fcutstore-mid-grey);
  color: var(--fcutstore-text-white);
  border-bottom: 2px solid var(--fcutstore-border-grey);
}

body:not([data-theme="light"]) td {
  border-bottom: 1px solid var(--fcutstore-border-grey);
  color: var(--fcutstore-text-grey);
}

body:not([data-theme="light"]) tr:hover {
  background: var(--fcutstore-mid-grey);
}

/* Table styling - Light theme */
[data-theme="light"] table {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] th {
  background: #f8fafc;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
}

[data-theme="light"] td {
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] tr:hover {
  background: #f8fafc;
}

/* Scrollbar styling - Dark theme */
body:not([data-theme="light"]) ::-webkit-scrollbar {
  width: 12px;
  background: var(--fcutstore-near-black);
}

body:not([data-theme="light"]) ::-webkit-scrollbar-track {
  background: var(--fcutstore-near-black);
}

body:not([data-theme="light"]) ::-webkit-scrollbar-thumb {
  background: var(--fcutstore-light-grey);
  border-radius: 6px;
}

body:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover {
  background: var(--fcutstore-text-grey);
}

/* Scrollbar styling - Light theme */
[data-theme="light"] ::-webkit-scrollbar {
  width: 12px;
  background: #f8fafc;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f8fafc;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Override all blue elements to white/grey for FCUTSTORE */
input[type="range"]::-webkit-slider-thumb {
  background: var(--fcutstore-text-white) !important;
}

input[type="range"]::-moz-range-thumb {
  background: var(--fcutstore-text-white) !important;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--fcutstore-text-white) 0%, var(--fcutstore-text-white) var(--range-progress, 50%), var(--fcutstore-mid-grey) var(--range-progress, 50%), var(--fcutstore-mid-grey) 100%) !important;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--fcutstore-text-white) !important;
}

/* Override focus states from blue to white */
input:focus,
textarea:focus,
select:focus,
button:focus {
  border-color: var(--fcutstore-light-grey) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

/* Key Features Section - Dark theme */
body:not([data-theme="light"]) .key-features-section {
  padding: 30px 20px;
  background: var(--fcutstore-near-black);
  border-top: 1px solid var(--fcutstore-border-grey);
  border-bottom: 1px solid var(--fcutstore-border-grey);
}

/* Key Features Section - Light theme */
[data-theme="light"] .key-features-section {
  padding: 30px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.key-features-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Features heading - Dark theme */
body:not([data-theme="light"]) .features-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--fcutstore-text-white);
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

/* Features heading - Light theme */
[data-theme="light"] .features-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-box {
  background: transparent;
  border: none;
  padding: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feature-icon {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  background: transparent;
  text-shadow: none;
  filter: none;
}

/* Feature box h3 - Dark theme */
body:not([data-theme="light"]) .feature-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fcutstore-text-white);
  margin: 0;
  line-height: 1.2;
  display: inline-block;
}

/* Feature box h3 - Light theme */
[data-theme="light"] .feature-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  display: inline-block;
}

.feature-box p {
  display: none;
}

/* Platform icon in quantity section */
.platform-icon-small {
  height: 24px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block !important;
}

/* Responsive */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .key-features-section {
    padding: 20px 16px;
  }

  .features-heading {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-box {
    padding: 8px;
  }

  .feature-icon {
    font-size: 28px;
  }

  .feature-box h3 {
    font-size: 12px;
  }
}

/* ========================================
   TOTY PROMO BADGE
   ======================================== */

.toty-promo-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  animation: toty-badge-pulse 2s ease-in-out infinite;
}

.toty-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--toty-navy) 0%, var(--toty-blue) 100%);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
  border: 2px solid var(--toty-gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toty-badge-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
}

.toty-badge-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: toty-trophy-spin 3s ease-in-out infinite;
}

.toty-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toty-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--toty-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toty-badge-discount {
  font-size: 20px;
  font-weight: 800;
  color: var(--fcutstore-text-white);
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.toty-badge-code {
  font-size: 11px;
  color: var(--toty-gold);
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.toty-badge-ends {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

@keyframes toty-badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes toty-trophy-spin {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .toty-promo-badge {
    bottom: 10px;
    left: 10px;
  }

  .toty-badge-content {
    padding: 12px 16px;
    gap: 10px;
  }

  .toty-badge-icon {
    font-size: 28px;
  }

  .toty-badge-title {
    font-size: 12px;
  }

  .toty-badge-discount {
    font-size: 18px;
  }

  .toty-badge-code {
    font-size: 10px;
  }

  .toty-badge-ends {
    font-size: 9px;
  }
}

/* Hide TOTY elements when theme is disabled */
body:not(.toty-theme-enabled) .toty-promo-badge {
  display: none !important;
}

/* TOTY Apply Coupon Button - Only when theme is enabled */
body.toty-theme-enabled #apply-coupon {
  background: linear-gradient(135deg, var(--toty-navy) 0%, var(--toty-blue) 100%) !important;
  border: 2px solid var(--toty-gold) !important;
  color: var(--fcutstore-text-white) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease !important;
}

body.toty-theme-enabled #apply-coupon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.5), 0 0 12px rgba(255, 215, 0, 0.2) !important;
  border-color: var(--toty-gold) !important;
}

/* Temporarily hide Sell Coins (feature not ready yet) */
body #sell-coins-btn,
body #sell-coins-btn-mobile {
  display: none !important;
}

/* ========================================
   FLASH SALE PROMO BADGE
   ======================================== */

.flash-sale-promo-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  animation: flash-badge-pulse 1.5s ease-in-out infinite;
}

.flash-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--flash-red) 0%, var(--flash-orange) 100%);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5), 0 0 20px rgba(255, 107, 53, 0.3);
  border: 2px solid var(--flash-yellow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.flash-badge-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.7), 0 0 30px rgba(255, 215, 0, 0.5);
  border-color: var(--flash-yellow);
}

.flash-badge-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: flash-bolt-spin 2s ease-in-out infinite;
}

.flash-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flash-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--flash-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: flash-text-shimmer 2s ease-in-out infinite;
}

.flash-badge-discount {
  font-size: 20px;
  font-weight: 800;
  color: var(--fcutstore-text-white);
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.flash-badge-code {
  font-size: 11px;
  color: var(--flash-yellow);
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.flash-badge-ends {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

@keyframes flash-badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes flash-bolt-spin {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-15deg) scale(1.1);
  }
  50% {
    transform: rotate(0deg) scale(1.2);
  }
  75% {
    transform: rotate(15deg) scale(1.1);
  }
}

@keyframes flash-text-shimmer {
  0%, 100% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 215, 0, 0.3);
  }
  50% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.6);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .flash-sale-promo-badge {
    bottom: 10px;
    left: 10px;
  }

  .flash-badge-content {
    padding: 12px 16px;
    gap: 10px;
  }

  .flash-badge-icon {
    font-size: 28px;
  }

  .flash-badge-title {
    font-size: 12px;
  }

  .flash-badge-discount {
    font-size: 18px;
  }

  .flash-badge-code {
    font-size: 10px;
  }

  .flash-badge-ends {
    font-size: 9px;
  }
}

/* Hide Flash Sale elements when theme is disabled */
body:not(.flash-sale-theme-enabled) .flash-sale-promo-badge {
  display: none !important;
}

/* Flash Sale Apply Coupon Button - Only when theme is enabled */
body.flash-sale-theme-enabled #apply-coupon {
  background: linear-gradient(135deg, var(--flash-red) 0%, var(--flash-orange) 100%) !important;
  border: 2px solid var(--flash-yellow) !important;
  color: var(--fcutstore-text-white) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease !important;
}

body.flash-sale-theme-enabled #apply-coupon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6), 0 0 15px rgba(255, 215, 0, 0.3) !important;
  border-color: var(--flash-yellow) !important;
}

/* ========================================
   FLASH SALE LIGHTNING STRIKE EFFECT
   ======================================== */

.flash-lightning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

.flash-lightning-overlay.active {
  opacity: 1;
}

.flash-lightning-bolt {
  position: absolute;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 20%,
    rgba(255, 255, 255, 1) 30%,
    rgba(255, 255, 255, 0.9) 40%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.9) 60%,
    rgba(255, 255, 255, 1) 70%,
    rgba(255, 255, 255, 0.8) 80%,
    transparent 100%
  );
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 107, 53, 0.4),
    -2px 0 10px rgba(255, 255, 255, 0.5),
    2px 0 10px rgba(255, 255, 255, 0.5);
  left: 50%;
  transform: translateX(-50%);
  animation: lightning-strike 0.3s ease-out;
  filter: blur(1px);
}

.flash-lightning-bolt::before,
.flash-lightning-bolt::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 40%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.8) 70%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  filter: blur(0.5px);
}

.flash-lightning-bolt::before {
  left: -30px;
  top: 20%;
  transform: rotate(-15deg);
}

.flash-lightning-bolt::after {
  right: -30px;
  top: 40%;
  transform: rotate(15deg);
}

.flash-screen-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  animation: screen-flash 0.2s ease-out;
}

@keyframes lightning-strike {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) scaleY(0.1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
  90% {
    opacity: 0.8;
    transform: translateX(-50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes screen-flash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  40% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}

/* Hide lightning effect when theme is disabled */
body:not(.flash-sale-theme-enabled) .flash-lightning-overlay {
  display: none !important;
}

/* ========================================
   CHINESE NEW YEAR THEME - SUBTLE & ELEGANT
   ======================================== */

/* CNY Promo Badge */
.cny-promo-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  animation: cny-badge-float 3s ease-in-out infinite;
}

.cny-badge-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--cny-crimson) 0%, var(--cny-red) 100%);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
  border: 2px solid var(--cny-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle gold shimmer overlay */
.cny-badge-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
  animation: cny-shimmer 3s ease-in-out infinite;
}

.cny-badge-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(196, 30, 58, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
  border-color: var(--cny-gold-bright);
}

.cny-badge-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: cny-lantern-sway 2s ease-in-out infinite;
}

.cny-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cny-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cny-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cny-badge-discount {
  font-size: 20px;
  font-weight: 800;
  color: var(--fcutstore-text-white);
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cny-badge-code {
  font-size: 11px;
  color: var(--cny-gold);
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.cny-badge-ends {
  font-size: 10px;
  color: var(--cny-pearl);
  font-weight: 500;
}

/* CNY Theme Enabled - Chat Messages */
body.cny-theme-enabled .chat-message.customer-message .message-content {
  background: linear-gradient(135deg, var(--cny-crimson) 0%, var(--cny-red) 100%) !important;
  color: #ffffff !important;
  border: 1px solid var(--cny-gold);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

body.cny-theme-enabled .chat-message.admin-message .message-content,
body.cny-theme-enabled .chat-message.bot-message .message-content {
  background: var(--cny-dark-red) !important;
  color: var(--cny-gold) !important;
  border: 1px solid var(--cny-gold);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

/* Chat header - CNY styling */
body.cny-theme-enabled .chat-header {
  background: linear-gradient(135deg, var(--cny-crimson) 0%, var(--cny-red) 100%) !important;
  border-bottom: 2px solid var(--cny-gold);
}

body.cny-theme-enabled .chat-header h3 {
  color: var(--cny-gold) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chat send button - CNY gold */
body.cny-theme-enabled .chat-send-btn {
  background: linear-gradient(135deg, var(--cny-gold) 0%, var(--cny-gold-bright) 100%) !important;
  color: var(--cny-dark-red) !important;
  font-weight: 700;
}

body.cny-theme-enabled .chat-send-btn:hover {
  background: linear-gradient(135deg, var(--cny-gold-bright) 0%, var(--cny-gold) 100%) !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

/* Primary buttons - subtle CNY accent */
body.cny-theme-enabled .btn-primary,
body.cny-theme-enabled .primary-btn,
body.cny-theme-enabled button[type="submit"] {
  background: linear-gradient(135deg, var(--cny-crimson) 0%, var(--cny-red) 100%);
  border: 1px solid var(--cny-gold);
  color: #ffffff;
  transition: all 0.3s ease;
}

body.cny-theme-enabled .btn-primary:hover,
body.cny-theme-enabled .primary-btn:hover,
body.cny-theme-enabled button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--cny-red) 0%, var(--cny-crimson) 100%);
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
  border-color: var(--cny-gold-bright);
}

/* Subtle gold accent on cards */
body.cny-theme-enabled .card,
body.cny-theme-enabled .sidebar-card {
  border-top: 2px solid var(--cny-gold);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

/* Price cards - gold accent */
body.cny-theme-enabled .price-item.selected,
body.cny-theme-enabled .coin-option.selected {
  border: 2px solid var(--cny-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Success messages - gold */
body.cny-theme-enabled .success-message,
body.cny-theme-enabled .toast.success {
  background: linear-gradient(135deg, var(--cny-gold) 0%, var(--cny-gold-bright) 100%);
  color: var(--cny-dark-red);
  border: 1px solid var(--cny-dark-red);
}

/* Animations */
@keyframes cny-badge-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes cny-lantern-sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

@keyframes cny-shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(50%, 50%) rotate(360deg);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cny-promo-badge {
    bottom: 10px;
    left: 10px;
  }

  .cny-badge-content {
    padding: 12px 16px;
    gap: 10px;
  }

  .cny-badge-icon {
    font-size: 28px;
  }

  .cny-badge-title {
    font-size: 12px;
  }

  .cny-badge-discount {
    font-size: 18px;
  }

  .cny-badge-code {
    font-size: 10px;
  }

  .cny-badge-ends {
    font-size: 9px;
  }
}

/* Hide CNY badge when theme is disabled */
body:not(.cny-theme-enabled) .cny-promo-badge {
  display: none !important;
}

/* ========================================
   CNY FLOATING LANTERNS ANIMATION
   ======================================== */

.cny-lanterns-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cny-lantern {
  position: absolute;
  bottom: -100px;
  font-size: 48px;
  opacity: 0.6;
  animation: cny-float-lantern 15s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

@keyframes cny-float-lantern {
  0% {
    bottom: -100px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateX(20px) rotate(5deg);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    bottom: 110vh;
    transform: translateX(-20px) rotate(-5deg);
    opacity: 0;
  }
}

/* Hide lanterns when theme is disabled */
body:not(.cny-theme-enabled) .cny-lanterns-container {
  display: none !important;
}

/* ========================================
   CNY GOLD COIN RAIN ANIMATION
   ======================================== */

.cny-coin-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10001;
  overflow: hidden;
}

.cny-coin {
  position: absolute;
  top: -50px;
  font-size: 24px;
  animation: cny-coin-fall 3s ease-in forwards;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

@keyframes cny-coin-fall {
  0% {
    top: -50px;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 110vh;
    opacity: 0;
    transform: rotate(720deg);
  }
}

/* Gold sparkle effect */
.cny-coin::before {
  content: '✨';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 12px;
  animation: cny-sparkle 1s ease-in-out infinite;
}

@keyframes cny-sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide coin rain when theme is disabled */
body:not(.cny-theme-enabled) .cny-coin-rain-container {
  display: none !important;
}
