﻿@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

/* =========================================
   1. VARIABLES & THEMES
   ========================================= */
:root {
  --bg: #0f172a;
  --bg-soft: #111c34;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.9);
  --surface-border: rgba(148, 163, 184, 0.24);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --secondary: #60a5fa;
  --danger: #ef4444;
  --danger-strong: #dc2626;
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  --ring: 0 0 0 2px rgba(59, 130, 246, 0.45);
}

:root[data-theme="light"] {
  --bg: #f8fafc; 
  --bg-soft: #f1f5f9; 
  --surface: rgba(255, 255, 255, 0.9); 
  --surface-strong: #ffffff; 
  --surface-border: rgba(15, 23, 42, 0.15); 
  --text: #0f172a; 
  --muted: #64748b; 
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --secondary: #3b82f6;
  --danger: #ef4444;
  --danger-strong: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08); 
  --ring: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

/* =========================================
   2. BASE & RESET
   ========================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.2), transparent 34%),
    radial-gradient(circle at 88% 85%, rgba(56, 189, 248, 0.18), transparent 32%),
    linear-gradient(140deg, var(--bg), var(--bg-soft));
  background-attachment: fixed; 
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
p { margin-top: 0; }

/* =========================================
   3. LAYOUT & CONTAINERS
   ========================================= */
.site-header {
  width: min(1160px, calc(100% - 24px));
  margin: 16px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--surface-border); background: var(--surface);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}

.page-shell { width: min(1160px, calc(100% - 24px)); margin: 26px auto 30px; }
.center-wrap { width: min(560px, calc(100% - 24px)); margin: 28px auto 30px; }
.stack { display: grid; gap: 10px; }

