﻿/* ===========================
   REZUMIFY — Premium Styles
   =========================== */

/* Fonts loaded via <link> in HTML for non-blocking performance */
/* Fallback font stack ensures text renders instantly */

:root {
  --primary: #7C3AED;
  --primary-light: #9D5FFF;
  --primary-dark: #5B21B6;
  --accent: #06B6D4;
  --accent2: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --bg: #0A0A0F;
  --bg2: #0F0F1A;
  --bg3: #131325;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --glass: rgba(124, 58, 237, 0.08);
  --glass-border: rgba(124, 58, 237, 0.2);

  --text: #F1F0FF;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;

  --gradient: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --gradient2: linear-gradient(135deg, #5B21B6 0%, #0891B2 100%);
  --glow: 0 0 40px rgba(124, 58, 237, 0.3);
  --glow-sm: 0 0 20px rgba(124, 58, 237, 0.2);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: rgba(124, 58, 237, 0.4); color: white; }

/* ===== NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 40px;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--glow-sm);
}

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

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

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

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

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

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  background: var(--card);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--glow-sm);
}

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

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

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

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  box-shadow: var(--glow-sm);
}

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

.btn-xl {
  padding: 18px 42px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
  opacity: 0.08;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease;
}

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

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

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

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

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
  animation: fadeInUp 0.8s ease 0.4s both;
  flex-wrap: wrap;
}

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

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== FEATURES ===== */
#features {
  padding: 100px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 70px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border);
  box-shadow: var(--glow);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===== HOW IT WORKS ===== */
#how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--bg2) 30%, var(--bg2) 70%, transparent);
}

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

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-num {
  width: 72px;
  height: 72px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 24px;
  box-shadow: var(--glow);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== TOOL SECTION ===== */
#tool {
  padding: 100px 0;
}

.tool-wrapper {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.tool-header {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.08));
  border-bottom: 1px solid var(--card-border);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

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

.tool-tab {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition-fast);
  font-family: 'Inter', sans-serif;
}

.tool-tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--glow-sm);
}

.tool-body {
  padding: 36px;
}

.tool-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group label .label-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(124,58,237,0.2);
  color: var(--primary-light);
  border-radius: 20px;
}

.tool-textarea {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  transition: var(--transition-fast);
  outline: none;
}

.tool-textarea:focus {
  border-color: var(--primary);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.tool-textarea::placeholder {
  color: var(--text-subtle);
}

.tool-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  outline: none;
}

.tool-input:focus {
  border-color: var(--primary);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.tool-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.analyze-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--gradient);
  color: white;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--glow);
  letter-spacing: 0.3px;
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(124,58,237,0.4);
}

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

.analyze-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== LOADING ===== */
.loading-overlay {
  display: none;
  padding: 60px;
  text-align: center;
}

.loading-overlay.show {
  display: block;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 280px;
  margin: 24px auto 0;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: left;
}

.loading-step.visible {
  opacity: 1;
}

.loading-step .step-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.loading-step.done .step-check {
  background: var(--success);
}

/* ===== RESULTS ===== */
.results-section {
  display: none;
  margin-top: 8px;
}

.results-section.show {
  display: block;
  animation: fadeInUp 0.6s ease;
}

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

.results-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-circle {
  position: relative;
  width: 90px;
  height: 90px;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 90px;
  height: 90px;
}

.score-circle .track {
  fill: none;
  stroke: var(--card-border);
  stroke-width: 6;
}

