/* ParrotPadMD Marketing Website Styles */

:root {
  /* Colors - matching extension dark theme */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  
  --teal: #14b8a6;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  
  --border: #334155;
  --border-light: #475569;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

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

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

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

.nav-mobile-toggle {
  display: none;
}


/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-light);
}

.hero-badge.early-access {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

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

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

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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


/* Hero Visual / Browser Mockup */
.hero-visual {
  position: relative;
}

.browser-mockup {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

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

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

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
  flex: 1;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.browser-content {
  position: relative;
  height: 320px;
  padding: 20px;
}

.ehr-mockup {
  display: flex;
  height: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ehr-sidebar {
  width: 60px;
  background: var(--bg-tertiary);
}

.ehr-main {
  flex: 1;
  padding: 20px;
}

.ehr-textarea {
  height: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.extension-overlay {
  position: absolute;
  bottom: 40px;
  right: 40px;
}

.overlay-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mic-icon {
  width: 28px;
  height: 28px;
  background: #ef4444;
  border-radius: 50%;
}

.mic-icon.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.recording-text {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.875rem;
}

.recording-time {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.875rem;
}


/* Logos Section */
.logos {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

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

.feature-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* How It Works */
.how-it-works {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  position: relative;
}

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

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 24px;
}

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

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-left: 8px;
}

.toggle-switch {
  width: 56px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}

.toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(28px);
}


/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.pricing-price {
  margin-bottom: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
}

.price-period {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-billed {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

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

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

.pricing-features .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
}

.pricing-features strong {
  color: var(--text-primary);
}


/* HIPAA Section */
.hipaa {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.hipaa-content {
  max-width: 800px;
  margin: 0 auto;
}

.hipaa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hipaa-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-light);
}

.hipaa-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hipaa-text > p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.hipaa-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.hipaa-feature {
  display: flex;
  gap: 16px;
}

.hipaa-feature svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--accent);
  stroke-width: 3;
}

.hipaa-feature strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.hipaa-feature span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

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

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta .btn-primary {
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 8px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--text-primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .pricing-card.featured {
    transform: none;
    order: -1;
  }
  
  .hipaa-features {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .nav-links,
  .nav-actions {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  
  .nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
  }

  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-actions.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 140px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
    gap: 32px;
  }
  
  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}


/* Enterprise Callout */
.enterprise-callout {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.enterprise-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.enterprise-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.enterprise-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

@media (max-width: 768px) {
  .enterprise-content {
    flex-direction: column;
    text-align: center;
  }
}


/* ===========================================
   AUTH PAGES (Login, Signup, Forgot Password)
   =========================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

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

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Social Login Buttons */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-social:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

.btn-social:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-select {
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition);
}

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

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

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.link-forgot {
  font-size: 0.875rem;
  color: var(--accent);
  transition: color var(--transition);
}

.link-forgot:hover {
  color: var(--accent-light);
}

/* Checkbox */
.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label a {
  color: var(--accent);
}

.checkbox-label a:hover {
  color: var(--accent-light);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

.auth-footer a:hover {
  color: var(--accent-light);
}

/* Auth Success Message */
.auth-success {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
}

.auth-success h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.auth-success p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.text-muted {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
}

/* Other Sign-in Options (Email Link) */
.other-signin-options {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.other-signin-options summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  list-style: none;
  transition: color var(--transition);
}

.other-signin-options summary::-webkit-details-marker {
  display: none;
}

.other-signin-options summary::before {
  content: '+ ';
}

.other-signin-options[open] summary::before {
  content: '- ';
}

.other-signin-options summary:hover {
  color: var(--text-secondary);
}

.email-link-form {
  margin-top: 16px;
}

.email-link-form p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.email-link-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.email-link-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-link-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.email-link-form input[type="email"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-link-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.email-link-success svg {
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* Error Icon for auth-email page */
.error-icon {
  width: 64px;
  height: 64px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.error-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ef4444;
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.toast-success {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
}


/* ===========================================
   MODAL STYLES (BAA Modal)
   =========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 32px 32px 0;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body {
  padding: 24px 32px;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.baa-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.baa-link:hover {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.baa-link svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.baa-checkbox {
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.modal-footer {
  padding: 0 32px 32px;
}

body.modal-open {
  overflow: hidden;
}


/* ===========================================
   ACCOUNT DASHBOARD
   =========================================== */

.account-page {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.account-header {
  margin-bottom: 40px;
}

.account-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.user-email {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.account-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.card-header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.plan-badge {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.plan-badge.pro {
  background: var(--accent);
  color: white;
}

.card-body {
  padding: 24px;
}

.plan-info {
  margin-bottom: 20px;
}

.plan-info p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.plan-actions {
  display: flex;
  gap: 12px;
}

/* Usage Stats */
.usage-stats {
  margin-bottom: 20px;
}

.usage-numbers {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.usage-value {
  font-size: 2rem;
  font-weight: 700;
}

.usage-separator {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.usage-limit {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.usage-unit {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 4px;
}

.usage-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.usage-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.usage-progress.warning {
  background: #f59e0b;
}

.usage-progress.critical {
  background: #ef4444;
}

.usage-reset {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.credits-info {
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.credits-info p {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* BAA Status */
.baa-accepted,
.baa-pending {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.baa-accepted svg,
.baa-pending svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.baa-accepted svg {
  stroke: var(--accent);
}

.baa-pending svg {
  stroke: #f59e0b;
}

.baa-accepted strong,
.baa-pending strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.baa-accepted span,
.baa-pending span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.baa-status .link {
  color: var(--accent);
  font-size: 0.875rem;
}

.baa-status .link:hover {
  color: var(--accent-light);
}

/* Settings */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-item label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Extension CTA */
.extension-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

/* Loading State */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-container p {
  color: var(--text-muted);
}

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

  .extension-cta {
    flex-direction: column;
    text-align: center;
  }

  .plan-actions {
    flex-direction: column;
  }
}


/* ===========================================
   RESULT PAGES (Success, Cancel)
   =========================================== */

.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.result-container {
  width: 100%;
  max-width: 500px;
}

.result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.result-card.success .result-icon {
  background: rgba(16, 185, 129, 0.1);
}

.result-card.success .result-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
}

.result-card.cancelled .result-icon {
  background: rgba(239, 68, 68, 0.1);
}

.result-card.cancelled .result-icon svg {
  width: 36px;
  height: 36px;
  stroke: #ef4444;
}

.result-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-message {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.result-details {
  padding: 20px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.result-details p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.result-help {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.result-help a {
  color: var(--accent);
}


/* ===========================================
   LEGAL PAGES (Privacy, Terms, BAA)
   =========================================== */

.legal-page {
  padding: 120px 0 60px;
}

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

.legal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text-primary);
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section address {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-section a {
  color: var(--accent);
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

@media (max-width: 768px) {
  .legal-content {
    padding: 32px 24px;
  }

  .legal-header h1 {
    font-size: 1.5rem;
  }
}

@media print {
  .nav,
  .footer {
    display: none;
  }

  .legal-page {
    padding: 0;
  }

  .legal-content {
    background: white;
    border: none;
    padding: 0;
  }

  .legal-section p,
  .legal-section li {
    color: black;
  }
}
