/* Design System & Styling: HOD AI Business Platform */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Color Palette - HOD Media Premium Dark Mode */
  --bg-base: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1e2942;
  --primary: #7c3aed; /* Violet */
  --primary-glow: rgba(124, 58, 237, 0.4);
  --secondary: #2563eb; /* Blue */
  --secondary-glow: rgba(37, 99, 235, 0.4);
  --accent: #10b981; /* Emerald Green */
  --accent-glow: rgba(16, 185, 129, 0.3);
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* --- Global Light Mode Theme Tokens --- */
body.light-mode {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(124, 58, 237, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
body.light-mode .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
}
body.light-mode .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.1);
}
body.light-mode #btn-toggle-theme-merchant,
body.light-mode #btn-toggle-theme-admin {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}


/* --- Global Resets & Defaults --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Floating Perspective Selector --- */
.perspective-selector-bar {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.selector-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.selector-logo span {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  -webkit-text-fill-color: var(--text-primary);
  margin-left: 5px;
}

.perspective-buttons {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.perspective-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.perspective-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.perspective-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.db-stats {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.db-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.db-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* --- View Shell Container --- */
.view-container {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.perspective-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.perspective-view.active-view {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* ==========================================================================
   VIEW 1: MARKETING LANDING PAGE (hodmedia.in)
   ========================================================================== */
.marketing-page {
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.12) 0%, rgba(11, 15, 25, 0) 50%), var(--bg-base);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Grid overlay background */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.marketing-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.marketing-nav {
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.marketing-nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.marketing-hero {
  max-width: 1000px;
  text-align: center;
  padding: 60px 20px 40px 20px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

.marketing-hero h1 {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(to right, #ffffff 30%, #d8b4fe 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.marketing-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 40px;
}

/* Fast Store Builder Widget */
.store-generator-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  max-width: 750px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.store-generator-widget input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.store-generator-widget input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.store-generator-widget select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.store-generator-widget select:focus {
  border-color: var(--primary);
}

/* Marketing Services Tabs */
.services-section {
  width: 100%;
  max-width: 1200px;
  padding: 60px 24px;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.service-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.service-tab-btn.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(19, 27, 46, 0.5);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(124, 58, 237, 0.1);
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Grid */
.pricing-section {
  width: 100%;
  max-width: 1200px;
  padding: 60px 24px 100px 24px;
  position: relative;
  z-index: 10;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.pricing-card {
  background: rgba(19, 27, 46, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 5px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 35px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.btn-pricing-select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-pricing-select:hover {
  background: var(--text-primary);
  color: var(--bg-base);
}

.pricing-card.popular .btn-pricing-select {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: var(--text-primary);
}

.pricing-card.popular .btn-pricing-select:hover {
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.02);
}

/* Purchase Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.purchase-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Stepper Progress Indicator */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-node.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-node.completed {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-primary);
}

/* Form Styles inside Modal */
.modal-form-group {
  margin-bottom: 20px;
}

.modal-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.modal-form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.modal-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Payment Layout Card */
.credit-card-mockup {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border-radius: 4px;
}

.card-type {
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Setup Loader Animations */
.setup-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.spinner-ring {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(124, 58, 237, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 30px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.setup-loading-steps {
  list-style: none;
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.setup-loading-steps li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-loading-steps li.active {
  color: var(--text-primary);
  font-weight: 600;
}

.setup-loading-steps li.active::before {
  content: '●';
  color: var(--primary);
  animation: pulse 1s infinite;
}

.setup-loading-steps li.completed {
  color: var(--accent);
}

.setup-loading-steps li.completed::before {
  content: '✓';
  font-weight: 700;
}

.setup-loading-steps li.pending::before {
  content: '○';
}

/* Success State */
.setup-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.success-icon-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 25px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.setup-success-links {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-top: 30px;
}

.setup-success-links button {
  flex: 1;
}

/* ==========================================================================
   VIEW 2: MERCHANT DASHBOARD (app.hodmedia.in)
   ========================================================================== */
.merchant-layout {
  display: flex;
  height: 100%;
  background-color: #080c14;
}

.merchant-sidebar {
  width: 250px;
  background: #0f1524;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.merchant-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.store-select-dropdown {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  font-family: var(--font-display);
}

.merchant-sidebar-menu {
  list-style: none;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

.merchant-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.merchant-menu-item.active a,
.merchant-menu-item a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.merchant-menu-item.active a {
  border-left: 3px solid var(--primary);
  background: rgba(124, 58, 237, 0.08);
}

.merchant-sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.merchant-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.merchant-header {
  height: 70px;
  background: #0f1524;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.merchant-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.merchant-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.merchant-content-area {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

.merchant-pane {
  display: none;
  flex-direction: column;
  gap: 25px;
  animation: fadeIn 0.3s ease-in-out;
}

.merchant-pane.active-pane {
  display: flex;
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-card-header {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-card-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.metric-card-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-card-change.positive {
  color: var(--accent);
}

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

/* Mini SVG Sparklines */
.sparkline-svg {
  width: 100px;
  height: 30px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* Analytics Graph Panel */
.analytics-chart-panel {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px;
  display: flex;
  flex-direction: column;
}

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

.chart-canvas-mock {
  width: 100%;
  height: 250px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 30px 10px 30px;
}

/* Simple CSS Chart Bars */
.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  width: 10%;
  position: relative;
}

.chart-bar-visual {
  width: 100%;
  max-width: 25px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--secondary) 0%, var(--primary) 100%);
  height: 50%; /* Set dynamically */
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
  transition: height 0.5s ease-in-out;
}

.chart-bar-visual:hover {
  background: linear-gradient(to top, var(--secondary) 0%, var(--primary-glow) 100%);
}

.chart-bar-label {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chart-y-axis {
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
  width: 30px;
}

/* Data Tables */
.table-panel {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

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

.status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
}

.status-badge.active,
.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.suspended,
.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Theme Switcher Layout */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.theme-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.theme-preview-box {
  height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 15px;
  justify-content: space-between;
}

.theme-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.theme-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* AI Copilot Description Generator Panel */
.ai-helper-badge {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #c084fc;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ai-helper-badge:hover {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   VIEW 3: DYNAMIC CUSTOMER STOREFRONTS (/store/[slug])
   ========================================================================== */
.storefront-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

/* Theme 1: Glassmorphic Dark (Default Store Theme) */
.store-theme-glassmorphic {
  background-color: #0b0f19;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
}
.store-theme-glassmorphic .store-header {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.store-theme-glassmorphic .store-product-card {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}
.store-theme-glassmorphic .btn-store-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  border: none;
}

/* Theme 2: Minimalist Light */
.store-theme-minimalist {
  background-color: #fcfcfc;
  color: #111;
  font-family: Georgia, serif;
}
.store-theme-minimalist .store-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none;
}
.store-theme-minimalist .store-product-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 0;
  box-shadow: none;
}
.store-theme-minimalist .btn-store-primary {
  background: #111;
  color: #fff;
  border-radius: 0;
  border: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Theme 3: Cyberpunk Neon */
.store-theme-cyberpunk {
  background-color: #020204;
  color: #39ff14; /* Neon Green */
  font-family: var(--font-mono);
}
.store-theme-cyberpunk .store-header {
  background: #000;
  border-bottom: 2px solid #ff007f; /* Neon Pink */
}
.store-theme-cyberpunk .store-product-card {
  background: #05050a;
  border: 2px solid #39ff14;
  border-radius: 0;
  box-shadow: 5px 5px 0px #ff007f;
}
.store-theme-cyberpunk .btn-store-primary {
  background: #ff007f;
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  box-shadow: 3px 3px 0 #39ff14;
  border-radius: 0;
}

/* Theme 4: Midnight Gold (Dark) */
.store-theme-midnight-gold {
  background-color: #030712;
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
}
.store-theme-midnight-gold .store-header {
  background: #090e1a;
  border-bottom: 1px solid #ca8a04; /* Gold */
}
.store-theme-midnight-gold .store-product-card {
  background: #0d1527;
  border: 1px solid rgba(202, 138, 4, 0.2);
  border-radius: var(--radius-md);
}
.store-theme-midnight-gold .btn-store-primary {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #030712;
  border: none;
  font-weight: 700;
}

/* Theme 1b: Glassmorphic Light */
.store-theme-glassmorphic-light {
  background-color: #f1f5f9;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
}
.store-theme-glassmorphic-light .store-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.store-theme-glassmorphic-light .store-product-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  color: #0f172a;
}
.store-theme-glassmorphic-light .btn-store-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  border: none;
}
.store-theme-glassmorphic-light .store-cart-trigger {
  background: rgba(0,0,0,0.04);
  color: #0f172a;
}
.store-theme-glassmorphic-light .store-hero p {
  color: #64748b;
}
.store-theme-glassmorphic-light .store-product-image-placeholder {
  background: rgba(0,0,0,0.02);
}

/* Theme 2b: Minimalist Dark */
.store-theme-minimalist-dark {
  background-color: #111111;
  color: #fcfcfc;
  font-family: Georgia, serif;
}
.store-theme-minimalist-dark .store-header {
  background: #1a1a1a;
  border-bottom: 1px solid #333333;
}
.store-theme-minimalist-dark .store-product-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 0;
}
.store-theme-minimalist-dark .btn-store-primary {
  background: #fcfcfc;
  color: #111111;
  border-radius: 0;
  border: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.store-theme-minimalist-dark .store-cart-trigger {
  background: #1a1a1a;
  border-radius: 0;
  border: 1px solid #333333;
}
.store-theme-minimalist-dark .store-hero p {
  color: #aaa;
}
.store-theme-minimalist-dark .store-product-image-placeholder {
  background: #222;
}

/* Theme 3b: Cyberpunk Light */
.store-theme-cyberpunk-light {
  background-color: #f3f4f6;
  color: #d90429;
  font-family: var(--font-mono);
}
.store-theme-cyberpunk-light .store-header {
  background: #ffffff;
  border-bottom: 2px solid #00b4d8;
}
.store-theme-cyberpunk-light .store-product-card {
  background: #ffffff;
  border: 2px solid #d90429;
  border-radius: 0;
  box-shadow: 5px 5px 0px #00b4d8;
  color: #1f2937;
}
.store-theme-cyberpunk-light .btn-store-primary {
  background: #00b4d8;
  color: #000;
  border: none;
  font-family: var(--font-mono);
  box-shadow: 3px 3px 0 #d90429;
  border-radius: 0;
}
.store-theme-cyberpunk-light .store-cart-trigger {
  background: #ffffff;
  border: 1px solid #d90429;
  border-radius: 0;
}
.store-theme-cyberpunk-light .store-hero p {
  color: #4b5563;
}
.store-theme-cyberpunk-light .store-product-image-placeholder {
  background: #e5e7eb;
}

/* Theme 4b: Golden Royal Light */
.store-theme-midnight-gold-light {
  background-color: #fffbeb;
  color: #451a03;
  font-family: 'Outfit', sans-serif;
}
.store-theme-midnight-gold-light .store-header {
  background: #fef3c7;
  border-bottom: 1px solid #ca8a04;
}
.store-theme-midnight-gold-light .store-product-card {
  background: #ffffff;
  border: 1px solid rgba(202, 138, 4, 0.3);
  border-radius: var(--radius-md);
  color: #451a03;
}
.store-theme-midnight-gold-light .btn-store-primary {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
}
.store-theme-midnight-gold-light .store-cart-trigger {
  background: #fef3c7;
}
.store-theme-midnight-gold-light .store-hero p {
  color: #78350f;
}
.store-theme-midnight-gold-light .store-product-image-placeholder {
  background: #fef8e7;
}


/* Core storefront layouts */
.store-header {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.store-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.store-cart-trigger {
  position: relative;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.store-theme-minimalist .store-cart-trigger {
  background: #f4f4f4;
  border-radius: 0;
}

.store-cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-body {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  flex-grow: 1;
}

.store-hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
}

.store-hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.store-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.store-theme-minimalist .store-hero p {
  color: #666;
}

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.store-product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.store-product-card:hover {
  transform: translateY(-4px);
}

.store-product-image-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.store-theme-minimalist .store-product-image-placeholder {
  background: #f6f6f6;
  border-bottom: 1px solid #eaeaea;
}

.store-product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.store-product-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.store-product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.store-theme-minimalist .store-product-desc {
  color: #666;
}

.store-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.store-product-price {
  font-weight: 700;
  font-size: 1.15rem;
}

.btn-store-primary {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Side Drawer Shopping Cart */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 1000;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #0f1524;
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.cart-drawer.open {
  right: 0;
}

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

.cart-drawer-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.2);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  margin-top: 5px;
}

.cart-qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   VIEW 4: MASTER ADMIN DASHBOARD (admin.hodmedia.in)
   ========================================================================== */
.admin-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #090b11;
}

.admin-header {
  background: #111422;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-header-badge {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #a78bfa;
}

.admin-body {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-danger-outline:hover {
  background: var(--danger);
  color: #fff;
}

.btn-success-outline {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-success-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Suspended Screen Overlay */
.suspended-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020408;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.4s ease-in-out;
}

.suspended-panel {
  max-width: 500px;
  background: #0f131c;
  border: 2px solid var(--danger);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.1);
}

.suspended-icon {
  font-size: 3rem;
  color: var(--danger);
  margin-bottom: 20px;
}

.suspended-panel h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.suspended-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* Animations */
@keyframes spin {
  100% { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Common UI Modals & Settings Form --- */
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.form-input:focus {
  border-color: var(--primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Added CMS & Domain Interface Enhancements --- */
.ai-helper-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-sm);
  color: #c084fc;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.ai-helper-badge:hover {
  background: var(--primary);
  color: #fff;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: var(--transition-smooth);
}
.cart-qty-btn:hover {
  background: rgba(255,255,255,0.15);
}

#store-navigation-links a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
  padding: 5px 0;
}
#store-navigation-links a:hover {
  color: var(--text-primary);
}
#store-navigation-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}
#store-navigation-links a:hover::after {
  width: 100%;
}

iframe {
  border: none;
  display: block;
}

/* Locked features styling & animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6)); }
  100% { transform: scale(1); }
}

.feature-locked a {
  opacity: 0.65 !important;
}

.feature-locked a:hover {
  cursor: not-allowed;
}

/* ==========================================================================
   AUTHENTICATION OVERLAYS & SIGN-IN PANELS
   ========================================================================== */
.merchant-auth-overlay, .admin-auth-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card {
  width: 90%;
  max-width: 440px;
  background: rgba(20, 20, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  animation: authSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.auth-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.auth-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-input {
  width: 100%;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  font-family: inherit;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
  background: rgba(10, 10, 15, 0.95);
}

.auth-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.auth-switch-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-switch-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

