/* =========================================================
   24×7 LICENSE STORE & ADMIN DASHBOARD - DESIGN SYSTEM 3.0
   Theme: Midnight Cyber Blue & Electric Cyan / Pure Border Glow
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Dynamic CSS Property for smooth 360deg border angle animation */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes spinBorderAngle {
  0% {
    --border-angle: 0deg;
  }
  100% {
    --border-angle: 360deg;
  }
}

:root {
  /* Deep Cyber Blue & Midnight Palette */
  --bg-primary: #030712;
  --bg-secondary: #060e24;
  --bg-card: #0a1330;
  --bg-card-glass: rgba(10, 19, 48, 0.88);
  --bg-card-hover: #0f1c42;
  --bg-input: #040817;
  
  /* Electric Blue & Cyan Accents */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  
  --cyan-accent: #38bdf8;
  --cyan-bright: #00d2ff;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --cyan-glow-strong: rgba(56, 189, 248, 0.7);
  --blue-glow: rgba(37, 99, 235, 0.35);
  
  /* Gold Sub-Accents (for pricing/badges) */
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Borders */
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-glass: rgba(56, 189, 248, 0.2);
  --border-blue: rgba(56, 189, 248, 0.45);
  --border-blue-bright: #38bdf8;
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.14);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.14);
  
  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 1px 1px var(--border-subtle);
  --shadow-blue: 0 10px 30px -5px var(--cyan-glow);
  --shadow-glow: 0 0 45px -8px var(--cyan-glow-strong);
  
  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Allow text selection where required (inputs, keys, code terminals, payment info) */
input,
textarea,
select,
code,
pre,
.key-string,
.code-terminal-pre,
.terminal-body,
.amount-value,
.upi-id-pill,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Rich Deep Blue Grid & Radial Mesh Background */
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% -5%, rgba(37, 99, 235, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 10% 45%, rgba(56, 189, 248, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 90% 75%, rgba(30, 64, 175, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Ambient Floating Glow Orbs (Electric Blue) */
.ambient-glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.7;
  animation: floatOrb 14s ease-in-out infinite alternate;
}
.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 25%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
}
.orb-2 {
  width: 480px;
  height: 480px;
  bottom: 8%;
  right: 5%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  animation-duration: 18s;
}
.orb-3 {
  width: 360px;
  height: 360px;
  top: 35%;
  left: -80px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  animation-duration: 15s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 45px) scale(1.1); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #13234d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-accent);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 70%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.7), 0 0 10px rgba(245, 158, 11, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  color: #18181b;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.brand-icon-box svg {
  width: 24px;
  height: 24px;
  fill: #18181b;
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.9), 0 0 15px rgba(245, 158, 11, 0.7);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

/* =========================================================
   BUTTON SYSTEM & SHIMMER EFFECTS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 50px; /* Modern Round Pill Buttons */
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px -4px rgba(56, 189, 248, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(56, 189, 248, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 40%, #2563eb 100%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Shimmer Sweep Animation on Button */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
}

.btn-shimmer:hover::after {
  left: 140%;
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--cyan-accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: rgba(56, 189, 248, 0.08);
  color: var(--cyan-accent);
  border: 1px solid var(--border-blue);
}
.btn-outline-gold:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan-accent);
  box-shadow: var(--shadow-blue);
  color: #fff;
}

.btn-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-accent);
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 102;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon-circle svg,
.btn-icon-circle path {
  pointer-events: none;
}
.btn-icon-circle:hover {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 50px;
}

/* =========================================================
   PUBLIC STORE VIEW
   ========================================================= */

.store-wrapper {
  padding: 50px 0 90px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-section {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-blue);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan-accent);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 40%, #38bdf8 70%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   ✨ KEY GENERATOR CARD (STRICT BORDER-ONLY RUNNING LIGHT) ✨
   ========================================================= */

.generator-card {
  width: 100%;
  max-width: 460px;
  background: #09122c; /* Static, solid dark background */
  border: 1.5px solid rgba(56, 189, 248, 0.18); /* Subtle static base border */
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1;
}

