:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-input: #1a1a25;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --danger: #ff4757;
  --danger-glow: rgba(255, 71, 87, 0.3);
  --success: #2ed573;
  --success-glow: rgba(46, 213, 115, 0.3);
  --warning: #ffa502;
  --warning-glow: rgba(255, 165, 2, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c80;
  --border: #2a2a3a;
  --border-light: #3a3a4a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

/* Animated Background */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  top: -200px;
  right: -200px;
  background: var(--accent);
}

.bg-glow-2 {
  bottom: -200px;
  left: -200px;
  background: #e84393;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 40px;
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: rgba(108, 92, 231, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.4));
  transition: var(--transition);
}

.nav-brand img:hover {
  filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.6));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-user-box:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.35);
}

.nav-user-box img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.nav-user-box .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 16px var(--danger-glow);
}

.btn-danger:hover {
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: #0a0a0f;
  box-shadow: 0 4px 16px var(--success-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, #a29bfe 50%, #6c5ce7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Styles */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.purple { background: rgba(108, 92, 231, 0.15); }
.feature-icon.red { background: rgba(255, 71, 87, 0.15); }
.feature-icon.green { background: rgba(46, 213, 115, 0.15); }
.feature-icon.blue { background: rgba(0, 184, 255, 0.15); }
.feature-icon.orange { background: rgba(255, 165, 2, 0.15); }
.feature-icon.pink { background: rgba(232, 67, 147, 0.15); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* How It Works */
.steps {
  display: flex;
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 80px;
  right: 80px;
  height: 2px;
  background: var(--border);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step:hover .step-number {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.price-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.price-card .plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-card .price-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.price-features li .check {
  color: var(--success);
}

/* Scanner Page */
.scanner-container {
  min-height: 100vh;
  padding-top: 80px;
}

.scanner-header {
  text-align: center;
  padding: 60px 40px 40px;
  position: relative;
  z-index: 1;
}

.scanner-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.scanner-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.license-gate {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.license-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.license-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.license-box p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.key-input {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
}

/* Scanner Interface */
.scanner-interface {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 60px;
  position: relative;
  z-index: 1;
}

.scanner-interface.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

.scan-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.scan-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.scan-progress-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.scan-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-light);
}

.scan-status .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.scan-log {
  max-height: 200px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.scan-log .log-line {
  padding: 3px 0;
  display: flex;
  gap: 8px;
}

.scan-log .log-line .time {
  color: var(--text-muted);
  min-width: 70px;
}

.scan-log .log-line .msg { color: var(--text-secondary); }
.scan-log .log-line.safe .msg { color: var(--success); }
.scan-log .log-line.warn .msg { color: var(--warning); }
.scan-log .log-line.danger .msg { color: var(--danger); }

/* Results */
.scan-results {
  display: none;
  margin-top: 24px;
}

.scan-results.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

.results-verdict {
  display: flex;
  align-items: center;
  gap: 12px;
}

.verdict-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.verdict-icon.clean {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
}

.verdict-icon.suspicious {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

.verdict-icon.danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.results-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.category-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-card h4 .badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

.badge.clean {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
}

.badge.warn {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

.badge.danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.detection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.detection-item:last-child {
  border-bottom: none;
}

.detection-item .name {
  color: var(--text-secondary);
}

.detection-item .status {
  font-weight: 600;
  font-size: 0.8rem;
}

.detection-item .status.safe { color: var(--success); }
.detection-item .status.flagged { color: var(--danger); }
.detection-item .status.warning { color: var(--warning); }

/* Admin Panel */
.admin-container {
  min-height: 100vh;
  padding: 100px 40px 60px;
  position: relative;
  z-index: 1;
}

.admin-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.admin-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.admin-nav {
  list-style: none;
}

.admin-nav li {
  margin-bottom: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent-light);
}

.admin-content {
  min-width: 0;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 20px;
}

.admin-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-stat .value {
  font-size: 1.8rem;
  font-weight: 800;
}

.admin-stat .value.purple { color: var(--accent-light); }
.admin-stat .value.green { color: var(--success); }
.admin-stat .value.red { color: var(--danger); }
.admin-stat .value.blue { color: #74b9ff; }

/* Keys Table */
.keys-table {
  width: 100%;
  border-collapse: collapse;
}

.keys-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.keys-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.keys-table tr:hover td {
  background: rgba(108, 92, 231, 0.03);
}

.keys-table .key-value {
  font-family: 'Courier New', monospace;
  color: var(--accent-light);
  letter-spacing: 1px;
}

.key-status {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.key-status.active {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
}

.key-status.expired {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.key-status.used {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

/* Create Key Form */
.create-key-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.create-key-form .full-width {
  grid-column: 1 / -1;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  animation: fadeInUp 0.3s ease;
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal .btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  min-width: 300px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

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

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .steps { flex-direction: column; }
  .steps::before { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .create-key-form { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .scanner-header { padding: 40px 20px 20px; }
  .license-gate { padding: 0 20px; }
  .scanner-interface { padding: 0 20px 40px; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--border) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
}

/* Separator */
.separator {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Table overflow */
.table-wrapper {
  overflow-x: auto;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ===== Scanner PIN Input ===== */
.pin-digit {
  width: 52px;
  height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  outline: none;
  transition: var(--transition);
}
.pin-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.pin-digit:valid {
  border-color: var(--success);
}

/* ===== Scanner Progress Bar ===== */
.scan-progress-track {
  width: 100%;
  height: 8px;
  background: #1a1a2e;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.scan-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}
.scan-progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(4px);
  z-index: 1;
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== Scanner Stats ===== */
.scan-stat {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.scan-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-light);
}
.scan-stat-value.danger { color: var(--danger); }
.scan-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ===== Scanner Console ===== */
.scan-console {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #14141e;
  border-bottom: 1px solid var(--border);
}
.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.console-dot.red { background: #ff5f57; }
.console-dot.yellow { background: #febc2e; }
.console-dot.green { background: #28c840; }
.console-body {
  height: 220px;
  overflow-y: auto;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}
.console-body::-webkit-scrollbar { width: 4px; }
.console-body::-webkit-scrollbar-track { background: transparent; }
.console-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.console-line {
  color: var(--text-muted);
  animation: fadeInLine 0.3s ease;
}
.console-line .console-time {
  color: var(--text-muted);
  opacity: 0.5;
  margin-right: 4px;
}
.console-line.danger {
  color: var(--danger);
  font-weight: 600;
}
@keyframes fadeInLine {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== License Box (Glass) ===== */
.license-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Dropdown ===== */
#userDropdown a:hover {
  background: rgba(108, 92, 231, 0.1);
  color: var(--text-primary) !important;
}

#userDropdown.show {
  display: block !important;
  animation: fadeInUp 0.2s ease;
}

.nav-user-box:hover .user-avatar {
  border-color: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-glow);
}
