/* Gmail Intelligent Cleaner - Website Styles */

:root {
  --primary: #4285f4;
  --primary-dark: #3367d6;
  --secondary: #34a853;
  --warning: #fbbc05;
  --danger: #ea4335;
  --dark: #202124;
  --dark-secondary: #3c4043;
  --light: #f8f9fa;
  --light-secondary: #e8eaed;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--light-secondary);
}

.btn-secondary:hover {
  background: var(--light-secondary);
}

.btn-warning {
  background: var(--warning);
  color: var(--dark);
}

.btn-warning:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--light-secondary);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo svg {
  color: var(--primary);
}

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

.nav a {
  text-decoration: none;
  color: var(--dark-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--light-secondary);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.5rem;
  color: var(--dark);
}

.stat span {
  font-size: 0.9rem;
  color: var(--dark-secondary);
}

/* Browser Mockup */
.hero-image {
  position: relative;
}

.browser-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--light-secondary);
}

.browser-header {
  background: var(--light);
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-secondary);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-secondary);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-content {
  padding: 24px;
  background: var(--light);
}

.app-preview {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 600;
}

.preview-logo {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
}

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

.preview-stat {
  background: var(--light);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.preview-stat .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.preview-stat .label {
  font-size: 0.8rem;
  color: var(--dark-secondary);
}

.preview-progress {
  background: var(--light);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--dark-secondary);
}

.progress-bar {
  height: 6px;
  background: var(--light-secondary);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: var(--gradient);
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0%, 100% { width: 65%; }
  50% { width: 85%; }
}

/* Problem Section */
.problem-section {
  padding: 80px 0;
  background: var(--white);
}

.problem-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problem-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--light);
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.problem-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--dark-secondary);
  font-style: italic;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: var(--light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 16px;
  color: var(--dark-secondary);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

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

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

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

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  color: var(--dark-secondary);
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: var(--light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-header h3 {
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
}

.price .period {
  color: var(--dark-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-secondary);
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li.disabled {
  color: var(--dark-secondary);
  opacity: 0.6;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 500px;
  margin: 0 auto;
}

.pricing-guarantee svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.pricing-guarantee strong {
  display: block;
  margin-bottom: 4px;
}

.pricing-guarantee p {
  font-size: 0.9rem;
  color: var(--dark-secondary);
  margin: 0;
}

/* Testimonials */
.testimonials-section {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius-md);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--dark-secondary);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: var(--light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.faq-item {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
}

.faq-item h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.faq-item p {
  color: var(--dark-secondary);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--light-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--dark);
  color: var(--light-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand .logo svg {
  color: var(--primary);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--light-secondary);
  text-decoration: none;
  padding: 8px 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--dark-secondary);
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  margin-bottom: 16px;
}

.legal-page .last-updated {
  color: var(--dark-secondary);
  margin-bottom: 48px;
}

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

.legal-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--dark-secondary);
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--dark-secondary);
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--light-secondary);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .problems-grid,
  .features-grid,
  .steps-grid,
  .pricing-grid,
  .testimonials-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== */
/* Interactive Demo Section */
/* ==================== */

.demo-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.demo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.demo-extension {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* Extension Popup Mockup */
.extension-popup {
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--light-secondary);
}

.extension-header {
  background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
  padding: 16px;
  color: white;
}

.extension-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.extension-logo svg {
  stroke: white;
}

.extension-logo span {
  font-weight: 700;
  font-size: 1.1rem;
}

.extension-tabs {
  display: flex;
  gap: 8px;
}

.extension-tabs .tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.1);
}

.extension-tabs .tab.active {
  background: white;
  color: var(--primary);
}

.extension-body {
  padding: 20px;
}

.preset-selector {
  margin-bottom: 20px;
}

.preset-selector label {
  display: block;
  font-size: 0.85rem;
  color: var(--dark-secondary);
  margin-bottom: 8px;
}

.preset-dropdown {
  background: var(--light);
  border: 1px solid var(--light-secondary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 500;
}

.email-counter {
  text-align: center;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--dark-secondary);
  margin-bottom: 4px;
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.progress-section {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--dark-secondary);
}

.demo-progress-bar {
  height: 8px;
  background: var(--light-secondary);
  border-radius: 4px;
  overflow: hidden;
}

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

.action-buttons {
  margin-bottom: 16px;
}

.demo-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.demo-btn.primary {
  background: var(--primary);
  color: white;
}

.demo-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.demo-btn.primary:disabled {
  background: var(--light-secondary);
  color: var(--dark-secondary);
  cursor: not-allowed;
  transform: none;
}

.demo-btn .btn-icon {
  font-size: 0.9rem;
}

