/* PixelForge - Main Stylesheet */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --primary: #00c896;
  --primary-dark: #00a97d;
  --primary-light: #00e8ad;
  --secondary: #0891b2;
  --secondary-dark: #0e7490;
  --accent: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Dark theme (default) */
  --bg-primary: #0a0f0d;
  --bg-secondary: #111816;
  --bg-card: #151e1a;
  --bg-card-hover: #1a2520;
  --bg-input: #1a2520;
  --border: #1e3028;
  --border-hover: #00c896;
  --text-primary: #e8f5f0;
  --text-secondary: #8ab5a0;
  --text-muted: #4d7a65;
  --shadow: rgba(0, 200, 150, 0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(0, 200, 150, 0.05);
  --gradient-hero: linear-gradient(135deg, #0a1a14 0%, #0a0f0d 50%, #091318 100%);
  --gradient-card: linear-gradient(135deg, #151e1a, #111816);
  --gradient-primary: linear-gradient(135deg, #00c896, #0891b2);
  --glow: 0 0 30px rgba(0, 200, 150, 0.15);
  --navbar-bg: rgba(10, 15, 13, 0.92);
}

[data-theme="light"] {
  --bg-primary: #f0faf6;
  --bg-secondary: #e8f5ef;
  --bg-card: #ffffff;
  --bg-card-hover: #f0faf6;
  --bg-input: #f8fffe;
  --border: #c8e8da;
  --border-hover: #00c896;
  --text-primary: #0a2018;
  --text-secondary: #2d6e52;
  --text-muted: #5a8f74;
  --shadow: rgba(0, 150, 100, 0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0, 200, 150, 0.1);
  --gradient-hero: linear-gradient(135deg, #e0f7ee 0%, #f0faf6 50%, #e0f0ff 100%);
  --gradient-card: linear-gradient(135deg, #ffffff, #f5fefa);
  --glow: 0 0 30px rgba(0, 200, 150, 0.1);
  --navbar-bg: rgba(240, 250, 246, 0.92);
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }

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

/* ─── NAVBAR ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(0, 200, 150, 0.08);
}

/* Tools dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s ease;
  pointer-events: none;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: rgba(0, 200, 150, 0.08);
  color: var(--primary);
}

.dropdown-item .item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 200, 150, 0.08);
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.4);
  color: #fff;
}

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

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 200, 150, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: rgba(0, 200, 150, 0.08);
  color: var(--primary-light);
}

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-xl { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }

/* ─── HERO SECTION ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 200, 150, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 200, 150, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 150, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .line-2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.stat-item { text-align: left; }
.stat-num { font-size: 1.6rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cards {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.floating-card:nth-child(2) {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 180px;
  animation-delay: -2s;
  z-index: 3;
}

.floating-card:nth-child(3) {
  position: absolute;
  bottom: -20px;
  left: -10px;
  width: 160px;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.card-icon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.progress-bar-wrap { margin-top: 10px; }
.progress-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: progressAnim 2.5s ease-out infinite;
}
@keyframes progressAnim {
  0% { width: 0%; }
  60% { width: 82%; }
  100% { width: 82%; }
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SECTION ───────────────────────────────────────────────────────────────── */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 200, 150, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── TOOL CARDS GRID ───────────────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 200, 150, 0.15), 0 0 0 1px rgba(0, 200, 150, 0.2);
}

.tool-card:hover::before { opacity: 0.02; }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-card-body { flex: 1; }

.tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: 'Syne', sans-serif;
}

.tool-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag-new { background: rgba(0, 200, 150, 0.1); color: var(--primary); }
.tag-free { background: rgba(8, 145, 178, 0.1); color: var(--secondary); }
.tag-bulk { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.tag-hot { background: rgba(239, 68, 68, 0.1); color: var(--error); }

/* ─── UPLOAD ZONE ───────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(0, 200, 150, 0.04);
  box-shadow: var(--glow);
}

.upload-zone-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: rgba(0, 200, 150, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(0, 200, 150, 0.15);
}

.upload-zone h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ─── FILE LIST ─────────────────────────────────────────────────────────────── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.file-item:hover { border-color: var(--primary); }

.file-preview {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.76rem; color: var(--text-muted); }
.file-remove { background: none; border: none; color: var(--text-muted); font-size: 1rem; padding: 4px; border-radius: 6px; transition: all 0.2s; }
.file-remove:hover { color: var(--error); background: rgba(239, 68, 68, 0.1); }

/* ─── FORM ELEMENTS ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.12);
}

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

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300c896' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.range-control { width: 100%; appearance: none; height: 6px; border-radius: 3px; background: var(--border); outline: none; cursor: pointer; }
.range-control::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 200, 150, 0.4); }

/* ─── PROGRESS ──────────────────────────────────────────────────────────────── */
.progress-container {
  margin: 16px 0;
}

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

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

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

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* ─── RESULTS ───────────────────────────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

.result-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.result-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--border);
}

.result-info {
  padding: 12px;
}

.result-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-size {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.result-actions { display: flex; gap: 6px; }

/* ─── AD BANNER ─────────────────────────────────────────────────────────────── */
.ad-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 24px 0;
}

.ad-banner-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ad-banner-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* ─── FEATURES SECTION ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── MODAL ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-close:hover { color: var(--error); border-color: var(--error); }

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
}

