/* ============================================================
   MetaForge – White & Green Theme
   ============================================================ */

:root {
  --bg: #f0faf4;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f6fdf9;
  --bg-section: #edfaf3;
  --border: #c8edd8;
  --border-active: #22c55e;
  --text-primary: #0f2419;
  --text-secondary: #3d6b52;
  --text-muted: #7aaa8e;
  --accent: #16a34a;
  --accent-2: #15803d;
  --accent-light: #4ade80;
  --accent-glow: rgba(22, 163, 74, 0.2);
  --accent-bg: #dcfce7;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(22, 163, 74, 0.08);
  --shadow-hover: 0 8px 40px rgba(22, 163, 74, 0.16);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* ─── Background Orbs ───────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

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

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #bbf7d0, transparent);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #86efac, transparent);
  bottom: -150px; right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #d1fae5, transparent);
  top: 40%; left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  box-shadow: 0 1px 12px rgba(22, 163, 74, 0.07);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent), #15803d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.btn-heroes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  flex-shrink: 0;
}

.btn-heroes:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.4);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-bg);
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

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

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

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #15803d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

/* ─── Generator Grid ─────────────────────────────────────── */
#generator {
  padding: 40px 24px 60px;
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

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

/* ─── Input Panel ────────────────────────────────────────── */
.input-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  background: var(--bg-section);
}

.tab {
  flex: 1;
  padding: 14px 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.tab:hover { color: var(--accent); background: var(--accent-bg); }

.tab.active { color: var(--accent); background: var(--bg-white); }

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

/* ─── Tab Content ────────────────────────────────────────── */
.tab-content { display: none; padding: 24px; }
.tab-content.active { display: block; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--accent-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
}

.section-icon { font-size: 1.5rem; line-height: 1; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.section-desc { font-size: 0.82rem; color: var(--text-secondary); }

.sub-section {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sub-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* ─── Form Elements ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.char-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: none;
  letter-spacing: 0;
}

.char-badge.warn { color: var(--yellow); }
.char-badge.good { color: var(--green); }
.char-badge.bad  { color: var(--red); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237aaa8e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option { background: #fff; color: var(--text-primary); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* ─── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  height: 3px;
  background: #d1fae5;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.3s, background 0.3s;
  background: var(--accent);
}

/* ─── Checkbox Grid ──────────────────────────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  background: var(--bg);
}

.checkbox-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

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

.checkbox-custom {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  background: white;
}

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

.checkbox-item input:checked + .checkbox-custom::after {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
  color: white;
}

/* ─── Color Input ────────────────────────────────────────── */
.color-input-wrap { display: flex; gap: 10px; align-items: center; }

.color-picker {
  width: 44px; height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Generate Button ────────────────────────────────────── */
.btn-generate {
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), #15803d);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(22, 163, 74, 0.45);
}

.btn-generate:active { transform: translateY(0); }
.btn-icon { font-size: 1.1rem; }

.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ─── Output Panel ───────────────────────────────────────── */
.output-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

/* ─── Preview Cards ──────────────────────────────────────── */
.preview-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-section);
}

.preview-dot { width: 8px; height: 8px; border-radius: 50%; }
.google-dot { background: #4285f4; }
.fb-dot { background: #1877f2; }

/* ─── SERP Preview ───────────────────────────────────────── */
.serp-result { padding: 16px; background: white; }
.serp-url { font-size: 0.76rem; color: #188038; margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.serp-title { font-size: 1.05rem; font-weight: 500; color: #1a0dab; margin-bottom: 6px; line-height: 1.3; text-decoration: underline; cursor: pointer; }
.serp-desc { font-size: 0.82rem; color: #4d5156; line-height: 1.5; }

/* ─── Social Card ────────────────────────────────────────── */
.social-card { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 14px; }
.social-img { height: 180px; background: var(--bg-section); overflow: hidden; }
.social-img img { width: 100%; height: 100%; object-fit: cover; }
.social-img-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 2rem; }
.social-img-placeholder small { font-size: 0.75rem; }
.social-info { padding: 12px; background: #f9f9f9; }
.social-site { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.social-title { font-size: 0.9rem; font-weight: 600; color: #0f2419; margin-bottom: 4px; line-height: 1.3; }
.social-desc { font-size: 0.78rem; color: #555; line-height: 1.4; }

/* ─── Output Card ────────────────────────────────────────── */
.output-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
  flex-wrap: wrap;
  gap: 10px;
}

.output-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-count {
  font-size: 0.72rem;
  padding: 2px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0;
}

.output-actions { display: flex; gap: 8px; }

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-action.btn-danger:hover {
  background: #fef2f2;
  color: var(--red);
  border-color: #fca5a5;
}

.output-area-wrap { max-height: 420px; overflow: auto; }

.output-area {
  margin: 0;
  padding: 20px;
  background: #f8fffe;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  color: #2d6a45;
  min-height: 80px;
  border-top: 1px solid var(--border);
}

.output-area::-webkit-scrollbar { width: 6px; }
.output-area::-webkit-scrollbar-track { background: transparent; }
.output-area::-webkit-scrollbar-thumb { background: #bbf7d0; border-radius: 3px; }

/* ─── SEO Score Card ─────────────────────────────────────── */
.score-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.score-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-circle { position: relative; width: 60px; height: 60px; }
.score-svg { transform: rotate(-90deg); width: 60px; height: 60px; }
.score-bg { fill: none; stroke: #d1fae5; stroke-width: 3; }
.score-ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 0.8s ease, stroke 0.5s; }
.score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 800; color: var(--text-primary); }

.score-items { display: flex; flex-direction: column; gap: 8px; }

.score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.score-item.pass { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.score-item.fail { background: #fef2f2; color: var(--red); border: 1px solid #fca5a5; }
.score-item.warn { background: #fefce8; color: var(--yellow); border: 1px solid #fde68a; }
.score-item.pending { background: var(--bg-section); color: var(--text-muted); border: 1px solid transparent; }
.score-item-icon { font-size: 0.75rem; }

/* ─── Features Section ───────────────────────────────────── */
.features-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header { text-align: center; margin-bottom: 50px; }
.features-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; color: var(--text-primary); }
.features-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

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

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

.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-white);
}

.feature-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.feature-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.feature-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── About Section ──────────────────────────────────────── */
.about-section { padding: 60px 0; position: relative; z-index: 1; background: var(--bg); }

.about-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent), #4ade80);
}

.about-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--accent), #4ade80);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: white;
  flex-shrink: 0;
}

.about-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; color: var(--text-primary); }
.about-email { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 14px; transition: color 0.2s; }
.about-email:hover { color: #15803d; }
.about-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tag {
  padding: 4px 14px;
  background: var(--accent-bg);
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  position: relative;
  z-index: 1;
  background: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } }

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

.footer-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), #15803d);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  white-space: nowrap;
}

