    *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
    html{scroll-behavior:smooth}
    body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#f8fafc;color:#1e293b;line-height:1.6}
    .container{max-width:960px;margin:0 auto;padding:0 1.5rem}
    .text-center{text-align:center}
    .mb-1{margin-bottom:0.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}.mb-6{margin-bottom:3rem}.mt-4{margin-top:2rem}
    .flex{display:flex}.flex-wrap{flex-wrap:wrap}.gap-2{gap:0.75rem}.gap-3{gap:1rem}.gap-4{gap:1.5rem}
    .items-center{align-items:center}.justify-center{justify-content:center}

    .btn{display:inline-block;padding:0.8rem 2rem;border-radius:0.5rem;font-weight:600;text-decoration:none;transition:all .2s;cursor:pointer;border:none;font-size:1rem}
    .btn-primary{background:#2563eb;color:#fff}.btn-primary:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,0.3)}
    .btn-secondary{background:#fff;color:#2563eb;border:2px solid #e2e8f0}.btn-secondary:hover{background:#f8fafc;border-color:#2563eb}
    .btn-success{background:#16a34a;color:#fff}.btn-success:hover{background:#15803d;transform:translateY(-1px);box-shadow:0 4px 12px rgba(22,163,74,0.3)}
    .btn-lg{padding:1rem 2.5rem;font-size:1.1rem}.btn-sm{padding:0.5rem 1.2rem;font-size:0.875rem}
    .btn-ghost{background:transparent;color:#475569;border:1px solid #e2e8f0}.btn-ghost:hover{background:#f8fafc;border-color:#94a3b8}

    header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100}
    .nav{display:flex;align-items:center;justify-content:space-between;height:64px}
    .logo{font-size:1.4rem;font-weight:800;color:#2563eb;text-decoration:none;display:flex;align-items:center;gap:0.5rem}
    .logo-icon{width:32px;height:32px;background:#2563eb;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:0.9rem}
    .nav-links{display:flex;gap:1.5rem;align-items:center}
    .nav-links a{color:#475569;text-decoration:none;font-size:0.9rem;font-weight:500;transition:color .2s}
    .nav-links a:hover{color:#2563eb}

    .hero{background:linear-gradient(135deg,#1e40af 0%,#2563eb 50%,#3b82f6 100%);color:#fff;padding:4.5rem 0 3.5rem;text-align:center;position:relative;overflow:hidden}
    .hero::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 50%,rgba(255,255,255,0.05) 0%,transparent 50%);pointer-events:none}
    .hero-badge{display:inline-block;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.25);padding:0.35rem 1.2rem;border-radius:50px;font-size:0.85rem;font-weight:600;margin-bottom:1.5rem}
    .hero h1{font-size:2.8rem;font-weight:800;line-height:1.2;margin-bottom:1rem}
    .hero h1 .free-highlight{display:inline-block;background:#fbbf24;color:#1e293b;padding:0.1rem 0.6rem;border-radius:0.3rem;font-weight:900}
    .hero p{font-size:1.2rem;opacity:0.9;max-width:600px;margin:0 auto 2rem}
    .hero-badges{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap;margin-top:2rem;font-size:0.9rem;opacity:0.85}
    .hero-badges span{display:flex;align-items:center;gap:0.4rem}

    .section{padding:4rem 0}
    .section-title{text-align:center;margin-bottom:3rem}
    .section-title h2{font-size:2rem;font-weight:700;margin-bottom:0.5rem}
    .section-title p{color:#64748b;max-width:500px;margin:0 auto}

    .services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;max-width:900px;margin:0 auto}
    .service-card{background:#fff;border-radius:1rem;padding:2rem;border:1px solid #e2e8f0;transition:all .2s;cursor:pointer;position:relative;text-align:center}
    .service-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(0,0,0,0.08);border-color:#2563eb}
    .service-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin:0 auto 1rem}
    .service-card h3{font-size:1.2rem;font-weight:700;margin-bottom:0.5rem}
    .service-card h3 .free-badge{display:inline-block;background:#16a34a;color:#fff;font-size:0.65rem;font-weight:700;padding:0.15rem 0.5rem;border-radius:4px;vertical-align:middle;margin-left:0.4rem}
    .service-card p{color:#64748b;font-size:0.9rem;line-height:1.6;max-width:400px;margin:0 auto}
    .icon-purple{background:#e0e7ff;color:#7c3aed}
    .icon-green{background:#f0fdf4;color:#16a34a}.icon-blue{background:#eff6ff;color:#2563eb}.icon-orange{background:#fff7ed;color:#ea580c}

    /* FORM */
    .form-section{background:#fff;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
    .form-container{max-width:650px;margin:0 auto;background:#fff;border-radius:1rem;padding:2rem;border:1px solid #e2e8f0}
    .form-container h3{font-size:1.2rem;font-weight:700;margin-bottom:0.5rem}
    .form-group{margin-bottom:1.25rem}
    .form-group label{display:block;font-weight:600;font-size:0.9rem;margin-bottom:0.3rem;color:#1e293b}
    .form-group input,.form-group select,.form-group textarea{width:100%;padding:0.7rem 0.9rem;border:1px solid #d1d5db;border-radius:0.5rem;font-size:0.95rem;transition:border-color .2s;font-family:inherit}
    .form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
    .form-group textarea{min-height:80px;resize:vertical}
    .form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}

    .result-card{background:#f0fdf4;border:2px solid #16a34a;border-radius:1rem;padding:2rem;text-align:center;margin-top:1.5rem;display:none}
    .result-card.show{display:block}
    .result-card .check{font-size:3rem;margin-bottom:0.5rem}
    .result-card h4{color:#16a34a;font-weight:700;font-size:1.1rem}
    .result-card p{color:#475569;font-size:0.9rem;margin:0.5rem 0}
    .result-card .dl-btn{display:inline-block;margin-top:0.5rem}

    .loading{display:inline-block;width:20px;height:20px;border:3px solid #e2e8f0;border-top:3px solid #2563eb;border-radius:50%;animation:spin 0.8s linear infinite;vertical-align:middle;margin-right:0.5rem}
    @keyframes spin{to{transform:rotate(360deg)}}

    .template-selector{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:1.5rem}
    .template-btn{padding:0.5rem 1rem;border:1px solid #e2e8f0;border-radius:0.5rem;cursor:pointer;font-size:0.85rem;background:#fff;transition:all .2s}
    .template-btn:hover{border-color:#2563eb;color:#2563eb}
    .template-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}

    .watermark-note{background:#fef3c7;border:1px solid #fbbf24;border-radius:0.5rem;padding:0.6rem 1rem;font-size:0.85rem;color:#92400e;margin-bottom:1rem;display:none}
    .watermark-note.show{display:block}

    footer{background:#1e293b;color:#94a3b8;padding:3rem 0 2rem}
    .footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin-bottom:2rem}
    footer h4{color:#fff;font-weight:700;margin-bottom:1rem;font-size:0.95rem}
    footer a{color:#94a3b8;text-decoration:none;display:block;margin-bottom:0.5rem;font-size:0.85rem;transition:color .2s}
    footer a:hover{color:#fff}
    .footer-bottom{border-top:1px solid #334155;padding-top:1.5rem;text-align:center;font-size:0.8rem}

    /* ─── CATEGORY CHIPS ─── */
    .chips-wrap{display:flex;flex-wrap:wrap;justify-content:center;gap:0.5rem;padding:0.5rem 0}
    .chip{display:inline-flex;align-items:center;gap:0.4rem;padding:0.55rem 1.2rem;border-radius:50px;border:2px solid #e2e8f0;background:#fff;font-size:0.85rem;font-weight:600;cursor:pointer;transition:all .2s;color:#475569}
    .chip:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.08);border-color:#1e40af;color:#1e40af}
    .chip.active{background:#1e40af;color:#fff;border-color:#1e40af;box-shadow:0 4px 12px rgba(30,64,175,0.25)}
    .chip-dot{width:8px;height:8px;border-radius:50%;display:inline-block}

    /* ─── TEMPLATE GALLERY ─── */
    .template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;max-width:960px;margin:0 auto}
    .template-card{background:#fff;border:1px solid #e2e8f0;border-radius:0.75rem;padding:1.25rem;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;gap:0.4rem;text-align:left}
    .template-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,0.08);border-color:#2563eb}
    .tpl-card-top{display:flex;align-items:flex-start;gap:0.75rem;margin-bottom:0.25rem}
    .tpl-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0;background:#eff6ff}
    .tpl-title{font-weight:700;font-size:0.95rem;color:#1e293b;line-height:1.3;flex:1;min-width:0}
    .tpl-title-wrap{display:flex;flex-direction:column;gap:0.25rem;flex:1;min-width:0}
    .tpl-desc{font-size:0.82rem;color:#64748b;line-height:1.5;flex:1}
    .tpl-badge{display:inline-block;font-size:0.6rem;font-weight:700;padding:0.15rem 0.45rem;border-radius:4px;text-transform:uppercase;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;align-self:flex-start}
    .tpl-link{color:#2563eb;font-size:0.82rem;font-weight:600;margin-top:0.25rem;display:flex;align-items:center;gap:0.3rem}
    .tpl-link:hover{text-decoration:underline}
    .tpl-count{text-align:center;color:#94a3b8;font-size:0.85rem;margin-bottom:0.75rem}

    /* ─── MOBILE HAMBURGER ─── */
    .hamburger{display:none;flex-direction:column;gap:4px;cursor:pointer;padding:4px;background:none;border:none;z-index:110}
    .hamburger span{display:block;width:24px;height:3px;background:#1e293b;border-radius:2px;transition:all .3s}
    .hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
    .hamburger.active span:nth-child(2){opacity:0}
    .hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
    .mobile-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:105}
    .mobile-overlay.open{display:block}
    .mobile-drawer{position:fixed;top:0;right:-300px;width:280px;height:100%;background:#fff;z-index:106;transition:right .3s;padding:5rem 1.5rem 2rem;box-shadow:-4px 0 20px rgba(0,0,0,0.1)}
    .mobile-drawer.open{right:0}
    .mobile-drawer a{display:block;padding:1rem 0;font-size:1rem;font-weight:600;color:#1e293b;text-decoration:none;border-bottom:1px solid #f1f5f9;transition:color .2s}
    .mobile-drawer a:hover{color:#2563eb}
    .mobile-drawer .btn{display:block;width:100%;text-align:center;margin-top:1rem}

    @media(max-width:768px){
      .hero h1{font-size:1.8rem}.hero p{font-size:1rem}
      .hamburger{display:flex}
      .nav-links{display:none}
      .services-grid{grid-template-columns:1fr}
      .form-row{grid-template-columns:1fr}
      .section-title h2{font-size:1.5rem}
      .hero{padding:3rem 0}
      .hero-badges{flex-direction:column;align-items:center;gap:0.75rem}
      .template-grid{grid-template-columns:1fr}
      .chips-wrap{justify-content:flex-start;padding:0.5rem 1rem}
      #templates{padding-bottom:5rem}
      body{padding-bottom:4rem}
    }

    /* ─── AUTH MODAL ─── */
    .modal-overlay{display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);align-items:center;justify-content:center;padding:1rem}
    .modal-overlay.show{display:flex}
    .modal-box{background:#fff;border-radius:1rem;padding:2rem;max-width:420px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,0.2);position:relative;max-height:90vh;overflow-y:auto}
    .modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;font-size:1.5rem;cursor:pointer;color:#94a3b8;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:all .2s}
    .modal-close:hover{background:#f1f5f9;color:#1e293b}
    .modal-title{font-size:1.3rem;font-weight:700;margin-bottom:0.25rem}
    .modal-sub{color:#64748b;font-size:0.9rem;margin-bottom:1.5rem}
    .auth-tabs{display:flex;gap:0;margin-bottom:1.5rem;background:#f1f5f9;border-radius:0.5rem;padding:0.25rem}
    .auth-tab{flex:1;padding:0.6rem;text-align:center;border:none;background:none;border-radius:0.4rem;font-weight:600;font-size:0.9rem;cursor:pointer;color:#64748b;transition:all .2s}
    .auth-tab.active{background:#fff;color:#1e293b;box-shadow:0 1px 3px rgba(0,0,0,0.1)}
    .auth-form{display:none}
    .auth-form.show{display:block}
    .auth-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca;border-radius:0.5rem;padding:0.6rem 0.8rem;font-size:0.85rem;margin-bottom:1rem;display:none}
    .auth-success{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0;border-radius:0.5rem;padding:0.6rem 0.8rem;font-size:0.85rem;margin-bottom:1rem;display:none}

    /* ─── USER NAV BADGE ─── */
    .user-badge{display:flex;align-items:center;gap:0.5rem;font-size:0.85rem;font-weight:600;color:#1e293b}
    .credit-pill{background:#fef3c7;color:#92400e;padding:0.2rem 0.6rem;border-radius:50px;font-size:0.75rem;font-weight:700;display:flex;align-items:center;gap:0.3rem;cursor:pointer;transition:all .2s}
    .credit-pill:hover{background:#fbbf24;transform:translateY(-1px)}
    .credit-pill .coin{font-size:0.85rem}
    .credit-pill.premium{background:#dbeafe;color:#1e40af}

    /* ─── TOP-UP MODAL ─── */
    .pkg-grid{display:grid;grid-template-columns:1fr;gap:0.75rem;margin-bottom:1rem}
    .pkg-card{border:2px solid #e2e8f0;border-radius:0.75rem;padding:1rem;cursor:pointer;transition:all .2s;position:relative}
    .pkg-card:hover{border-color:#2563eb;transform:translateY(-2px);box-shadow:0 4px 12px rgba(37,99,235,0.1)}
    .pkg-card.selected{border-color:#2563eb;background:#eff6ff}
    .pkg-card.popular{border-color:#f59e0b;background:#fffbeb}
    .pkg-badge{position:absolute;top:-8px;right:12px;background:#f59e0b;color:#fff;font-size:0.65rem;font-weight:700;padding:0.15rem 0.6rem;border-radius:4px}
    .pkg-name{font-weight:700;font-size:1rem}
    .pkg-price{font-size:1.4rem;font-weight:800;color:#2563eb}
    .pkg-price .small{font-size:0.8rem;font-weight:400;color:#64748b}
    .pkg-desc{font-size:0.8rem;color:#64748b;margin-top:0.2rem}
    .pkg-unit{font-size:0.75rem;color:#94a3b8;margin-top:0.1rem}
    .premium-badge{background:linear-gradient(135deg,#1e40af,#2563eb);color:#fff;padding:0.2rem 0.5rem;border-radius:4px;font-size:0.7rem;font-weight:700;margin-left:0.4rem;vertical-align:middle}
    /* Dynamic Form Styles */
    .form-section-title{font-weight:700;font-size:0.9rem;color:#1e293b;padding:0.5rem 0;border-bottom:1px solid #e2e8f0;margin-bottom:0.5rem}
    .invoice-item-row{background:#f8fafc;padding:0.6rem;border-radius:6px;margin-bottom:0.4rem;border:1px solid #e2e8f0}
    .invoice-item-header{font-size:0.8rem;font-weight:600;color:#64748b;margin-bottom:0.3rem}
    .item-amount{font-weight:700;color:#1e40af;font-size:0.95rem;padding-top:0.25rem}
    .invoice-summary{background:#f1f5f9;padding:0.6rem 0.8rem;border-radius:8px;margin-bottom:0.75rem}
    .invoice-summary-row{display:flex;justify-content:space-between;font-size:0.9rem;padding:0.2rem 0}
    .invoice-summary-row.grand-total{font-size:1.1rem;font-weight:700;color:#1e40af;border-top:2px solid #2563eb;padding-top:0.4rem;margin-top:0.3rem}
    .btn-outline{background:transparent;border:1px solid #2563eb;color:#2563eb}
    .btn-outline:hover{background:#2563eb;color:#fff}
    /* Resume Section Styles */
    .resume-section{margin-bottom:0.75rem}
    .resume-section-header{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;padding:0.5rem 0.7rem;border-radius:6px 6px 0 0;border:1px solid #e2e8f0;border-bottom:none;cursor:pointer}
    .resume-section-header .sec-title{font-weight:600;font-size:0.85rem;color:#1e293b}
    .resume-section-body{border:1px solid #e2e8f0;border-radius:0 0 6px 6px;padding:0.6rem}
    .resume-section-body .form-group{margin-bottom:0.4rem}
    /* Optional badge */
    .opt-badge{font-size:0.65rem;color:#94a3b8;font-weight:400;margin-left:0.3rem}
    /* Section actions */
    .sec-actions{display:flex;gap:0.4rem;flex-wrap:wrap;margin-bottom:0.75rem}
    .btn-sec{background:#f1f5f9;border:1px dashed #94a3b8;color:#475569;padding:0.4rem 0.8rem;border-radius:6px;font-size:0.8rem;cursor:pointer;transition:all .15s}
    .btn-sec:hover{background:#2563eb;color:#fff;border-color:#2563eb}
    /* FAQ Accordion */
    .faq-item.active .faq-answer{display:block!important}
