/* ==========================================================================
   ZenFocus - Premium & Admin Dashboard Design Suite
   ========================================================================== */

/* 1. Header VIP & Admin Buttons */
.web-btn.vip-upgrade-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  border: 1px solid #f59e0b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  letter-spacing: -0.01em !important;
}

.web-btn.vip-upgrade-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #ea580c !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55) !important;
  transform: translateY(-1px) !important;
}

.web-btn.vip-active-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.16)) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
}

.web-btn.vip-active-badge:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.28)) !important;
  border-color: #f59e0b !important;
  color: #fef08a !important;
  transform: translateY(-1px) !important;
}

body.theme-light .web-btn.vip-active-badge {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(217, 119, 6, 0.5) !important;
  color: #b45309 !important;
}

.web-btn.admin-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-weight: 700;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
}

.web-btn.admin-btn:hover {
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
}

@keyframes vipPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.65); }
}

/* 2. Premium Checkout Modal (VietQR) */
.payment-modal-container {
  width: 780px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.theme-light .payment-modal-container {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25), 0 0 30px rgba(245, 158, 11, 0.15);
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

body.theme-light .payment-header {
  border-bottom-color: #e2e8f0;
}

.payment-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-vip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.payment-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

body.theme-light .payment-title {
  color: #0f172a;
}

.payment-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 2-Column Checkout Layout */
.payment-email-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

body.theme-light .payment-email-card {
  background: #f0f9ff;
  border-color: rgba(56, 189, 248, 0.4);
}

.payment-email-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.payment-email-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.payment-email-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.payment-email-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #f1f5f9;
}

body.theme-light .payment-email-title {
  color: #0f172a;
}

.payment-required-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.payment-email-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

body.theme-light .payment-email-sub {
  color: #475569;
}

.payment-email-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-email-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.payment-email-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

body.theme-light .payment-email-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.payment-email-btn {
  padding: 9px 16px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.payment-email-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.payment-email-notice {
  font-size: 11.5px;
  padding: 2px 2px 0;
  display: none;
}

.payment-email-notice.show-ok {
  display: block;
  color: #10b981;
}

.payment-email-notice.show-error {
  display: block;
  color: #f87171;
}

.payment-qr-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.payment-qr-placeholder.active {
  display: flex;
}

.user-cell-email {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Left: Perks & Value Proposition */
.payment-perks-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.theme-light .payment-perks-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Flash Deal Hero Card */
.deal-hero-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 50%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}

body.theme-light .deal-hero-card {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.7) 0%, rgba(254, 226, 226, 0.5) 100%);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.06);
}

.deal-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deal-fire-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f59e0b;
  text-transform: uppercase;
}

body.theme-light .deal-fire-pill {
  color: #b45309;
}

.promo-fire-icon {
  font-size: 14px;
  animation: flameFlicker 1.5s infinite alternate ease-in-out;
}

@keyframes flameFlicker {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #f59e0b); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 6px #ef4444); }
}

.deal-save-tag {
  background: linear-gradient(135deg, #ef4444, #ea580c);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.deal-pricing-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deal-numbers {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-main {
  font-size: 34px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: -0.6px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}

body.theme-light .price-main {
  color: #d97706;
}

.price-currency {
  font-size: 22px;
  font-weight: 800;
  margin-left: 2px;
}

.price-original {
  font-size: 17px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
  opacity: 0.8;
}

body.theme-light .price-original {
  color: #64748b;
}

.deal-badge-cycle {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

body.theme-light .deal-badge-cycle {
  color: #475569;
}

/* Integrated Countdown Ribbon */
.deal-countdown-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  margin-top: 2px;
  flex-wrap: wrap;
}

body.theme-light .deal-countdown-strip {
  border-top-color: rgba(245, 158, 11, 0.25);
}

.cd-label-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fcd34d;
}

body.theme-light .cd-label-row {
  color: #b45309;
}

.promo-countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  min-width: 36px;
  padding: 3px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

