:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #818cf8;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --card-bg: #1e293b;
  --card-hover: #2d3748;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --border-color: #334155;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --whatsapp-color: #25D366;
}

body {
  font-family: 'Poppins', 'Inter', 'Roboto', sans-serif;
  background: var(--darker-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* ==================== LANDING PAGE - REDESIGNED ==================== */
.landing-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--darker-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  overflow-x: hidden;
}

.landing-page.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: 7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

.landing-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  padding: 60px 40px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 100px;
  animation: fadeInUp 0.8s ease;
}

.hero-logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 40px;
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--darker-bg), var(--darker-bg)) padding-box,
              var(--brand-gradient) border-box;
  animation: rotateRing 10s linear infinite;
}

.logo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--brand-gradient);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
  animation: floatLogo 3s ease-in-out infinite;
}

.logo-icon svg {
  width: 50px;
  height: 50px;
  color: white;
}

.hero-title {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-line {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.6);
}

.btn-primary:active {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  margin-bottom: 80px;
  animation: fadeInUp 1s ease 0.2s both;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card-modern {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon-modern {
  width: 60px;
  height: 60px;
  background: var(--brand-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-modern svg {
  color: white;
}

.feature-card-modern h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.feature-card-modern p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* Landing Footer */
.landing-footer {
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-secondary);
}

.footer-creator svg {
  color: #ec4899;
  animation: heartbeat 1.5s ease infinite;
}

.creator-name {
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.footer-link:hover {
  color: var(--whatsapp-color);
  border-color: var(--whatsapp-color);
  background: rgba(37, 211, 102, 0.1);
}

.footer-link svg {
  fill: currentColor;
}

.landing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.landing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  animation: fadeInUp 0.8s ease;
}

.brand-logo {
  margin-bottom: 32px;
}

.logo-icon {
  display: inline-block;
  width: 100px;
  height: 100px;
  background: var(--brand-gradient);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
  animation: float 3s ease-in-out infinite;
}

.logo-icon svg {
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.brand-name {
  font-size: 56px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 8px 0 0;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.landing-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 32px 0 48px;
  line-height: 1.8;
}

.landing-description .highlight {
  color: var(--primary-light);
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.feature-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.cta-button {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  margin-top: 24px;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.6);
}

.cta-button:active {
  transform: translateY(-2px);
}

.creator-badge {
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-secondary);
}

.by-text {
  margin-right: 8px;
}

.creator-name {
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
}

/* Animated particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 20s infinite;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 80%;
  top: 40%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  left: 30%;
  top: 80%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 60%;
  top: 10%;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  left: 90%;
  top: 70%;
  animation-delay: 8s;
}

/* ==================== NAVIGATION ==================== */
.app-nav {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: -20px -20px 24px -20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 48px;
  height: 48px;
  background: var(--brand-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo svg {
  color: white;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.nav-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 2px;
}

.nav-back-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-back-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Header Styles */
.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.app-logo {
  height: 50px;
  animation: pulse 2s infinite;
}

.app-title {
  margin: 0 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transform: translateY(0);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

textarea, input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--darker-bg);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus, input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

textarea {
  min-height: 120px;
}

/* Button Styles */
.button-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.button:active::after {
  animation: ripple 0.6s ease-out;
}

.primary {
  background-color: var(--primary-color);
  color: white;
}

.primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.secondary {
  background-color: var(--darker-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.secondary:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.button svg {
  margin-right: 8px;
}

/* Stats Styles */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: var(--card-bg);
  padding: 16px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(45deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Status Bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.status-text {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.status-text::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-running {
  color: var(--success-color);
}

.status-running::before {
  background-color: var(--success-color);
  box-shadow: 0 0 10px var(--success-color);
  animation: pulse 2s infinite;
}

.status-stopped {
  color: var(--danger-color);
}

.status-stopped::before {
  background-color: var(--danger-color);
}

.status-complete {
  color: var(--warning-color);
}

.status-complete::before {
  background-color: var(--warning-color);
}

/* Results Section */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.results-header h3 {
  margin: 0;
}

.results {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
  position: relative;
}

.results::-webkit-scrollbar {
  width: 8px;
}

.results::-webkit-scrollbar-track {
  background: var(--darker-bg);
  border-radius: 10px;
}

.results::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.results::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.result-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  animation: slideIn 0.3s ease-out forwards;
  transition: var(--transition);
  transform: translateX(0);
}

.result-item:hover {
  transform: translateX(5px);
}

.keyword-match {
  border-left: 4px solid var(--success-color);
}

.no-keyword-match {
  border-left: 4px solid var(--warning-color);
}

.result-email {
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-details {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
}

.detail-item svg {
  margin-right: 4px;
  flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 16px 20px;
  border-radius: 12px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  min-width: 280px;
  max-width: 90%;
  pointer-events: auto;
  animation: toastIn 0.3s ease-out forwards, toastOut 0.3s ease-in forwards 2.7s;
  opacity: 0;
  transform: translateY(20px);
  border: 1px solid var(--border-color);
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-error {
  border-left: 4px solid var(--danger-color);
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success .toast-icon {
  color: var(--success-color);
}

.toast-error .toast-icon {
  color: var(--danger-color);
}

.toast-message {
  flex-grow: 1;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
  border-radius: 0 0 8px 8px;
}

.toast-progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 0 0 0 8px;
  animation: progress 3s linear forwards;
  width: 0%;
}

/* Loading Animation */
.loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  margin-bottom: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* User profile styles */
.user-profile {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.user-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  z-index: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  margin-right: 12px;
  position: relative;
  z-index: 1;
}

.user-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.user-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.user-username {
  font-size: 14px;
  color: var(--text-secondary);
}

.admin-badge {
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 600;
}

.hidden {
  display: none;
}

/* Adjust container padding for user profile */
.with-profile .app-header {
  margin-top: 0;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}

@keyframes ripple {
  0% { transform: scale(0, 0); opacity: 1; }
  20% { transform: scale(25, 25); opacity: 1; }
  100% { opacity: 0; transform: scale(40, 40); }
}

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-15px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

/* Subdomain Panel Styles */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-primary);
}

.subdomain-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.subdomain-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.subdomain-item:hover {
  background-color: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
}

.subdomain-info {
  flex: 1;
}

.subdomain-domain {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.subdomain-server {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.subdomain-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.auto-detected {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-badge.manual {
  background-color: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.status-badge.cached {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.subdomain-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.empty-subdomain {
  text-align: center;
  padding: 32px;
  color: var(--text-secondary);
}

.empty-subdomain svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Enhanced result items to show auto-detection info */
.result-item.auto-detected {
  border-left: 4px solid var(--success-color);
}

.result-item.auto-detected::before {
  content: "AUTO";
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--success-color);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.result-item {
  position: relative;
}

/* ==================== WHATSAPP SUPPORT ==================== */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: var(--whatsapp-color);
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 998;
  animation: bounceIn 0.8s ease;
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
  color: white;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger-color);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

.whatsapp-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 90%;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: var(--transition);
}

.whatsapp-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.whatsapp-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.whatsapp-content {
  text-align: center;
}

.whatsapp-icon {
  width: 80px;
  height: 80px;
  background: var(--whatsapp-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

.whatsapp-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.whatsapp-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.6;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--whatsapp-color);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-content small {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Update header styles */
.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  width: 100%;
}

.app-logo {
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.header-text {
  flex: 1;
}

.app-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-description {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==================== ANIMATIONS ==================== */
@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

@keyframes floatLogo {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes rotateRing {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.6;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-container {
    padding: 40px 20px;
  }
  
  .title-line {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .btn-primary,
  .btn-secondary {
    font-size: 16px;
    padding: 16px 36px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .cta-buttons button {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card-modern {
    padding: 30px 24px;
  }
  
  .hero-section {
    margin-bottom: 60px;
  }
  
  .features-section {
    margin-bottom: 60px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .orb-1 {
    width: 300px;
    height: 300px;
  }
  
  .orb-2 {
    width: 250px;
    height: 250px;
  }
  
  .orb-3 {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .title-line {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-logo-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
  }
  
  .logo-ring {
    width: 100px;
    height: 100px;
  }
  
  .logo-icon {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon svg {
    width: 35px;
    height: 35px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .btn-primary,
  .btn-secondary {
    font-size: 15px;
    padding: 14px 32px;
  }
  
  .feature-card-modern {
    padding: 24px 20px;
  }
  
  .feature-icon-modern {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon-modern svg {
    width: 24px;
    height: 24px;
  }
  
  .feature-card-modern h3 {
    font-size: 20px;
  }
  
  .feature-card-modern p {
    font-size: 14px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-link {
    width: 100%;
    justify-content: center;
  }
}

/* Original responsive styles */
@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
  }
  
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .toast {
    min-width: 200px;
  }
  
  .subdomain-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .subdomain-status {
    align-self: flex-end;
  }
  
  .whatsapp-popup {
    right: 12px;
    left: 12px;
    bottom: 90px;
    max-width: none;
  }
  
  .whatsapp-floating {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-floating svg {
    width: 28px;
    height: 28px;
  }
  
  .app-nav {
    margin: -20px -20px 20px -20px;
    padding: 12px 16px;
  }
  
  .nav-logo {
    width: 40px;
    height: 40px;
  }
  
  .nav-title {
    font-size: 16px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .app-title {
    font-size: 24px;
  }
}