/* ═══════════════════════════════════════════════
   Nex-MemeGif — Global Styles (Clean Light / Nex Family)
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --purple: #6d3bef;
  --purple-light: #f0ebff;
  --purple-mid: #8b5cf6;
  --purple-dark: #5727cc;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border: #e8eaf0;
  --border-hover: #6d3bef;
  --text: #0f172a;
  --text-mid: #475569;
  --text-light: #64748b;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Top Nav ── */
.top-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.top-nav::after {
  content: '';
  position: absolute; bottom: 0; left: 24px; right: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple) 25%, var(--purple) 75%, transparent);
  border-radius: 2px;
}
.top-nav-wrap {
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800; font-size: 20px;
  color: var(--purple);
  text-decoration: none;
  padding: 14px 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-hex { flex-shrink: 0; }
.nav-logo span { color: var(--text); }
.nav-logo em { font-style: italic; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-mid); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  padding: 10px 16px; border-radius: 8px;
  position: relative;
}
.nav-links a:hover {
  color: var(--purple); background: var(--purple-light);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--purple); background: var(--purple-light);
  font-weight: 700;
}
.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--text); padding: 4px;
}
.nav-mobile { display: none; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 13px; color: var(--text-light);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumbs-wrap {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--text-mid); text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs .sep { margin: 0 6px; color: var(--text-light); }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ── Main Container ── */
.main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Hero Section ── */
.hero {
  padding: 29px 24px 28px;
  background: var(--bg);
  min-height: 340px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-left { max-width: 520px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(109,59,239,0.06); border: 1.5px solid #d4c4f7;
  border-radius: 20px; font-size: 13px;
  color: var(--purple); font-weight: 700;
  margin-bottom: 18px;
  min-height: 33px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 900;
  line-height: 1.15; margin-bottom: 14px;
  color: var(--text);
  min-height: 110px;
}
.hero h1 .accent { color: var(--purple); }
.hero p {
  font-size: 16px; color: var(--text-mid);
  margin: 0 0 24px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Hero Carousel ── */
.hero-right { position: relative; height: 360px; display: flex; align-items: center; justify-content: center; }
.carousel-container { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: none;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  max-width: 85%; max-height: 320px;
  filter: drop-shadow(0 8px 30px rgba(109,59,239,0.12));
}
.carousel-caption {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(109,59,239,0.08); border: 1px solid rgba(109,59,239,0.15);
  padding: 5px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--purple); white-space: nowrap;
  opacity: 0; transition: opacity 0.5s 0.8s;
}
.carousel-slide.active .carousel-caption { opacity: 1; }

/* Carousel transition effects */
.fx-fade .carousel-slide { transition: opacity 1.5s ease; }
.fx-scale .carousel-slide { transition: opacity 1.5s ease, transform 1.5s ease; transform: scale(0.7); }
.fx-scale .carousel-slide.active { transform: scale(1); }
.fx-slide-right .carousel-slide { transition: opacity 1.5s ease, transform 1.5s ease; transform: translateX(80px); }
.fx-slide-right .carousel-slide.active { transform: translateX(0); }
.fx-slide-left .carousel-slide { transition: opacity 1.5s ease, transform 1.5s ease; transform: translateX(-80px); }
.fx-slide-left .carousel-slide.active { transform: translateX(0); }
.fx-rise .carousel-slide { transition: opacity 1.5s ease, transform 1.5s ease; transform: translateY(50px); }
.fx-rise .carousel-slide.active { transform: translateY(0); }
.fx-rotate .carousel-slide { transition: opacity 1.5s ease, transform 1.5s ease; transform: rotate(-8deg) scale(0.85); }
.fx-rotate .carousel-slide.active { transform: rotate(0deg) scale(1); }
.fx-zoom-out .carousel-slide { transition: opacity 1.5s ease, transform 1.5s ease; transform: scale(1.3); }
.fx-zoom-out .carousel-slide.active { transform: scale(1); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  font-family: var(--font-head);
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 8px rgba(109,59,239,0.25);
}
.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 4px 16px rgba(109,59,239,0.35);
  transform: translateY(-1px); text-decoration: none; color: #fff;
}
.btn-secondary {
  background: var(--purple-light); color: var(--purple);
  border: 1.5px solid #d4c4f7;
}
.btn-secondary:hover {
  background: #e4d8fc; border-color: var(--purple);
  box-shadow: 0 2px 8px rgba(109,59,239,0.15);
  text-decoration: none;
}
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-icon { padding: 8px 12px; }

/* ── Section Titles ── */
.section-label {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--purple); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 2px;
}
.section-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: 28px; font-weight: 800;
  color: var(--text); margin-bottom: 4px;
}
.section-desc {
  text-align: center; font-size: 15px;
  color: var(--text-mid); max-width: 500px;
  margin: 0 auto 16px;
}