.modal-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }

.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 12px;
}

.modal-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  background: var(--gradient-primary);
  color: #fff;
}

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

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

.google-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.google-btn:hover { border-color: var(--primary); background: rgba(0, 200, 150, 0.04); }

/* ─── TOAST ─────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight 0.3s ease;
  transition: all 0.3s ease;
}

.toast.removing { animation: slideOutRight 0.3s ease forwards; }

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

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

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-message { font-size: 0.88rem; font-weight: 500; flex: 1; color: var(--text-primary); }

.toast-success { border-color: rgba(16, 185, 129, 0.3); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-color: rgba(239, 68, 68, 0.3); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning { border-color: rgba(245, 158, 11, 0.3); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info { border-color: rgba(8, 145, 178, 0.3); }
.toast-info .toast-icon { color: var(--secondary); }

/* ─── TOOL PAGE ─────────────────────────────────────────────────────────────── */
.tool-page {
  min-height: 100vh;
  padding-top: 88px;
}

.tool-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 200, 150, 0.04) 0%, transparent 70%);
}

.tool-hero-content {
  position: relative;
  z-index: 1;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tool-breadcrumb a { color: var(--primary); }

.tool-page-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.tool-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.tool-page-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
}

.tool-workspace {
  padding: 48px 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.workspace-main {}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.sidebar-panel-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-newsletter { margin-top: 8px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form input:focus { border-color: var(--primary); }

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: 'Syne', sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 200, 150, 0.08);
}

/* ─── ALERT ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); color: #10b981; }
.alert-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.alert-info { background: rgba(8, 145, 178, 0.08); border: 1px solid rgba(8, 145, 178, 0.2); color: var(--secondary); }

/* ─── UTILITY ───────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary-color { color: var(--primary); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* Color utilities for tool icons */
.bg-green-soft { background: rgba(0, 200, 150, 0.1); }
.bg-blue-soft { background: rgba(8, 145, 178, 0.1); }
.bg-purple-soft { background: rgba(139, 92, 246, 0.1); }
.bg-orange-soft { background: rgba(245, 158, 11, 0.1); }
.bg-red-soft { background: rgba(239, 68, 68, 0.1); }
.bg-pink-soft { background: rgba(236, 72, 153, 0.1); }
.bg-cyan-soft { background: rgba(6, 182, 212, 0.1); }
.bg-indigo-soft { background: rgba(99, 102, 241, 0.1); }
.bg-teal-soft { background: rgba(20, 184, 166, 0.1); }
.bg-yellow-soft { background: rgba(234, 179, 8, 0.1); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .modal { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 20px; }
  .dropdown-menu { display: none; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── MOBILE NAV ────────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: var(--primary);
  background: rgba(0, 200, 150, 0.06);
}

/* ─── SEO CONTENT SECTION ───────────────────────────────────────────────────── */
.seo-content {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.seo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.seo-main h2 { font-size: 1.8rem; margin-bottom: 16px; }
.seo-main h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--primary); }
.seo-main p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }
.seo-main ul { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; padding-left: 20px; font-size: 0.95rem; }
.seo-main li { margin-bottom: 8px; }

