:root {
  /* Dark theme (default) */
  --bg: #0b0f14;
  --card: #121722;
  --border: #1e2633;
  --text: #e6ecf2;
  --muted: #a9b4c2;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --accent: #22d3ee;

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

/* Light theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --accent: #06b6d4;

  /* 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: #3b82f6;
  --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;
}

* { 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;
}
.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 0;
}
.smallprint { color: var(--muted); font-size: 12px; text-align: center; }
.top-banner { position: sticky; top: 0; z-index: 10000; padding: 10px 14px; text-align: center; font-weight: 600; }
.top-banner.success { background: rgba(34,197,94,.2); color: #22c55e; border-bottom: 1px solid rgba(34,197,94,.5); }
.top-banner.error { background: rgba(239,68,68,.2); color: #ef4444; border-bottom: 1px solid rgba(239,68,68,.5); }
.top-banner.info { background: rgba(59,130,246,.2); color: #3b82f6; border-bottom: 1px solid rgba(59,130,246,.5); }
.top-banner.sale { background: rgba(244,63,94,.2); color: #f43f5e; border-bottom: 1px solid rgba(244,63,94,.5); }

.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; }
.header-actions { position: absolute; right: 12px; top: 10px; display: flex; gap: 8px; align-items: center; }
.lang-switch { display: flex; gap: 6px; }
.header-left { position: absolute; left: 12px; top: 10px; display: flex; gap: 8px; align-items: center; }

/* 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);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 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: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.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; }

.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 { position: relative; min-height: 80vh; }
.main-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), var(--bg-image, url('assets/bg-dubai-2.jpg')) left center/cover no-repeat; }
.content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 24px; position: relative; min-height: inherit; }
.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: 20px; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.platform-grid-three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.platform-card {
  appearance: none; background: transparent; color: var(--text);
  padding: 0; cursor: pointer; text-align: left; display: block; border: none;
}
.platform-card:hover { transform: none; }
.platform-image { width: 100%; max-width: 270px; 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; }
.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"] { width: 100%; }
.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; }
.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(59,130,246,.15); }
.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(59,130,246,.15); }
.form-hint { font-size: 12px; color: var(--muted); }
.info-note { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.4); color: #93c5fd; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.bank-row { margin-top: 6px; color: var(--text); }
.bank-title { font-weight: 700; color: #93c5fd; 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; }

.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; }

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

.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: 9999; 
  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; }
.tab { appearance: none; background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.tab.is-active { background: var(--primary); border-color: var(--primary-600); }
.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: #101723; color: var(--text); border-radius: 8px; padding: 8px 10px; }
.form select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #0e1420; 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; }

.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: relative;
  z-index: 100;
  /* Ensure sidebar is completely fixed */
  transform: none !important;
  transition: none !important;
}


.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-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;
}

/* 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;
}

/* Admin content */
.admin-content {
  max-width: none;
  margin: 0;
  padding: 16px 24px;
  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;
}

/* 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;
}

/* 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: 768px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    /* Ensure sidebar is completely fixed on mobile too */
    transform: none !important;
    transition: none !important;
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .traffic-content {
    grid-template-columns: 1fr;
  }
  
  .admin-content {
    padding: 12px 16px;
  }
  
  .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;
  }
}

.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-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;
}

.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;
}

/* Ensure visibility for alternative class names (socket-based widget compatibility) */
.chat-messages .customer-message .message-content { background: #f1f5f9 !important; color: #1e293b !important; }
.chat-messages .admin-message .message-content { background: var(--primary) !important; color: #ffffff !important; }
[data-theme="dark"] .chat-messages .customer-message .message-content { background: #0f172a !important; color: #e2e8f0 !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);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

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

.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 ALL desktop navigation buttons except mobile menu */
  .header-actions button:not(.mobile-menu-btn),
  .header-actions .lang-switch {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Show ONLY the mobile menu button */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Simplify header for mobile */
  .site-header {
    padding: 10px 15px !important;
    height: 60px !important;
    overflow: hidden !important;
  }
  
  .brand-text {
    font-size: 12px !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 15px !important;
    z-index: 10 !important;
  }
  
  .rotating-text {
    min-width: 150px !important;
  }
  
  /* Fix header-left positioning and sizing */
  .header-left {
    left: 15px !important;
    top: 12px !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    z-index: 10 !important;
  }
  
  /* 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;
  }
  
  .header-actions {
    right: 15px !important;
    top: 12px !important;
    z-index: 10 !important;
  }
  
  /* Mobile nav overlay */
  .mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100000 !important;
    background: rgba(0, 0, 0, 0.98) !important;
  }
  
  /* Content spacing and centering */
  .main-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .content {
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Center platform cards side by side */
  .platform-section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 50vh !important;
  }
  
  .platform-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 400px !important;
  }

  /* 3-column grid on tablet: show 2 columns, then 1 column on mobile */
  .platform-grid-three {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    max-width: 500px !important;
  }
  
  /* Make platform cards smaller on mobile */
  .platform-card {
    flex: 1 !important;
    max-width: 180px !important;
    min-width: 160px !important;
  }
  
  .platform-image {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Mobile background positioning - show Burj Khalifa */
  .main-wrap::before {
    background-position: left center !important;
    background-size: cover !important;
  }
}

@media (max-width: 640px) {
  .title { font-size: 24px; }
  .platform-image { max-width: 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 {
    min-height: 45vh !important;
    padding: 10px 0 !important;
  }
  
  .platform-grid {
    gap: 10px !important;
    max-width: 350px !important;
  }

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

  .platform-card {
    max-width: 160px !important;
    min-width: 140px !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: 12px;
}

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

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}

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

.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 tr:hover,
.customers-table tr:hover {
  background: #f8f9fa;
}

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

/* 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: flex;
  gap: 4px;
  margin-left: 8px;
}

.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;
}

.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.shipped {
  background: #8b5cf6;
  color: white;
}

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

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

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

.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;
}

.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 Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  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: 24px;
  }
}

/* Error Notice for Wrong Info Status */
.error-notice {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  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: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.error-notice-content {
  flex: 1;
}

.error-notice-title {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 12px;
}

.error-notice-message {
  font-size: 15px;
  color: #78350f;
  margin-bottom: 16px;
  line-height: 1.6;
}

.error-notice-list {
  font-size: 14px;
  color: #78350f;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.5);
  padding: 12px 16px;
  border-radius: 8px;
}

.error-notice-list strong {
  display: block;
  margin-bottom: 8px;
  color: #92400e;
}

.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 {
    flex-direction: column;
    text-align: center;
  }

  .error-notice-icon {
    font-size: 40px;
  }
}

.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;
}

@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;
}

.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);
}

.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-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) {
  .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) {
  .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;
}

.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);
}

.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 */
}

/* Override for Zopim tabs container */
#admin-conversations-list.zopim-conversation-tabs {
  display: flex !important;
  flex-direction: row !important;
}

/* Hide old conversation styles - using Zopim now */
.conversation-item {
  display: none !important;
}

.conversation-item:hover {
  display: none !important;
}

.conversation-item.active {
  display: none !important;
}

.conversation-item.active * {
  display: none !important;
}

.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;
}

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

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

.message-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.conversation-item.active .message-count {
  color: rgba(255, 255, 255, 0.8);
}

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

.conversation-preview {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.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: #333;
}

.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;
}