.status-message {
  text-align: center;
  font-size: 0.9rem;
  color: var(--dark-secondary);
  padding: 8px;
  background: var(--light);
  border-radius: var(--radius-sm);
}

.status-message.success {
  background: rgba(52, 168, 83, 0.1);
  color: var(--secondary);
}

.extension-footer {
  padding: 12px 20px;
  background: var(--light);
  border-top: 1px solid var(--light-secondary);
}

.ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
}

.ai-icon {
  animation: pulse 2s infinite;
}

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

/* Email Animation Area */
.email-animation-area {
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emails-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.animated-email {
  position: absolute;
  width: 90%;
  left: 5%;
  background: white;
  border: 1px solid var(--light-secondary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: emailSlideDelete 0.8s ease-out forwards;
  transform-origin: center center;
}

.animated-email.protected {
  border-left: 3px solid var(--secondary);
  animation: emailProtected 0.8s ease-out forwards;
}

.email-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.email-content {
  flex: 1;
  min-width: 0;
}

.email-sender {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-subject {
  font-size: 0.8rem;
  color: var(--dark-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: white;
  font-weight: 500;
}

.email-badge.protected {
  background: var(--secondary);
}

@keyframes emailSlideDelete {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(50px) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateX(150px) scale(0.5) rotate(10deg);
  }
}

@keyframes emailProtected {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(5px);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.3);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0);
  }
}

.trash-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  transition: all 0.3s;
}

.trash-icon.active {
  background: rgba(234, 67, 53, 0.1);
  transform: scale(1.1);
}

.trash-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  min-width: 28px;
  text-align: center;
}

/* Demo Stats */
.demo-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-stat {
  text-align: center;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}

.demo-stat.protected {
  border: 2px solid var(--secondary);
}

.demo-stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.demo-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.demo-stat.protected .demo-stat-value {
  color: var(--secondary);
}

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

.demo-cta {
  margin-top: 32px;
  text-align: center;
}

/* Responsive Demo */
@media (max-width: 768px) {
  .demo-extension {
    flex-direction: column;
    align-items: center;
  }
  
  .extension-popup {
    width: 100%;
    max-width: 360px;
  }
  
  .email-animation-area {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }
  
  .emails-container {
    height: 220px;
  }
  
  .demo-stats {
    gap: 16px;
  }
  
  .demo-stat {
    padding: 16px 20px;
    min-width: 120px;
  }
  
  .demo-stat-value {
    font-size: 1.4rem;
  }
}

/* ============================================================
   ANIMATED DEMO - Pixel Perfect Extension UI
   ============================================================ */

.animated-demo-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.real-extension-mockup {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Extension Popup - Pixel Perfect */
.ext-popup {
  width: 380px;
  background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border-left: 3px solid #1a73e8;
  overflow: hidden;
}

/* Extension Header */
.ext-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid #e3e8ee;
}

.ext-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ext-logo-icon {
  width: 40px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ea4335 0%, #fa7b17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234, 67, 53, 0.3);
}

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

.ext-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
}

.ext-subtitle {
  font-size: 9px;
  color: #6b7c8d;
}

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

.ext-btn-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef5;
  border: 1px solid #ccd5de;
  border-radius: 8px;
  color: #4a5c6d;
  cursor: pointer;
}

.ext-auth-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ea4335;
}

.ext-auth-dot.connected {
  background: #34a853;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.1); }
}

/* Extension Nav Tabs */
.ext-nav-tabs {
  display: flex;
  padding: 6px 10px;
  gap: 4px;
  background: white;
  border-bottom: 1px solid #e3e8ee;
}

.ext-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 9px;
  font-weight: 600;
  color: #6b7c8d;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.ext-nav-tab.active {
  color: #ea4335;
  background: rgba(234, 67, 53, 0.08);
}

.ext-nav-tab.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(250, 123, 23, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ext-nav-tab svg {
  position: relative;
  z-index: 1;
}

.ext-nav-tab span {
  position: relative;
  z-index: 1;
}

/* Extension Content */
.ext-content {
  padding: 10px;
  min-height: 300px;
}

/* Session Card */
.ext-card {
  background: white;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ext-session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ext-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
}

.ext-status-badge.running {
  background: rgba(52, 168, 83, 0.12);
  color: #34a853;
}

.ext-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1s infinite;
}

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

/* Extension Buttons */
.ext-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ext-btn-danger {
  background: #ea4335;
  color: white;
}

.ext-btn-sm {
  padding: 6px 10px;
  font-size: 10px;
}