.seo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.seo-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.seo-sidebar-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.seo-sidebar-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.seo-sidebar-card a:last-child { border-bottom: none; }
.seo-sidebar-card a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-sidebar { position: static; }
}

/* ─── SPECIAL TOOL STYLES ───────────────────────────────────────────────────── */
.social-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.preset-btn {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.preset-btn.active, .preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 200, 150, 0.06);
}

.preset-size {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.comparison-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  user-select: none;
}

.canvas-wrapper {
  position: relative;
  background: repeating-conic-gradient(#888 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
  border-radius: 12px;
  overflow: hidden;
}

#editCanvas {
  max-width: 100%;
  display: block;
}

.hashtag-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px;
  background: var(--bg-input);
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 80px;
  align-content: flex-start;
}

.hashtag-chip {
  padding: 5px 12px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.hashtag-chip:hover {
  background: rgba(0, 200, 150, 0.2);
}

.yt-preview-box {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.yt-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.yt-channel { font-size: 0.78rem; opacity: 0.8; }

/* ═══ ADDITIONS & IMPROVEMENTS (v2) ══════════════════════════════════════════ */

/* Trust bar */
.trust-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.trust-check {
  color: var(--success);
  font-weight: 700;
}

/* Featured grid - 3 columns, wider cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  min-height: 200px;
}

/* Category tabs */
.cat-tab {
  padding: 10px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}
.cat-tab:hover { color: var(--primary); background: rgba(0,200,150,0.05); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(0,200,150,0.06); }

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.step-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Syne', sans-serif;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; font-family: 'Syne', sans-serif; }
.step-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.4;
  flex-shrink: 0;
}

/* Quick opts grid */
.quick-opts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Tool page — SEO + Related Tools section */
.tool-seo-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.tool-seo-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
.tool-seo-section h3 { font-size: 1.1rem; color: var(--primary); margin: 24px 0 10px; }
.tool-seo-section p  { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.tool-seo-section ol,
.tool-seo-section ul { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.9; padding-left: 20px; margin-bottom: 14px; }
.tool-seo-section li { margin-bottom: 4px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  gap: 12px;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a { padding: 0 20px 16px; max-height: 300px; }

/* Related Tools */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.related-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s;
}
.related-tool-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.related-tool-link .ricon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Bottom ad strip on tool pages */
.tool-bottom-ad {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Improved workspace for 2-col layout on small screens */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { width: 2px; height: 32px; margin: 0 auto; background: linear-gradient(180deg, var(--primary), var(--secondary)); }
  .quick-opts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .trust-items { gap: 14px; justify-content: flex-start; }
  .quick-opts-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .related-tools-grid { grid-template-columns: 1fr 1fr; }
}

/* Navbar dropdown — wider, 2 col on large screens */
.nav-dropdown:hover .dropdown-menu {
  min-width: 560px;
  grid-template-columns: 1fr 1fr;
}

/* Improved tool hero spacing */
.tool-page-icon { margin-bottom: 16px; }
.tool-page-title { margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════
   PIXELFORGE v3 UPGRADE — New Sections CSS
   ═══════════════════════════════════════════════════════════════ */

/* ─── PLATFORM PRESETS SECTION ──────────────────────────────────────────────── */
.presets-section { padding: 72px 0; background: var(--bg-primary); }

.platform-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.platform-tab {
  padding: 10px 18px; border: none; border-radius: 8px 8px 0 0;
  background: transparent; color: var(--text-secondary);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.platform-tab:hover { color: var(--primary); background: rgba(0,200,150,0.05); }
.platform-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(0,200,150,0.08); }

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.preset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.preset-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-primary); opacity: 0;
  transition: opacity 0.22s;
}
.preset-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--glow); }
.preset-card:hover::before { opacity: 0.04; }