.score-circle .progress {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-circle .score-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.score-circle .score-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-info {
  text-align: right;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

.score-badge.good { background: rgba(16,185,129,0.15); color: var(--success); }
.score-badge.avg { background: rgba(245,158,11,0.15); color: var(--warning); }
.score-badge.poor { background: rgba(239,68,68,0.15); color: var(--danger); }

.score-breakdown {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

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

.result-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.result-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.result-card-icon.green { background: rgba(16,185,129,0.15); }
.result-card-icon.red { background: rgba(239,68,68,0.15); }
.result-card-icon.blue { background: rgba(6,182,212,0.15); }
.result-card-icon.amber { background: rgba(245,158,11,0.15); }

.result-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.result-list li::before {
  content: '→';
  color: var(--primary-light);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.result-card.full-width {
  grid-column: 1 / -1;
}

/* ===== KEYWORD CHIPS ===== */
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.keyword-chip.found {
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}

.keyword-chip.missing {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}

/* ===== PROGRESS BARS ===== */
.metric-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.metric-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.metric-bar-label { color: var(--text-muted); font-weight: 500; }
.metric-bar-val { font-weight: 700; }

.metric-bar-track {
  height: 6px;
  background: var(--card-border);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-green { background: var(--success); }
.fill-blue { background: var(--accent); }
.fill-amber { background: var(--accent2); }
.fill-purple { background: var(--primary); }

/* ===== COVER LETTER ===== */
.cover-letter-output {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-wrap;
  font-family: 'Inter', sans-serif;
  display: none;
}

.cover-letter-output.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

/* ===== INTERVIEW QUESTIONS ===== */
.interview-questions {
  display: none;
}

.interview-questions.show {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.5s ease;
}

.interview-q {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.interview-q:hover {
  border-color: var(--glass-border);
  background: var(--glass);
}

.interview-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interview-q-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.interview-q-cat {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-behavioral { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.cat-technical { background: rgba(6,182,212,0.15); color: var(--accent); }
.cat-situational { background: rgba(245,158,11,0.15); color: var(--accent2); }

.interview-q-answer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.interview-q.open .interview-q-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ===== RESULTS ACTIONS ===== */
.results-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

/* ===== PRICING ===== */
#pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--bg2) 20%, var(--bg2) 80%, transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}

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

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.06));
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pricing-plan {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 600;
}

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

.pricing-divider {
  height: 1px;
  background: var(--card-border);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-features li .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.check-yes { background: rgba(16,185,129,0.2); color: var(--success); }
.check-no { background: var(--card-border); color: var(--text-subtle); }

/* ===== TESTIMONIALS ===== */
#testimonials {
  padding: 100px 0;
}

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border);
}

.testimonial-stars {
  color: var(--accent2);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== CTA SECTION ===== */
#cta {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== DROPDOWN NAVBAR ===== */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  display: inline-block;
  opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(13, 13, 22, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 8px;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
}

/* small arrow pointer */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(13,13,22,0.97);
  border-left: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--glass);
  border-radius: var(--radius-sm);
}

.dropdown-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.1);
  border-radius: 10px;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}

.dropdown-item-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  background: var(--card-border);
  margin: 6px 4px;
}

/* Hamburger for mobile */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.nav-hamburger:hover {
  background: var(--card);
}

/* Mobile nav open */
.mobile-nav {
  display: none;
  position: fixed;
  top: 69px;
  left: 0;
  right: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 20px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
  animation: fadeInDown 0.25s ease;
}

.mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav a:hover {
  background: var(--card);
  color: var(--text);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 0;
}

.mobile-nav-signin {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: var(--primary) !important;
  font-weight: 600;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-sm);
  margin: 4px 12px;
  background: rgba(124,58,237,0.08);
  transition: background 0.2s;
}
.mobile-nav-signin:hover {
  background: rgba(124,58,237,0.15) !important;
}

.mobile-nav-section {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-subtle);
  padding: 10px 14px 4px;
}

/* Active nav link */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--primary-light);
}

/* ===== PAGE HERO (for tool pages) ===== */
.page-hero {
  padding: 120px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: float 8s ease-in-out infinite;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.page-hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* ===== DOCUMENT TYPE SELECTOR ===== */
.doc-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.doc-type-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
}

.doc-type-btn:hover {
  background: rgba(124,58,237,0.07);
  border-color: var(--glass-border);
}

.doc-type-btn.active {
  background: rgba(124,58,237,0.12);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: var(--glow-sm);
}

