:root{
  --bg:#020817; --panel:rgba(255,255,255,.06); --border:rgba(255,255,255,.12); --text:#f8fafc;
  --muted:#94a3b8; --cyan:#22d3ee; --indigo:#6366f1; --green:#34d399; --shadow:0 30px 80px rgba(0,0,0,.35);
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;color:var(--text);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;overflow-x:hidden}
a{text-decoration:none;color:inherit} button,input,textarea,select{font:inherit}
.page-bg{position:fixed;inset:0;z-index:-1;background:
  radial-gradient(circle at 20% 12%, rgba(99,102,241,.20), transparent 22%),
  radial-gradient(circle at 78% 18%, rgba(34,211,238,.14), transparent 24%),
  radial-gradient(circle at 78% 76%, rgba(52,211,153,.12), transparent 22%),
  linear-gradient(180deg,#010816 0%,#08162f 50%,#071122 100%)}
.container{width:min(1280px,calc(100% - 32px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:100;backdrop-filter:blur(16px);background:rgba(2,8,23,.74);border-bottom:1px solid rgba(255,255,255,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0}
.brand{display:flex;align-items:center;gap:14px}.brand-mark{width:46px;height:46px;border-radius:18px;display:grid;place-items:center;color:#03111f;font-weight:900;background:linear-gradient(135deg,var(--cyan),var(--indigo));box-shadow:0 14px 35px rgba(34,211,238,.25)}
.brand-copy{display:flex;flex-direction:column;line-height:1.1}.brand-copy strong{font-size:1.35rem;letter-spacing:-.04em}.brand-copy small{margin-top:4px;color:var(--muted);font-size:.88rem}
.desktop-nav,.header-actions{display:flex;align-items:center;gap:16px}.desktop-nav a{color:#d7e4f2}
.menu-toggle{display:none;width:44px;height:44px;padding:10px;border-radius:14px;border:1px solid var(--border);background:rgba(255,255,255,.05);flex-direction:column;gap:5px;justify-content:center}.menu-toggle span{display:block;height:2px;background:#fff;border-radius:999px}
.mobile-nav{display:none;padding:0 16px 16px;border-top:1px solid rgba(255,255,255,.06)}.mobile-nav a{display:block;padding:12px 8px;color:#e2e8f0}.mobile-nav.is-open{display:block}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 22px;border-radius:18px;border:1px solid transparent;font-weight:700;transition:.24s ease}.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(90deg,var(--cyan),var(--indigo));color:#041120;box-shadow:0 16px 35px rgba(99,102,241,.22)}
.btn-secondary{background:rgba(255,255,255,.05);border-color:var(--border);color:#fff}.btn-light{background:#f8fafc;color:#0f172a}.btn-ghost{background:transparent;border-color:var(--border);color:#e2e8f0}.btn-small{min-height:40px;padding:0 16px;border-radius:14px}
.hero-strip{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px;align-items:center;padding:52px 0 26px}
.hero-badge{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid rgba(34,211,238,.35);background:rgba(10,80,112,.16);color:#b6f5ff}.hero-badge-dot{width:10px;height:10px;border-radius:50%;background:var(--cyan)}
.hero-copy-wrap h1{margin:18px 0 14px;font-size:clamp(2.7rem,6vw,5.4rem);line-height:.95;letter-spacing:-.05em}.hero-text{max-width:760px;color:#dbe7f4;font-size:1.15rem;line-height:1.9}.hero-actions-main{display:flex;gap:14px;margin-top:28px;flex-wrap:wrap}
.hero-side-card{display:grid;gap:16px}.stat-card,.card,.info-card{border:1px solid var(--border);background:var(--panel);backdrop-filter:blur(14px);box-shadow:var(--shadow)}
.stat-card{min-height:150px;border-radius:28px;padding:24px;display:flex;flex-direction:column;justify-content:flex-end}.stat-card strong{font-size:2.2rem}.stat-card span{margin-top:8px;color:#c1d0df;line-height:1.7}
.app-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.84fr);gap:24px;align-items:start;padding-bottom:38px}
.preview-column{display:flex;flex-direction:column;gap:18px;min-width:0}
.card{border-radius:30px;padding:24px;margin-bottom:0}.card-head{margin-bottom:14px}.card-head-between{display:flex;justify-content:space-between;align-items:center;gap:14px}
.section-kicker{margin:0 0 6px;text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;color:#7dd3fc;font-weight:700}.card h2,.side-title{margin:0;letter-spacing:-.03em}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:8px}.field span{font-size:.92rem;color:#dce8f3;font-weight:600}.field-full{grid-column:1 / -1}
input,textarea,select{width:100%;padding:13px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#fff}textarea{resize:vertical}
.item-row{display:grid;grid-template-columns:1.4fr .6fr .8fr;gap:12px;margin-bottom:12px}.action-bar{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 26px}
.alert{padding:14px 16px;border-radius:14px;margin-bottom:18px}.alert-error{background:rgba(127,29,29,.35);border:1px solid rgba(254,202,202,.25);color:#fee2e2}
.sticky-card{position:relative;top:auto}
.side-title{margin-bottom:12px}
.preview-shell{overflow:hidden}
.invoice-preview{margin-bottom:18px}.preview-shell-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.preview-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:rgba(16,185,129,.18);color:#7ef6c4;font-weight:700;white-space:nowrap}
.invoice-preview{min-height:280px}.preview-paper{background:#fff;color:#0f172a;border-radius:24px;padding:22px;border:1px solid #e2e8f0}
.preview-header{display:flex;justify-content:space-between;gap:18px;margin-bottom:20px}.preview-header h3{margin:6px 0 8px;font-size:1.5rem}.preview-header p,.preview-bill p,.preview-text p,.preview-meta p{margin:4px 0;color:#475569}
.preview-meta{min-width:180px;text-align:right}.preview-meta strong{display:block;margin-bottom:8px;font-size:1.2rem}.preview-meta span{font-weight:700}.preview-label{margin:0 0 8px;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:#64748b;font-weight:700}
.preview-bill{margin-bottom:18px}.preview-bill h4{margin:0 0 8px;font-size:1.05rem}.preview-table{width:100%;border-collapse:collapse;margin-bottom:18px}.preview-table th,.preview-table td{border:1px solid #e2e8f0;padding:10px;text-align:left;font-size:.92rem}.preview-table th{background:#f8fafc}
.right{text-align:right !important}.preview-totals{margin-left:auto;max-width:300px}.preview-totals p{display:flex;justify-content:space-between;gap:14px;margin:8px 0;color:#334155}.preview-totals .grand{padding-top:10px;border-top:1px solid #cbd5e1;font-weight:800;color:#0f172a}
.preview-text{margin-top:18px}.side-list{margin:16px 0 0;padding-left:18px;color:#dbe7f4}.side-list li + li{margin-top:10px}
.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-bottom:44px}.info-card{border-radius:28px;padding:24px}.info-card h3{margin:0 0 10px;font-size:1.3rem}.info-card p{margin:0;color:#dbe7f4;line-height:1.8}
@media (max-width: 1260px){.sticky-card{position:static}}
@media (max-width: 1080px){.hero-strip,.app-grid,.info-grid{grid-template-columns:1fr}.hero-side-card{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 900px){.desktop-nav,.header-actions{display:none}.menu-toggle{display:flex}}
@media (max-width: 720px){.container{width:min(100% - 20px,1280px)}.hero-strip{padding-top:34px}.hero-text{font-size:1.02rem}.grid-2,.item-row,.hero-side-card,.info-grid{grid-template-columns:1fr}.preview-header{flex-direction:column}.preview-meta{text-align:left;min-width:unset}.action-bar,.hero-actions-main{flex-direction:column}.btn{width:100%}.card,.preview-paper,.stat-card,.info-card{border-radius:22px}}

.helper-text{margin:8px 0 24px;color:#94a3b8;font-size:.95rem;line-height:1.7}

.upload-note{margin-top:4px}
.upload-help{color:#94a3b8;font-size:.94rem;line-height:1.7}
.preview-logo{margin-bottom:14px}
.preview-logo img{max-width:160px;max-height:64px;display:block}