.preset-platform {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
}
.preset-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); font-family: 'Syne', sans-serif; }
.preset-dims {
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.preset-meta { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }
.preset-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; background: rgba(0,200,150,0.12);
  color: var(--primary); border: 1px solid rgba(0,200,150,0.2);
  align-self: flex-start;
}
.preset-cta {
  font-size: 0.8rem; color: var(--primary); font-weight: 600;
  margin-top: auto; display: flex; align-items: center; gap: 4px;
}

/* ─── COMPLIANCE CHECKER ─────────────────────────────────────────────────────── */
.compliance-section { padding: 72px 0; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.compliance-upload-zone {
  border: 2px dashed var(--border); border-radius: 20px;
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg-card);
}
.compliance-upload-zone:hover, .compliance-upload-zone.drag-over {
  border-color: var(--primary); background: rgba(0,200,150,0.04);
}

.compliance-results {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; margin-top: 24px;
  display: none;
}
.compliance-results.visible { display: block; animation: fadeIn 0.35s ease; }

.compliance-check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.compliance-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500;
}
.compliance-check-item.pass { background: rgba(16,185,129,0.08); color: var(--success); border: 1px solid rgba(16,185,129,0.18); }
.compliance-check-item.warn { background: rgba(245,158,11,0.08); color: var(--warning); border: 1px solid rgba(245,158,11,0.18); }
.compliance-check-item.fail { background: rgba(239,68,68,0.08); color: var(--error); border: 1px solid rgba(239,68,68,0.18); }
.compliance-check-item .ci-icon { font-size: 1rem; flex-shrink: 0; }
.compliance-check-item .ci-label { flex: 1; }
.compliance-check-item .ci-value { font-size: 0.8rem; opacity: 0.75; font-family: monospace; }

.compliance-platform-select {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 20px;
}
.comp-plat-btn {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-input); color: var(--text-secondary);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.18s;
  font-family: inherit; text-align: center;
}
.comp-plat-btn:hover, .comp-plat-btn.active {
  border-color: var(--primary); color: var(--primary); background: rgba(0,200,150,0.08);
}

.compliance-suggestions { margin-top: 20px; }
.suggestion-card {
  background: rgba(8,145,178,0.08); border: 1px solid rgba(8,145,178,0.2);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 12px;
}
.suggestion-card strong { color: var(--text-primary); }

/* ─── MULTI EXPORT TOOL ──────────────────────────────────────────────────────── */
.multi-export-section { padding: 72px 0; }

.export-platforms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
  margin: 24px 0;
}
.export-platform-card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px;
  padding: 16px; cursor: pointer; transition: all 0.2s; text-align: center;
  position: relative;
}
.export-platform-card:hover { border-color: var(--primary); background: rgba(0,200,150,0.04); }
.export-platform-card.selected { border-color: var(--primary); background: rgba(0,200,150,0.08); }
.export-platform-card .ep-check {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--primary); display: none;
  align-items: center; justify-content: center; font-size: 0.7rem; color: #fff;
}
.export-platform-card.selected .ep-check { display: flex; }
.ep-icon { font-size: 1.6rem; margin-bottom: 6px; }
.ep-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.ep-size { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.export-results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
  margin-top: 24px;
}
.export-result-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; text-align: center;
}
.export-result-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: var(--bg-input); }
.export-result-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.export-result-size { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; }