/* ── Tool Cards Grid ── */
.tools-section { padding: 8px 24px 8px; }
.tools-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; max-width: 1200px; margin: 0 auto;
}
/* Section wrapper box for visual demarcation */
.section-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  max-width: 1200px; margin: 0 auto 8px;
}
.section-box .section-label { text-align: left; margin-bottom: 2px; }
.section-box .section-title { text-align: left; font-size: 22px; margin-bottom: 4px; }
.section-box .section-desc { text-align: left; margin: 0 0 16px; max-width: none; }
.section-box .tools-grid { max-width: none; }
.tool-card {
  background: var(--bg-card);
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  padding: 20px; transition: all 0.25s;
  text-decoration: none; color: inherit;
  display: block;
}
.tool-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(109,59,239,0.12);
  transform: translateY(-3px);
  text-decoration: none;
}
.tool-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
  background: var(--purple-light);
}
.tool-card h3 {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.tool-card p {
  font-size: 12px; color: var(--text-light); line-height: 1.5;
}
.tool-badge {
  display: inline-block; padding: 2px 8px;
  font-size: 10px; font-weight: 700;
  background: var(--purple); color: #fff;
  border-radius: 4px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tool-badge.new { background: var(--success); }
.tool-badge.soon { background: var(--text-light); }

/* ── Tool Page Layout ── */
.tool-area {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px 24px;
}
.tool-header {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 10px;
}
.tool-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--purple-light);
  flex-shrink: 0;
}
.tool-title {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 800;
  color: var(--text); margin-bottom: 4px;
}
.tool-desc {
  font-size: 14px; color: var(--text-mid); line-height: 1.6;
}

/* ── Panels ── */
.panels {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px;
}
.panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-full { grid-column: 1 / -1; }
.panel-head {
  padding: 12px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.panel-label {
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  color: var(--text); text-transform: uppercase;
  letter-spacing: 1px;
}
.panel-body { padding: 18px; }

/* ── Form Controls ── */
.cc-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-mid); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cc-input, .cc-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  transition: border-color 0.2s;
}
.cc-input:focus, .cc-select:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109,59,239,0.1);
}
.cc-range {
  width: 100%; accent-color: var(--purple);
}

/* ── Canvas / Preview Area ── */
.canvas-wrap {
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 0 0/20px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; position: relative;
  overflow: hidden;
}
.canvas-wrap canvas { max-width: 100%; max-height: 500px; }

