:root {
  /* Colors - Corporate Premium Palette */
  --bg-primary: #0a0e27;
  --bg-secondary: #151b38;
  --bg-elevated: #1d2444;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  --accent-primary: #00d4ff;
  --accent-secondary: #0066ff;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  
  --success: #00ff88;
  --error: #ff3b5c;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Typography */
  --font-display: 'Cormorant', serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background effects */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(at 20% 30%, rgba(0, 212, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(0, 102, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(0, 255, 136, 0.08) 0px, transparent 50%);
  filter: blur(60px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: -7s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00ff88, transparent 70%);
  top: 35%;
  right: 15%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.15); }
  66% { transform: translate(-30px, 30px) scale(0.85); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Login Screen */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  animation: fadeIn 0.6s ease;
}

.login-container {
  width: 100%;
  max-width: 440px;
  position: relative;
}

.login-glow-effect {
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.15), transparent 70%);
  filter: blur(80px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.login-card {
  background: linear-gradient(135deg, rgba(21, 27, 56, 0.98), rgba(29, 36, 68, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  to { left: 100%; }
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.login-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.login-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.login-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s ease;
}

.login-input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) 48px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.login-input:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 
    0 0 0 4px rgba(0, 212, 255, 0.1),
    0 8px 24px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.login-input:focus + .input-icon {
  color: var(--accent-primary);
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-primary);
}

.login-error {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 59, 92, 0.15);
  border: 1px solid rgba(255, 59, 92, 0.4);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 13px;
  margin-bottom: var(--space-md);
  animation: shake 0.5s ease;
}

.login-btn {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  box-shadow: 
    0 8px 24px rgba(0, 212, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-btn:hover::before {
  opacity: 1;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 16px 40px rgba(0, 212, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:active {
  transform: translateY(-1px);
}

.btn-icon-arrow {
  transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon-arrow {
  transform: translateX(4px);
}

.login-footer {
  margin-top: var(--space-lg);
  text-align: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 999px;
  color: var(--success);
  font-size: 12px;
  font-weight: 500;
}

/* Logout button */
.btn-logout {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 59, 92, 0.1);
  border: 1px solid rgba(255, 59, 92, 0.3);
  border-radius: 999px;
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(255, 59, 92, 0.2);
  border-color: rgba(255, 59, 92, 0.5);
  transform: translateY(-2px);
}

.btn-logout svg {
  width: 16px;
  height: 16px;
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  animation: slideDown 0.6s ease-out;
  flex-wrap: wrap;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}



.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  animation: fadeIn 0.8s ease-out 0.2s both;
  position: relative;
}

.hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  opacity: 0.2;
}

.deco-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -50px;
  animation: rotate 30s linear infinite;
}

.deco-2 {
  width: 200px;
  height: 200px;
  top: 20px;
  right: 30px;
  animation: rotate 20s linear infinite reverse;
}

.deco-line {
  position: absolute;
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  top: 150px;
  right: 0;
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.badge-icon {
  color: var(--accent-primary);
  font-size: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  max-width: 900px;
}

.hero-title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-2xl);
}

/* Form Container */
.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .form-container {
    grid-template-columns: 1fr;
  }
}

.form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 212, 255, 0.1);
  animation: slideUp 0.8s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.form-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.form-wrapper:hover .form-glow {
  opacity: 1;
}

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

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-md);
  background: var(--bg-elevated);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
}

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

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 8px 24px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  background: var(--bg-primary);
}

.domain-preview {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.domain-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.domain-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.domain-value {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  position: relative;
  z-index: 1;
}

.domain-protocol {
  color: var(--text-muted);
}

.domain-slug {
  color: var(--accent-primary);
}

.domain-base {
  color: var(--text-secondary);
}

.form-actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

.btn-primary,
.btn-secondary {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

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

.btn-icon {
  display: flex;
  align-items: center;
}

.btn-arrow {
  font-size: 18px;
  margin-left: auto;
}

.full {
  width: 100%;
  justify-content: center;
}

.alert {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 59, 92, 0.1);
  border: 1px solid rgba(255, 59, 92, 0.3);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 14px;
  animation: shake 0.4s ease;
  display: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  animation: slideUp 0.8s ease-out 0.6s both;
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--bg-elevated);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stats Section */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-subtle);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-dot {
  opacity: 0.3;
}