/* Progress Ring */
.ext-progress-display {
  text-align: center;
  padding: 16px 0;
  background: linear-gradient(135deg, rgba(250, 123, 23, 0.08) 0%, rgba(234, 67, 53, 0.08) 100%);
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Time Display */
.ext-time-display {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.ext-time-item {
  text-align: center;
}

.ext-time-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a2b3c;
}

.ext-time-label {
  font-size: 9px;
  color: #6b7c8d;
  text-transform: uppercase;
}

.ext-progress-ring-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
}

.ext-progress-ring {
  transform: rotate(-90deg);
}

.ext-progress-ring-bg {
  stroke: #e3e8ee;
}

.ext-progress-ring-fill {
  stroke: #ea4335;
  stroke-linecap: round;
  stroke-dasharray: 239;
  stroke-dashoffset: 239;
  transition: stroke-dashoffset 0.3s ease;
}

.ext-progress-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ext-progress-number {
  font-size: 22px;
  font-weight: 700;
  color: #ea4335;
  display: block;
}

.ext-progress-label {
  font-size: 9px;
  color: #6b7c8d;
}

/* Live Stats */
.ext-live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.ext-stat-item {
  text-align: center;
  padding: 10px 4px;
  background: white;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
}

.ext-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #ea4335;
}

.ext-stat-item.protected .ext-stat-value {
  color: #34a853;
}

.ext-stat-label {
  font-size: 8px;
  color: #6b7c8d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Current Action */
.ext-current-action {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #f5f8fa;
  border-radius: 8px;
  font-size: 11px;
}

.ext-action-label {
  color: #6b7c8d;
  font-weight: 500;
}

.ext-action-text {
  color: #1a2b3c;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Extension Footer */
.ext-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  font-size: 9px;
  color: #6b7c8d;
  background: white;
  border-top: 1px solid #e3e8ee;
}

.ext-footer-dot {
  opacity: 0.5;
}

/* Email Stream Area */
.email-stream-area {
  width: 280px;
  height: 380px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e8eaed 100%);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.email-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.stream-email {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 0.3s forwards;
}

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

@keyframes fadeOut {
  to { opacity: 0; transform: scale(0.95); }
}

.stream-email.protected {
  border-left: 3px solid #34a853;
}

.stream-email.deleting {
  border-left: 3px solid #ea4335;
}

.stream-email-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.stream-email-content {
  flex: 1;
  min-width: 0;
}

.stream-email-sender {
  font-size: 11px;
  font-weight: 600;
  color: #1a2b3c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-email-subject {
  font-size: 10px;
  color: #6b7c8d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-email-badge {
  font-size: 14px;
}

/* Trash Bin */
.trash-bin {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trash-bin svg {
  color: #ea4335;
}

.trash-bin.active {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.3);
}

.trash-counter {
  background: #ea4335;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

/* Demo Side Panel */
.demo-side-panel {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-control-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.demo-control-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.demo-control-card p {
  font-size: 0.9rem;
  color: var(--dark-secondary);
  margin-bottom: 16px;
}

.demo-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ea4335 0%, #fa7b17 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.demo-stats-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.demo-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-secondary);
}

.demo-stat-row:last-child {
  border-bottom: none;
}

.demo-stat-row.protected {
  color: var(--secondary);
}

.demo-stat-label {
  font-size: 0.9rem;
  color: var(--dark-secondary);
}

.demo-stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.demo-stat-row.protected .demo-stat-val {
  color: var(--secondary);
}

.demo-cta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-interactive-btn,
.demo-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.demo-interactive-btn {
  background: var(--light);
  color: var(--dark);
  border: 2px solid var(--light-secondary);
}

.demo-interactive-btn:hover {
  background: var(--light-secondary);
}

.demo-install-btn {
  background: var(--primary);
  color: white;
}

.demo-install-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsive Animated Demo */
@media (max-width: 1100px) {
  .animated-demo-container {
    flex-direction: column;
    align-items: center;
  }
  
  .real-extension-mockup {
    flex-direction: column;
    align-items: center;
  }
  
  .demo-side-panel {
    width: 100%;
    max-width: 400px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .demo-control-card,
  .demo-stats-card {
    flex: 1;
    min-width: 200px;
  }
  
  .demo-cta-card {
    flex-direction: row;
    width: 100%;
  }
  
  .demo-interactive-btn,
  .demo-install-btn {
    flex: 1;
  }
}

@media (max-width: 500px) {
  .ext-popup {
    width: 100%;
    max-width: 360px;
  }
  
  .email-stream-area {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }
  
  .ext-nav-tab {
    padding: 6px 2px;
    font-size: 8px;
  }
  
  .ext-nav-tab svg {
    width: 14px;
    height: 14px;
  }
  
  .demo-side-panel {
    flex-direction: column;
  }
  
  .demo-cta-card {
    flex-direction: column;
  }
}