body.theme-light .cd-box {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cd-box span {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

body.theme-light .cd-box span {
  color: #0f172a;
}

.cd-box small {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1px;
}

body.theme-light .cd-box small {
  color: #64748b;
}

.cd-sep {
  font-weight: 800;
  color: #f59e0b;
  font-size: 13px;
  line-height: 1;
}

/* Feature Perks Cards */
.perks-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.perk-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.perk-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-light .perk-card {
  background: #ffffff;
  border-color: #f1f5f9;
}

body.theme-light .perk-card:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.perk-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.perk-icon-wrap svg {
  width: 15px;
  height: 15px;
}

.perk-icon-wrap.gold {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.perk-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.perk-heading {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.1px;
}

body.theme-light .perk-heading {
  color: #0f172a;
}

.perk-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

body.theme-light .perk-desc {
  color: #64748b;
}

/* Right: VietQR Box */
.payment-qr-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

body.theme-light .payment-qr-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.qr-card-surface {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
}

.vietqr-img-wrapper {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vietqr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-instructions {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}

/* Bank Details Container */
.qr-bank-details {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-light .qr-bank-details {
  background: #ffffff;
  border-color: #e2e8f0;
}

.bank-row-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 7px;
  margin-bottom: 1px;
}

body.theme-light .bank-row-header {
  border-bottom-color: #f1f5f9;
}

.bank-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-logo-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 4px;
}

.bank-brand-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bank-name-primary {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

body.theme-light .bank-name-primary {
  color: #0f172a;
}

.bank-name-sub {
  font-size: 9.5px;
  color: #94a3b8;
}

body.theme-light .bank-name-sub {
  color: #64748b;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bank-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bank-label-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bank-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

body.theme-light .bank-label {
  color: #64748b;
}

.memo-required-pill {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0 5px;
  border-radius: 999px;
}

.bank-val {
  font-size: 12.5px;
  color: #f1f5f9;
  font-weight: 700;
}

body.theme-light .bank-val {
  color: #0f172a;
}

.font-mono {
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
  letter-spacing: 0.5px;
}

.font-name {
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #e2e8f0;
}

body.theme-light .font-name {
  color: #1e293b;
}

.font-amount {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
}

body.theme-light .font-amount {
  color: #0284c7;
}

/* Memo Highlighting Row */
.bank-row-memo {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 1px;
}

body.theme-light .bank-row-memo {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.5);
}

.font-memo-highlight {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.6px;
}

body.theme-light .font-memo-highlight {
  color: #b45309;
}

/* Pill Copy Buttons */
.copy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.copy-pill-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

body.theme-light .copy-pill-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

body.theme-light .copy-pill-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.copy-pill-btn.copy-pill-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.25));
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.copy-pill-btn.copy-pill-highlight:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(234, 88, 12, 0.4));
  color: #ffffff;
}

body.theme-light .copy-pill-btn.copy-pill-highlight {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.copy-pill-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* Bottom Action & Polling Bar */
.payment-status-bar {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.theme-light .payment-status-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

body.theme-light .status-left {
  color: #334155;
}

.status-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: dotPulse 1.5s infinite;
  flex-shrink: 0;
}

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

.vip-action-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.vip-action-confirm-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.45);
}

.vip-action-confirm-btn:active {
  transform: translateY(0);
}

.test-simulate-btn {
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.test-simulate-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* 3. Admin Dashboard Modal */
.admin-modal-container {
  width: 960px;
  max-width: 96vw;
  max-height: 90vh;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.theme-light .admin-modal-container {
  background: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
}

.admin-modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .admin-modal-header {
  border-bottom-color: #e2e8f0;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

body.theme-light .admin-title {
  color: #0f172a;
}

.admin-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Stats 4 Cards Row */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.theme-light .admin-stat-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.stat-card-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

body.theme-light .stat-card-label {
  color: #64748b;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

body.theme-light .stat-card-value {
  color: #0f172a;
}

.stat-card-value.highlight-vip {
  color: #fbbf24;
}

.stat-card-value.highlight-money {
  color: #10b981;
}

/* Admin Search & Filter Bar */
.admin-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-search-wrap {
  flex: 1;
  max-width: 360px;
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  font-family: inherit;
}

body.theme-light .admin-search-input {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-search-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  pointer-events: none;
}

/* User Table */
.admin-table-container {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

body.theme-light .admin-table-container {
  border-color: #e2e8f0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .admin-table th {
  background: #f1f5f9;
  color: #475569;
  border-bottom-color: #e2e8f0;
}

.admin-table td {
  padding: 12px 16px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.theme-light .admin-table td {
  color: #1e293b;
  border-bottom-color: #f1f5f9;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

body.theme-light .admin-table tr:hover td {
  background: #f8fafc;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-cell-info {
  display: flex;
  flex-direction: column;
}

.user-cell-name {
  font-weight: 700;
  color: #ffffff;
}

body.theme-light .user-cell-name {
  color: #0f172a;
}

.user-cell-username {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Badges in table */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.admin-badge.badge-vip {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.admin-badge.badge-free {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-badge.badge-role-admin {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Action toggle button */
.admin-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.admin-toggle-btn.grant-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.admin-toggle-btn.grant-vip:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.admin-toggle-btn.revoke-vip {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.admin-toggle-btn.revoke-vip:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Confetti celebration canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}