/* Small glowing cyan/white highlight that travels ONLY along the 1.5px perimeter border line */
.generator-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-xl) + 1.5px);
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 285deg,
    rgba(56, 189, 248, 0.15) 310deg,
    #0284c7 330deg,
    #38bdf8 348deg,
    #ffffff 355deg,
    #38bdf8 358deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spinBorderAngle 3.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.card-badge-header {
  color: var(--cyan-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-label svg {
  color: var(--cyan-accent);
  width: 16px;
  height: 16px;
}

/* =========================================================
   ✨ CLEAN, ROUNDED & DYNAMIC CUSTOM SELECT DROPDOWNS ✨
   ========================================================= */

.dropdown-group {
  position: relative;
}

.custom-select-box {
  position: relative;
  width: 100%;
}

.custom-select-box.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hidden-select {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

.custom-select-trigger {
  width: 100%;
  background: #040817;
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  border-radius: 50px;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.3);
  outline: none;
  user-select: none;
  text-align: left;
}

.custom-select-trigger:hover:not(:disabled) {
  border-color: var(--cyan-accent);
  background: #070e28;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.custom-select-box.open .custom-select-trigger {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3.5px rgba(56, 189, 248, 0.3), 0 0 25px rgba(56, 189, 248, 0.35);
  background: #091230;
}

.trigger-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-chevron-icon {
  color: var(--cyan-accent);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-box.open .select-chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu Container with PROPER ROUNDED CORNERS (all 4 corners including bottom-left/right) */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #070e28;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px; /* Smooth rounded corners */
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-box.open .custom-select-dropdown {
  display: block;
  animation: dropdownPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-select-item {
  padding: 12px 18px;
  border-radius: 12px;
  color: #f8fafc;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border: 1px solid transparent;
}

.custom-select-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--cyan-bright);
  transform: translateX(3px);
}

.custom-select-item.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.2));
  border-color: var(--cyan-accent);
  color: #ffffff;
}

.item-check-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-bright);
}

.stock-badge-out {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
}

.custom-select-item.is-out-of-stock {
  opacity: 0.65;
}

.custom-select-item.is-out-of-stock:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Form Controls (Rounded) */
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-control:hover:not(:disabled) {
  border-color: var(--cyan-accent);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: #081026;
}

.form-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Amount Box with Radial Backlight & Smooth Rounded Corners */
.amount-display-box {
  background: linear-gradient(180deg, #050b1c 0%, #030712 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.2), 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.amount-display-box::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  top: -40px;
  right: -20px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.amount-display-box:hover {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.amount-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.amount-value {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: var(--cyan-bright);
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.amount-meta-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Trust Strip below Generator */
.trust-strip {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.trust-pill svg {
  color: var(--cyan-accent);
}

/* =========================================================
   ✨ RESULT CARD (STRICT BORDER-ONLY RUNNING LIGHT) ✨
   ========================================================= */

.result-card {
  width: 100%;
  max-width: 500px;
  background: #09122c; /* Static solid dark background */
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Running Rotating Border Line (Masked strictly to 1.5px border stroke) */
.result-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-xl) + 1.5px);
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 285deg,
    rgba(16, 185, 129, 0.2) 310deg,
    #10b981 330deg,
    #34d399 348deg,
    #ffffff 355deg,
    #38bdf8 358deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spinBorderAngle 3.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.success-badge-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #10b981 60%, #059669 100%);
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  animation: bounceIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bounceIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.result-meta-grid {
  background: #040817;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}

.meta-item-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.meta-item-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.license-key-box {
  background: #030612;
  border: 2px dashed rgba(56, 189, 248, 0.6);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
}

.key-string {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan-accent);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  letter-spacing: 1.5px;
  word-break: break-all;
  user-select: all;
}

/* =========================================================
   MODAL DIALOGS
   ========================================================= */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 4, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #0a1330 0%, #050b1e 100%);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-xl);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.25);
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card-lg {
  max-width: 780px;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
}

/* Payment Checkout UI inside Modal */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
  position: relative;
}

.qr-box {
  background: #ffffff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.4);
  display: inline-flex;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

/* Laser Scanner Line Effect over QR code */
.qr-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #2563eb, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 4%; }
  100% { top: 94%; }
}

.qr-box img {
  display: block;
  width: 170px;
  height: 170px;
}

.upi-id-pill {
  background: #040817;
  border: 1px solid var(--border-blue);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   ADMIN DASHBOARD VIEW
   ========================================================= */

.admin-wrapper {
  padding: 28px 0 70px;
  min-height: calc(100vh - 80px);
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.admin-top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Hamburger Toggle */
.btn-admin-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-blue);
  color: var(--cyan-bright);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-hamburger:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan-accent);
}

/* Mobile Sidebar Backdrop */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer Header */
.admin-sidebar-header-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.btn-sidebar-close:hover {
  color: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Admin Sidebar */
.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 96px;
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-primary);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.15));
  color: var(--cyan-accent);
  border: 1px solid var(--border-blue);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

