/* ── BREADCRUMB ── */
.breadcrumb { display:flex; justify-content:center; margin-bottom:20px; }
.breadcrumb ol { display:flex; gap:4px; list-style:none; padding:0; margin:0; font-size:13px; color:var(--text-muted); }
.breadcrumb a { color:var(--text-muted); text-decoration:none; }
.breadcrumb a:hover { color:var(--text); }
.breadcrumb li+li::before { content:'/'; margin-right:4px; color:var(--text-muted); }

/* ── HERO ── */
.tpl-hero { padding:120px 40px 64px; text-align:center; max-width:900px; margin:0 auto; }
.tpl-hero h1 { font-family:'Syne',sans-serif; font-size:clamp(36px,5vw,60px); font-weight:800; line-height:1.05; letter-spacing:-1.5px; margin-bottom:20px; color:var(--text); }
.tpl-hero h1 em { font-style:normal; color:var(--accent); }
.tpl-hero-desc { font-size:18px; color:var(--text-muted); max-width:560px; margin:0 auto 32px; line-height:1.6; }
.tpl-hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ── STATS BAR ── */
.tpl-stats { display:flex; justify-content:center; gap:48px; padding:24px 40px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(255,255,255,.02); flex-wrap:wrap; }
.tpl-stat { text-align:center; }
.tpl-stat-num { font-family:'Syne',sans-serif; font-size:28px; font-weight:800; color:var(--accent); }
.tpl-stat-label { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }

/* ── TEMPLATE GRID ── */
.tpl-grid-section { padding:64px 40px; max-width:1280px; margin:0 auto; }
.tpl-grid-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; flex-wrap:wrap; gap:12px; }
.tpl-grid-header h2 { font-family:'Syne',sans-serif; font-size:22px; font-weight:700; color:var(--text); }
.tpl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.tpl-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; cursor:pointer; transition:border-color .2s,transform .2s,box-shadow .2s; }
.tpl-card:hover { border-color:var(--accent); transform:translateY(-3px); box-shadow:0 8px 32px rgba(232,255,87,.08); }
.tpl-card-thumb { width:100%; overflow:hidden; position:relative; }
.tpl-card-info { padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tpl-card-name { font-size:13px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tpl-card-badge { font-size:10px; background:rgba(232,255,87,.12); color:var(--accent); border:1px solid rgba(232,255,87,.25); padding:2px 8px; border-radius:99px; white-space:nowrap; font-weight:600; text-transform:uppercase; letter-spacing:.04em; flex-shrink:0; }

/* ── CTA BANNER ── */
.tpl-cta-banner { background:var(--accent); padding:64px 40px; text-align:center; }
.tpl-cta-banner h2 { font-family:'Syne',sans-serif; font-size:clamp(28px,3vw,40px); font-weight:800; color:#0d0d0d; margin-bottom:16px; }
.tpl-cta-banner p { color:rgba(0,0,0,.65); font-size:16px; margin-bottom:28px; }
.btn-dark { background:#0d0d0d; color:#e8ff57; border:none; padding:14px 32px; border-radius:8px; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; transition:opacity .2s; }
.btn-dark:hover { opacity:.88; }

/* ── FEATURES ── */
.tpl-features { padding:80px 40px; max-width:1100px; margin:0 auto; }
.tpl-features-header { text-align:center; margin-bottom:48px; }
.tpl-features-header h2 { font-family:'Syne',sans-serif; font-size:clamp(24px,3vw,36px); font-weight:800; color:var(--text); margin-bottom:12px; }
.tpl-features-header p { color:var(--text-muted); font-size:16px; }
.tpl-feat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:24px; }
.tpl-feat-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:28px 24px; }
.tpl-feat-icon { width:40px; height:40px; background:rgba(232,255,87,.1); border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--accent); }
.tpl-feat-card h3 { font-size:15px; font-weight:600; color:var(--text); margin-bottom:8px; }
.tpl-feat-card p { font-size:13px; color:var(--text-muted); line-height:1.6; }

/* ── CATEGORY CHIPS ── */
.tpl-cats-section { padding:64px 40px; max-width:1100px; margin:0 auto; border-top:1px solid var(--border); }
.tpl-cats-section h2 { font-family:'Syne',sans-serif; font-size:22px; font-weight:700; color:var(--text); margin-bottom:24px; }
.tpl-cat-chips { display:flex; flex-wrap:wrap; gap:10px; }
.tpl-cat-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; background:var(--surface); border:1px solid var(--border); border-radius:99px; font-size:13px; font-weight:500; color:var(--text); text-decoration:none; transition:border-color .2s,color .2s; }
.tpl-cat-chip:hover { border-color:var(--accent); color:var(--accent); }
.tpl-cat-chip.active { background:rgba(232,255,87,.12); border-color:var(--accent); color:var(--accent); }

/* ── FAQ ── */
.tpl-faq-section { padding:80px 40px; max-width:800px; margin:0 auto; }
.tpl-faq-section h2 { font-family:'Syne',sans-serif; font-size:clamp(22px,2.5vw,32px); font-weight:800; color:var(--text); margin-bottom:40px; text-align:center; }
.faq-item { border-bottom:1px solid var(--border); padding:24px 0; }
.faq-item:first-of-type { border-top:1px solid var(--border); }
.faq-q { font-size:16px; font-weight:600; color:var(--text); margin-bottom:10px; }
.faq-a { font-size:14px; color:var(--text-muted); line-height:1.7; }
.faq-a a { color:var(--accent); }

/* ── TEMPLATES HUB (index.html) ── */
.tpl-hub-hero { padding:120px 40px 64px; text-align:center; }
.tpl-hub-hero h1 { font-family:'Syne',sans-serif; font-size:clamp(40px,6vw,72px); font-weight:800; letter-spacing:-2px; line-height:1.02; margin-bottom:20px; color:var(--text); }
.tpl-hub-hero h1 em { font-style:normal; color:var(--accent); }
.tpl-hub-hero p { font-size:18px; color:var(--text-muted); max-width:520px; margin:0 auto 32px; line-height:1.6; }
.tpl-cat-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; padding:0 40px 80px; max-width:1280px; margin:0 auto; }
.tpl-cat-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; text-decoration:none; transition:border-color .2s,transform .2s; display:block; }
.tpl-cat-card:hover { border-color:var(--accent); transform:translateY(-3px); }
.tpl-cat-card-thumb { height:160px; overflow:hidden; background:var(--surface); display:grid; grid-template-columns:1fr 1fr; gap:2px; padding:12px; }
.tpl-cat-card-mini { background:var(--border); border-radius:6px; overflow:hidden; }
.tpl-cat-card-body { padding:16px 20px 20px; }
.tpl-cat-card-name { font-family:'Syne',sans-serif; font-size:16px; font-weight:700; color:var(--text); margin-bottom:4px; }
.tpl-cat-card-count { font-size:12px; color:var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width:768px) {
  .tpl-hero { padding:100px 20px 48px; }
  .tpl-grid-section { padding:48px 20px; }
  .tpl-features { padding:60px 20px; }
  .tpl-cats-section { padding:48px 20px; }
  .tpl-faq-section { padding:60px 20px; }
  .tpl-stats { gap:24px; padding:20px; }
  .tpl-cta-banner { padding:48px 20px; }
  .tpl-hub-hero { padding:100px 20px 48px; }
  .tpl-cat-cards { padding:0 20px 60px; }
}