/* Header Specific */
.logo-mark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-logo-img {
  width: 36px; height: 36px; border-radius: 50%; 
  border: 1px solid rgba(59, 130, 246, 0.4); 
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); object-fit: cover;
}
.logo-text {
  font-family: "Orbitron", sans-serif; font-size: clamp(0.88rem, 1.6vw, 1.06rem);
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* =========================================
   4. COMPONENTS: BUTTONS
   ========================================= */
.btn, button {
  border: 1px solid transparent; border-radius: 12px; padding: 10px 14px;
  font-family: "Rajdhani", sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
/* =========================================
   HOME PAGE DOWNLOAD BUTTON (PREMIUM GLOW)
   ========================================= */
/* =========================================
   HOME PAGE DOWNLOAD BUTTON (PREMIUM SOLID GLOW)
   ========================================= */
.btn-download {
  background-color: var(--success); /* Login button jaisa solid color */
  color: #fff !important;
  border: none;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: pulseSuccess 2s infinite;
  white-space: nowrap; /* Text ko tootne se bachayega */
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-download:hover {
  background-color: #16a34a; /* Hover par thoda dark green */
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
  transform: translateY(-2px);
}

/* Mobile screen ke liye adjustments taaki screen se bahar na jaye */
@media (max-width: 600px) {
  .btn-download .hide-mobile {
    display: none; /* Mobile pe "Panel" word chhup jayega */
  }
  .header-actions {
    gap: 8px; /* Buttons ke beech ka gap kam karega */
  }
  .btn-download, .header-actions .btn {
    padding: 8px 12px; /* Mobile par buttons thode chote honge */
    font-size: 0.85rem;
  }
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Button Hover and Focus States */
.btn:hover, button:hover { transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary { background: linear-gradient(120deg, var(--primary), #60a5fa); color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: linear-gradient(120deg, var(--primary-strong), var(--primary)); }

.btn-free { background: linear-gradient(120deg, #22c55e, #16a34a); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn-free:hover { background: linear-gradient(120deg, #16a34a, #22c55e); }


.btn-neutral { background: rgba(148, 163, 184, 0.12); border-color: var(--surface-border); color: var(--text); }
.btn-neutral:hover { background: rgba(148, 163, 184, 0.22); }

.btn-Download { background: linear-gradient(120deg, #22c55e, #16a34a); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn-danger { background: linear-gradient(120deg, var(--danger), #f87171); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn-danger:hover { background: linear-gradient(120deg, var(--danger-strong), var(--danger)); }

.btn-outline { background: transparent; border-color: var(--surface-border); color: var(--text); }
.btn-outline:hover { background: rgba(148, 163, 184, 0.14); }

.btn-elite {
  background: linear-gradient(120deg, #f59e0b, #fbbf24); color: #000 !important;
  font-weight: 900; border: none; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-block { display: block; text-align: center; margin-top: 15px; width: 100%; }
.btn-full { width: 100%; }
.btn-large { padding: 12px; font-size: 1.1rem; }
.theme-toggle { min-width: 124px; }

/* =========================================
   5. COMPONENTS: FORMS & INPUTS
   ========================================= */
.input-group { margin-bottom: 12px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 700; }

input, select {
  width: 100%; border-radius: 12px; border: 1px solid var(--surface-border);
  background: rgba(2, 6, 23, 0.36); color: var(--text); padding: 11px 12px;
  font-family: "Rajdhani", sans-serif; font-size: 1rem;
}
:root[data-theme="light"] input, :root[data-theme="light"] select { background: rgba(226, 232, 240, 0.55); }
input::placeholder { color: #8aa0be; text-align: center; }
input:focus-visible, select:focus-visible { outline: none; box-shadow: var(--ring); }

/* =========================================
   6. COMPONENTS: CARDS & PANELS
   ========================================= */
.panel, .auth-card, .hero {
  border: 1px solid var(--surface-border); border-radius: 18px;
  background: var(--surface); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px);
}
.panel + .panel { margin-top: 16px; }

.panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-header h2, .panel-header h3 { margin: 0; font-family: "Orbitron", sans-serif; font-size: clamp(1rem, 2vw, 1.35rem); text-transform: uppercase; letter-spacing: 0.03em; }

.hero p { margin-bottom: 0; max-width: 720px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero h1 { margin: 16px 0 10px; font-family: "Orbitron", sans-serif; font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: 0.03em; }

.auth-title { margin: 0; font-family: "Orbitron", sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.auth-subtitle { margin-top: 8px; margin-bottom: 18px; color: var(--muted); }

/* Stats & Products */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat-card { border: 1px solid var(--surface-border); border-radius: 14px; background: var(--surface-strong); padding: 14px; }
.stat-label { margin: 0; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.stat-value { margin: 6px 0 0; font-size: 1.2rem; font-weight: 700; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; perspective: 1000px; }
.product-card {
  position: relative; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover { transform: translateY(-10px) rotateX(5deg); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
.product-title { margin: 0; font-family: "Orbitron", sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.product-price { margin: 8px 0 10px; font-size: 1.6rem; font-weight: 700; color: #93c5fd; }
.product-features { margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); }
.product-features li + li { margin-top: 6px; }

.product-card.elite { border: 2px solid #fbbf24; background: rgba(251, 191, 36, 0.05); animation: pulseGold 2s infinite; }
@keyframes pulseGold {
  0% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.5); }
  100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
}
.elite-badge {
  position: absolute; top: 15px; right: -30px; background: #fbbf24; color: #000;
  padding: 5px 35px; transform: rotate(45deg); font-weight: 900; font-size: 0.7rem; letter-spacing: 1px;
}

.product-card.disabled-card { opacity: 0.6; filter: grayscale(80%); pointer-events: none; transition: all 0.3s ease; }
.product-card.disabled-card .btn { background: rgba(148, 163, 184, 0.15); color: var(--muted); border-color: rgba(148, 163, 184, 0.2); cursor: not-allowed; }

/* =========================================
   7. COMPONENTS: TABLES
   ========================================= */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th { text-align: left; font-family: "Orbitron", sans-serif; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--surface-border); padding: 12px 10px; }
tbody td { border-bottom: 1px solid var(--surface-border); padding: 10px; font-size: 1rem; }
tbody tr:hover { background: rgba(148, 163, 184, 0.08); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions .btn { padding: 7px 10px; font-size: 0.9rem; }

/* =========================================
   8. COMPONENTS: BADGES, ALERTS & RESULTS
   ========================================= */
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; font-weight: 700; }
.badge.good { color: #bbf7d0; background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.28); }
.badge.bad { color: #fecaca; background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.28); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px;
  background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}

.key-result { margin-top: 14px; border-radius: 12px; border: 1px dashed rgba(59, 130, 246, 0.5); padding: 12px; background: rgba(59, 130, 246, 0.11); }
.key-result-label { margin: 0; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.key-result-value { margin: 7px 0 0; font-family: "Orbitron", sans-serif; font-size: 1.18rem; letter-spacing: 0.05em; word-break: break-word; }
.instruction-box { margin-top: 0; border-color: var(--warning); background: rgba(245, 158, 11, 0.05); }

/* =========================================
   9. OVERLAYS, MODALS & TOASTS
   ========================================= */
.modal-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, 0.75); z-index: 1100; }
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal-card {
  width: min(520px, 100%); border-radius: 16px; border: 1px solid var(--surface-border);
  background: var(--surface-strong); box-shadow: var(--shadow); padding: 18px;
  max-height: 90vh; overflow-y: auto;
}
.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.2); border-radius: 8px; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.5); border-radius: 8px; }
.modal-card-center { max-width: 400px; text-align: center; }

.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal-top-center { justify-content: center; margin-bottom: 15px; }
.modal-title { margin: 0; font-family: "Orbitron", sans-serif; font-size: 1.04rem; text-transform: uppercase; letter-spacing: 0.03em; }
.modal-title-large { font-size: 1.4rem; margin-bottom: 10px; }
.modal-desc { margin-bottom: 25px; }

.modal-icon-box { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.modal-icon-danger { background: rgba(239, 68, 68, 0.2); box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
.modal-btn-group { display: flex; gap: 10px; justify-content: center; }
.modal-btn-group .btn { flex: 1; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--surface-border);
  background: rgba(148, 163, 184, 0.1); color: var(--text); font-size: 1rem;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.2); }

.toast-stack { position: fixed; top: 14px; right: 14px; z-index: 1200; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 28px)); }
.toast {
  border-radius: 12px; border: 1px solid transparent; padding: 10px 12px;
  font-weight: 700; backdrop-filter: blur(10px); box-shadow: var(--shadow);
  transform: translateX(12px); opacity: 0; animation: toastIn 0.2s ease forwards;
}
.toast.info { border-color: rgba(59, 130, 246, 0.4); background: rgba(30, 64, 175, 0.72); color: #dbeafe; }
.toast.success { border-color: rgba(34, 197, 94, 0.45); background: rgba(21, 128, 61, 0.72); color: #dcfce7; }
.toast.error { border-color: rgba(239, 68, 68, 0.45); background: rgba(153, 27, 27, 0.78); color: #fee2e2; }

@keyframes toastIn { to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   10. LOADERS & MAINTENANCE
   ========================================= */
#global-loader {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px); z-index: 9999; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
#global-loader.active { opacity: 1; visibility: visible; }

.loader-circle {
  width: 55px; height: 55px; border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6; border-radius: 50%;
  animation: spin 1s linear infinite; margin-bottom: 20px; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}
.loader-text {
  font-family: "Orbitron", sans-serif; color: #fff; font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase; animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseText { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.maintenance-container {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-color, #0f172a); color: var(--text-color, #e2e8f0); text-align: center; padding: 20px;
}
.maintenance-icon {
  width: 80px; height: 80px; background: #dc2626; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 25px; box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
}
.maintenance-title { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; margin: 0 0 15px; color: #ef4444; letter-spacing: 2px; }
.maintenance-text { font-size: 1.2rem; color: #94a3b8; max-width: 500px; margin-bottom: 35px; line-height: 1.6; }
.maintenance-buttons { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

/* UTILITIES */
.scale-checkbox { cursor: pointer; transform: scale(1.2); }
.pt-15 { padding-top: 15px; }
.border-t { border-top: 1px solid var(--surface-border); }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.hidden-textarea { position: fixed; opacity: 0; pointer-events: none; }
.toast-hide { animation: none !important; opacity: 0 !important; transform: translateX(12px) !important; transition: all 0.3s ease !important; }

/* Margins & Paddings */
.mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; } .mt-25 { margin-top: 25px; }
.mb-0 { margin-bottom: 0; } .mb-5 { margin-bottom: 5px; } .mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; } .mb-25 { margin-bottom: 25px; } .mb-40 { margin-bottom: 40px; }
.p-6 { padding: 6px; }

/* Text & Typography */
.text-center { text-align: center; }
.text-warning { color: var(--warning) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-white { color: #fff !important; }
.title-danger { color: var(--danger); }
.text-gold { color: #fbbf24 !important; }
.text-gold-light { color: #fcd34d !important; }
.text-slate { color: #e2e8f0 !important; }
.highlight-text { color: #fff; letter-spacing: 1px; }
.muted { color: var(--muted); }
.fw-bold { font-weight: 700; }
.text-small { font-size: 0.8rem; }
.text-md { font-size: 1.1rem; }
.text-lg { font-size: 1.2rem; }
.text-xl { font-size: 1.5rem; }
.text-1-3rem { font-size: 1.3rem !important; }
.text-2rem { font-size: 2rem !important; }
.tracking-wide { letter-spacing: 2px; }
.word-break { word-break: break-all; }
.font-orbitron { font-family: 'Orbitron', monospace; }

/* Layout Helpers */
.checkout-container { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.flex-1-min-280 { flex: 1; min-width: 280px; }
.flex-2-min-300 { flex: 2; min-width: 300px; }
.flex-1-min-200 { flex: 1; min-width: 200px; }
.flex-row-gap-15 { display: flex; flex-wrap: wrap; gap: 15px; }

/* Borders & Unique Displays */
.border-primary { border-color: var(--primary); }
.border-warning { border-color: var(--warning); border-width: 2px; }
.border-surface { border-color: var(--surface-border); }
.panel-name-display { font-size: 1.3rem; margin: 0 0 20px; color: #fff; }
.price-display { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; color: var(--warning); }
.section-title { margin: 34px 0 14px; font-family: "Orbitron", sans-serif; font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: 0.04em; text-transform: uppercase; }
.link-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.link-row a { color: #93c5fd; font-weight: 700; }
.hero-actions, .dash-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================
   11. DYNAMIC JS CLASSES (Modals, States)
   ========================================= */
.status-approved-text { color: var(--success) !important; }
.status-approved-border { border-color: var(--success) !important; }
.status-rejected-text { color: var(--danger) !important; }
.status-rejected-border { border-color: var(--danger) !important; }
.status-pending-text { color: var(--warning) !important; }
.status-pending-border { border-color: var(--warning) !important; }

.btn-db-delete { border-color: var(--danger); color: var(--danger); margin-left: 8px; }
.btn-db-delete:hover { background: rgba(239, 68, 68, 0.1); }

.modal-approve-state { border-color: var(--success) !important; }
.text-approve-state { color: var(--success) !important; }
.icon-approve-state { background: rgba(34, 197, 94, 0.2) !important; box-shadow: 0 0 15px rgba(34, 197, 94, 0.5) !important; }

.modal-reject-state { border-color: var(--danger) !important; }
.text-reject-state { color: var(--danger) !important; }
.icon-reject-state { background: rgba(239, 68, 68, 0.2) !important; box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important; }

/* Maintenance Button States */
.btn-maint-on { background: linear-gradient(120deg, var(--danger-strong), #b91c1c) !important; color: #fff !important; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); border: none; }
.btn-maint-off { background: linear-gradient(120deg, #f59e0b, #fbbf24) !important; color: #000 !important; font-weight: 800; border: none; }

/* Payment & QR */
.payment-qr-container { text-align: center; margin: 15px 0; padding: 15px; background: #fff; border-radius: 12px; display: inline-block; }
.qr-placeholder { width: 180px; height: 180px; margin: 0 auto; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #000; }
.pay-now-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; background: #2563eb; color: white !important; font-weight: 700; border-radius: 10px; margin-top: 10px; }

/* Refresh Icon Animation */
.refresh-icon { margin-right: 8px; transition: transform 0.3s ease; }
.refresh-icon.spinning { animation: spin 0.8s linear infinite; }

/* =========================================
   12. LIGHT MODE THEME FIXES
   ========================================= */
:root[data-theme="light"] body {
  background: radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.06), transparent 34%), radial-gradient(circle at 88% 85%, rgba(56, 189, 248, 0.06), transparent 32%), linear-gradient(140deg, var(--bg), var(--bg-soft));
  background-attachment: fixed;
}
:root[data-theme="light"] .product-card.elite .text-slate { color: #334155 !important; }
:root[data-theme="light"] .product-card.elite .text-gold { color: #b45309 !important; }
:root[data-theme="light"] .product-card.elite .text-gold-light { color: #d97706 !important; }
:root[data-theme="light"] .highlight-text, :root[data-theme="light"] .panel-name-display { color: #0f172a !important; }
:root[data-theme="light"] .product-card { background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(15, 23, 42, 0.1); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04); }
:root[data-theme="light"] .product-card:hover { border-color: var(--primary); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12); }
:root[data-theme="light"] .product-price { color: var(--primary-strong); }
:root[data-theme="light"] .product-card.elite { background: rgba(251, 191, 36, 0.08); border: 2px solid #d97706; }
:root[data-theme="light"] .link-row a { color: #1e40af; }
:root[data-theme="light"] .hero-eyebrow { color: #1e40af; }
:root[data-theme="light"] .badge.good { color: #14532d; }
:root[data-theme="light"] .badge.bad { color: #7f1d1d; }
:root[data-theme="light"] .toast.info { background: rgba(191, 219, 254, 0.95); color: #1e3a8a; }
:root[data-theme="light"] .toast.success { background: rgba(187, 247, 208, 0.95); color: #14532d; }
:root[data-theme="light"] .toast.error { background: rgba(254, 202, 202, 0.95); color: #7f1d1d; }
:root[data-theme="light"] .product-card.disabled-card { opacity: 0.5; filter: grayscale(100%); }

/* =========================================
   13. DEVELOPER FOOTER & TOOLTIP
   ========================================= */
.developer-footer { margin-top: auto; width: 100%; }
.footer-content { text-align: center; padding: 25px 20px; border-top: 1px solid var(--surface-border); background: rgba(2, 6, 23, 0.4); backdrop-filter: blur(10px); transition: background 0.3s ease, border-color 0.3s ease; }
.footer-copyright { margin: 0; font-family: 'Orbitron', sans-serif; font-size: 0.95rem; color: var(--muted); letter-spacing: 2px; }
.footer-credit { margin: 8px 0 0; font-size: 0.9rem; color: var(--text); }
.footer-name { color: var(--primary); font-weight: 700; font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }

:root[data-theme="light"] .footer-content { background: rgba(255, 255, 255, 0.55); }
:root[data-theme="light"] .footer-name { color: var(--primary-strong); }

.tooltip-trigger { position: relative; display: inline-block; text-decoration: none; transition: color 0.3s ease, text-shadow 0.3s ease; cursor: pointer; }
.tooltip-trigger:hover { color: var(--secondary); text-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }

.tooltip-trigger::after {
  content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: rgba(2, 6, 23, 0.95); color: #60a5fa; padding: 8px 14px; border-radius: 8px; font-size: 0.8rem;
  font-family: 'Orbitron', sans-serif; letter-spacing: 1px; white-space: nowrap; opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.8); pointer-events: none; z-index: 100;
}

.tooltip-trigger::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border-width: 6px; border-style: solid; border-color: rgba(59, 130, 246, 0.5) transparent transparent transparent;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}

.tooltip-trigger:hover::after { opacity: 1; visibility: visible; bottom: 140%; }
.tooltip-trigger:hover::before { opacity: 1; visibility: visible; bottom: 115%; }

:root[data-theme="light"] .tooltip-trigger::after { background: #ffffff; color: var(--primary-strong); border: 1px solid var(--primary); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15); }
:root[data-theme="light"] .tooltip-trigger::before { border-color: var(--primary) transparent transparent transparent; }

/* =========================================
   14. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .logo-mark { width: 100%; }
  .header-actions { width: 100%; justify-content: flex-end; }
  .theme-toggle { min-width: 110px; }
  .hero-actions, .dash-actions { flex-direction: column; }
  .hero-actions .btn, .dash-actions .btn { width: 100%; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .maintenance-title { font-size: 1.6rem; }
  .maintenance-text { font-size: 1rem; }
  .maintenance-buttons { flex-direction: column; width: 100%; max-width: 300px; }
  .maintenance-buttons .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 520px) {
  .site-header, .page-shell, .center-wrap { width: calc(100% - 18px); }
  .site-header { margin-top: 9px; padding: 10px; }
  .page-shell { margin-top: 14px; }
  .panel, .hero, .auth-card { padding: 14px; }
  .logo-text { font-size: 0.8rem; }
  .product-card { padding: 14px; }
}
/* =========================================
   15. FREE PANEL COMPONENTS
   ========================================= */
.credentials-box {
  background: rgba(2, 6, 23, 0.4);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  text-align: left;
  border: 1px solid var(--surface-border);
}

:root[data-theme="light"] .credentials-box {
  background: rgba(226, 232, 240, 0.55);
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-strong);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
}

.credential-row h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text); /* Theme variable use kar rahe hain */
}

.credential-row .btn {
  padding: 5px 12px;
  font-size: 0.85rem;
}

.progress-container {
  margin-top: 15px;
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--success);
  transition: width 0.8s ease, background 0.3s ease;
}
/* =========================================
   16. USER DASHBOARD COMPONENTS
   ========================================= */
.alert-box {
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: 25px;
  border: 1px solid transparent;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
}
:root[data-theme="light"] .alert-warning {
  background: rgba(217, 119, 6, 0.1);
}
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}
:root[data-theme="light"] .alert-danger {
  background: rgba(220, 38, 38, 0.1);
}
.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.flex-center-gap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.key-display-box {
  background: rgba(2, 6, 23, 0.4);
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid var(--surface-border);
}
:root[data-theme="light"] .key-display-box {
  background: rgba(226, 232, 240, 0.55);
}
.btn-copy {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--secondary);
}
:root[data-theme="light"] .btn-copy {
  color: var(--primary-strong);
}
.btn-copy:hover {
  background: rgba(59, 130, 246, 0.2);
}
.dash-footer-actions {
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
  margin-top: 25px;
}
.glow-success {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

/* =========================================
   17. CHECKOUT UI COMPONENTS
   ========================================= */
.custom-file-input {
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.36);
  border: 1px dashed var(--surface-border);
  transition: border-color 0.3s ease;
}
.custom-file-input:hover {
  border-color: var(--secondary);
}
:root[data-theme="light"] .custom-file-input {
  background: rgba(226, 232, 240, 0.55);
}

.image-preview-container {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 8px;
}
:root[data-theme="light"] .image-preview-container {
  background: rgba(226, 232, 240, 0.55);
}
.image-preview-container img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* =========================================
   18. ADMIN UI & BADGES
   ========================================= */
.badge.warning { 
  color: #fcd34d; 
  background: rgba(245, 158, 11, 0.18); 
  border: 1px solid rgba(245, 158, 11, 0.28); 
}
:root[data-theme="light"] .badge.warning {
  color: #b45309;
}

.db-search-input {
  flex: 1; 
  min-width: 250px; 
  padding: 10px 15px; 
  border-radius: 8px;
  border: 1px solid var(--surface-border); 
  background: rgba(2, 6, 23, 0.4); 
  color: var(--text); 
  font-family: 'Rajdhani', sans-serif; 
  font-size: 1rem;
  transition: all 0.3s ease;
}
.db-search-input:focus { 
  border-color: var(--primary); 
  box-shadow: 0 0 0 2px rgba(59,130,246,0.3); 
  outline: none; 
}
:root[data-theme="light"] .db-search-input { 
  background: rgba(226, 232, 240, 0.55); 
}