:root{--bg:#f4f6f8;--card:#fff;--text:#172033;--muted:#667085;--line:#e4e7ec;--brand:#111827;--green:#067647;--red:#b42318;--yellow:#b54708;--blue:#175cd3}*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}a{color:var(--blue)}.top{background:#111827;color:#fff;padding:14px 24px;display:flex;gap:30px;align-items:center;position:sticky;top:0;z-index:5}.brand{font-weight:800;white-space:nowrap}.top nav{display:flex;gap:15px;flex-wrap:wrap}.top nav a{color:#e5e7eb;text-decoration:none;font-size:14px}.admin-wrap{max-width:1400px;margin:0 auto;padding:28px}.public-wrap{max-width:1100px;margin:0 auto;padding:28px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}.page-head h1{margin:0;font-size:30px}.page-head p{color:var(--muted);margin:5px 0 0}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:0 1px 2px #1018280d}.card h2{margin:0 0 16px;font-size:18px}.metric{grid-column:span 3}.metric strong{display:block;font-size:30px;margin-top:8px}.metric span{color:var(--muted)}.btn{display:inline-block;background:#111827;color:#fff;text-decoration:none;border:0;border-radius:8px;padding:10px 14px;font-weight:650;cursor:pointer}.btn.secondary{background:#fff;color:#111827;border:1px solid #d0d5dd}.btn.danger{background:#b42318}.btn.warn{background:#b54708}.actions{display:flex;gap:8px;flex-wrap:wrap}.flash{padding:12px 14px;border-radius:8px;margin-bottom:16px}.flash-success{background:#ecfdf3;color:#067647}.flash-error{background:#fef3f2;color:#b42318}.flash-warning{background:#fffaeb;color:#b54708}.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.badge-green{background:#ecfdf3;color:#067647}.badge-red{background:#fef3f2;color:#b42318}.badge-yellow{background:#fffaeb;color:#b54708}.badge-blue{background:#eff8ff;color:#175cd3}.badge-orange{background:#fff6ed;color:#b93815}.badge-grey{background:#f2f4f7;color:#475467}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#667085}.num{text-align:right}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field span{font-size:13px;font-weight:700}.field input,.field select,.field textarea,input,select,textarea{padding:10px 11px;border:1px solid #d0d5dd;border-radius:8px;font:inherit;background:#fff}.field small{color:#667085}.check{display:flex;gap:9px;align-items:center;margin:9px 0}.stack{display:flex;flex-direction:column;gap:10px}.login-box{max-width:460px;margin:80px auto}.invoice-actions{max-width:210mm;margin:0 auto 15px;display:flex;justify-content:flex-end;gap:8px}.invoice-sheet,.qr-sheet{width:210mm;min-height:297mm;margin:0 auto 20px;background:#fff;padding:18mm;box-shadow:0 4px 20px #1018281f}.invoice-head{display:flex;justify-content:space-between;gap:40px}.invoice-head h1{margin:0}.invoice-meta{text-align:right}.billto{margin:35px 0}.invoice-table{margin-top:20px}.totals{margin:25px 0 0 auto;width:80mm}.totals div{display:flex;justify-content:space-between;padding:5px 0}.totals .grand{font-size:17px;border-top:2px solid #111;margin-top:5px;padding-top:10px}.pay-note{margin-top:28px}.qr-sheet{min-height:auto;padding:0;display:grid;grid-template-columns:62mm 148mm;border-top:1px dashed #666}.receipt,.payment-part{padding:5mm;min-height:105mm}.receipt{border-right:1px dashed #666}.receipt h3,.payment-part h3{margin:0 0 10mm}.receipt small,.payment-part small{font-weight:700}.receipt p,.payment-part p{font-size:10px;line-height:1.35;margin:2px 0 8px}.qr-grid{display:grid;grid-template-columns:50mm 1fr;gap:10mm}.amount-line{display:flex;gap:15mm;align-items:end;margin-top:8mm}.amount-line strong{font-size:16px}.big{margin-left:0}.risk-reasons{margin:8px 0 0;padding-left:18px;color:#475467}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.muted{color:#667085}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f2f4f7;padding:2px 5px;border-radius:4px}@media(max-width:900px){.metric{grid-column:span 6}.form-grid,.two-col{grid-template-columns:1fr}.top{align-items:flex-start;flex-direction:column}.invoice-sheet,.qr-sheet{width:100%;min-height:0}.qr-sheet{grid-template-columns:1fr}.receipt{border-right:0;border-bottom:1px dashed #666}}@media print{body{background:#fff}.no-print,.top{display:none!important}.public-wrap{max-width:none;padding:0}.invoice-sheet,.qr-sheet{box-shadow:none;margin:0;width:210mm;page-break-after:always}.qr-sheet{page-break-after:auto}.invoice-sheet{padding:18mm}.qr-sheet{min-height:105mm}@page{size:A4;margin:0}}

/* v0.3.4 – Fasnacht24 customer center */
.public-page{background:linear-gradient(180deg,#fff 0,#fbf9ff 35%,#f5f7fb 100%);min-height:100vh;position:relative;overflow-x:hidden}
.public-site-header{max-width:1180px;margin:0 auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:2}
.public-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:#111827}
.public-logo .logo-mark{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#ec4899,#7c3aed 55%,#0ea5e9);color:#fff;font-weight:900;box-shadow:0 9px 24px rgba(124,58,237,.25);transform:rotate(-3deg)}
.public-logo strong{font-size:22px;display:block;line-height:1}.public-logo small{display:block;color:#667085;font-size:12px;margin-top:5px;font-weight:700;letter-spacing:.03em}
.shop-back{color:#111827;text-decoration:none;font-weight:750;background:#fff;border:1px solid #e4e7ec;border-radius:999px;padding:10px 15px;box-shadow:0 4px 12px rgba(16,24,40,.06)}
.shop-back:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(16,24,40,.1)}
.public-benefits{max-width:1120px;margin:0 auto 4px;padding:9px 18px;border-radius:14px;background:#111827;color:#fff;display:flex;justify-content:center;gap:28px;flex-wrap:wrap;font-size:13px;font-weight:700;position:relative;z-index:2}
.public-wrap{position:relative;z-index:1}
.public-confetti{position:absolute;inset:0 0 auto 0;height:360px;pointer-events:none;overflow:hidden;z-index:0}
.public-confetti i{position:absolute;width:9px;height:18px;border-radius:3px;opacity:.5;transform:rotate(24deg)}
.public-confetti i:nth-child(1){left:5%;top:40px;background:#ec4899;transform:rotate(32deg)}.public-confetti i:nth-child(2){left:14%;top:155px;background:#f59e0b;transform:rotate(-22deg)}.public-confetti i:nth-child(3){left:27%;top:68px;background:#0ea5e9;transform:rotate(56deg)}.public-confetti i:nth-child(4){right:29%;top:95px;background:#22c55e;transform:rotate(15deg)}.public-confetti i:nth-child(5){right:18%;top:42px;background:#7c3aed;transform:rotate(-35deg)}.public-confetti i:nth-child(6){right:7%;top:160px;background:#ef4444;transform:rotate(62deg)}.public-confetti i:nth-child(7){left:42%;top:30px;background:#facc15;transform:rotate(77deg)}.public-confetti i:nth-child(8){right:42%;top:175px;background:#ec4899;transform:rotate(-12deg)}
.customer-auth-shell{max-width:570px;margin:44px auto 80px}
.customer-auth-card{background:rgba(255,255,255,.96);border:1px solid rgba(124,58,237,.12);border-radius:26px;padding:38px;box-shadow:0 24px 70px rgba(44,30,90,.13),0 2px 8px rgba(16,24,40,.05);position:relative;overflow:hidden}
.customer-auth-card:before{content:"";height:7px;position:absolute;left:0;right:0;top:0;background:linear-gradient(90deg,#ec4899,#f59e0b,#22c55e,#0ea5e9,#7c3aed)}
.customer-kicker{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#7c3aed;margin-bottom:10px}.customer-auth-card h1{font-size:36px;line-height:1.08;margin:0 0 12px;letter-spacing:-.03em}.customer-lead{font-size:17px;line-height:1.55;color:#475467;margin:0 0 22px}.customer-trust{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.customer-trust span{background:#f8f5ff;color:#4c1d95;border:1px solid #ede9fe;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700}.customer-form{gap:13px}.customer-field input{height:52px;border-radius:12px;font-size:16px;border:1px solid #d0d5dd;box-shadow:0 1px 2px rgba(16,24,40,.03)}.customer-field input:focus{outline:none;border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.13)}.customer-primary{background:linear-gradient(135deg,#7c3aed,#ec4899);border-radius:12px;padding:14px 18px;font-size:15px;box-shadow:0 10px 24px rgba(124,58,237,.22);display:flex;align-items:center;justify-content:center;gap:8px}.customer-primary:hover{filter:brightness(1.03);transform:translateY(-1px)}.customer-help{font-size:13px;line-height:1.5;color:#667085;text-align:center;margin:16px 0 0}.otp-input{text-align:center;font-size:28px!important;font-weight:800;letter-spacing:.28em;font-variant-numeric:tabular-nums}.otp-tools{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;flex-wrap:wrap}.customer-link,.customer-link-button{font:inherit;font-size:14px;font-weight:750;color:#6d28d9;text-decoration:none;background:none;border:0;padding:4px;cursor:pointer}.customer-link:hover,.customer-link-button:hover{text-decoration:underline}.customer-link-button:disabled{color:#98a2b3;cursor:default;text-decoration:none}.otp-divider{color:#d0d5dd}
.customer-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:30px 0 20px}.customer-dashboard-head h1{font-size:36px;margin:0;letter-spacing:-.03em}.customer-dashboard-head p{color:#667085;margin:6px 0 0}.customer-head-actions{display:flex;gap:9px}.customer-logout{background:#111827}.customer-invoices{border-radius:20px;padding:0;overflow:hidden}.customer-section-title{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eaecf0;background:linear-gradient(135deg,#fff,#faf7ff)}.customer-section-title h2{margin:0 0 5px;font-size:20px}.customer-section-title p{margin:0;color:#667085;font-size:14px}.customer-count{background:#f3e8ff;color:#6b21a8;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}.table-scroll{overflow-x:auto}.customer-table td,.customer-table th{padding:15px 18px}.customer-table tbody tr:hover{background:#fcfbff}.customer-table small{color:#667085}.customer-open{white-space:nowrap;font-weight:800;text-decoration:none;color:#7c3aed}.customer-empty{text-align:center;padding:52px 24px;border-radius:20px}.customer-empty-icon{font-size:48px;margin-bottom:12px}.customer-empty h2{font-size:24px;margin:0 0 8px}.customer-empty p{color:#667085;margin:0 0 20px}.public-footer{max-width:1180px;margin:40px auto 0;padding:24px 28px 34px;border-top:1px solid #e4e7ec;display:flex;justify-content:space-between;gap:20px;color:#667085;font-size:13px}.public-footer>div:last-child{display:flex;gap:16px}.public-footer a{color:#475467;text-decoration:none}.public-footer a:hover{text-decoration:underline}
@media(max-width:700px){.public-site-header{padding:16px 18px}.public-logo .logo-mark{width:42px;height:42px}.public-logo strong{font-size:19px}.shop-back{font-size:0;padding:10px}.shop-back:after{content:"← Shop";font-size:13px}.public-benefits{border-radius:0;margin:0;padding:9px 12px;gap:10px;font-size:11px}.customer-auth-shell{margin:24px auto 50px}.customer-auth-card{padding:28px 20px;border-radius:20px}.customer-auth-card h1,.customer-dashboard-head h1{font-size:30px}.customer-dashboard-head{align-items:flex-start;flex-direction:column}.customer-head-actions{width:100%}.customer-head-actions .btn{flex:1;text-align:center}.customer-section-title{align-items:flex-start;gap:10px}.public-footer{flex-direction:column;padding:20px 18px}.public-wrap{padding:18px}.otp-tools{gap:6px}.customer-table td,.customer-table th{padding:12px 14px}}
@media print{.public-site-header,.public-benefits,.public-footer,.public-confetti{display:none!important}}

/* v0.3.5 – Fasnacht24 branded invoice */
.invoice-branded{position:relative;overflow:hidden;padding:14mm 16mm 15mm;border-top:0}.invoice-party-line{position:absolute;left:0;right:0;top:0;height:5mm;display:grid;grid-template-columns:1.2fr 1fr .8fr 1.1fr .9fr 1fr}.invoice-party-line span:nth-child(1){background:#ef4444}.invoice-party-line span:nth-child(2){background:#f59e0b}.invoice-party-line span:nth-child(3){background:#84cc16}.invoice-party-line span:nth-child(4){background:#06b6d4}.invoice-party-line span:nth-child(5){background:#8b5cf6}.invoice-party-line span:nth-child(6){background:#ec4899}.invoice-brand-head{display:flex;justify-content:space-between;gap:18mm;align-items:flex-start;padding-top:5mm;padding-bottom:9mm;border-bottom:1px solid #e8e8ee}.invoice-brand{display:flex;align-items:center;gap:8mm;min-width:0}.invoice-brand img{width:78mm;max-height:30mm;object-fit:contain;object-position:left center;display:block}.invoice-brand-copy{display:flex;flex-direction:column;gap:1mm;max-width:62mm}.invoice-brand-copy strong{font-size:10.5pt;line-height:1.25;color:#111827}.invoice-brand-copy span{font-size:8.5pt;color:#667085}.invoice-title-block{text-align:right;min-width:47mm}.invoice-kicker{display:inline-block;padding:2mm 3mm;border-radius:999px;background:#111827;color:#fff;font-size:8pt;font-weight:800;letter-spacing:.12em}.invoice-title-block>strong{display:block;margin-top:3mm;font-size:15pt;color:#111827}.invoice-title-block small{display:block;margin-top:1mm;color:#667085;font-size:9pt}.invoice-info-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:13mm;margin:10mm 0 8mm}.invoice-address-card{border:1px solid #eadffd;border-radius:4mm;padding:5mm;background:linear-gradient(135deg,#fff 0%,#fbf8ff 100%);position:relative}.invoice-address-card:before{content:"";position:absolute;left:0;top:4mm;bottom:4mm;width:1.2mm;border-radius:2mm;background:linear-gradient(#ef4444,#f59e0b,#8b5cf6)}.invoice-address-card .invoice-label{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:7.5pt;color:#7c3aed;font-weight:800;margin-bottom:2.2mm}.invoice-address-card>strong{font-size:11pt}.invoice-address-card p{font-size:9.5pt;line-height:1.5;margin:1.5mm 0 0}.invoice-facts{border:1px solid #eceef2;border-radius:4mm;padding:2mm 5mm;background:#fff}.invoice-facts div{display:flex;justify-content:space-between;gap:6mm;padding:3mm 0;border-bottom:1px solid #f0f1f4;font-size:9pt}.invoice-facts div:last-child{border-bottom:0}.invoice-facts span{color:#667085}.invoice-facts strong{text-align:right;color:#172033}.branded-table{margin-top:3mm;border:1px solid #eceef2;border-radius:3mm;overflow:hidden}.branded-table thead th{background:#111827;color:#fff;border-bottom:0;font-size:7.5pt;letter-spacing:.05em}.branded-table tbody tr:nth-child(even){background:#fafafa}.branded-table td{font-size:8.8pt}.branded-table td:first-child strong{font-weight:700}.invoice-summary-row{display:grid;grid-template-columns:1fr 74mm;gap:12mm;align-items:start;margin-top:8mm}.invoice-thanks{padding:5mm;border-radius:4mm;background:linear-gradient(135deg,#fff7ed,#faf5ff);border:1px solid #f0e6f7;min-height:34mm}.invoice-thanks strong{font-size:10.5pt}.invoice-thanks p{font-size:8.7pt;line-height:1.45;color:#667085;margin:2mm 0}.invoice-thanks span{font-size:8pt;font-weight:800;color:#7c3aed}.branded-totals{width:auto;margin:0;border:1px solid #eceef2;border-radius:4mm;padding:4mm 5mm;background:#fff}.branded-totals div{font-size:9pt;padding:1.8mm 0}.branded-totals .grand{font-size:11pt;border-top:2px solid #111827;margin-top:2mm;padding-top:3mm}.branded-totals .grand b{color:#111827}.branded-totals .open b{color:#b42318}.invoice-payment-note{display:flex;gap:4mm;align-items:flex-start;margin-top:8mm;border:1px solid #d9e7ff;background:#f5f9ff;border-radius:4mm;padding:4mm 5mm}.payment-note-icon{width:12mm;height:12mm;display:flex;align-items:center;justify-content:center;border-radius:3mm;background:#175cd3;color:#fff;font-weight:900;font-size:7pt;flex:0 0 auto}.invoice-payment-note strong{font-size:9.5pt}.invoice-payment-note p{font-size:8.7pt;line-height:1.45;margin:1mm 0 0;color:#475467}.invoice-footer{display:flex;justify-content:space-between;gap:10mm;margin-top:10mm;padding-top:4mm;border-top:1px solid #eceef2;font-size:7.5pt;color:#667085;line-height:1.5}.invoice-footer strong{color:#344054}.invoice-footer-right{text-align:right;font-weight:800;color:#7c3aed}

@media(max-width:900px){.invoice-brand-head,.invoice-info-grid,.invoice-summary-row{grid-template-columns:1fr;display:grid}.invoice-brand-head{gap:6mm}.invoice-title-block{text-align:left}.invoice-brand{align-items:flex-start}.invoice-brand img{width:min(78mm,70vw)}.invoice-summary-row{gap:6mm}}
@media print{.invoice-branded{padding:14mm 16mm 15mm!important}.invoice-brand img{print-color-adjust:exact;-webkit-print-color-adjust:exact}.invoice-party-line,.invoice-kicker,.invoice-address-card,.invoice-thanks,.invoice-payment-note,.branded-table thead th{print-color-adjust:exact;-webkit-print-color-adjust:exact}.qr-sheet{background:#fff!important;color:#000!important}.qr-sheet *{print-color-adjust:economy;-webkit-print-color-adjust:economy}}