.doc-type-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.doc-type-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.doc-type-desc {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

.doc-type-btn.active .doc-type-desc {
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
/* ===== TOOLS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== RESPONSIVE — TABLET (≤ 900px) ===== */
@media (max-width: 900px) {
  /* Navbar */
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: block; }

  /* Hero */
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }

  /* Sections */
  .section-inner { padding: 0 20px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* Grids → single column */
  .tools-grid      { grid-template-columns: 1fr; }
  .tool-input-grid  { grid-template-columns: 1fr; }
  .results-grid     { grid-template-columns: 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .steps            { grid-template-columns: 1fr; }
  .steps::before    { display: none; }

  /* Tool wrapper */
  .tool-body   { padding: 20px; }
  .tool-header { padding: 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .tool-tabs   { flex-wrap: wrap; gap: 6px; width: 100%; }
  .tool-tab    { flex: 1; min-width: 100px; text-align: center; font-size: 0.8rem; padding: 8px 10px; }

  /* Tool options row */
  .tool-options { flex-direction: column; align-items: stretch; gap: 12px; }
  .checkbox-group { flex-direction: column; gap: 10px; }
  .tool-options .btn { width: 100%; justify-content: center; }

  /* Analyze button */
  .analyze-btn { font-size: 1rem; padding: 16px; }

  /* Results */
  .results-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .score-display  { width: 100%; justify-content: flex-start; gap: 20px; }
  .results-actions { flex-direction: column; gap: 10px; }
  .results-actions .btn { width: 100%; justify-content: center; }

  /* Keyword chips — wrap on smaller widths */
  .keyword-chips { gap: 6px; }

  /* Interview questions */
  .interview-q-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Cover letter */
  .cover-letter-output { font-size: 0.82rem; }

  /* CTA */
  .cta-box { padding: 48px 24px; }

  /* Page hero */
  .page-hero { padding: 100px 20px 40px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
  .page-hero-cta { flex-direction: column; align-items: stretch; }
  .page-hero-cta .btn { justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Other */
  .doc-type-selector { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE — MOBILE (≤ 600px) ===== */
@media (max-width: 600px) {
  /* Hero */
  .hero { padding: 90px 16px 50px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -0.5px; }
  .hero p  { font-size: 0.95rem; }
  /* Hero CTA — stack all 3 buttons */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats .stat-number { font-size: 1.6rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Sections */
  .section-inner { padding: 0 16px; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: -0.5px; }
  .section-subtitle { font-size: 0.9rem; }

  /* Tool */
  .tool-body { padding: 16px; }
  .tool-header { padding: 16px; }
  .tool-title { font-size: 1.1rem; }
  .tool-tabs { gap: 4px; }
  .tool-tab { font-size: 0.75rem; padding: 7px 8px; min-width: 80px; }
  .tool-textarea { min-height: 160px; font-size: 0.85rem; }
  .tool-input { font-size: 0.88rem; }
  .analyze-btn { font-size: 0.95rem; padding: 14px; }

  /* Score circle — smaller on tiny screens */
  .score-circle { width: 80px; height: 80px; }
  .score-num-value { font-size: 1.4rem; }
  .score-label { font-size: 0.6rem; }

  /* Results cards */
  .result-card { padding: 18px; }
  .result-card h4 { font-size: 0.95rem; }
  .result-list li { font-size: 0.83rem; }

  /* Metric bars */
  .metric-bar-label { font-size: 0.78rem; }
  .metric-bar-val { font-size: 0.78rem; }

  /* Keyword chips */
  .keyword-chip { font-size: 0.73rem; padding: 4px 10px; }

  /* Interview questions */
  .interview-q { padding: 14px; }
  .interview-q-text { font-size: 0.88rem; }
  .interview-q-answer { font-size: 0.82rem; }

  /* Pricing */
  .pricing-card { padding: 28px 20px; }
  .pricing-price { font-size: 3rem; }

  /* Testimonials */
  .testimonial-card { padding: 24px 20px; }
  .testimonial-text { font-size: 0.88rem; }

  /* Page hero */
  .page-hero { padding: 90px 16px 36px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -0.5px; }
  .page-hero p { font-size: 0.9rem; }
  .page-hero-badge { font-size: 0.72rem; text-align: center; }

  /* CTA box */
  .cta-box { padding: 36px 16px; }
  .cta-box h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Loading */
  .loading-step { font-size: 0.82rem; }
}

/* ===== RESPONSIVE — SMALL MOBILE (≤ 400px) ===== */
@media (max-width: 400px) {
  .tool-tabs { flex-direction: column; }
  .tool-tab  { width: 100%; text-align: center; }
  .social-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; display: grid; }
}

/* ===== UPGRADE MODAL ===== */
.upgrade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.upgrade-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.upgrade-modal {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  max-height: 90vh;
  overflow-y: auto;
}
.upgrade-overlay.show .upgrade-modal {
  transform: translateY(0) scale(1);
}
.upgrade-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.upgrade-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.upgrade-usage-bar {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.upgrade-usage-label { font-size: 0.85rem; color: var(--text-muted); }
.upgrade-usage-count { font-size: 1.3rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.upgrade-usage-count.danger { color: #EF4444; }
.upgrade-usage-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.upgrade-usage-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #7C3AED, #06B6D4);
  transition: width 0.5s ease;
}
.upgrade-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.upgrade-plan-card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.upgrade-plan-card:hover { border-color: rgba(124,58,237,0.5); transform: translateY(-2px); }
.upgrade-plan-card.featured {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.06);
  position: relative;
}
.upgrade-plan-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 100px;
}
.upgrade-plan-name { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.upgrade-plan-price { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.upgrade-plan-period { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.upgrade-plan-features { text-align: left; margin-bottom: 20px; }
.upgrade-plan-feature { font-size: 0.8rem; color: var(--text-muted); padding: 3px 0; display: flex; gap: 6px; }
.upgrade-plan-feature::before { content: '\2714'; color: #10B981; flex-shrink: 0; }
@media (max-width: 480px) {
  .upgrade-modal { padding: 28px 20px; }
  .upgrade-plans { grid-template-columns: 1fr; }
}

/* ===== USAGE BADGE in tool header ===== */
.usage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  white-space: nowrap;
}
.usage-badge.warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #F59E0B; }
.usage-badge.danger  { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #EF4444; }
.usage-badge.pro     { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); color: #A78BFA; }




/* ===== AUTH.CSS MERGED ===== */
/* ===========================
   AUTH PAGE STYLES
   =========================== */

/* ===== AUTH LAYOUT ===== */
.auth-page {
  background: var(--bg);
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 69px; /* navbar height */
}

/* ===== LEFT BRANDING PANEL ===== */
.auth-branding {
  position: relative;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.06));
  border-right: 1px solid var(--card-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.auth-brand-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.auth-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  opacity: 0.12;
}

.auth-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -60px;
  right: -60px;
  opacity: 0.1;
  animation-delay: -4s;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
}

.auth-brand-logo {
  margin-bottom: 48px;
}

/* ===== FEATURE LIST ===== */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.auth-feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.auth-feature-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== TESTIMONIAL ===== */
.auth-testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.auth-testimonial p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 14px;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== RIGHT FORM PANEL ===== */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/* ===== AUTH TABS ===== */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.auth-tab.active {
  background: var(--gradient);
  color: white;
  box-shadow: var(--glow-sm);
}

/* ===== AUTH BANNER ===== */
.auth-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-banner.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #EF4444;
}

.auth-banner.success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10B981;
}

/* ===== FORM SUBTITLE ===== */
.auth-form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ===== SOCIAL BUTTONS ===== */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
}

.social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

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

.social-btn-sm {
  font-size: 0.82rem;
  padding: 10px 12px;
  gap: 7px;
}

/* ===== DIVIDER ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-subtle);
  font-size: 0.78rem;
}

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

/* ===== FORM FIELDS ===== */
.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.7;
}

.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 11px 42px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.auth-input:focus {
  border-color: var(--primary);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.auth-input::placeholder {
  color: var(--text-subtle);
}

.auth-eye-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 4px;
}

.auth-eye-btn:hover {
  opacity: 1;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 40px;
}

/* ===== CHECKBOX ===== */
.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
  line-height: 1.4;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== SUBMIT BUTTON ===== */
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== LINKS ===== */
.auth-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.auth-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===== BACK BUTTON ===== */
.auth-back-btn {
  background: transparent;
  border: none;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
  margin-bottom: 16px;
  display: block;
  transition: var(--transition-fast);
}

.auth-back-btn:hover {
  color: var(--text);
}

/* ===== FOOTER NOTE ===== */
.auth-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

/* ===== NAVBAR USER AREA ===== */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  border: 2px solid rgba(124,58,237,0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: rgba(13,13,22,0.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 8px;
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  z-index: 200;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.nav-user:hover .nav-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-info {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 6px;
}

.nav-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.user-menu-item:hover {
  background: var(--card);
  color: var(--text);
}

.user-menu-item.danger:hover {
  background: rgba(239,68,68,0.1);
  color: #EF4444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-branding {
    display: none;
  }
  .auth-form-panel {
    padding: 24px 20px;
    align-items: flex-start;
    padding-top: 40px;
  }
  .auth-card {
    max-width: 100%;
  }
  .social-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 20px 16px; }
  .auth-tabs { margin-bottom: 20px; }
  .auth-tab  { font-size: 0.85rem; padding: 9px; }
  .auth-input { font-size: 1rem; padding: 13px 44px; } /* larger touch target */
  .auth-submit-btn { padding: 15px; font-size: 1rem; }
  .social-btn { padding: 13px 12px; font-size: 0.85rem; }
  .social-row { grid-template-columns: 1fr 1fr; }
}

