:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --text: #172033;
  --muted: #6e7890;
  --border: #e6e9f0;
  --primary: #6657e8;
  --primary-dark: #5040d6;
  --primary-soft: #eeecff;
  --success: #159a68;
  --success-soft: #e8f8f1;
  --warning: #c27b13;
  --warning-soft: #fff5df;
  --danger: #d84b5b;
  --danger-soft: #ffeaed;
  --info: #2278c9;
  --info-soft: #e8f3ff;
  --shadow-sm: 0 8px 24px rgba(29, 39, 68, .06);
  --shadow-lg: 0 24px 70px rgba(38, 40, 78, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: -.5px; background: linear-gradient(135deg, #8174f4, #5644dc); box-shadow: 0 10px 22px rgba(102,87,232,.28); flex: 0 0 auto; }
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.muted { color: var(--muted); }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

.btn { border: 0; border-radius: 11px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; transition: .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #7163eb, #5847dd); box-shadow: 0 8px 18px rgba(102,87,232,.22); }
.btn-primary:hover { box-shadow: 0 12px 24px rgba(102,87,232,.30); }
.btn-light { color: #384158; background: #f0f2f7; border: 1px solid #e6e9f0; }
.btn-light:hover { background: #e9ecf3; }
.btn-danger { color: #b92e40; background: var(--danger-soft); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-sm { padding: 9px 13px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 7px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 21px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-glass { color: #423a70; background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(10px); }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.alert-success { color: #087149; background: var(--success-soft); border-color: #c9efdf; }
.alert-danger { color: #a32d3b; background: var(--danger-soft); border-color: #ffd0d6; }
.alert-warning { color: #88570d; background: var(--warning-soft); border-color: #f4dfae; }
.alert-info { color: #1a639f; background: var(--info-soft); border-color: #c9e4fb; }
.alert a { text-decoration: underline; font-weight: 700; }

.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-success { color: #08734b; background: var(--success-soft); }
.badge-warning { color: #946013; background: var(--warning-soft); }
.badge-danger { color: #ae3544; background: var(--danger-soft); }
.badge-info { color: #1e68a8; background: var(--info-soft); }
.badge-muted { color: #59647c; background: #edf0f5; }

.field { margin-bottom: 16px; }
.field label { display: block; margin: 0 0 7px; color: #4d5770; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select, .search-form input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: #fff; border: 1px solid #dfe3eb; border-radius: 10px; outline: none; transition: .18s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus, .search-form input:focus { border-color: #9085ee; box-shadow: 0 0 0 3px rgba(102,87,232,.10); }
.field input[readonly] { color: #667087; background: #f5f6f9; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.field-full { grid-column: 1/-1; }
.section-label { margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
.money-input { display: flex; align-items: center; border: 1px solid #dfe3eb; border-radius: 10px; overflow: hidden; background: #fff; }
.money-input:focus-within { border-color: #9085ee; box-shadow: 0 0 0 3px rgba(102,87,232,.10); }
.money-input span { padding: 0 12px; color: var(--muted); font-weight: 700; border-right: 1px solid var(--border); }
.money-input input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(circle at 10% 10%, #eeeaff 0, transparent 35%), radial-gradient(circle at 90% 80%, #e3f5ff 0, transparent 34%), #f7f8fc; }
.auth-shell { width: min(430px,100%); }
.install-shell { width: min(760px,100%); }
.auth-brand { display: flex; align-items: center; gap: 12px; width: max-content; margin: 0 auto 20px; }
.auth-brand strong, .landing-brand strong, .sidebar-brand strong { display: block; font-size: 15px; }
.auth-brand span, .landing-brand span, .sidebar-brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.auth-card { padding: 30px; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.85); border-radius: 22px; box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); }
.auth-card h1 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.8px; }
.auth-card > p { margin: 0 0 24px; font-size: 14px; line-height: 1.6; }
.wide-card { padding: 32px; }
.back-link { display: block; margin-top: 20px; color: var(--muted); text-align: center; font-size: 13px; }

.admin-body { background: #f4f6fa; }
.admin-layout { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 252px; padding: 22px 16px 18px; display: flex; flex-direction: column; color: #dfe2ef; background: linear-gradient(180deg, #212538 0%, #171a29 100%); box-shadow: 10px 0 30px rgba(23,26,41,.08); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand strong { color: #fff; }
.sidebar-brand span { color: #9299af; }
.sidebar-nav { padding-top: 20px; display: grid; gap: 6px; }
.sidebar-nav a { padding: 11px 12px; display: flex; align-items: center; gap: 12px; color: #aeb4c6; border-radius: 10px; font-size: 13px; font-weight: 650; }
.sidebar-nav a > span { width: 25px; height: 25px; display: grid; place-items: center; color: #9299af; background: rgba(255,255,255,.045); border-radius: 8px; font-size: 12px; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: linear-gradient(135deg, rgba(121,105,239,.95), rgba(88,71,221,.92)); box-shadow: 0 9px 18px rgba(55,43,146,.25); }
.sidebar-nav a.active > span { color: #fff; background: rgba(255,255,255,.14); }
.sidebar-footer { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
.admin-mini { display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #4e5266; font-size: 13px; font-weight: 800; }
.admin-mini strong { display: block; color: #fff; font-size: 12px; }
.admin-mini small { display: block; margin-top: 2px; color: #858da4; font-size: 10px; }
.logout-link { display: block; margin-top: 12px; padding: 8px 10px; color: #f0949f; background: rgba(216,75,91,.09); border-radius: 8px; text-align: center; font-size: 12px; font-weight: 700; }
.admin-main { width: calc(100% - 252px); min-height: 100vh; margin-left: 252px; }
.topbar { height: 84px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.87); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.topbar .eyebrow { margin-bottom: 2px; font-size: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.content { padding: 26px 30px 40px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { min-height: 76px; padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.panel-header h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.panel-header > a { color: var(--primary); font-size: 12px; font-weight: 700; }
.panel-description { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel > form:not(.filter-bar), .settings-panel > form { padding: 22px; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; margin-bottom: 20px; }
.stat-card { min-height: 142px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; font-weight: 850; flex: 0 0 auto; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.stat-card strong { display: block; margin-top: 8px; font-size: 23px; line-height: 1.05; letter-spacing: -.8px; }
.stat-card small { display: block; margin-top: 9px; color: #9299aa; font-size: 10px; }
.accent-purple .stat-icon { color: #6657e8; background: #eeecff; }
.accent-blue .stat-icon { color: #207bc9; background: #e9f4ff; }
.accent-green .stat-icon { color: #148c60; background: #e7f7f0; }
.accent-orange .stat-icon { color: #bd7711; background: #fff3dc; }
.dashboard-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; }
.status-summary { padding: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.status-summary-item { padding: 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 12px; background: #fafbfc; }
.status-summary-item strong { font-size: 20px; }
.quick-actions { padding: 0 20px 20px; display: grid; gap: 9px; }
.quick-action { padding: 12px; display: flex; align-items: center; gap: 12px; border-radius: 12px; background: #f7f8fb; border: 1px solid transparent; }
.quick-action:hover { border-color: #dedafc; background: #f4f2ff; }
.quick-action > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 12px; }
.quick-action small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.recent-list { padding: 7px 20px 14px; }
.recent-item { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eff1f5; }
.recent-item:last-child { border: 0; }
.recent-item strong, .recent-item span { display: block; }
.recent-item > div:first-child strong { font-size: 12px; }
.recent-item > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.recent-meta { text-align: right; }
.recent-meta > strong { margin-bottom: 5px; font-size: 12px; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-icon { width: 48px; height: 48px; margin: auto; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); font-size: 22px; }
.empty-state h3 { margin: 13px 0 4px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-inline { padding: 34px; color: var(--muted); text-align: center; }

.page-grid { display: grid; gap: 20px; align-items: start; }
.page-grid.two-thirds { grid-template-columns: minmax(0,1.75fr) minmax(280px,.75fr); }
.sticky-panel { position: sticky; top: 20px; }
.search-form { display: flex; align-items: center; gap: 8px; width: min(370px,100%); }
.search-form input { min-height: 38px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 15px; color: #7a8398; background: #f8f9fb; border-bottom: 1px solid var(--border); text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
td { padding: 14px 15px; border-bottom: 1px solid #edf0f4; vertical-align: middle; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfcfd; }
td code { padding: 4px 7px; color: #5345c4; background: #f0eeff; border-radius: 6px; font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; max-width: 260px; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; }
.actions-cell .btn { margin-left: 4px; }

.pricing-layout { display: grid; gap: 20px; }
.pricing-cards { padding: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.pricing-card { padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(180deg,#fff,#fbfbfd); }
.pricing-card-head { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.level-badge { min-width: 40px; height: 30px; padding: 0 10px; display: inline-grid; place-items: center; color: #5749cc; background: var(--primary-soft); border-radius: 9px; font-size: 12px; font-weight: 850; }
.add-card { border-style: dashed; background: #fbfbfd; }
.switch { display: inline-flex; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch > span { width: 38px; height: 22px; position: relative; border-radius: 999px; background: #d6dae3; transition: .2s; }
.switch > span:after { content: ''; width: 16px; height: 16px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span:after { transform: translateX(16px); }
.service-list { padding: 9px 20px 20px; }
.service-row { padding: 14px 0; display: flex; align-items: end; gap: 13px; border-bottom: 1px solid var(--border); }
.service-row:last-child { border: 0; }
.service-row .field { margin: 0; }
.service-icon { width: 42px; height: 42px; margin-bottom: 1px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 850; }
.grow { flex: 1; }
.compact { width: 130px; }
.switch-with-label { padding-bottom: 8px; align-items: center; gap: 6px; }
.switch-with-label small { color: var(--muted); font-size: 11px; }

.filter-bar { padding: 15px 20px; display: grid; grid-template-columns: minmax(230px,1fr) 180px auto auto; gap: 9px; border-bottom: 1px solid var(--border); }
.filter-bar input, .filter-bar select { min-height: 40px; }
.status-form { min-width: 135px; }
.status-select { width: 100%; padding: 7px 9px; border: 0; border-radius: 8px; outline: none; font-size: 11px; font-weight: 750; }
.order-create-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,.6fr); gap: 20px; align-items: start; }
.calculation-card { position: sticky; top: 20px; padding: 24px; color: #fff; background: linear-gradient(145deg,#272b43,#1e2135); border-radius: 19px; box-shadow: 0 20px 45px rgba(28,31,51,.18); }
.calculation-card .eyebrow { color: #b8b0ff; }
.calculation-card h2 { margin: 0 0 23px; font-size: 19px; }
.calculation-list { display: grid; gap: 13px; }
.calculation-list > div { display: flex; justify-content: space-between; gap: 15px; color: #acb2c5; font-size: 12px; }
.calculation-list strong { color: #fff; }
.calculation-total { margin-top: 22px; padding-top: 20px; display: flex; justify-content: space-between; align-items: end; gap: 16px; border-top: 1px solid rgba(255,255,255,.10); }
.calculation-total span { color: #c8ccda; font-size: 12px; }
.calculation-total strong { color: #a89cff; font-size: 24px; letter-spacing: -.7px; }
.formula-note { margin-top: 15px; padding: 10px; color: #9198ae; background: rgba(255,255,255,.05); border-radius: 9px; text-align: center; font-size: 10px; }
.settings-panel { max-width: 850px; }

.landing-body { background: #fff; }
.landing-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.landing-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(225,228,236,.85); backdrop-filter: blur(14px); }
.nav-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.landing-brand { display: flex; align-items: center; gap: 11px; }
.landing-header nav { display: flex; align-items: center; gap: 25px; }
.landing-header nav > a:not(.btn) { color: #586179; font-size: 13px; font-weight: 650; }
.hero-section { position: relative; min-height: 670px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg,#fbfaff 0%,#f2f0ff 48%,#ecf8ff 100%); }
.hero-section:before { content: ''; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(#8b80ee 1px,transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to right,black,transparent 78%); }
.hero-grid { position: relative; z-index: 2; padding: 80px 0; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 65px; }
.hero-badge { width: max-content; padding: 7px 11px; display: flex; align-items: center; gap: 8px; color: #6559c7; background: rgba(255,255,255,.75); border: 1px solid rgba(126,111,232,.18); border-radius: 999px; box-shadow: 0 7px 20px rgba(74,59,163,.07); font-size: 11px; font-weight: 750; }
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: #6c5ce7; box-shadow: 0 0 0 4px #e8e4ff; }
.hero-copy h1 { max-width: 690px; margin: 20px 0 19px; font-size: clamp(42px,5.3vw,67px); line-height: 1.04; letter-spacing: -3px; }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 0; color: #626b82; font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 29px; display: flex; gap: 11px; flex-wrap: wrap; }
.trust-row { margin-top: 38px; display: flex; gap: 34px; }
.trust-row > div { padding-right: 28px; border-right: 1px solid rgba(100,91,170,.16); }
.trust-row > div:last-child { border: 0; }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { font-size: 18px; }
.trust-row span { margin-top: 3px; color: #7b8295; font-size: 10px; }
.hero-card-wrap { position: relative; min-height: 470px; display: grid; place-items: center; }
.invoice-mockup { width: min(440px,100%); padding: 25px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.95); border-radius: 24px; box-shadow: 0 35px 80px rgba(60,52,126,.19); transform: rotate(1.2deg); }
.mockup-top { display: flex; align-items: flex-start; justify-content: space-between; }
.mockup-top span, .mockup-top strong { display: block; }
.mockup-top > div span { color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: 1.3px; }
.mockup-top > div strong { margin-top: 4px; font-size: 17px; }
.mockup-institution { margin: 25px 0 20px; padding: 15px; display: flex; align-items: center; gap: 13px; background: #f6f5ff; border-radius: 14px; }
.mock-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--primary); font-weight: 850; }
.mockup-institution small, .mockup-institution strong, .mockup-institution span { display: block; }
.mockup-institution small { color: #8a82bc; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.mockup-institution strong { margin-top: 3px; font-size: 12px; }
.mockup-institution span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.mock-lines { padding: 0 2px; display: grid; gap: 12px; }
.mock-lines div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.mock-lines strong { color: var(--text); }
.mock-total { margin-top: 20px; padding: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: linear-gradient(135deg,#272b43,#1d2032); border-radius: 13px; }
.mock-total span { color: #b8bed0; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.mock-total strong { font-size: 17px; }
.mock-verify { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.fake-qr { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: #202437; border-radius: 7px; font-size: 23px; }
.mock-verify strong, .mock-verify span { display: block; }
.mock-verify strong { color: #19835d; font-size: 10px; }
.mock-verify span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.floating-pill { position: absolute; right: -10px; bottom: 43px; padding: 11px 15px; color: #246d54; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.95); border-radius: 999px; box-shadow: 0 14px 30px rgba(50,62,94,.13); font-size: 10px; font-weight: 750; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(3px); }
.orb-one { width: 240px; height: 240px; right: -70px; top: 70px; background: rgba(134,210,255,.27); }
.orb-two { width: 190px; height: 190px; left: 43%; bottom: -80px; background: rgba(157,137,255,.17); }
.verify-section { padding: 90px 0; background: #fff; }
.verify-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 80px; }
.verify-grid h2, .section-heading h2 { margin: 0; font-size: 36px; letter-spacing: -1.5px; }
.verify-grid > div > p:last-child { color: var(--muted); line-height: 1.7; }
.verify-form-card { padding: 25px; background: #f8f9fc; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.verify-form-card label { display: block; margin-bottom: 9px; color: #4f5870; font-size: 12px; font-weight: 750; }
.verify-input { display: flex; align-items: center; gap: 8px; padding: 6px; background: #fff; border: 1px solid #dde1ea; border-radius: 12px; }
.verify-input > span { margin-left: 8px; color: #8a92a5; }
.verify-input input { width: 100%; min-width: 0; padding: 8px 5px; border: 0; outline: 0; color: var(--text); background: transparent; }
.verify-form-card > small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.features-section { padding: 90px 0 100px; background: #f6f7fb; }
.section-heading { max-width: 590px; margin: 0 auto 45px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-grid article { padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 13px; font-size: 20px; font-weight: 800; }
.feature-grid h3 { margin: 18px 0 8px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.landing-footer { padding: 28px 0; color: #c1c5d0; background: #1c1f2f; }
.landing-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.landing-footer strong, .landing-footer span { display: block; }
.landing-footer strong { color: #fff; font-size: 13px; }
.landing-footer span { margin-top: 3px; font-size: 10px; }
.footer-contact { display: flex; align-items: center; gap: 20px; }

.verification-body { min-height: 100vh; background: radial-gradient(circle at 15% 5%,#ece8ff 0,transparent 31%),#f6f7fb; }
.simple-header { background: rgba(255,255,255,.90); border-bottom: 1px solid var(--border); }
.simple-header > div { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.verification-main { padding: 60px 0 80px; }
.verification-card { width: min(780px,100%); margin: auto; padding: 45px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); text-align: center; }
.verification-status-icon { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 19px; font-size: 28px; font-weight: 800; }
.verified .verification-status-icon { color: #fff; background: linear-gradient(135deg,#38b887,#13895e); box-shadow: 0 12px 25px rgba(21,154,104,.23); }
.invalid .verification-status-icon { color: #fff; background: linear-gradient(135deg,#ef6a78,#c93b4b); }
.neutral .verification-status-icon { color: var(--primary); background: var(--primary-soft); }
.verification-card h1 { margin: 4px 0 8px; font-size: 31px; letter-spacing: -1px; }
.verification-lead { max-width: 580px; margin: 0 auto 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.verification-number { padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 14px; background: #f7f8fa; border-radius: 13px; }
.verification-number > span:first-child { color: var(--muted); font-size: 11px; }
.verification-number strong { font-size: 15px; }
.verification-details { margin-top: 20px; display: grid; grid-template-columns: repeat(2,1fr); text-align: left; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.verification-details > div { padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.verification-details > div:nth-child(2n) { border-right: 0; }
.verification-details > div:nth-last-child(-n+2) { border-bottom: 0; }
.verification-details span, .verification-details strong { display: block; }
.verification-details span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.verification-details strong { margin-top: 5px; font-size: 12px; }
.verified-total { margin-top: 18px; padding: 18px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: #22263a; border-radius: 14px; text-align: left; }
.verified-total span { color: #b8bece; font-size: 11px; }
.verified-total strong { font-size: 23px; }
.verification-actions { margin-top: 20px; display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.verification-note { margin-top: 18px; color: #949bad; font-size: 9px; }
.inline-card { max-width: 570px; margin: 28px auto 0; text-align: left; box-shadow: none; }

.invoice-body { padding: 28px 15px 50px; background: #e9ecf2; }
.invoice-toolbar { width: 210mm; max-width: 100%; margin: 0 auto 14px; display: flex; justify-content: flex-end; gap: 8px; }
.invoice-paper { width: 210mm; min-height: 297mm; max-width: 100%; margin: auto; padding: 17mm 16mm 13mm; background: #fff; box-shadow: 0 16px 50px rgba(25,33,56,.17); }
.invoice-header { padding-bottom: 20px; display: flex; justify-content: space-between; gap: 30px; border-bottom: 2px solid #25293c; }
.invoice-company { display: flex; align-items: flex-start; gap: 13px; max-width: 62%; }
.invoice-logo { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#7061e8,#5141d4); border-radius: 13px; font-size: 14px; font-weight: 850; }
.invoice-company h1 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.4px; }
.invoice-company p { margin: 0; color: #626b7d; font-size: 9px; line-height: 1.5; }
.company-contact { margin-top: 5px; display: flex; gap: 11px; color: #626b7d; font-size: 9px; }
.invoice-title { text-align: right; }
.invoice-title > span { display: block; color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: 2px; }
.invoice-title > strong { display: block; margin: 5px 0 8px; font-size: 18px; }
.invoice-meta-grid { padding: 23px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.invoice-label { color: #7c8497; font-size: 8px; font-weight: 850; letter-spacing: 1.1px; }
.bill-to h2 { margin: 6px 0 5px; font-size: 16px; }
.bill-to p { margin: 3px 0; color: #626b7d; font-size: 9px; }
.invoice-dates { display: grid; gap: 8px; }
.invoice-dates div { display: flex; justify-content: space-between; gap: 15px; }
.invoice-dates span { color: #7b8395; font-size: 9px; }
.invoice-dates strong { font-size: 9px; }
.invoice-table-wrap { overflow: hidden; border: 1px solid #e2e5eb; border-radius: 10px; }
.invoice-table th { padding: 10px; color: #fff; background: #25293c; border: 0; font-size: 7px; }
.invoice-table td { padding: 13px 10px; font-size: 9px; }
.invoice-table td:first-child { min-width: 190px; }
.invoice-table small { display: block; margin-top: 4px; color: #7d8595; font-size: 8px; }
.invoice-bottom-grid { padding: 22px 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: 38px; }
.payment-box p { margin: 8px 0 0; color: #525b6d; font-size: 9px; line-height: 1.7; }
.invoice-note { margin-top: 12px; padding: 10px; color: #5a6272; background: #f7f8fa; border-radius: 8px; font-size: 8px; line-height: 1.6; }
.invoice-summary { display: grid; gap: 9px; }
.invoice-summary > div { padding: 0 4px; display: flex; justify-content: space-between; gap: 15px; color: #687184; font-size: 9px; }
.invoice-summary .grand-total { padding: 13px; align-items: center; color: #fff; background: #25293c; border-radius: 9px; }
.invoice-summary .grand-total span { color: #b9bfce; font-weight: 750; }
.invoice-summary .grand-total strong { font-size: 15px; }
.invoice-footer { margin-top: 4px; padding-top: 17px; border-top: 1px solid #dfe3e9; }
.qr-section { display: grid; grid-template-columns: 142px 1fr; align-items: center; gap: 17px; }
#invoiceQr { width: 142px; min-height: 142px; display: grid; place-items: center; }
#invoiceQr canvas { display: block; image-rendering: pixelated; }
.qr-section strong { display: block; color: #14875d; font-size: 10px; }
.qr-section p { max-width: 440px; margin: 5px 0; color: #687184; font-size: 8px; line-height: 1.55; }
.qr-section small { display: block; color: #969dad; font-size: 6px; word-break: break-all; }
.invoice-thanks { margin-top: 14px; padding-top: 12px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px dashed #e0e3e9; }
.invoice-thanks strong { font-size: 8px; }
.invoice-thanks span { color: #8d94a3; font-size: 7px; }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-cards { grid-template-columns: repeat(2,1fr); }
  .hero-grid { gap: 35px; }
  .hero-copy h1 { font-size: 51px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); transition: .23s ease; box-shadow: 15px 0 40px rgba(0,0,0,.18); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid; place-items: center; }
  .topbar { height: auto; min-height: 78px; padding: 14px 20px; justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .content { padding: 20px; }
  .page-grid.two-thirds, .order-create-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .sticky-panel, .calculation-card { position: static; }
  .hero-grid { grid-template-columns: 1fr; padding: 65px 0; }
  .hero-card-wrap { min-height: 420px; }
  .hero-copy { text-align: center; }
  .hero-badge, .hero-actions { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
  .verify-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .topbar-actions .btn-light { display: none; }
  .topbar h1 { font-size: 17px; }
  .content { padding: 15px; }
  .stats-grid, .pricing-cards, .feature-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 120px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .service-row { align-items: stretch; flex-wrap: wrap; }
  .service-icon { margin-top: 23px; }
  .service-row .grow { flex: 1 1 calc(100% - 60px); }
  .compact { width: calc(50% - 8px); }
  .filter-bar { grid-template-columns: 1fr; }
  .stack-mobile { align-items: stretch; flex-direction: column; }
  .search-form { width: 100%; }
  .landing-container { width: min(100% - 28px,1160px); }
  .landing-header nav > a:not(.btn) { display: none; }
  .landing-brand strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-section { min-height: auto; }
  .hero-copy h1 { font-size: 40px; letter-spacing: -2px; }
  .hero-copy > p { font-size: 14px; }
  .trust-row { gap: 14px; }
  .trust-row > div { padding-right: 14px; }
  .hero-card-wrap { min-height: 385px; }
  .invoice-mockup { padding: 19px; }
  .floating-pill { right: 0; bottom: 22px; }
  .verify-section, .features-section { padding: 65px 0; }
  .verify-grid h2, .section-heading h2 { font-size: 29px; }
  .verify-input { align-items: stretch; flex-wrap: wrap; }
  .verify-input > span { display: none; }
  .verify-input .btn { width: 100%; }
  .landing-footer > div { align-items: flex-start; flex-direction: column; }
  .verification-card { padding: 28px 18px; }
  .verification-card h1 { font-size: 25px; }
  .verification-number { flex-wrap: wrap; }
  .verification-details { grid-template-columns: 1fr; }
  .verification-details > div { border-right: 0; }
  .verification-details > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .verification-details > div:last-child { border-bottom: 0; }
  .verified-total { align-items: flex-start; flex-direction: column; }
  .invoice-body { padding: 0; background: #fff; }
  .invoice-toolbar { padding: 10px; }
  .invoice-paper { width: 100%; min-height: auto; padding: 20px 14px; box-shadow: none; }
  .invoice-header, .invoice-meta-grid, .invoice-bottom-grid { grid-template-columns: 1fr; flex-direction: column; gap: 18px; }
  .invoice-company { max-width: 100%; }
  .invoice-title { text-align: left; }
  .invoice-table-wrap { overflow-x: auto; }
  .invoice-table { min-width: 680px; }
  .qr-section { grid-template-columns: 1fr; text-align: center; }
  #invoiceQr { margin: auto; }
  .invoice-thanks { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  .invoice-body { padding: 0; }
  .invoice-paper { width: 210mm; min-height: 297mm; padding: 14mm 14mm 10mm; box-shadow: none; }
  .invoice-header { padding-bottom: 16px; }
  .invoice-meta-grid { padding: 18px 0; }
  .invoice-bottom-grid { padding: 18px 0; }
}

/* Landing page content editor */
.landing-editor-form { display: block; }
.landing-editor-grid { grid-template-columns: minmax(0, 1fr) 310px; align-items: start; }
.landing-editor-main { display: grid; gap: 20px; min-width: 0; }
.landing-editor-side { min-width: 0; }
.landing-editor-panel { max-width: none; }
.landing-editor-fields { padding: 22px; }
.publish-panel-body { padding: 20px; }
.publish-panel-body > p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.publish-panel-body .btn + .btn { margin-top: 10px; }
.editor-note { margin-top: 18px; padding: 13px; display: grid; gap: 5px; color: #59647c; background: #f7f8fb; border: 1px solid var(--border); border-radius: 11px; font-size: 11px; line-height: 1.55; }
.editor-note strong { color: var(--text); font-size: 12px; }
.editor-note code { padding: 1px 4px; background: #eceef4; border-radius: 4px; }
.check-row { margin-top: 9px !important; display: flex !important; align-items: center; gap: 8px; color: var(--danger) !important; font-size: 12px !important; font-weight: 650 !important; }
.check-row input { width: 15px !important; min-height: 15px !important; margin: 0; }
.media-preview-field { min-width: 0; }
.media-preview { min-height: 118px; padding: 16px; display: grid; place-items: center; overflow: hidden; color: var(--muted); background: #f8f9fc; border: 1px dashed #d9deea; border-radius: 13px; text-align: center; font-size: 11px; }
.media-preview img { display: block; max-width: 100%; max-height: 160px; object-fit: contain; }
.logo-preview img { max-height: 100px; }
.favicon-preview { min-height: 118px; }
.favicon-preview img { width: 64px; height: 64px; object-fit: contain; }
.hero-image-preview { min-height: 190px; }
.hero-image-preview img { width: 100%; max-height: 240px; border-radius: 9px; object-fit: contain; }
.large-brand-mark { width: 70px; height: 70px; border-radius: 20px; font-size: 20px; }
.color-field { display: grid; grid-template-columns: 54px 1fr; gap: 9px; }
.color-field input[type="color"] { min-height: 44px; padding: 4px; cursor: pointer; }

/* Dynamic landing identity */
.brand-logo-shell { width: 48px; height: 48px; padding: 5px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 20px rgba(29,39,68,.08); }
.brand-logo-shell img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.custom-hero-image-card { position: relative; z-index: 2; width: min(100%, 510px); padding: 14px; overflow: hidden; background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; box-shadow: 0 32px 80px rgba(43,45,88,.18); backdrop-filter: blur(14px); transform: rotate(1.5deg); }
.custom-hero-image-card img { display: block; width: 100%; max-height: 490px; object-fit: contain; border-radius: 18px; }
.landing-footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-logo-shell { width: 42px; height: 42px; padding: 5px; display: grid; place-items: center; overflow: hidden; background: rgba(255,255,255,.95); border-radius: 11px; }
.footer-logo-shell img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.footer-contact { max-width: 440px; text-align: right; }
.footer-contact span { line-height: 1.55; }

@media (max-width: 1100px) {
  .landing-editor-grid { grid-template-columns: 1fr; }
  .landing-editor-side .sticky-panel { position: static; }
}

@media (max-width: 680px) {
  .landing-editor-fields { padding: 17px; }
  .media-preview { min-height: 100px; }
  .brand-logo-shell { width: 42px; height: 42px; border-radius: 12px; }
  .custom-hero-image-card { width: min(94%, 500px); }
  .landing-footer-brand { align-items: flex-start; }
  .footer-contact { max-width: none; text-align: left; }
}
.sidebar-logo-shell { width: 42px; height: 42px; padding: 5px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; background: #fff; border-radius: 13px; }
.sidebar-logo-shell img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.sidebar-brand > div:last-child { min-width: 0; }
.sidebar-brand strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoice-logo-image { padding: 7px; background: #fff; border: 1px solid var(--border); }
.invoice-logo-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
