/* ================================
       BASE LAYOUT & TYPOGRAPHY
    ==================================*/
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: radial-gradient(circle at top, #0f172a 0%, #020617 55%, #020617 100%);
      color: #f9fafb;
    }

    a {
      color: inherit;
    }

    /* ================================
       HEADER (STICKY TOP BAR)
    ==================================*/
    header {
      position: sticky;
      top: 0;
      z-index: 20;
      padding: 14px 10%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(2, 6, 23, 0.94);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(31, 41, 55, 0.8);
    }

    header h1 {
      font-size: 18px;
      margin: 0;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #e5e7eb;
      white-space: nowrap;
    }

    header nav a {
      margin-left: 20px;
      color: #e5e7eb;
      text-decoration: none;
      font-size: 13px;
      opacity: 0.8;
      transition: opacity 0.2s ease, color 0.2s ease;
    }

    header nav a:hover {
      opacity: 1;
      color: #22c55e;
    }

    /* ================================
       IMPROVED HERO SECTION
    ==================================*/
    .hero {
      padding: 80px 10% 70px;
      max-width: 1000px;
      margin: 0 auto;
      text-align: center;
    }

    .hero-eyebrow {
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-size: 11px;
      color: #a5b4fc;
      margin-bottom: 12px;
    }

    .hero h2 {
      font-size: 38px;
      line-height: 1.2;
      margin-bottom: 16px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-subtitle {
      margin-top: 1rem;
      max-width: 600px;
      font-size: 15px;
      color: #d1d5db;
      line-height: 1.6;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin: 2rem auto 1.5rem;
      align-items: center;
      justify-content: center;
    }

    .hero-stats {
      display: flex;
      gap: 24px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
      font-size: 12px;
      color: #9ca3af;
    }

    .hero-stats span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Hero buttons */
    .btn-primary,
    .btn-secondary {
      padding: 13px 28px;
      border-radius: 999px;
      font-size: 14px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      border: none;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
      font-weight: 600;
    }

    .btn-primary {
      background: linear-gradient(135deg, #22c55e, #4ade80);
      color: #022c22;
      box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(34, 197, 94, 0.45);
    }

    .btn-secondary {
      border: 1px solid #4b5563;
      color: #e5e7eb;
      font-size: 13px;
      background: rgba(15, 23, 42, 0.8);
      padding: 11px 20px;
    }

    .btn-secondary:hover {
      background: rgba(31, 41, 55, 0.9);
      border-color: #6b7280;
      transform: translateY(-1px);
    }

    /* ================================
       CREDIBILITY BAR (NEW)
    ==================================*/
    .credibility-bar {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
      border-top: 1px solid rgba(34, 197, 94, 0.15);
      border-bottom: 1px solid rgba(34, 197, 94, 0.15);
      padding: 20px 10%;
    }

    .credibility-content {
      max-width: 1000px;
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .cred-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: #d1d5db;
    }

    .cred-icon {
      font-size: 20px;
    }

    .cred-item strong {
      color: #22c55e;
      font-weight: 600;
    }

    /* ================================
       FEATURED / BESTSELLERS SECTION (NEW)
    ==================================*/
    .featured {
      padding: 60px 10%;
      background: #020617;
    }

    .featured-header {
      text-align: center;
      margin-bottom: 40px;
    }

       .featured-badge {
         display: inline-block;
         background: linear-gradient(135deg, #f59e0b, #fbbf24);
         color: #422006;
         font-size: 11px;
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 0.08em;
         padding: 5px 12px;
         border-radius: 999px;
         box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
         margin-bottom: 12px;
       }

    .featured h3 {
      font-size: 24px;
      margin: 0 0 8px 0;
      color: #e5e7eb;
    }

    .featured-subtitle {
      font-size: 13px;
      color: #9ca3af;
      max-width: 500px;
      margin: 0 auto;
    }

    .featured-grid {
      display: grid;
      gap: 24px;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      max-width: 1200px;
      margin: 0 auto;
    }

    .featured-card {
      position: relative;
      background: radial-gradient(circle at top left, #111827, #020617);
      border-radius: 16px;
      padding: 20px;
      border: 1px solid rgba(31, 41, 55, 0.9);
      box-shadow: 0 14px 25px rgba(0, 0, 0, 0.6);
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .featured-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
      border-color: rgba(251, 191, 36, 0.6);
    }

    .bestseller-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      background: linear-gradient(135deg, #f59e0b, #fbbf24);
      color: #422006;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 4px 10px;
      border-radius: 999px;
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }

    /* ================================
       QUICK ABOUT SECTION (NEW)
    ==================================*/
    .quick-about {
      padding: 50px 10%;
      background: linear-gradient(135deg, #020617, #0b1120);
    }

    .quick-about-content {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }

    .quick-about h3 {
      font-size: 22px;
      margin-bottom: 16px;
      color: #a5b4fc;
    }

    .quick-about p {
      font-size: 14px;
      color: #d1d5db;
      line-height: 1.7;
      margin-bottom: 20px;
    }

    .quick-about-cta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 20px;
      border-radius: 999px;
      border: 1px solid #a5b4fc55;
      background: rgba(15, 23, 42, 0.9);
      text-decoration: none;
      color: #a5b4fc;
      font-size: 13px;
      transition: all 0.2s ease;
    }

    .quick-about-cta:hover {
      background: rgba(31, 41, 55, 0.9);
      border-color: #a5b4fc;
      transform: translateY(-2px);
    }

    /* ================================
       TEMPLATES SECTIONS (EXISTING)
    ==================================*/
    .templates {
      padding: 50px 10%;
      background: #020617;
      border-top: 1px solid #111827;
      border-bottom: 1px solid #111827;
    }

    /* Section backgrounds */
    #templates-financial {
      background: radial-gradient(circle at top left, #020617 0%, #020617 40%, #04101f 100%);
      border-top-color: #0b1220;
      border-bottom-color: #293f6c;
    }

    #templates-productivity {
      background: radial-gradient(circle at top right, #020617 0%, #020617 35%, #111827 100%);
      border-top-color: #111827;
      border-bottom-color: #111827;
    }

    #templates-personal {
      background: radial-gradient(circle at top, #020617 0%, #020617 40%, #042f2e 100%);
      border-top-color: #064e3b;
      border-bottom-color: #064e3b;
    }

    #templates-free {
      background: radial-gradient(circle at top, #020617 0%, #020617 40%, #052e2b 100%);
      border-top-color: #064e3b;
      border-bottom-color: #064e3b;
    }

    .free-template-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border: 1px dashed rgba(74, 222, 128, 0.4);
      background:
        radial-gradient(circle at 50% 40%, rgba(34, 197, 94, 0.2), transparent 42%),
        linear-gradient(135deg, #0f172a, #052e2b);
      color: #d1fae5;
      text-align: center;
    }

    .free-template-placeholder-kicker,
    .free-template-placeholder-caption {
      color: #86efac;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.14em;
    }

    .free-template-placeholder-number {
      color: #f0fdf4;
      font-size: 38px;
      line-height: 1;
      text-shadow: 0 0 24px rgba(74, 222, 128, 0.3);
    }

    .free-template-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 14px;
      border: 1px solid rgba(134, 239, 172, 0.3);
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.75);
      color: #86efac;
      font-size: 12px;
      font-weight: 600;
    }

    #templates-business {
      background: radial-gradient(circle at top, #020617 0%, #020617 40%, #1f2933 100%);
      border-top-color: #111827;
      border-bottom-color: #111827;
    }

    #tutorials {
      background: radial-gradient(circle at center, #020617 0%, #020617 45%, #0b1120 100%);
      border-top-color: #0b1120;
      border-bottom-color: #0b1120;
    }

    .templates-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .templates h3 {
      font-size: 20px;
      margin: 0;
    }

    .templates-subtitle {
      font-size: 12px;
      color: #9ca3af;
      max-width: 420px;
    }

    .grid {
      display: grid;
      gap: 20px;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    /* ================================
       TEMPLATE CARDS
    ==================================*/
    .card {
      background: radial-gradient(circle at top left, #111827, #020617);
      border-radius: 14px;
      padding: 16px 16px 18px;
      border: 1px solid rgba(31, 41, 55, 0.9);
      position: relative;
      overflow: hidden;
      box-shadow: 0 14px 25px rgba(0, 0, 0, 0.6);
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .card::before {
      content: "";
      position: absolute;
      inset: -40%;
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.24), transparent 55%);
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
      border-color: rgba(148, 163, 184, 0.5);
    }

    .card:hover::before {
      opacity: 1;
    }

    .card-media {
      width: 100%;
      height: 150px;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 10px;
      background: #020617;
    }

    .card-media img,
    .card-media video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .card h4 {
      margin: 0 0 6px 0;
      font-size: 15px;
      color: #e5e7eb;
    }

    .card p {
      font-size: 12px;
      color: #9ca3af;
      margin-bottom: 8px;
      line-height: 1.6;
    }

    .price {
      font-weight: 600;
      font-size: 13px;
      margin-bottom: 10px;
      color: #bbf7d0;
    }

    .card a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #22c55e;
      color: #022c22;
      text-decoration: none;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.15s ease;
    }

    .card a:hover {
      background: #4ade80;
      transform: translateY(-1px);
    }

    /* ================================
       HORIZONTAL SLIDERS
    ==================================*/
    .templates-slider {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding-bottom: 4px;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
    }

    .templates-slider::-webkit-scrollbar {
      height: 6px;
    }

    .templates-slider::-webkit-scrollbar-track {
      background: #020617;
    }

    .templates-slider::-webkit-scrollbar-thumb {
      background: #4b5563;
      border-radius: 999px;
    }

    .templates-slider .card {
      flex: 0 0 260px;
      scroll-snap-align: start;
    }

    /* ================================
       TEAM SECTION
    ==================================*/
    #team {
      padding: 60px 10%;
      background: linear-gradient(135deg, #020617, #0b1120);
      border-top: 1px solid #111827;
    }

    .team-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .team-badge {
      display: inline-block;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 3px 10px;
      border-radius: 999px;
      border: 1px solid #22c55e55;
      color: #bbf7d0;
      background: rgba(15, 23, 42, 0.9);
      margin-bottom: 10px;
    }

    .team-header h3 {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #a5b4fc;
    }

    .team-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      max-width: 1000px;
      margin: 0 auto;
    }

    .team-card {
      background: rgba(15, 23, 42, 0.96);
      border-radius: 18px;
      border: 2px solid rgba(148, 163, 184, 0.3);
      padding: 28px;
      box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(10px);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      text-align: center;
      max-width: 300px;
    }

    .team-card::before {
      content: "";
      position: absolute;
      inset: -40%;
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 55%);
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }

    .team-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
      border-color: rgba(56, 189, 248, 0.5);
    }

    .team-card:hover::before {
      opacity: 1;
    }

    .team-image-wrapper {
      position: relative;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      overflow: hidden;
      border: 3px solid rgba(148, 163, 184, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.2rem;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .team-card:hover .team-image-wrapper {
      transform: scale(1.05);
      box-shadow: 0 26px 50px rgba(0, 0, 0, 0.8), 0 0 60px rgba(56, 189, 248, 0.45);
    }

    .team-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .team-member-name {
      position: relative;
      font-size: 16px;
      color: #cbd5f5;
      text-align: center;
      opacity: 0.95;
      font-weight: 600;
      margin: 0.5rem 0 0.35rem;
      letter-spacing: 0.05em;
    }

    .team-member-title {
      position: relative;
      font-size: 13px;
      color: #9ca3af;
      text-align: center;
      line-height: 1.6;
      margin: 0;
    }

    #gallery {
      background: radial-gradient(circle at top, #020617 0%, #020617 45%, #111827 100%);
      border-top-color: #111827;
      border-bottom-color: #111827;
    }

    .gallery-photo-card .card-media {
      border: 1px solid rgba(148, 163, 184, 0.25);
      background: #0b1120;
    }

    .gallery-photo-card .card-media img {
      cursor: zoom-in;
      transition: transform 0.22s ease;
    }

    .gallery-photo-card:hover .card-media img {
      transform: scale(1.04);
    }

    /* ================================
       CONTACT SECTION (ENHANCED)
    ==================================*/
    #contact {
      padding: 50px 10%;
      background: #020617;
      border-top: 1px solid #111827;
    }

    #contact h3 {
      font-size: 24px;
      margin-bottom: 16px;
      text-align: center;
      color: #a5b4fc;
    }

    .contact-intro {
      text-align: center;
      font-size: 13px;
      color: #d1d5db;
      max-width: 600px;
      margin: 0 auto 30px;
      line-height: 1.6;
    }

    .contact-row {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 40px;
      align-items: center;
      max-width: 900px;
      margin: 0 auto;
    }

    .contact-text {
      font-size: 13px;
      color: #d1d5db;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .contact-whatsapp {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 24px;
      border-radius: 999px;
      border: 2px solid #16a34a;
      background: rgba(22, 163, 74, 0.1);
      text-decoration: none;
      color: #bbf7d0;
      font-size: 15px;
      font-weight: 600;
      transition: all 0.2s ease;
      box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
    }

    .contact-whatsapp:hover {
      background: rgba(34, 197, 94, 0.2);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
    }

    .contact-qr-wrapper {
      justify-self: center;
      text-align: center;
    }

    .contact-qr-wrapper img {
      width: 180px;
      height: auto;
      border-radius: 12px;
      border: 2px solid #1e293b;
      background: #020617;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    }

    .contact-qr-caption {
      margin-top: 12px;
      font-size: 12px;
      color: #9ca3af;
      font-weight: 500;
    }

    /* ================================
       STICKY WHATSAPP BUTTON (NEW)
    ==================================*/
    .sticky-whatsapp {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 100;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #25d366, #128c7e);
      box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: all 0.3s ease;
      cursor: pointer;
      animation: pulse-whatsapp 2s infinite;
    }

    .sticky-whatsapp:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    }

    .sticky-whatsapp svg {
      width: 32px;
      height: 32px;
      fill: white;
    }

    @keyframes pulse-whatsapp {
      0%, 100% {
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
      }
      50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
      }
    }

    /* ================================
       FOOTER
    ==================================*/
    footer {
      padding: 24px 10%;
      font-size: 12px;
      color: #6b7280;
      text-align: center;
      background: #020617;
      border-top: 1px solid #111827;
    }

    /* ================================
       RESPONSIVE TWEAKS
    ==================================*/
    @media (max-width: 900px) {
      header {
        padding: 12px 6%;
      }

      .hero {
        padding: 50px 6% 40px;
      }

      .hero h2 {
        font-size: 28px;
      }

      .contact-row {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .contact-qr-wrapper {
        justify-self: center;
      }

      .templates,
      #team,
      #contact,
      .featured,
      .quick-about,
      footer {
        padding-left: 6%;
        padding-right: 6%;
      }

      .credibility-content {
        flex-direction: column;
        gap: 15px;
      }

      .sticky-whatsapp {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
      }

      .sticky-whatsapp svg {
        width: 28px;
        height: 28px;
      }
    }

    @media (max-width: 600px) {
      header {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
      }

      header h1 {
        font-size: 16px;
      }

      header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
      }

      header nav a {
        margin-left: 0;
        font-size: 12px;
      }

      .hero h2 {
        font-size: 24px;
      }

      .hero-cta-row {
        flex-direction: column;
        width: 100%;
      }

      .btn-primary,
      .btn-secondary {
        width: 100%;
      }
    }
    /* TEMPLATE PREVIEW GALLERY ADDITIONS */
    .card-media.template-gallery { position: relative; isolation: isolate; }
    .card-media.template-gallery .template-gallery-image { cursor: zoom-in; transition: opacity .18s ease; }
    .card-media.template-gallery img[hidden],
    .card-media.template-gallery button[hidden],
    .template-preview-modal .template-gallery-arrow[hidden] { display: none; }
    .card-media.template-gallery .template-gallery-image:focus-visible,
    .template-preview-modal button:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
    .template-gallery-arrow,
    .template-gallery-expand {
      position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
      width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
      color: #fff; background: rgba(2,6,23,.82); box-shadow: 0 3px 12px rgba(0,0,0,.35); cursor: pointer;
      transition: background .15s ease, transform .15s ease;
    }
    .template-gallery-arrow:hover, .template-gallery-expand:hover {
      color: #022c22; background: #22c55e; transform: scale(1.06);
    }
    .template-gallery-arrow { top: 50%; transform: translateY(-50%); }
    .template-gallery-arrow:hover { transform: translateY(-50%) scale(1.06); }
    .template-gallery-previous { left: 8px; }
    .template-gallery-next { right: 8px; }
    .template-gallery-expand { top: 8px; right: 8px; width: 30px; height: 30px; }
    .template-gallery-expand svg {
      width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round;
    }
    .template-gallery-position {
      position: absolute; z-index: 2; left: 50%; bottom: 7px; transform: translateX(-50%);
      display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px;
      color: #f9fafb; background: rgba(2,6,23,.84); font-size: 10px; line-height: 1; pointer-events: none;
    }
    .card-media.template-gallery .template-gallery-position[hidden] { display: none; }
    .template-preview-modal[hidden] { display: none; }
    .template-preview-modal {
      position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center;
      padding: 22px; background: rgba(2,6,23,.96); backdrop-filter: blur(8px);
    }
    .template-preview-dialog {
      position: relative; display: flex; flex-direction: column; width: min(1100px,100%);
      max-height: calc(100vh - 44px); padding: 48px 58px 18px; border: 1px solid rgba(148,163,184,.3);
      border-radius: 16px; background: #050b18; box-shadow: 0 24px 80px rgba(0,0,0,.65);
    }
    .template-preview-image-wrap {
      position: relative; display: flex; align-items: center; justify-content: center; min-height: 180px;
      height: min(72vh,760px); overflow: hidden; border-radius: 8px; background: #020617;
    }
    .template-preview-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
    .template-preview-modal .template-gallery-arrow { width: 44px; height: 44px; font-size: 26px; }
    .template-preview-modal .template-gallery-previous { left: 10px; }
    .template-preview-modal .template-gallery-next { right: 10px; }
    .template-preview-close {
      position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; padding: 0;
      border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #f9fafb;
      background: rgba(31,41,55,.9); font-size: 24px; line-height: 1; cursor: pointer;
    }
    .template-preview-thumbnails {
      display: flex; justify-content: center; gap: 8px; max-width: 100%; margin: 14px auto 0;
      padding: 2px; overflow-x: auto;
    }
    .template-preview-thumbnail {
      flex: 0 0 74px; width: 74px; height: 48px; padding: 0; overflow: hidden;
      border: 2px solid transparent; border-radius: 6px; background: #111827; cursor: pointer; opacity: .66;
    }
    .template-preview-thumbnail[aria-current="true"] { border-color: #4ade80; opacity: 1; }
    .template-preview-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
    @media (max-width: 600px) {
      .template-preview-modal { padding: 10px; }
      .template-preview-dialog { max-height: calc(100vh - 20px); padding: 46px 8px 12px; border-radius: 12px; }
      .template-preview-image-wrap { height: min(70vh,620px); }
      .template-preview-modal .template-gallery-previous { left: 6px; }
      .template-preview-modal .template-gallery-next { right: 6px; }
      .template-preview-modal .template-gallery-arrow { width: 38px; height: 38px; }
      .template-preview-thumbnail { flex-basis: 60px; width: 60px; height: 40px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .card-media.template-gallery .template-gallery-image, .template-gallery-arrow, .template-gallery-expand { transition: none; }
    }

/* Data-rendered template cards and Paddle states */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.card-buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font: 600 12px Arial, sans-serif;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.card-buy-button:hover:not(:disabled) { background: #4ade80; transform: translateY(-1px); }
.card-buy-button:disabled { cursor: not-allowed; opacity: .62; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.card .card-details-link, .card .card-demo-link {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; padding: 8px 12px; border-radius: 999px;
  color: #c7d2fe; border: 1px solid #475569; background: transparent; text-decoration: none;
}
.card .card-details-link:hover, .card .card-demo-link:hover { border-color: #a5b4fc; background: rgba(30,41,59,.7); }
.featured-card .card-buy-button { margin-top: 5px; }
.card h4 a { color: inherit; text-decoration: none; }
.card h4 a:hover { color: #a7f3d0; }
.checkout-setup-note { display: block; margin-top: 8px; color: #94a3b8; font-size: 10px; line-height: 1.45; }
.template-detail { min-height: 70vh; padding: 54px 10%; background: #020617; }
.template-detail-inner { max-width: 1100px; margin: 0 auto; }
.template-detail .breadcrumbs { color: #94a3b8; font-size: 12px; margin-bottom: 24px; }
.template-detail .breadcrumbs a { color: #a5b4fc; }
.template-detail h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: #f8fafc; margin: 12px 0; }
.template-detail .detail-description { max-width: 780px; color: #cbd5e1; font-size: 16px; line-height: 1.75; }
.template-detail .detail-content { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(240px,.7fr); gap: 36px; align-items: start; margin-top: 28px; }
.template-detail .detail-gallery .card-media { width: 100%; max-width: 680px; }
.template-detail .detail-sidebar { padding: 24px; border: 1px solid rgba(148,163,184,.22); border-radius: 18px; background: rgba(15,23,42,.78); }
.template-detail .detail-sidebar p { color: #cbd5e1; font-size: 13px; line-height: 1.65; }
.download-notice {
  position: fixed; z-index: 1200; inset: auto 18px 18px auto; width: min(440px, calc(100vw - 36px));
  padding: 20px; border: 1px solid rgba(74,222,128,.48); border-radius: 16px;
  background: #071323; color: #f8fafc; box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.download-notice[hidden] { display: none; }
.download-notice h3 { margin: 0 34px 8px 0; color: #bbf7d0; font-size: 17px; }
.download-notice p { margin: 0 0 12px; color: #cbd5e1; font-size: 12px; line-height: 1.55; }
.download-notice .download-notice-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #e2e8f0; font-size: 24px; cursor: pointer; }
.download-links { display: grid; gap: 8px; }
.download-links a { display: inline-flex; width: fit-content; padding: 9px 14px; border-radius: 999px; background: #22c55e; color: #022c22; font-size: 12px; font-weight: 700; text-decoration: none; }
.download-links a:hover { background: #4ade80; }
.recover-purchase { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.recover-purchase input { flex: 1 1 180px; min-width: 0; padding: 10px 12px; border: 1px solid #475569; border-radius: 10px; background: #0f172a; color: #f8fafc; }
.recover-purchase button { padding: 10px 14px; border: 0; border-radius: 10px; background: #22c55e; color: #022c22; font-weight: 700; cursor: pointer; }
.template-page-link { color: #a5b4fc; font-size: 12px; text-decoration: none; }
.template-page-link:hover { text-decoration: underline; }
[data-whatsapp-link][aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
[data-email-link] { color: #c7d2fe; }
[data-email-link][aria-disabled="true"] { opacity: .7; cursor: default; }
.free-template-card .card-media { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: radial-gradient(circle at 60% 35%, #1e293b, #050b18); }
.free-template-status { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(165,180,252,.35); color: #c7d2fe; font-size: 10px; }
@media (max-width: 760px) {
  .template-detail { padding: 42px 6%; }
  .template-detail .detail-content { grid-template-columns: 1fr; }
  .download-notice { inset: auto 12px 12px 12px; width: auto; }
}