.footer-muted {
  opacity: 0.5;
}

.footer-right {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.modal {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(135deg, rgba(21, 27, 56, 0.95), rgba(29, 36, 68, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 212, 255, 0.15);
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.1), transparent 60%);
  pointer-events: none;
}

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

.modal-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.modal-spinner {
  margin-bottom: var(--space-md);
}

.spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

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

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-body {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.modal-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
}

.info-row:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
}

.mono {
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.modal-result {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-md);
  animation: fadeIn 0.5s ease;
}

.result-icon {
  margin-bottom: var(--space-md);
}

.result-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.result-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.result-url {
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

.result-url a {
  color: var(--accent-primary);
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
}

.result-url a:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Futuristic Effects */
.scan-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.03) 2px,
    rgba(0, 212, 255, 0.03) 4px
  );
  animation: scan 8s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(20px); }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(1px);
}

.particle:nth-child(1) {
  left: 20%;
  top: 20%;
  animation: float-particle 15s ease-in-out infinite;
}

.particle:nth-child(2) {
  left: 60%;
  top: 40%;
  animation: float-particle 18s ease-in-out infinite 2s;
}

.particle:nth-child(3) {
  left: 80%;
  top: 60%;
  animation: float-particle 20s ease-in-out infinite 4s;
}

.particle:nth-child(4) {
  left: 40%;
  top: 80%;
  animation: float-particle 16s ease-in-out infinite 6s;
}

.particle:nth-child(5) {
  left: 90%;
  top: 30%;
  animation: float-particle 22s ease-in-out infinite 8s;
}

@keyframes float-particle {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% { 
    transform: translate(50px, -50px) scale(1.5);
    opacity: 0.6;
  }
  50% { 
    transform: translate(-30px, -100px) scale(1);
    opacity: 0.3;
  }
  75% { 
    transform: translate(-60px, -50px) scale(1.2);
    opacity: 0.5;
  }
}

/* Login Modal Styles */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  z-index: 2000;
  animation: fadeIn 0.5s ease;
}

.login-modal {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(135deg, rgba(21, 27, 56, 0.98), rgba(29, 36, 68, 0.98));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.7), 
    0 0 100px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUpLogin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

@keyframes slideUpLogin {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 50%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 2px solid rgba(0, 212, 255, 0.3);
  padding: var(--space-sm);
  box-shadow: 
    0 8px 32px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-form {
  position: relative;
  z-index: 1;
}

.login-field {
  margin-bottom: var(--space-lg);
}

.login-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.password-toggle {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--accent-primary);
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.login-input {
  width: 100%;
  padding: var(--space-md) 48px var(--space-md) 48px;
  background: rgba(10, 14, 39, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
}

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

.login-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 
    0 0 0 4px rgba(0, 212, 255, 0.15), 
    0 8px 24px rgba(0, 212, 255, 0.2);
  background: rgba(10, 14, 39, 0.8);
}

.login-input:focus ~ .input-icon {
  color: var(--accent-primary);
}

.login-alert {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 59, 92, 0.15);
  border: 1px solid rgba(255, 59, 92, 0.4);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 14px;
  animation: shake 0.4s ease;
}

.login-btn {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  box-shadow: 
    0 8px 24px rgba(0, 212, 255, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-btn:hover::before {
  opacity: 1;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 16px 40px rgba(0, 212, 255, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:active {
  transform: translateY(-1px);
}

.login-footer {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--success);
}

.security-badge svg {
  color: var(--success);
}



.logo-mark {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}