/* ─── BLOG SECTION ───────────────────────────────────────────────────────────── */
.blog-section { padding: 72px 0; background: var(--bg-secondary); border-top: 1px solid var(--border); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; text-decoration: none; transition: all 0.22s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-card); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.blog-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-card-tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); background: rgba(0,200,150,0.1); padding: 3px 10px;
  border-radius: 20px; display: inline-block; align-self: flex-start;
}
.blog-card-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.blog-card-excerpt { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.blog-card-meta {
  display: flex; gap: 12px; align-items: center; margin-top: 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.blog-card-cta { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* Blog article page */
.blog-hero { padding: 96px 0 48px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.blog-article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.blog-article-wrap h2 { font-size: 1.6rem; margin: 36px 0 12px; color: var(--text-primary); }
.blog-article-wrap h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--text-primary); }
.blog-article-wrap p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.blog-article-wrap ul, .blog-article-wrap ol { color: var(--text-secondary); padding-left: 24px; margin-bottom: 16px; }
.blog-article-wrap li { margin-bottom: 6px; line-height: 1.7; }
.blog-article-wrap a { color: var(--primary); }
.blog-article-wrap strong { color: var(--text-primary); }
.blog-breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blog-breadcrumb a { color: var(--text-muted); }
.blog-breadcrumb a:hover { color: var(--primary); }
.blog-article-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-bottom: 16px; }
.blog-article-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 28px; }
.blog-author-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; gap: 16px; align-items: center; margin: 40px 0;
}
.blog-author-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.blog-faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 32px 0; }
.blog-faq-item { border-bottom: 1px solid var(--border); }
.blog-faq-item:last-child { border-bottom: none; }
.blog-faq-q {
  width: 100%; text-align: left; padding: 18px 20px; background: none; border: none;
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.blog-faq-q:hover { color: var(--primary); }
.blog-faq-a { padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; display: none; }
.blog-faq-item.open .blog-faq-a { display: block; }
.blog-faq-item.open .blog-faq-q { color: var(--primary); }

.blog-cta-box {
  background: rgba(0,200,150,0.07); border: 1px solid rgba(0,200,150,0.25);
  border-radius: 16px; padding: 28px; text-align: center; margin: 36px 0;
}
.blog-cta-box h3 { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 8px; }
.blog-cta-box p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 18px; }

.blog-related { margin: 40px 0; }
.blog-related h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.blog-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.blog-related-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; text-decoration: none; transition: all 0.2s;
}
.blog-related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.blog-related-card .brc-title { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); margin-bottom: 6px; }
.blog-related-card .brc-meta { font-size: 0.77rem; color: var(--text-muted); }

/* ─── PRO PLAN UI HOOKS ──────────────────────────────────────────────────────── */
.pro-section { padding: 72px 0; background: var(--bg-primary); }
.pro-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 32px 0; }
.pro-feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: all 0.22s;
}
.pro-feature-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.pro-feature-card .pro-badge {
  position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg,#8b5cf6,#ec4899);
  color: #fff; font-size: 0.65rem; font-weight: 800; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.pro-icon { font-size: 1.8rem; }
.pro-feat-title { font-weight: 700; font-size: 0.96rem; color: var(--text-primary); }
.pro-feat-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

.pro-cta-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.08));
  border: 1px solid rgba(139,92,246,0.25); border-radius: 20px; padding: 48px 36px;
  text-align: center; max-width: 600px; margin: 0 auto;
}
.pro-cta-box h3 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.pro-cta-box p { color: var(--text-secondary); margin-bottom: 24px; }
.btn-pro { background: linear-gradient(135deg,#8b5cf6,#ec4899); color: #fff; border: none; padding: 14px 36px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn-pro:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.35); }

/* ─── AD PLACEMENTS ──────────────────────────────────────────────────────────── */
.ad-sidebar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: center; min-height: 250px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.ad-sidebar-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.ad-mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 8px 16px; display: none; align-items: center; justify-content: space-between;
  gap: 12px;
}
@media(max-width:768px) { .ad-mobile-sticky { display: flex; } }
.ad-mobile-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; flex-shrink: 0; }