/* ── Upload Area ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
  cursor: pointer; transition: all 0.2s;
  background: var(--bg-subtle);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--purple);
  background: var(--purple-light);
}
.upload-zone .upload-icon {
  font-size: 36px; margin-bottom: 8px; display: block;
}
.upload-zone .upload-text {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.upload-zone .upload-hint {
  font-size: 12px; color: var(--text-light); margin-top: 4px;
}

/* ── Image Thumbnails ── */
.thumb-list {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 0;
}
.thumb-item {
  width: 72px; height: 72px; border-radius: 8px;
  overflow: hidden; border: 2px solid var(--border);
  position: relative; cursor: grab;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item .thumb-remove {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--error); color: #fff;
  border: none; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.thumb-item.active { border-color: var(--purple); }

/* ── Meme Template Grid ── */
.template-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.template-item {
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  border: 2px solid var(--border);
  transition: all 0.2s;
  background: var(--bg-subtle);
  display: flex; flex-direction: column;
  font-size: 11px; font-weight: 600;
  color: var(--text-mid); text-align: center;
}
.template-item span { padding: 6px 4px; display: block; line-height: 1.3; }
.template-item:hover { border-color: var(--purple); transform: scale(1.03); }
.template-item.active { border-color: var(--purple); border-width: 3px; }
.template-item img { width: 100%; height: 120px; object-fit: cover; display: block; }

/* ── Status / Alerts ── */
.status {
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  margin-top: 12px; display: none;
}
.status.success { display: block; background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.status.error { display: block; background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.status.info { display: block; background: var(--purple-light); color: var(--purple); border: 1px solid #d4c4f7; }

/* ── Progress Bar ── */
.progress-wrap {
  width: 100%; height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden; margin-top: 12px;
}
.progress-bar {
  height: 100%; background: var(--purple);
  border-radius: 4px; transition: width 0.3s;
  width: 0%;
}


/* ── Sidebar Ads (Left/Right) ── */
.ad-sidebar {
  position: fixed;
  top: 80px;
  width: 160px;
  height: calc(100vh - 100px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
  z-index: 10;
  pointer-events: none;
}
.ad-sidebar-inner {
  width: 160px;
  min-height: 600px;
  position: sticky;
  top: 80px;
  pointer-events: auto;
  /* Uncomment when AdSense is ready:
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-light); */
}
.ad-sidebar-left {
  left: calc((100vw - 1200px) / 2 - 176px);
}
.ad-sidebar-right {
  right: calc((100vw - 1200px) / 2 - 176px);
}
@media (min-width: 1580px) {
  .ad-sidebar { display: flex; }
}

/* ── Ad Slots ── */
.ad-slot {
  min-height: 0; border-radius: var(--radius-sm);
  margin: 4px 0 12px;
  /* Uncomment when AdSense is ready:
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); border: 1px dashed var(--border);
  font-size: 11px; color: var(--text-light); */
}

/* ── Info Section ── */
.info-section { margin: 12px 0; }
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.info-card {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
}
.info-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 4px; font-size: 11px; font-weight: 700;
  background: var(--purple-light); color: var(--purple);
  margin-bottom: 8px;
}
.info-card h4 {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700; margin-bottom: 6px;
}
.info-card p, .info-card li {
  font-size: 13px; color: var(--text-mid); line-height: 1.6;
}
.info-card ul { padding-left: 18px; }
.info-card li { margin-bottom: 4px; }

/* ── Cross-Link Callout ── */
.cross-link-box {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-subtle); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 18px 24px; margin: 40px 0;
  transition: border-color 0.2s;
}
.cross-link-box:hover { border-color: var(--purple); }
.cross-link-icon { font-size: 32px; flex-shrink: 0; }
.cross-link-box strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 2px; }
.cross-link-box p { font-size: 13px; color: var(--text-mid); margin: 0; line-height: 1.5; }
@media (max-width: 640px) {
  .cross-link-box { flex-direction: column; text-align: center; }
}

/* ── FAQ Section (shared) ── */
.faq-section {
  margin: 32px 0;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}
.faq-section h2 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800; margin-bottom: 14px;
}

/* Style 1: Grid Cards */
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px;
}
.faq-card {
  background: var(--bg-subtle); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 18px 20px; transition: border-color 0.2s;
}
.faq-card:hover { border-color: var(--purple); }
.faq-card-q {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px;
}
.faq-card-q .q-badge {
  background: var(--purple-light); color: var(--purple); font-weight: 700;
  font-size: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.faq-card-q span:last-child { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.5; }
.faq-card-a { font-size: 13px; color: var(--text-mid); line-height: 1.7; padding-left: 36px; }

/* Style 2: Numbered List */
.faq-numbered .faq-num-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 0;
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.faq-numbered .faq-num-item:last-child { border-bottom: none; }
.faq-num-n {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  color: rgba(109,59,239,0.1); line-height: 1;
}
.faq-num-q { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.faq-num-a { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* Style 3: Two-Column Table */
.faq-table {
  border-radius: 12px; border: 1.5px solid var(--border); overflow: hidden;
}
.faq-table-row {
  display: grid; grid-template-columns: 1fr 1.5fr;
  border-bottom: 1px solid var(--border);
}
.faq-table-row:last-child { border-bottom: none; }
.faq-table-q {
  padding: 14px 18px; font-weight: 700; font-size: 14px; color: var(--text);
  background: var(--bg-subtle); border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.faq-table-q .q-icon { color: var(--purple); font-size: 14px; flex-shrink: 0; }
.faq-table-a { padding: 14px 18px; font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* Style 4: Chat Bubbles */
.faq-chat { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.faq-chat-pair { display: flex; flex-direction: column; gap: 6px; }
.faq-bubble-q {
  display: flex; justify-content: flex-end;
}
.faq-bubble-q span {
  background: var(--purple); color: #fff; padding: 10px 16px;
  border-radius: 14px 14px 4px 14px; font-size: 14px; font-weight: 600; max-width: 80%;
}
.faq-bubble-a {
  display: flex; justify-content: flex-start;
}
.faq-bubble-a span {
  background: var(--bg-subtle); border: 1px solid var(--border); padding: 10px 16px;
  border-radius: 14px 14px 14px 4px; font-size: 13px; color: var(--text-mid);
  line-height: 1.7; max-width: 80%;
}

/* Responsive for FAQ styles */
@media (max-width: 640px) {
  .faq-section { padding: 18px 16px; }
  .faq-table-row { grid-template-columns: 1fr; }
  .faq-table-q { border-right: none; border-bottom: 1px solid var(--border); }
  .faq-bubble-q span, .faq-bubble-a span { max-width: 95%; }
}

/* ── Related Tools ── */
.related-section { margin: 24px 0; }
.related-section h2 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800; margin-bottom: 14px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: #ccc; padding: 48px 32px 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px; max-width: 1200px; margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  color: #fff; margin-bottom: 10px;
}
.footer-desc {
  font-size: 13px; line-height: 1.6; color: #999;
}
.footer-tagline {
  font-size: 14px; font-weight: 700; color: #ccc;
  margin-bottom: 10px;
}
.footer-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.footer-points li {
  font-size: 12.5px; color: #999; line-height: 1.5;
  padding-left: 16px; position: relative;
}
.footer-points li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--purple-mid); font-weight: 700; font-size: 11px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin-bottom: 12px;
}
.footer-col a {
  display: block; color: #999; font-size: 13px;
  text-decoration: none; margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--purple-mid); text-decoration: none; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid #333;
  display: flex; justify-content: center;
  align-items: center; max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-copy { font-size: 12px; color: #9ca3af; }

/* ── Feedback Form ── */
.feedback-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 32px 0 8px; padding: 12px 24px;
  background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: 10px; cursor: pointer; transition: all 0.25s;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text-mid);
}
.feedback-trigger:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.feedback-trigger .fb-icon { font-size: 16px; }

.feedback-panel {
  display: none; margin: 0 0 16px;
  background: var(--bg-subtle); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 24px 28px;
  animation: fbSlide 0.3s ease;
}
.feedback-panel.open { display: block; }
@keyframes fbSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.feedback-panel h3 {
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  color: var(--text); margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.feedback-panel h3 .fb-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-light); line-height: 1;
}
.feedback-panel h3 .fb-close:hover { color: var(--error); }

.fb-type-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.fb-type-tab {
  padding: 11px 14px; border: 2px solid var(--border);
  background: var(--bg); cursor: pointer; font-family: var(--font-body);
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.fb-type-tab:first-child { border-radius: 10px 0 0 10px; }
.fb-type-tab:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.fb-type-tab.active { border-color: var(--purple); background: var(--purple-light); color: var(--purple); }
.fb-type-tab:hover:not(.active) { border-color: var(--purple-mid); background: rgba(109,59,239,0.03); }
.fb-tab-icon { font-size: 15px; }

.fb-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.fb-char-count {
  text-align: right; font-size: 11px; color: var(--text-light);
  margin-top: 4px; font-family: var(--font-mono);
  transition: color 0.2s;
}
.fb-char-count.over { color: var(--error); font-weight: 700; }
.fb-char-count.over #fbCharNum { color: var(--error); }
.fb-char-warn {
  color: var(--error); font-size: 12px; font-weight: 600;
  margin-top: 4px; padding: 6px 10px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px;
}

.fb-field { margin-bottom: 14px; }
.fb-field label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
}
.fb-field input, .fb-field textarea, .fb-field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; background: var(--bg); font-family: var(--font-body);
  font-size: 13px; color: var(--text); transition: border-color 0.2s;
  box-sizing: border-box;
}
.fb-field input:focus, .fb-field textarea:focus { border-color: var(--purple); outline: none; }
.fb-field textarea { resize: vertical; min-height: 80px; }
.fb-field input[readonly] { background: var(--bg-subtle); color: var(--text-light); }