/* Admin Content Panels */
.admin-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 600px;
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--cyan-accent);
  transform: translateY(-2px);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-subtle);
}
.stat-card.accent::after {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.stat-value.gold {
  color: var(--cyan-bright);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.custom-table th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.custom-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-pending {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-accent);
  border: 1px solid var(--border-blue);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Action Icons */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-table-action {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-table-action:hover {
  background: rgba(56, 189, 248, 0.2);
  color: var(--text-primary);
  border-color: var(--cyan-accent);
}
.btn-table-action.delete:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
}

/* =========================================================
   RESELLER HUB & TERMINAL CONSOLE STYLES
   ========================================================= */

.reseller-hero-card {
  background: linear-gradient(135deg, rgba(10, 19, 48, 0.95), rgba(4, 8, 23, 0.98));
  border: 1px solid var(--border-blue);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.reseller-hero-left {
  flex: 1;
  min-width: 280px;
}

.reseller-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-blue);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  display: inline-block;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.reseller-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.reseller-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.reseller-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reseller-balance-box {
  background: #040817;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  min-width: 280px;
  text-align: right;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.balance-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.balance-amount {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--cyan-bright);
  text-shadow: 0 0 25px var(--cyan-glow);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.balance-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.balance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Reseller Hub Navigation Pills */
.reseller-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  overflow-x: auto;
}

.reseller-subnav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reseller-subnav-btn:hover {
  border-color: var(--cyan-accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.reseller-subnav-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.15));
  border-color: var(--cyan-accent);
  color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* 2-column layout for Generator */
.reseller-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .reseller-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Quick Quantity Group */
.quick-qty-group {
  display: flex;
  gap: 6px;
}

.btn-qty-pill {
  background: #09122c;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-qty-pill:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-bright);
  background: #0f1e47;
}

/* Generated Keys Container */
.generated-keys-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.generated-key-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #040817;
  border: 1px solid var(--border-blue);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* Interactive CLI Terminal */
.cli-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.btn-cli-cmd {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.25s ease;
}

.btn-cli-cmd .cmd-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-accent);
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.btn-cli-cmd:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.code-terminal-box {
  background: #030612;
  border: 1px solid #13234d;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.terminal-header {
  background: #081026;
  border-bottom: 1px solid #13234d;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.btn-terminal-copy {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.btn-terminal-copy:hover {
  color: #fff;
  border-color: var(--cyan-accent);
}

.terminal-body {
  padding: 18px;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.terminal-line.banner {
  color: var(--cyan-accent);
  font-weight: 800;
  margin-bottom: 6px;
}

.code-terminal-pre {
  background: #040817;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7dd3fc;
  overflow-x: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0a1330;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--cyan-accent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
  max-width: 420px;
}

.toast.success {
  border-left-color: var(--success);
}
.toast.error {
  border-left-color: var(--danger);
}

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

/* Utilities */
.hidden {
  display: none !important;
}

.text-gold {
  color: var(--cyan-accent) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-sm {
  font-size: 12px;
}
.font-mono {
  font-family: var(--font-mono);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--cyan-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   MODAL DIALOGS SYSTEM
   ========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #0b1329;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-card-lg {
  max-width: 720px;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================================
   📱 COMPREHENSIVE RESPONSIVE MOBILE & TABLET OPTIMIZATIONS
   ========================================================= */

/* Tablet & Mobile Breakpoint (max-width: 900px) */
@media (max-width: 900px) {
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .admin-top-bar {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .admin-top-desc {
    display: none;
  }

  .btn-admin-hamburger {
    display: flex;
  }

  .admin-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Off-Canvas Mobile Drawer Sidebar */
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #070e28;
    border-right: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 0;
    padding: 20px 16px;
    overflow-y: auto;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.95);
    display: block;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admin-sidebar-header-mobile {
    display: flex;
  }

  .nav-item {
    margin-bottom: 6px;
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
  }

  .admin-content {
    padding: 20px 16px;
    min-height: auto;
    width: 100%;
    overflow: hidden;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .section-header .btn {
    align-self: flex-start;
  }

  .reseller-hero-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .reseller-balance-box {
    min-width: unset;
    width: 100%;
    text-align: left;
    padding: 16px;
  }

  .balance-amount {
    justify-content: flex-start;
  }

  .balance-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .reseller-grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Table horizontal scroll wrapper */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .custom-table th,
  .custom-table td {
    white-space: nowrap;
    padding: 12px 14px;
  }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
  }

  .app-header {
    padding: 12px 0;
  }

  .brand-logo {
    gap: 10px;
  }

  .brand-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .btn-icon-circle {
    width: 38px;
    height: 38px;
  }

  .btn-text-desktop {
    display: none;
  }

  /* Public Store View Hero Section */
  .store-wrapper {
    padding: 24px 0 60px;
    min-height: calc(100vh - 65px);
  }

  .hero-section {
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .hero-badge-pill {
    padding: 5px 12px;
    font-size: 10px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .hero-tagline {
    font-size: 13.5px;
    line-height: 1.5;
  }

  /* Generator Card Mobile Proportions */
  .generator-card {
    padding: 24px 18px;
    border-radius: 22px;
    width: 100%;
    max-width: 100%;
  }

  .generator-card::before {
    border-radius: 23.5px;
  }

  .card-badge-header {
    font-size: 10px;
    margin-bottom: 18px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-label {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .custom-select-trigger {
    padding: 13px 18px;
    font-size: 14px;
  }

  .custom-select-dropdown {
    border-radius: 16px;
    padding: 6px;
    max-height: 200px;
  }

  .custom-select-item {
    padding: 11px 14px;
    font-size: 13.5px;
  }

  /* Amount Box Mobile Proportions */
  .amount-display-box {
    padding: 16px 16px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .amount-label {
    font-size: 9.5px;
  }

  .amount-value {
    font-size: 28px;
  }

  .amount-meta-text {
    font-size: 10.5px;
  }

  /* Button Mobile Proportions */
  .btn-lg {
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Trust Strip Mobile Proportions */
  .trust-strip {
    gap: 8px;
    margin-top: 20px;
  }

  .trust-pill {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Result Card Mobile Proportions */
  .result-card {
    padding: 24px 18px;
    border-radius: 22px;
    width: 100%;
    max-width: 100%;
  }

  .result-card::before {
    border-radius: 23.5px;
  }

  .success-badge-icon {
    width: 56px;
    height: 56px;
    font-size: 26px;
    margin-bottom: 12px;
  }

  .result-title {
    font-size: 21px;
  }

  .result-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .license-key-box {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .key-string {
    font-size: 16px;
    letter-spacing: 1px;
  }

  /* Modals Mobile Proportions */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh;
    border-radius: 18px;
    margin: 6px;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-title {
    font-size: 17px;
  }

  .modal-body {
    padding: 18px 16px;
    max-height: calc(94vh - 130px);
    overflow-y: auto;
  }

  .modal-footer {
    padding: 14px 16px;
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .qr-box {
    padding: 10px;
    border-radius: 14px;
  }

  .qr-box img {
    width: 140px;
    height: 140px;
  }

  .upi-id-pill {
    padding: 6px 14px;
    font-size: 12px;
    word-break: break-all;
  }

  /* Admin Dashboard Mobile Elements */
  .admin-content {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 9.5px;
    letter-spacing: 0.5px;
  }

  .section-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .reseller-hero-card {
    padding: 16px;
    border-radius: 16px;
  }

  .reseller-balance-box {
    padding: 14px;
    border-radius: 14px;
  }

  .balance-amount .balance-val {
    font-size: 26px;
  }

  .cli-quick-actions {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    max-height: 350px;
    font-size: 11.5px;
    padding: 12px;
  }

  .code-terminal-pre {
    font-size: 11px;
    padding: 10px;
  }

  /* Toast Notifications on Mobile */
  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 16px;
  }

  .toast {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Animations & Loading Utilities */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
  display: inline-block;
  transform-origin: center center;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pulse-text {
  animation: pulseOpacity 1.2s ease-in-out infinite;
}