/* ─── TRUST PAGES ────────────────────────────────────────────────────────────── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 96px 24px 72px; }
.legal-page h1 { font-family: 'Syne', sans-serif; font-size: 2.2rem; margin-bottom: 8px; color: var(--text-primary); }
.legal-page .legal-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 36px; }
.legal-page h2 { font-size: 1.2rem; margin: 32px 0 10px; color: var(--text-primary); }
.legal-page p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.legal-page ul { color: var(--text-secondary); padding-left: 24px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 6px; line-height: 1.7; }
.legal-page a { color: var(--primary); }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* ─── RESPONSIVE ADJUSTMENTS ─────────────────────────────────────────────────── */
@media(max-width:768px) {
  .presets-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
  .blog-grid { grid-template-columns: 1fr; }
  .pro-features-grid { grid-template-columns: 1fr; }
  .export-platforms-grid { grid-template-columns: repeat(3,1fr); }
  .blog-article-wrap { padding: 32px 16px 60px; }
  .pro-cta-box { padding: 32px 20px; }
}

/* ─── BLOG INDEX PAGE ────────────────────────────────────────────────────────── */
.blog-hero-section { padding: 96px 0 48px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.blog-list-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media(max-width:900px){ .blog-list-grid { grid-template-columns: 1fr; } }
.blog-sidebar-section { display: flex; flex-direction: column; gap: 24px; }
.blog-sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.blog-sidebar-widget h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.blog-sidebar-widget a { display: block; padding: 7px 0; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); transition: color 0.2s; }
.blog-sidebar-widget a:last-child { border-bottom: none; }
.blog-sidebar-widget a:hover { color: var(--primary); }


/* ─── LOGOVIKING HEADER PATCH ───────────────────────────────────────────────── */
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
@media (max-width: 768px) {
  .nav-logo-img { height: 36px; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PIXELFORGE — PREMIUM UI POLISH PATCH v1.0
   Safe micro-patch: visual enhancements only.
   No layout, structure, spacing, or responsiveness changes.
   Appended to end of file — all rules are additive overrides only.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. BUTTON POLISH
   Sharpen hover lift, deepen shadow on interaction, add active press feedback.
   Existing border-radius (10px/12px/14px) preserved — only transitions improved.
   ───────────────────────────────────────────────────────────────────────────── */

/* Base button — smoother easing, will-change for GPU layer promotion */
.btn {
  will-change: transform, box-shadow;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease,
              background 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease;
  letter-spacing: 0.01em;
}

/* Primary button — richer shadow depth on hover, firm press on active */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 200, 150, 0.38),
              0 2px 8px rgba(0, 200, 150, 0.18);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(0, 200, 150, 0.25);
  transition-duration: 0.08s;
}

/* Secondary button — tighter border flash, gentle tint fill */
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 200, 150, 0.07);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 200, 150, 0.1);
}
.btn-secondary:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

/* Ghost button — subtle background reveal */
.btn-ghost:hover {
  background: rgba(0, 200, 150, 0.1);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); transition-duration: 0.08s; }

/* Pro button — keep existing gradient, improve lift */
.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.38);
  opacity: 0.92;
}
.btn-pro:active { transform: translateY(0); transition-duration: 0.08s; }

/* Upload zone button — inherits .btn-primary, no extra needed */
/* Process / Convert / Compress / Download buttons all use .btn-primary — covered above */

/* ─────────────────────────────────────────────────────────────────────────────
   2. TOOL CARD POLISH
   Deepen shadow and sharpen border glow on hover.
   Existing border-radius, padding, and layout untouched.
   ───────────────────────────────────────────────────────────────────────────── */

.tool-card {
  will-change: transform, box-shadow, border-color;
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  /* Subtle always-on depth — lifts card off the page background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 200, 150, 0.03);
}
.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22),
              0 2px 8px rgba(0, 200, 150, 0.1),
              0 0 0 1px rgba(0, 200, 150, 0.18);
  color: var(--text-primary); /* prevent inherited color flash */
}
.tool-card:active { transform: translateY(-2px); transition-duration: 0.1s; }

