:root{--container-w:1240px;--bg:#ffffff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--card:#ffffff;--accent:#2563eb;--ring:#93c5fd;--base-font-size:13.3px;--line-height:1.4;--border-radius:10px;--border-radius-sm:8px;--border-radius-lg:12px;--btn-min-height:38px;--btn-padding:8px 12px;--input-min-height:38px;--card-padding:12px;--section-padding:12px;--dark-bg:#0f172a;--light-bg:#f8fafc;--table-header-bg:#0f1b38;--success-color:#00b67a;--danger-color:#dc3545}:root[data-theme="dark"]{--bg:#0b1220;--text:#e6edf3;--muted:#94a3b8;--line:#1f2937;--card:#0f172a;--light-bg:#0f1b38;--table-header-bg:#1e293b}@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');html,body{overflow-x:hidden;max-width:100%;margin:0;background:var(--bg);color:var(--text);font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:var(--base-font-size);line-height:var(--line-height);font-display:swap}[dir="rtl"]{font-family:'Poppins','Segoe UI',Tahoma,Geneva,Verdana,sans-serif}@font-face{font-family:'Poppins';font-display:swap}[lang="ar"],[dir="rtl"]{letter-spacing:0;font-feature-settings:"kern" 1}[lang="ar"]{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}[dir="rtl"] input,[dir="rtl"] textarea,[dir="rtl"] select{text-align:right;font-family:inherit}[dir="rtl"] .topbar-inner,[lang="ar"] .topbar-inner,[lang="ar-e"] .topbar-inner{direction:rtl}[dir="rtl"] .brand,[lang="ar"] .brand,[lang="ar-e"] .brand{margin-right:0;margin-left:auto;order:999}[dir="rtl"] .user-dropdown-content,[lang="ar"] .user-dropdown-content,[lang="ar-e"] .user-dropdown-content{right:auto;left:0;transform:translateY(-10px) translateX(-10px)}[dir="rtl"] .user-dropdown-wrapper:hover .user-dropdown-content,[dir="rtl"] .user-dropdown-content.show,[lang="ar"] .user-dropdown-wrapper:hover .user-dropdown-content,[lang="ar-e"] .user-dropdown-wrapper:hover .user-dropdown-content{transform:translateY(0) translateX(0)}[dir="rtl"] .lang-modal .box,[lang="ar"] .lang-modal .box,[lang="ar-e"] .lang-modal .box{direction:rtl;text-align:right}[dir="rtl"] .modal .close-btn,[lang="ar"] .modal .close-btn,[lang="ar-e"] .modal .close-btn{right:auto;left:12px}[dir="rtl"] .topbar-inner{flex-direction:row-reverse}[dir="rtl"] .cmc-auth-section,[lang="ar"] .cmc-auth-section,[lang="ar-e"] .cmc-auth-section{order:1;margin-left:0;margin-right:auto}[dir="rtl"] .lang-toggle,[dir="rtl"] #themeToggle,[lang="ar"] .lang-toggle,[lang="ar"] #themeToggle,[lang="ar-e"] .lang-toggle,[lang="ar-e"] #themeToggle{order:2}[dir="rtl"] #currency,[lang="ar"] #currency,[lang="ar-e"] #currency{order:3}[dir="rtl"] .dropdown-item,[lang="ar"] .dropdown-item,[lang="ar-e"] .dropdown-item{text-align:right;flex-direction:row-reverse}[dir="rtl"] .item-value,[lang="ar"] .item-value,[lang="ar-e"] .item-value{margin-right:auto;margin-left:0}[dir="rtl"] .user-credits,[lang="ar"] .user-credits,[lang="ar-e"] .user-credits{flex-direction:row-reverse}[dir="rtl"] .lang-grid,[lang="ar"] .lang-grid,[lang="ar-e"] .lang-grid{text-align:right}[dir="rtl"] .lang-option,[lang="ar"] .lang-option,[lang="ar-e"] .lang-option{flex-direction:row-reverse;text-align:right;justify-content:flex-end}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;white-space:nowrap !important;border:0 !important}*{box-sizing:border-box;font-family:inherit}input,textarea,select,button,.btn{font-family:inherit}.features-stacked-cols{display:flex;flex-direction:column;gap:1.5rem}.feature-buttons-horizontal{display:flex;flex-direction:row;gap:0.5rem;align-items:center;flex-wrap:wrap}.feature-buttons-horizontal .btn{flex:1;min-width:0;white-space:nowrap;text-align:center;justify-content:center;min-height:var(--btn-min-height)}.feature-buttons-horizontal .template-selector-group{display:flex;align-items:center;gap:0.5rem;flex:1;min-width:140px}.feature-buttons-horizontal .template-label{font-size:0.8rem;font-weight:600;color:var(--muted);white-space:nowrap;margin:0}.feature-buttons-horizontal .template-select{flex:1;min-width:0;text-align:center}.feature-buttons-horizontal .import-json-btn{flex:1;min-width:0;position:relative}.feature-buttons-horizontal .btn,.feature-buttons-horizontal .template-select{height:var(--btn-min-height);display:flex;align-items:center;justify-content:center}@media (max-width:768px){.feature-buttons-horizontal{flex-direction:column}.feature-buttons-horizontal .btn,.feature-buttons-horizontal .template-selector-group{width:100%}.feature-buttons-horizontal .template-selector-group{flex-direction:column;align-items:stretch;gap:0.3rem}.feature-buttons-horizontal .template-label{text-align:center}}.saved-invoices-table{width:100%;display:table;border-collapse:collapse}.saved-table-header{display:table-row;background:var(--table-header-bg);color:#fff;font-weight:600}.saved-table-header > div{display:table-cell;padding:10px 12px;border-bottom:1px solid var(--line);font-size:var(--base-font-size)}.saved-table-body{display:table-row-group}.saved-table-row{display:table-row;border-bottom:1px solid var(--line);transition:background-color 0.2s ease}.saved-table-row:hover{background-color:var(--light-bg)}.saved-table-row > div{display:table-cell;vertical-align:middle;font-size:var(--base-font-size)}.saved-col-title{width:25%;font-weight:500}.saved-col-date{width:12%;color:var(--muted)}.saved-col-number{width:15%;color:var(--muted);font-family:monospace}.saved-col-total{width:15%;font-weight:600;text-align:right}.saved-col-actions{width:20%;text-align:center}.saved-col-actions .btn.icon-btn{margin:0 2px;min-height:28px;min-width:28px;padding:4px;font-size:0.9rem;display:inline-flex;align-items:center;justify-content:center}.btn.icon-btn{border-radius:var(--border-radius-sm);transition:all 0.2s ease}.btn.icon-btn:hover{transform:scale(1.1)}@media (max-width:768px){.saved-invoices-table{display:block}.saved-table-header{display:none}.saved-table-body{display:block}.saved-table-row{display:block;border:1px solid var(--line);border-radius:var(--border-radius);margin-bottom:10px;padding:12px;background:var(--card)}.saved-table-row > div{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border:none}.saved-table-row > div::before{content:attr(class);font-weight:600;color:var(--muted);text-transform:capitalize}.saved-col-title::before{content:"Title"}.saved-col-date::before{content:"Date"}.saved-col-number::before{content:"Invoice #"}.saved-col-total::before{content:"Total"}.saved-col-actions::before{content:"Actions"}.saved-col-actions{justify-content:center;gap:5px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}.saved-col-actions::before{display:none}.saved-col-actions .btn.icon-btn{min-width:32px;min-height:32px;font-size:1rem}}.brand-title{font-size:1.2rem;font-weight:800;letter-spacing:0.2px;color:var(--text);text-shadow:0 0 2px rgba(0,0,0,0.05)}.hero h1{margin:0 0 6px 0;font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.2;font-weight:700}.hero-subtitle{font-size:clamp(0.9rem,2vw,1.1rem);margin-bottom:1.5rem;color:var(--muted);line-height:1.4;font-weight:400}.features-section h2,.use-cases-section h2,.faq-section h2,.cta-final-section h2{font-weight:700}.feature-card h3,.use-case h3,.faq-item h3{font-weight:600}.invoice-title{font-size:clamp(1.6rem,3.5vw,36px);font-weight:800;letter-spacing:.3px;text-align:right;margin-bottom:8px}.label-edit{display:inline-flex;align-items:center;font-weight:600;color:#334155;border:1px solid transparent;border-radius:var(--border-radius-sm);padding:6px 8px;cursor:text;min-height:var(--btn-min-height);font-size:var(--base-font-size);position:relative;transition:all 0.2s ease}.thead{background:var(--table-header-bg);color:#fff;font-weight:600;font-size:var(--base-font-size)}.totals .grand{border-top:2px solid var(--text);margin-top:2px;padding-top:6px;font-weight:700}.label{color:var(--muted);margin:0 0 4px 2px;font-size:var(--base-font-size);font-weight:500}.muted{color:var(--muted);font-weight:400}.btn{border:1px solid var(--line);background:var(--light-bg);border-radius:var(--border-radius);padding:var(--btn-padding);font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:var(--btn-min-height);font-size:var(--base-font-size);font-family:inherit;transition:all 0.2s ease}.btn.primary{background:var(--dark-bg);color:#fff;border-color:var(--dark-bg)}.btn.ghost{background:#eef2ff;border-color:#e2e8f0}.btn.secondary{background:#fff}.btn.large{padding:12px 24px;font-size:1.1rem}.feature-badge{background:var(--card);border:1px solid var(--accent);padding:6px 12px;border-radius:20px;font-weight:600;font-size:0.85rem;white-space:nowrap}.trust-item strong{display:block;font-size:clamp(1.1rem,2.5vw,1.5rem);color:var(--accent);font-weight:700}.trust-item span{font-weight:500}.modal .head{display:flex;justify-content:space-between;align-items:center;padding:10px var(--section-padding);border-bottom:1px solid var(--line);font-size:var(--base-font-size);font-weight:600}main.container{max-width:var(--container-w);margin:0 auto;padding:0 var(--section-padding);background:var(--bg);font-size:var(--base-font-size);line-height:var(--line-height)}.container{max-width:var(--container-w);margin:0 auto;padding:0 var(--section-padding)}.hero,.features-section,.use-cases-section,.faq-section,.cta-final-section,.footer{max-width:100%;margin:0 auto}.hero{padding:40px var(--section-padding);background:var(--light-bg);border-bottom:1px solid var(--line);position:relative;transition:opacity 0.3s ease,transform 0.3s ease}.features-section{padding:60px var(--section-padding);background:var(--bg);border-top:1px solid var(--line)}.use-cases-section{padding:40px var(--section-padding);background:var(--bg)}.faq-section{padding:60px var(--section-padding);background:var(--bg);border-top:1px solid var(--line)}.cta-final-section{padding:60px var(--section-padding);background:linear-gradient(135deg,var(--accent),#1e40af);color:white}.footer{padding:40px var(--section-padding) 20px;border-top:1px solid var(--line)}.topbar{position:static;top:0;z-index:10;border-bottom:1px solid var(--line);background:var(--card);max-width:100%;margin:0 auto;padding:0 var(--section-padding)}.topbar-inner{position:relative;flex-wrap:wrap;gap:6px;display:flex;align-items:center;justify-content:space-between;padding:8px 0;max-width:var(--container-w);margin:0 auto}.brand{display:flex;gap:6px;align-items:center;font-weight:800;color:var(--dark-bg)}.hamburger{display:none;align-items:center;justify-content:center;height:36px;min-width:36px;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:var(--border-radius-sm);cursor:pointer}.menu{display:flex;gap:12px}.menu a{color:#334155;font-weight:600;text-decoration:none}.nav{flex-wrap:wrap;display:flex;gap:6px;align-items:center}.topbar select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding:.35rem .7rem;min-width:90px;height:34px;border:1px solid var(--line);border-radius:var(--border-radius-sm);background:var(--card);color:var(--text);font-weight:600;line-height:1.2;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.topbar select:focus{outline:0;box-shadow:0 0 0 2px var(--ring);border-color:var(--accent)}.pdf-controls{flex-wrap:wrap;display:flex;gap:6px;align-items:center}.hero-content{text-align:center;max-width:800px;margin:0 auto}.hero h1 em{color:var(--accent);font-style:normal}.hero-features{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:1.5rem 0}.cta-section{margin:1.5rem 0}.cta-note{margin-top:0.8rem;font-size:0.85rem;color:var(--muted)}.trust-indicators{display:flex;justify-content:center;gap:2rem;margin-top:1.5rem;flex-wrap:wrap}.trust-item{text-align:center;min-width:80px}.hero-header{position:relative;display:inline-block;width:100%}.hero-close-btn{position:absolute;top:-20px;right:-30px;background:rgba(0,0,0,0.7);color:white;border:none;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;font-weight:bold;transition:all 0.2s ease;z-index:100}.hero-close-btn:hover{background:rgba(0,0,0,0.9);transform:scale(1.1)}.hero.hidden{display:none}.hero.hiding{opacity:0;transform:translateY(-20px);pointer-events:none}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--border-radius-lg);padding:var(--card-padding);margin:10px 0;box-shadow:0 4px 12px rgba(0,0,0,.04)}.header-grid{display:grid;grid-template-columns:1fr 500px;gap:var(--section-padding);margin-top:8px}.big-input{width:100%;height:44px;border:1px solid var(--line);border-radius:var(--border-radius);padding:10px var(--section-padding);margin-top:8px;font-size:var(--base-font-size)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:var(--section-padding);margin-top:8px}textarea{width:100%;min-height:90px;border:1px solid var(--line);border-radius:var(--border-radius);padding:10px var(--section-padding);resize:vertical;font-size:var(--base-font-size)}.meta{display:grid;gap:8px}.meta-row{display:grid;grid-template-columns:120px 1fr;gap:8px;align-items:center;position:relative}.mkey{color:#334155;font-weight:600;border:1px solid transparent;border-radius:var(--border-radius-sm);padding:8px 10px;font-size:var(--base-font-size)}.meta-input{height:42px;border:1px solid var(--line);border-radius:var(--border-radius);padding:8px 10px;font-size:var(--base-font-size)}.label-edit:hover,.label-edit:focus{border-color:#94a3b8;outline:0}.logo-box{position:relative;width:120px;height:120px;border:1px dashed var(--line);border-radius:var(--border-radius);display:grid;place-items:center;background:var(--light-bg);cursor:pointer;overflow:hidden}.logo-box img{max-width:100%;max-height:100%}.logo-box .placeholder{color:#475569;pointer-events:none;font-size:var(--base-font-size)}.logo-box .remove{position:absolute;top:4px;right:4px;background:#fff;color:#c00;border-radius:6px;border:1px solid var(--line);padding:2px 6px;display:none;min-height:24px;min-width:24px;font-size:12px}.logo-box.has-img .placeholder{display:none}.logo-box.has-img .remove{display:block}.sig-wrap{margin-top:8px;display:grid;flex-direction:column;justify-items:end;gap:6px}.sig-wrap .label{width:120px;text-align:left}.sig-wrap .logo-box{margin-left:auto;width:120px}.controls-row{display:flex;flex-direction:column;gap:8px}.controls-content{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;overflow-x:auto;width:100%}.controls-hint{width:100%;text-align:left}.controls-hint small{color:var(--muted);font-size:0.75rem}.controls-row .row{display:flex;gap:6px;align-items:center;flex:0 0 auto}.controls-row .spacer{flex:1}.controls input,.controls select{height:var(--input-min-height);border:1px solid var(--line);border-radius:var(--border-radius-sm);padding:6px 8px;background:var(--card);color:var(--text);font-size:var(--base-font-size)}.controls select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.controls input:focus,.controls select:focus{outline:0;box-shadow:0 0 0 2px var(--ring);border-color:var(--accent)}.icon-btn{border:1px solid var(--line);background:var(--card);color:var(--text);height:34px;min-width:34px;padding:0 .5rem;border-radius:var(--border-radius-sm);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:var(--base-font-size)}.icon-btn:focus{outline:0;box-shadow:0 0 0 2px var(--ring)}.w80{width:70px}.table{border:1px solid #e5e7eb;border-radius:var(--border-radius);overflow:hidden}.thead,.trow{display:grid;grid-template-columns:2.1fr .6fr .9fr .7fr .9fr .9fr .5fr;align-items:center}.thead>div,.trow>div{padding:8px 10px;border-right:1px solid #e5e7eb;font-size:var(--base-font-size)}.thead>div:last-child,.trow>div:last-child{border-right:0}.tbody .trow{border-top:1px solid #e5e7eb}.trow .num{text-align:right}.remove-line{background:#fee2e2;border:1px solid #fecaca;border-radius:var(--border-radius-sm);padding:6px 8px;cursor:pointer;min-height:var(--btn-min-height);display:flex;align-items:center;justify-content:center;font-size:var(--base-font-size)}input.item,input.qty,input.rate,input.tax,input.disc{width:100%;height:var(--input-min-height);border:1px solid var(--line);border-radius:var(--border-radius-sm);padding:6px 8px;font-size:var(--base-font-size)}.totals .row{display:flex;justify-content:space-between;align-items:center;margin:4px 0;font-size:var(--base-font-size)}.toast{position:fixed;right:var(--section-padding);bottom:var(--section-padding);background:#fff;border:1px solid var(--line);padding:8px 10px;border-radius:var(--border-radius);box-shadow:0 6px 16px rgba(0,0,0,.06);opacity:0;transform:translateY(6px);transition:.2s;font-size:var(--base-font-size)}.toast.show{opacity:1;transform:translateY(0)}.modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;align-items:center;justify-content:center;padding:var(--section-padding);z-index:1000}.modal .box{background:#fff;border:1px solid var(--line);border-radius:var(--border-radius-lg);max-width:680px;width:100%;box-shadow:0 6px 20px rgba(0,0,0,.15);display:flex;flex-direction:column}.modal .body{max-height:60vh;overflow:auto}.modal .foot{padding:8px var(--section-padding);border-top:1px solid var(--line);color:#475569;font-size:var(--base-font-size)}.modal .list-row{display:grid;grid-template-columns:1fr auto auto auto;gap:6px;align-items:center;border-bottom:1px dashed var(--line);padding:6px 0;font-size:var(--base-font-size)}.features-section h2{text-align:center;margin-bottom:2rem;font-size:clamp(1.6rem,3.5vw,2rem)}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.feature-card{background:var(--card);border:1px solid var(--line);border-radius:var(--border-radius-lg);padding:1.5rem;text-align:center;transition:transform 0.2s ease}.feature-card:hover{transform:translateY(-3px)}.feature-icon{font-size:2.5rem;margin-bottom:0.8rem}.feature-card h3{margin-bottom:0.8rem;color:var(--text);font-size:clamp(1.1rem,1.8vw,1.3rem)}.feature-card p{font-size:var(--base-font-size);line-height:var(--line-height)}.use-cases-section h2{text-align:center;margin-bottom:2rem;font-size:clamp(1.6rem,3.5vw,2rem)}.use-cases-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}.use-case{background:var(--card);border:1px solid var(--line);border-radius:var(--border-radius);padding:1.2rem;text-align:center}.use-case h3{margin-bottom:0.8rem;color:var(--accent);font-size:clamp(1rem,1.8vw,1.2rem)}.use-case p{font-size:var(--base-font-size);line-height:var(--line-height)}.faq-section h2{text-align:center;margin-bottom:2rem;font-size:clamp(1.6rem,3.5vw,2rem)}.faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}.faq-item{background:var(--card);border:1px solid var(--line);border-radius:var(--border-radius);padding:1.5rem}.faq-item h3{margin-bottom:0.8rem;color:var(--accent);font-size:clamp(1rem,1.8vw,1.2rem)}.faq-item p{font-size:var(--base-font-size);line-height:var(--line-height)}.faq-item a{color:var(--accent);text-decoration:underline}.cta-final-section h2{font-size:clamp(1.6rem,3.5vw,2rem);margin-bottom:0.8rem}.cta-final-section p{font-size:clamp(0.9rem,2vw,1.1rem);margin-bottom:1.5rem;opacity:0.9}.cta-final-section .btn{background:white;color:var(--accent);border:none}.cta-final-section .btn:hover{background:#f8fafc}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:1.5rem;margin-bottom:1.5rem;max-width:var(--container-w);margin-left:auto;margin-right:auto}.footer-section h3{margin-bottom:0.8rem;color:var(--text);font-size:1rem}.footer-section a{display:block;margin-bottom:0.4rem;color:var(--muted);text-decoration:none;transition:color 0.2s ease;font-size:var(--base-font-size)}.footer-section a:hover{color:var(--accent)}.social-links{display:flex;gap:0.6rem;margin-top:0.8rem}.social-links a{font-size:1.2rem;padding:0.3rem;transition:transform 0.2s ease;min-height:var(--btn-min-height);min-width:var(--btn-min-height);display:flex;align-items:center;justify-content:center}.footer-bottom{border-top:1px solid var(--line);padding-top:1.2rem;text-align:center;color:var(--muted);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.8rem;max-width:var(--container-w);margin-left:auto;margin-right:auto;font-size:var(--base-font-size)}.footer-links{display:flex;gap:1.2rem}.footer-links a{color:var(--muted);text-decoration:none;font-size:var(--base-font-size)}.footer-links a:hover{color:var(--accent)}.label-edit::after{content:"✏️";position:absolute;top:-5px;right:-5px;font-size:11px;background:var(--accent);color:white;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(0.8);transition:all 0.2s ease;box-shadow:0 1px 3px rgba(0,0,0,0.2)}.label-edit:hover::after,.label-edit:focus::after{opacity:1;transform:scale(1.1)}.label-edit:hover,.label-edit:focus{border-color:#94a3b8;background-color:rgba(148,163,184,0.05);outline:none}.label-edit:focus{box-shadow:0 0 0 2px var(--ring);border-color:var(--accent)}[dir="rtl"] .label-edit::after{right:auto;left:-5px}.meta .label-edit.mkey{font-weight:600;color:#334155;min-height:auto;margin:0}.thead > div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table .thead > div:nth-child(4),.table .trow > div:nth-child(4){min-width:10ch}#discHeader{overflow:visible;text-overflow:clip}.modal[aria-hidden="false"]{display:flex}.social-links a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;background:#f8f9fa;border:1px solid #e9ecef;transition:all 0.3s ease;color:#333;text-decoration:none}.social-links a:hover{background:#ffffff;color:var(--accent);transform:translateY(-2px);box-shadow:0 3px 6px rgba(0,0,0,0.1)}.social-links svg{width:18px;height:18px}.trustpilot-btn{background:var(--success-color) !important;color:white !important;border:none !important;padding:10px 20px;border-radius:6px;font-weight:600;transition:all 0.3s ease;font-size:var(--base-font-size)}.trustpilot-btn:hover{background:#009e6a !important;transform:translateY(-2px);box-shadow:0 3px 8px rgba(0,182,122,0.3)}.social-buttons{display:flex;gap:0.4rem;justify-content:center;margin:0.8rem 0}.social-btn{background:var(--light-bg);border:1px solid #e2e8f0;border-radius:6px;padding:8px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;color:var(--text);text-decoration:none;font-size:1.1rem}.social-btn:hover{background:var(--accent);color:white;border-color:var(--accent);transform:translateY(-2px)}.modal-actions{display:flex;gap:0.8rem;justify-content:center;margin-top:0.8rem}.action-btn{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:8px 16px;cursor:pointer;transition:all 0.2s ease;font-weight:600;color:var(--text);text-decoration:none;display:inline-flex;align-items:center;gap:0.4rem;font-size:var(--base-font-size)}.action-btn:hover{background:var(--accent);color:white;border-color:var(--accent);transform:translateY(-1px)}.success-icon{font-size:2.5rem;color:var(--success-color);margin-bottom:0.4rem}.success-modal .body{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.success-modal .head{text-align:center;justify-content:center;border-bottom:1px solid var(--line);padding:0.8rem 1.2rem;width:100%}.success-modal .foot{text-align:center;border-top:1px solid var(--line);padding:0.8rem 1.2rem;width:100%}.modal .close-btn{position:absolute;top:10px;right:12px;background:none;border:none;font-size:1.3rem;color:var(--muted);cursor:pointer;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:5px;transition:all 0.2s ease;z-index:10}.modal .close-btn:hover{background:#f1f5f9;color:var(--text)}.success-body{display:flex;flex-direction:column}.success-actions{display:flex;flex-direction:column}.success-actions h4{margin:0 0 0.6rem 0;font-size:0.9rem;font-weight:600}.rating-section{margin:0.8rem 0}.trustpilot-btn{display:flex;align-items:center;justify-content:center;gap:0.4rem;width:100%;padding:0.6rem 0.8rem}.quick-actions.horizontal{display:flex;gap:0.6rem;margin-top:1.2rem}.quick-actions .btn{flex:1;padding:0.6rem 0.8rem}.foot{margin-top:0.8rem;padding-top:0.6rem;border-top:1px solid #e9ecef}.foot small{color:#6c757d;font-size:0.82rem}.auth-buttons{display:flex;gap:0.4rem;align-items:center}.user-menu{display:flex;align-items:center;gap:0.8rem}.user-greeting{font-size:0.82rem;color:#666;font-weight:500}.mobile-auth-links{display:none;flex-direction:column;gap:0.4rem;padding-top:0.8rem;border-top:1px solid #e9ecef;margin-top:0.8rem}.mobile-auth-links .auth-link{padding:0.4rem 0.8rem;text-decoration:none;border-radius:4px;text-align:center;font-weight:500;font-size:var(--base-font-size)}.mobile-auth-links .auth-link.signin{background:#f8f9fa;color:#333}.mobile-auth-links .auth-link.signup{background:#1f6feb;color:white}.mobile-auth-links .auth-link.dashboard{background:#28a745;color:white}.mobile-auth-links .auth-link.logout{background:var(--danger-color);color:white}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:nowrap}.brand{flex-shrink:0}.lang-toggle{font-size:1.1rem;min-width:var(--btn-min-height);min-height:var(--btn-min-height)}.auth-buttons{flex-shrink:0}.user-menu{display:flex;align-items:center;gap:6px;flex-shrink:0}.pdf-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}.hamburger{display:none;flex-shrink:0}.lang-modal .box{max-width:450px}.lang-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;padding:6px}.lang-option{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--border-radius-sm);background:var(--card);color:var(--text);cursor:pointer;transition:all 0.2s ease;font-size:0.9rem;font-weight:600}.lang-option:hover{background:var(--accent);color:white;border-color:var(--accent);transform:translateY(-1px)}.lang-option::before{content:attr(data-emoji);font-size:1.1rem}#currency{min-width:90px}.features-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}.feature-col{display:flex;flex-direction:column;gap:0.8rem}.feature-col-title{margin:0;font-size:1rem;font-weight:700;color:var(--text);display:flex;align-items:center;gap:0.4rem;padding-bottom:0.3rem;border-bottom:1px solid var(--accent)}.feature-buttons{display:flex;flex-direction:column;gap:0.5rem}.template-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:2.2rem;cursor:pointer;text-align:left;width:100%;font-size:var(--base-font-size)}.template-select:focus{outline:0;box-shadow:0 0 0 2px var(--ring);border-color:var(--accent)}.import-json-btn{display:inline-flex;align-items:center;justify-content:center;position:relative}.import-json-btn input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.feature-buttons .btn{transition:all 0.2s ease;min-height:var(--btn-min-height);display:flex;align-items:center;justify-content:flex-start;gap:0.4rem;font-weight:600;font-size:var(--base-font-size)}.feature-buttons .btn:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,0.12)}.feature-buttons .btn.primary:hover{background:#1e40af;border-color:#1e40af}.feature-buttons .btn.secondary:hover{background:#f1f5f9;border-color:#cbd5e1}.feature-buttons .btn.ghost:hover{background:#eef2ff;border-color:#c7d2fe}.template-selector-group{display:flex;align-items:center;gap:0.4rem}.template-label{font-size:0.8rem;font-weight:600;color:var(--muted);margin:0;padding:0 0.2rem}.template-selector-group .template-select{margin-top:0}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:nowrap}.brand{flex-shrink:0;margin-right:auto}.lang-toggle,#themeToggle{font-size:1.1rem;min-width:var(--btn-min-height);min-height:var(--btn-min-height);border:1px solid var(--line);background:var(--card);border-radius:var(--border-radius-sm);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s ease}.lang-toggle:hover,#themeToggle:hover{background:var(--accent);color:white;border-color:var(--accent);transform:translateY(-1px)}.auth-buttons{display:flex;gap:4px;flex-shrink:0}.auth-buttons .btn.ghost{background:transparent;border:1px solid transparent;color:var(--text);font-weight:600;transition:all 0.2s ease;min-width:70px;white-space:nowrap;font-size:var(--base-font-size)}.auth-buttons .btn.ghost:hover{background:var(--accent);color:white;border-color:var(--accent);transform:translateY(-1px)}#signInBtn:hover{background:#2563eb;border-color:#2563eb}#signUpBtn:hover{background:#059669;border-color:#059669}.user-menu .btn.ghost{background:transparent;border:1px solid transparent;color:var(--text);transition:all 0.2s ease;font-size:var(--base-font-size)}.user-menu .btn.ghost:hover{background:var(--accent);color:white;border-color:var(--accent)}.pdf-controls{display:none}.menu{display:none}.nav{display:contents}.topbar select,.topbar .btn{min-height:var(--btn-min-height)}:root[data-theme="dark"] .brand-title{color:#f1f5f9;text-shadow:0 0 4px rgba(255,255,255,0.2)}:root[data-theme="dark"] .menu a,:root[data-theme="dark"] .footer .footer-menu a{color:#cbd5e1;font-weight:600;text-decoration:none}:root[data-theme="dark"] .menu a:hover,:root[data-theme="dark"] .footer .footer-menu a:hover{color:var(--text);text-decoration:underline}:root[data-theme="dark"] .hero{background:var(--light-bg);border-bottom:1px solid var(--line)}:root[data-theme="dark"] .hero h1{color:var(--text)}:root[data-theme="dark"] .hero p{color:#cbd5e1}:root[data-theme="dark"] .label,:root[data-theme="dark"] .label-edit,:root[data-theme="dark"] .mkey,:root[data-theme="dark"] .muted{color:#cfd8e3}:root[data-theme="dark"] .label-edit:hover,:root[data-theme="dark"] .label-edit:focus{border-color:#64748b}:root[data-theme="dark"] .mkey{border-color:var(--line);background:rgba(255,255,255,.035)}:root[data-theme="dark"] .feature-card,:root[data-theme="dark"] .use-case,:root[data-theme="dark"] .faq-item{background:var(--card);border-color:var(--line)}:root[data-theme="dark"] .feature-badge{background:var(--card);border-color:var(--accent);color:var(--text)}:root[data-theme="dark"] .hero-close-btn{background:rgba(255,255,255,0.2);color:var(--text)}:root[data-theme="dark"] .hero-close-btn:hover{background:rgba(255,255,255,0.3)}:root[data-theme="dark"] .social-links a{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1);color:#fff}:root[data-theme="dark"] .social-links a:hover{background:rgba(255,255,255,0.1)}:root[data-theme="dark"] .lang-toggle,:root[data-theme="dark"] #themeToggle{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)}:root[data-theme="dark"] .auth-buttons .btn.ghost,:root[data-theme="dark"] .user-menu .btn.ghost{background:transparent;border-color:transparent;color:var(--text)}:root[data-theme="dark"] .auth-buttons .btn.ghost:hover,:root[data-theme="dark"] .user-menu .btn.ghost:hover{color:white}:root[data-theme="dark"] #signInBtn:hover{background:#3b82f6;border-color:#3b82f6}:root[data-theme="dark"] #signUpBtn:hover{background:#10b981;border-color:#10b981}:root[data-theme="dark"] .lang-option{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)}:root[data-theme="dark"] .lang-option:hover{background:var(--accent);border-color:var(--accent)}:root[data-theme="dark"] .feature-buttons .btn.secondary:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.2)}:root[data-theme="dark"] .feature-buttons .btn.ghost:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)}:root[data-theme="dark"] .feature-col-title{color:var(--text);border-bottom-color:var(--accent)}:root[data-theme="dark"] .template-label{color:#94a3b8}:root[data-theme="dark"] .modal .box{background:var(--card);border-color:var(--line);color:var(--text)}:root[data-theme="dark"] .social-btn{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)}:root[data-theme="dark"] .action-btn{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1)}:root[data-theme="dark"] .modal .close-btn:hover{background:rgba(255,255,255,0.1)}@media (max-width:480px){.container,.hero,.features-section,.use-cases-section,.faq-section,.cta-final-section,.footer,.topbar{padding:0 8px}.hero{padding:30px 8px}.features-section,.faq-section,.cta-final-section{padding:40px 8px}.hero h1{font-size:1.5rem;line-height:1.3}.hero-subtitle{font-size:0.9rem}.feature-badge{padding:5px 10px;font-size:0.8rem;width:100%;text-align:center}.hero-features{gap:6px}.trust-indicators{gap:0.8rem}.trust-item{min-width:70px}.trust-item strong{font-size:1.1rem}.btn.large{padding:10px 20px;font-size:1rem;width:100%}.hero-close-btn{top:-12px;right:-12px;width:32px;height:32px;font-size:14px}.quick-actions.horizontal{flex-direction:column;gap:0.4rem}.social-links{gap:0.4rem}.social-links a{width:28px;height:28px}.auth-buttons{flex-direction:column;gap:4px}.auth-buttons .btn.ghost{width:100%;min-width:auto}.user-menu{flex-direction:column;gap:3px}.user-greeting{text-align:center;width:100%}.lang-grid{grid-template-columns:1fr}.pdf-controls{flex-direction:column}.pdf-controls select,.pdf-controls .btn{width:100%}}@media (max-width:360px){.container,.hero,.features-section,.use-cases-section,.faq-section,.cta-final-section,.footer,.topbar{padding:0 6px}.hero{padding:20px 6px}.card{padding:10px;margin:8px 0}.hero h1{font-size:1.4rem}.feature-badge{font-size:0.75rem;padding:4px 8px}}@media (max-width:860px){.hamburger{display:inline-flex;min-height:var(--btn-min-height);min-width:var(--btn-min-height)}.topbar-inner{flex-wrap:wrap;gap:8px;position:relative}.brand{order:1}.nav{order:2;width:100%;justify-content:flex-end;gap:6px}.pdf-controls{order:3;width:100%;justify-content:flex-end}.menu{display:none}.topbar select{min-width:0;width:auto;min-height:var(--btn-min-height)}.w80{width:65px}body.nav-open .menu{display:flex;left:var(--section-padding);flex-direction:column;gap:8px;position:absolute;top:48px;right:auto;background:var(--card);border:1px solid var(--line);border-radius:var(--border-radius);padding:8px 10px;box-shadow:0 6px 20px rgba(0,0,0,.1);width:min(80vw,260px);z-index:15}.menu a{padding:6px 4px;min-height:var(--btn-min-height);display:flex;align-items:center;font-size:var(--base-font-size)}.header-grid{grid-template-columns:1fr;gap:16px}.invoice-title{text-align:center}.two-cols{grid-template-columns:1fr;gap:var(--section-padding)}.table .thead{display:none}.tbody .trow{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:8px 10px;align-items:start;padding:10px;border-top:1px solid var(--line)}.trow > div{padding:0;border-right:0}.trow > div:nth-child(1){grid-column:1 / -1}.trow > div:nth-child(2),.trow > div:nth-child(3){grid-column:auto}.trow > div:nth-child(4),.trow > div:nth-child(5){grid-column:auto}.trow > div:nth-child(6){grid-column:1 / 2;text-align:left;font-weight:700}.trow > div:nth-child(7){grid-column:2 / 3;justify-self:end}.trow input.item,.trow input.qty,.trow input.rate,.trow input.tax,.trow input.disc{width:100%;min-height:var(--input-min-height)}.tbody .trow{background:var(--card);border-radius:var(--border-radius);box-shadow:0 3px 8px rgba(0,0,0,.03);margin-bottom:6px}.trow > div::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.controls-row{flex-wrap:wrap;align-items:stretch;gap:8px;overflow-x:visible}.controls-row .row{flex:1 1 100%;min-width:0}.controls-row input,.controls-row select{width:100%}.card{padding:var(--card-padding)}input,textarea{min-height:var(--input-min-height);overflow:visible;font-size:var(--base-font-size)}textarea{min-height:100px}.features-grid,.use-cases-grid,.faq-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:1.5rem}.footer-bottom{flex-direction:column;text-align:center}.footer-links{justify-content:center}.hero-features{justify-content:center}.table{overflow-x:auto;display:block}.thead,.trow{min-width:550px}.hamburger{display:inline-flex;order:1}.brand{order:0;flex:1}.lang-toggle{order:2}.auth-buttons,.user-menu{order:3;width:100%;justify-content:center;margin-top:6px}.pdf-controls{order:4;width:100%;justify-content:center;margin-top:6px;flex-wrap:wrap}.pdf-controls select,.pdf-controls .btn{flex:1;min-width:110px;text-align:center}.auth-buttons{gap:8px}.auth-buttons .btn.ghost{min-width:90px;flex:1}.user-menu{flex-wrap:wrap;gap:4px}.features-two-cols{grid-template-columns:1fr;gap:1.2rem}.feature-buttons{gap:0.4rem}.feature-buttons .btn{min-height:42px;font-size:var(--base-font-size)}.mobile-auth-links{display:flex}}@media (max-width:600px){.footer .lang-sitemap li{font-size:.82rem}.meta-row{grid-template-columns:1fr;gap:4px}.mkey{padding:4px 6px}.features-two-cols{gap:0.8rem}.feature-col-title{font-size:0.9rem}.feature-buttons .btn{min-height:44px;font-size:var(--base-font-size)}.template-selector-group{gap:0.3rem}.template-label{font-size:0.75rem}}@media print{.topbar,.hero,.features-section,.use-cases-section,.faq-section,.cta-final-section,.footer{display:none !important}.container{max-width:none;margin:0;padding:0}.card{box-shadow:none;border:1px solid #000}}.footer .footer-menu{display:flex;gap:6px 12px;flex-wrap:wrap;justify-content:center;margin-bottom:6px}.footer .footer-menu a{color:#334155;font-weight:600;text-decoration:none;padding:4px 6px;border-radius:6px;font-size:var(--base-font-size)}.footer .footer-menu a:hover{text-decoration:underline}.footer .lang-sitemap{display:none}.hide{display:none !important}