.fb-screenshot-zone {
  border: 2px dashed var(--border); border-radius: 8px; padding: 14px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  font-size: 12px; color: var(--text-mid);
}
.fb-screenshot-zone:hover { border-color: var(--purple); color: var(--purple); }
.fb-screenshot-zone.has-file { border-color: var(--success); border-style: solid; }
.fb-screenshot-preview {
  display: none; margin-top: 8px; position: relative;
}
.fb-screenshot-preview img {
  max-height: 80px; border-radius: 6px; border: 1px solid var(--border);
}
.fb-screenshot-preview .fb-remove-img {
  position: absolute; top: -6px; right: -6px;
  background: var(--error); color: #fff; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 11px; cursor: pointer; line-height: 20px;
}

.fb-captcha {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.fb-captcha-q {
  background: var(--purple-light); color: var(--purple); font-weight: 700;
  font-size: 14px; padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  font-family: var(--font-mono);
}
.fb-captcha input {
  width: 70px; padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center;
  font-family: var(--font-mono);
}
.fb-captcha input:focus { border-color: var(--purple); outline: none; }

.fb-submit-row {
  display: flex; gap: 10px; align-items: center;
}
.fb-submit-btn {
  padding: 10px 28px; border: none; border-radius: 8px;
  background: var(--purple); color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.fb-submit-btn:hover { background: var(--purple-mid); transform: translateY(-1px); }
.fb-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.fb-status {
  font-size: 12px; color: var(--text-mid);
}
.fb-status.success { color: var(--success); font-weight: 600; }
.fb-status.error { color: var(--error); font-weight: 600; }

.fb-uploading {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--purple); font-weight: 600;
}

@media (max-width: 640px) {
  .feedback-panel { padding: 18px 16px; }
  .fb-row-2 { grid-template-columns: 1fr; gap: 0; }
  .fb-captcha { flex-wrap: wrap; }
  .fb-submit-row { flex-direction: column; align-items: stretch; }
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .top-nav { padding: 10px 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 2px solid var(--purple);
    box-shadow: var(--shadow-lg); z-index: 99;
  }
  .nav-mobile a {
    padding: 14px 20px; font-size: 14px; font-weight: 600;
    color: var(--text-mid); text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile a:hover { background: var(--purple-light); color: var(--purple); }
  .hero { padding: 24px 16px 22px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { max-width: 100%; margin: 0 auto; }
  .hero-btns { justify-content: center; }
  .hero-right { display: none; }
  .hero h1 { font-size: 30px; min-height: auto; }
  .hero p { font-size: 15px; }
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { padding: 16px; }
  .tool-area { padding: 16px 16px 20px; }
  .tool-header { flex-direction: column; }
  .tool-title { font-size: 22px; }
  .breadcrumbs { padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-title { font-size: 22px; }
  .section-box { padding: 16px 12px 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .tools-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .main { padding: 0 12px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .section-title { font-size: 18px; }
  .tool-title { font-size: 20px; }
}