/* Featured cards — slightly more prominent resting shadow */
.featured-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 200, 150, 0.04);
}
.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22),
              0 4px 12px rgba(0, 200, 150, 0.12),
              0 0 0 1px rgba(0, 200, 150, 0.22);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. BLOG CARD POLISH
   More polished shadow, sharper hover glow, better CTA alignment.
   Existing .blog-card-body padding and gap untouched.
   ───────────────────────────────────────────────────────────────────────────── */

.blog-card {
  will-change: transform, box-shadow, border-color;
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  /* Resting shadow — cards feel like physical objects */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 200, 150, 0.03);
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2),
              0 3px 10px rgba(0, 200, 150, 0.1),
              0 0 0 1px rgba(0, 200, 150, 0.18);
}

/* Blog card CTA — align with bottom of card body, add arrow animation */
.blog-card-cta {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.18s ease, color 0.18s ease;
}
.blog-card-cta::after {
  content: '→';
  display: inline-block;
  transition: transform 0.18s ease;
}
.blog-card:hover .blog-card-cta {
  color: var(--primary-light);
}
.blog-card:hover .blog-card-cta::after {
  transform: translateX(3px);
}

/* Blog related cards */
.blog-related-card {
  will-change: transform, box-shadow, border-color;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.blog-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 200, 150, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. PRESET CARD POLISH
   Consistent shadow system matching tool cards.
   ───────────────────────────────────────────────────────────────────────────── */

.preset-card {
  will-change: transform, box-shadow, border-color;
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 200, 150, 0.02);
}
.preset-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(0, 200, 150, 0.1),
              0 0 0 1px rgba(0, 200, 150, 0.2);
}
.preset-card:active { transform: translateY(-1px); transition-duration: 0.1s; }

/* Export platform cards */
.export-platform-card {
  will-change: transform, box-shadow;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.export-platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 200, 150, 0.18);
}
.export-platform-card.selected {
  box-shadow: 0 6px 18px rgba(0, 200, 150, 0.18);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. NAVBAR POLISH
   Tighter vertical alignment, improved link hover indicator,
   cleaner logo image baseline alignment.
   No height, padding, or structural changes.
   ───────────────────────────────────────────────────────────────────────────── */

/* Logo — ensure perfect vertical centering and no baseline shift */
.nav-logo {
  align-items: center;
  line-height: 1;
}
.nav-logo-img {
  display: block;
  vertical-align: middle;
  /* Sharp rendering on all screens */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Nav links — more polished hover pill, animated underline via box-shadow */
.nav-links a {
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: left 0.2s ease, right 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 12px;
  right: 12px;
  opacity: 1;
}
/* Don't show underline on the dropdown trigger (has its own indicator) */
.nav-dropdown > a::after {
  display: none;
}

/* Nav action buttons — consistent gap */
.nav-actions {
  gap: 10px;
}

/* Theme toggle — smoother icon swap */
.theme-toggle {
  transition: border-color 0.18s ease,
              color 0.18s ease,
              background 0.18s ease,
              transform 0.18s ease;
}
.theme-toggle:hover {
  transform: rotate(15deg);
}

/* Dropdown menu — refined shadow and open animation */
.dropdown-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28),
              0 4px 12px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(0, 200, 150, 0.08);
}
.dropdown-item {
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  border-radius: 10px;
}
.dropdown-item:hover {
  transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. SIDEBAR PANELS & CARDS — SUBTLE DEPTH
   ───────────────────────────────────────────────────────────────────────────── */

.sidebar-panel {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 200, 150, 0.03);
  transition: box-shadow 0.2s ease;
}

.seo-sidebar-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.seo-sidebar-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Step cards */
.step-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 200, 150, 0.1);
}