.footer-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.4);
}

.footer-credit { text-align: right; }
.footer-credit p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.footer-credit a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: #15803d; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: white;
  border: 1.5px solid #bbf7d0;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { font-size: 1rem; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #bbf7d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #86efac; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 70px 24px 40px; }
  .hero-stats { gap: 16px; padding: 14px 20px; }
  .about-card { flex-direction: column; padding: 28px; }
  .about-avatar { width: 60px; height: 60px; font-size: 1.2rem; }
  .footer-credit { text-align: left; }
  .nav-links { display: none; }
  .header-inner { gap: 16px; }
}

@media (max-width: 480px) {
  .btn-heroes { padding: 8px 14px; font-size: 0.78rem; }
  .hero-title { font-size: 1.9rem; }
  .output-panel { position: static; }
}

/* ─── Header Auth UI ─────────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-links { margin-left: 0; }

.auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-signin {
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-signin:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.btn-signup-header {
  padding: 8px 18px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}

.btn-signup-header:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; color: white;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-signout {
  padding: 6px 14px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 50px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-signout:hover {
  background: #fee2e2;
}

/* ─── Auth & Email Modals ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 25, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 36, 25, 0.2);
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-box-sm { max-width: 380px; }

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

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover { background: #fef2f2; color: var(--red); border-color: #fca5a5; }

.modal-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-panel { }

/* ─── Password Wrap ──────────────────────────────────────── */
.password-wrap {
  position: relative;
}

.password-wrap .form-input {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 1rem;
  padding: 4px;
  line-height: 1;
}

/* ─── Auth Button ────────────────────────────────────────── */
.btn-auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), #15803d);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  margin-top: 4px;
}

.btn-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
}

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

/* ─── Auth Misc ──────────────────────────────────────────── */
.auth-error {
  font-size: 0.82rem;
  color: var(--red);
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-switch a:hover { color: var(--accent-2); }

/* ─── OTP ────────────────────────────────────────────────── */
.otp-input {
  text-align: center;
  font-size: 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.otp-sent-msg {
  background: var(--accent-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 18px;
}

/* ─── Success Panel ──────────────────────────────────────── */
.success-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 16px;
}

/* ─── Email Button in output actions ─────────────────────── */
.btn-email:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}

/* ─── Footer Links ───────────────────────────────────────── */
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ─── Projects List ──────────────────────────────────────── */
.projects-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.project-item:hover {
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  gap: 8px;
}

.empty-projects {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
