/* Extracted from templates.html style block 1 */
@keyframes slideIn { from { transform: translateX(100px); opacity:0; } to { transform: translateX(0); opacity:1; } }

    .hero {
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
      color: #fff;
      padding: 64px 32px;
      text-align: center;
    }
    .hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
    .hero p  { font-size: 18px; opacity: .85; margin-bottom: 32px; }
    .hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn-white {
      background: #fff; color: #4f46e5; padding: 12px 28px;
      border-radius: 8px; font-weight: 700; text-decoration: none;
      border: none; cursor: pointer; font-size: 15px; transition: all .2s;
    }
    .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
    .btn-ghost {
      background: transparent; color: #fff; padding: 12px 28px;
      border-radius: 8px; font-weight: 700; text-decoration: none;
      border: 2px solid rgba(255,255,255,.5); font-size: 15px; transition: all .2s;
    }
    .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

    .filters {
      display: flex; gap: 10px; flex-wrap: wrap;
      padding: 24px 32px; background: var(--surface);
      border-bottom: 1px solid var(--border);
      align-items: center;
    }
    .filter-btn {
      padding: 8px 18px; border-radius: 999px; border: 2px solid var(--border);
      background: transparent; cursor: pointer; font-size: 13px; font-weight: 600;
      color: var(--text-muted); transition: all .2s;
    }
    .filter-btn:hover, .filter-btn.active {
      border-color: var(--primary); color: var(--primary);
      background: rgba(79,70,229,.06);
    }
    .filter-search {
      margin-left: auto;
      padding: 8px 16px; border-radius: 8px; border: 2px solid var(--border);
      font-size: 14px; color: var(--text); background: var(--bg);
      width: 220px;
    }
    .filter-search:focus { outline: none; border-color: var(--primary); }

    .templates-section { padding: 32px; max-width: 1200px; margin: 0 auto; }
    .section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

    .tpl-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }
    .tpl-card {
      background: var(--surface); border-radius: 14px;
      border: 2px solid var(--border); overflow: hidden;
      transition: all .25s; cursor: pointer;
    }
    .tpl-card:hover {
      border-color: var(--primary);
      transform: translateY(-6px);
      box-shadow: 0 16px 32px rgba(79,70,229,.15);
    }
    .tpl-thumb {
      height: 180px; overflow: hidden; position: relative;
      background: linear-gradient(135deg, #f5f5f0, #e8e4d9);
    }
    .tpl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
    .tpl-card:hover .tpl-thumb img { transform: scale(1.05); }
    .tpl-thumb-placeholder {
      width: 100%; height: 100%; display: flex; align-items: center;
      justify-content: center; font-size: 48px;
    }
    .tpl-premium-badge {
      position: absolute; top: 10px; right: 10px;
      background: linear-gradient(135deg, #c8a84b, #f0c040);
      color: #fff; padding: 4px 10px; border-radius: 999px;
      font-size: 11px; font-weight: 700; letter-spacing: .03em;
    }
    .tpl-body { padding: 16px; }
    .tpl-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
    .tpl-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
    .tpl-actions { display: flex; gap: 8px; }

    .cta-box {
      background: linear-gradient(135deg, #f0f0ff, #faf5ff);
      border: 2px solid #c4b5fd; border-radius: 16px;
      padding: 40px; text-align: center; margin: 40px 0;
    }
    .cta-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
    .cta-box p  { color: var(--text-muted); margin-bottom: 24px; }

    /* Preview modal */
    .preview-modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.75);
      display: flex; align-items: center; justify-content: center;
      z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .2s;
      padding: 20px;
    }
    .preview-modal-overlay.open { opacity: 1; pointer-events: all; }
    .preview-modal {
      background: var(--surface); border-radius: 16px; overflow: hidden;
      max-width: 800px; width: 100%;
      transform: scale(.95); transition: transform .2s;
    }
    .preview-modal-overlay.open .preview-modal { transform: scale(1); }
    .preview-modal-img { width: 100%; max-height: 500px; object-fit: contain; background: #f5f5f0; }
    .preview-modal-body { padding: 24px; }
    .preview-modal-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
    .preview-modal-footer { display: flex; gap: 12px; margin-top: 20px; }
/* Extracted inline styles from templates.html */
.templates-inline-1 { grid-column:1/-1; text-align:center; padding:60px; }
.templates-inline-2 { margin:auto; }
.templates-inline-3 { display:none; }
.templates-inline-4 { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.templates-inline-5 { color:var(--text-muted); font-size:14px; }
.templates-inline-6 { grid-column:1/-1;text-align:center;color:var(--text-muted);padding:40px; }
.templates-inline-7 { grid-column:1/-1;text-align:center;padding:60px;color:var(--text-muted); }
.templates-inline-8 { font-size:40px;margin-bottom:12px; }