/* Feature cards */
.feature-card {
  border-radius: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.feature-card:hover {
  background: var(--bg-card);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Pro feature cards */
.pro-feature-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pro-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

/* Result cards */
.result-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 200, 150, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. UPLOAD ZONE POLISH
   Stronger drag-over glow, smoother transition.
   ───────────────────────────────────────────────────────────────────────────── */

.upload-zone {
  transition: border-color 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}
.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(0, 200, 150, 0.025);
}
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(0, 200, 150, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.1), inset 0 0 24px rgba(0, 200, 150, 0.04);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. FLOATING HERO CARDS
   Improve shadow depth for premium SaaS floating cards feel.
   ───────────────────────────────────────────────────────────────────────────── */

.floating-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              0 2px 8px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(0, 200, 150, 0.08);
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. FORM INPUTS — MICRO-INTERACTIONS
   Smoother focus ring, input scale-in on focus.
   ───────────────────────────────────────────────────────────────────────────── */

.form-control {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.14);
  outline: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. SCROLL-BASED NAVBAR SHADOW
   Ensures .scrolled class gets a clean layered shadow.
   ───────────────────────────────────────────────────────────────────────────── */

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28),
              0 1px 0 rgba(0, 200, 150, 0.06);
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. SOCIAL LINKS (footer)
   Consistent with card hover system.
   ───────────────────────────────────────────────────────────────────────────── */

.social-link {
  will-change: transform;
  transition: transform 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, background 0.18s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. FAQ ITEMS
   Subtle hover state before open.
   ───────────────────────────────────────────────────────────────────────────── */

.faq-item {
  transition: box-shadow 0.18s ease;
}
.faq-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.faq-q {
  transition: color 0.18s ease, background 0.18s ease;
  border-radius: inherit;
}
.faq-q:hover {
  background: rgba(0, 200, 150, 0.04);
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. COMPLIANCE CHECKER CARD
   ───────────────────────────────────────────────────────────────────────────── */

.compliance-check-item {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.compliance-check-item:hover {
  transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. LIGHT THEME SHADOW SYSTEM
   In light mode, shadows need colour correction — less dark, more tinted.
   ───────────────────────────────────────────────────────────────────────────── */

[data-theme="light"] .tool-card {
  box-shadow: 0 2px 10px rgba(0, 100, 60, 0.07), 0 0 0 1px rgba(0, 200, 150, 0.05);
}
[data-theme="light"] .tool-card:hover {
  box-shadow: 0 12px 32px rgba(0, 100, 60, 0.12),
              0 0 0 1px rgba(0, 200, 150, 0.2);
}
[data-theme="light"] .blog-card {
  box-shadow: 0 2px 10px rgba(0, 100, 60, 0.07);
}
[data-theme="light"] .blog-card:hover {
  box-shadow: 0 14px 36px rgba(0, 100, 60, 0.12),
              0 0 0 1px rgba(0, 200, 150, 0.2);
}
[data-theme="light"] .preset-card {
  box-shadow: 0 2px 8px rgba(0, 100, 60, 0.06);
}
[data-theme="light"] .preset-card:hover {
  box-shadow: 0 10px 28px rgba(0, 100, 60, 0.1),
              0 0 0 1px rgba(0, 200, 150, 0.2);
}
[data-theme="light"] .floating-card {
  box-shadow: 0 8px 32px rgba(0, 80, 40, 0.14), 0 2px 8px rgba(0, 80, 40, 0.08);
}
[data-theme="light"] .navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 80, 40, 0.1), 0 1px 0 rgba(0, 200, 150, 0.08);
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. REDUCED MOTION — RESPECT ACCESSIBILITY PREFERENCE
   Users who prefer reduced motion get no transforms.
   ───────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .tool-card,
  .blog-card,
  .preset-card,
  .feature-card,
  .step-card,
  .result-card,
  .social-link,
  .export-platform-card,
  .related-tool-link,
  .blog-related-card,
  .faq-item,
  .compliance-check-item,
  .dropdown-item,
  .nav-links a,
  .theme-toggle {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
  .floating-card { animation: none !important; }
  .hero-badge::before { animation: none !important; }
  .progress-bar-fill { animation: none !important; }
}

/* ── END OF POLISH PATCH v1.0 ── */
