:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --ink: #122033;
  --muted: #64748b;
  --line: #dbe5f0;
  --primary: #0f766e;
  --primary-2: #14b8a6;
  --accent: #2563eb;
  --warning: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --purple: #7c3aed;
  --shadow: 0 20px 60px rgba(15, 23, 42, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip { position: fixed; left: 12px; top: -80px; background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 292px 1fr; min-height: 100vh; }
.auth-required .app-shell, .auth-required .skip { display: none; }
.authenticated .auth-screen { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 12% 12%, rgba(20,184,166,.30), transparent 32%), radial-gradient(circle at 86% 18%, rgba(37,99,235,.28), transparent 30%), linear-gradient(135deg, #06111f, #10243a 52%, #082f49); }
.auth-page { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr); gap: 24px; align-items: stretch; }
.auth-info, .auth-panel { border: 1px solid rgba(255,255,255,.18); border-radius: 32px; box-shadow: 0 30px 100px rgba(0,0,0,.30); }
.auth-info { position: relative; overflow: hidden; min-height: 640px; padding: 34px; color: white; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); backdrop-filter: blur(18px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.auth-info::after { content: ''; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -120px; border-radius: 50%; background: rgba(20,184,166,.12); border: 1px solid rgba(255,255,255,.12); }
.auth-brand { color: inherit; margin-bottom: 24px; position: relative; z-index: 1; }
.auth-brand span { color: rgba(255,255,255,.70); }
.auth-copy, .auth-benefits, .plan-note { position: relative; z-index: 1; }
.auth-copy h1 { max-width: 650px; font-size: clamp(38px, 6vw, 68px); line-height: .94; color: white; }
.auth-copy p { max-width: 560px; color: rgba(255,255,255,.76); font-size: 17px; }
.auth-badge { display: inline-flex; margin-bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(20,184,166,.18); color: #99f6e4; border: 1px solid rgba(153,246,228,.25); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.auth-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.auth-benefits div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.13); }
.auth-benefits strong, .auth-benefits span { display: block; }
.auth-benefits span { margin-top: 5px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.35; }
.auth-info .plan-note { padding: 16px; border-radius: 18px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14); line-height: 1.55; }
.pricing-showcase { position: relative; z-index: 1; display: grid; gap: 14px; }
.pricing-head { display: grid; gap: 4px; color: rgba(255,255,255,.72); }
.pricing-head span { color: #99f6e4; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.pricing-head strong { max-width: none; color: white; font-size: 14px; text-align: left; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pricing-card { position: relative; min-height: 128px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'tag tag' 'name price' 'meta meta'; align-items: start; gap: 7px 12px; overflow: hidden; }
.pricing-card.featured { background: linear-gradient(160deg, rgba(20,184,166,.32), rgba(37,99,235,.22)); border-color: rgba(153,246,228,.44); box-shadow: 0 18px 44px rgba(20,184,166,.16); }
.pricing-tag { grid-area: tag; align-self: flex-start; justify-self: start; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.15); color: #ccfbf1; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pricing-card h3 { grid-area: name; color: white; font-size: 17px; margin-top: 4px; }
.pricing-price { grid-area: price; display: block; color: white; font-size: 24px; letter-spacing: -.06em; line-height: 1; text-align: right; }
.pricing-card small { grid-area: price; align-self: end; justify-self: end; transform: translateY(17px); color: rgba(255,255,255,.62); font-weight: 800; }
.pricing-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 8px; color: rgba(255,255,255,.80); font-size: 12px; line-height: 1.25; }
.pricing-meta span::before { content: '✓'; color: #99f6e4; font-weight: 900; margin-right: 5px; }
.auth-panel { padding: 18px; background: rgba(255,255,255,.96); align-self: center; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 6px; margin-bottom: 14px; border-radius: 18px; background: #eaf2fb; }
.auth-tabs button { border: 0; padding: 12px; border-radius: 14px; background: transparent; color: var(--muted); font-weight: 900; }
.auth-tabs button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 26px rgba(37,99,235,.18); }
.auth-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #f8fafc; }
.auth-form-lg { padding: 24px; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.auth-switch-text { margin: 2px 0 0; text-align: center; font-size: 14px; }
.link-btn { border: 0; padding: 0; background: transparent; color: var(--accent); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.current-user { font-weight: 900; color: var(--primary); padding: 12px 0; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; background: #0b1725; color: white; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 24px; background: linear-gradient(135deg, var(--primary-2), var(--accent)); box-shadow: 0 12px 30px rgba(20, 184, 166, .25); }
.brand strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.brand span { display: block; color: #9fb2c8; font-size: 13px; margin-top: 2px; }
.nav { display: grid; gap: 8px; }
.nav button { border: 0; width: 100%; text-align: left; color: #c8d5e4; background: transparent; padding: 12px 14px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; }
.nav button:hover, .nav button.active { color: white; background: rgba(255,255,255,.10); }
.sidebar-card { margin-top: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); padding: 14px; border-radius: 18px; color: #b7c6d8; }
.sidebar-card p { margin: 8px 0 0; line-height: 1.45; font-size: 13px; }
.main-wrap { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); background: rgba(244,247,251,.82); border-bottom: 1px solid rgba(219,229,240,.8); padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 7px; color: var(--primary); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { color: var(--muted); line-height: 1.6; }
.top-actions { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.role-select { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; display: grid; gap: 6px; }
select, input, textarea { border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; background: white; color: var(--ink); outline: none; }
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(20,184,166,.28); outline-offset: 2px; }
.btn { border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 800; }
.btn.primary { color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 30px rgba(37,99,235,.18); }
.btn.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.content { padding: 28px 32px 48px; }
.view { display: none; }
.active-view { display: block; animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 18px; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 20px; }
.panel { padding: 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.kpi { padding: 18px; border-radius: 20px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.kpi span { color: var(--muted); font-weight: 700; font-size: 13px; }
.kpi strong { display: block; font-size: 32px; letter-spacing: -.06em; margin-top: 8px; }
.kpi small { display: block; margin-top: 7px; color: var(--primary); font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stack { display: grid; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.pill.success { color: #065f46; background: #d1fae5; }
.pill.warning { color: #92400e; background: #fef3c7; }
.pill.danger { color: #991b1b; background: #fee2e2; }
.pill.info { color: #1d4ed8; background: #dbeafe; }
.pill.neutral { color: #475569; background: #e2e8f0; }
.pill.purple { color: #5b21b6; background: #ede9fe; }
.progress { height: 11px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-2), var(--accent)); }
.workflow { display: grid; gap: 12px; }
.workflow-item { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary-2); margin-top: 6px; flex: 0 0 auto; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { padding: 18px; border-radius: 20px; background: white; border: 1px solid var(--line); display: grid; gap: 10px; }
.module-card .icon { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label, .repair-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.repair-form { display: grid; gap: 12px; }
.repair-form textarea { min-height: 110px; resize: vertical; }
.timeline { position: relative; display: grid; gap: 12px; }
.timeline article { border-left: 3px solid var(--line); padding-left: 16px; }
.amount { font-variant-numeric: tabular-nums; font-weight: 900; }
.alert { border-radius: 18px; background: #fff7ed; border: 1px solid #fed7aa; padding: 16px; color: #9a3412; }
.payment-handoff { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(37,99,235,.10)); border: 1px solid rgba(20,184,166,.24); }
.payment-handoff h3, .payment-handoff p { margin: 0; }
.payment-handoff p { color: var(--muted); }
.modal { border: 0; padding: 0; background: transparent; width: min(620px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(2,6,23,.55); backdrop-filter: blur(5px); }
.modal-card { background: white; border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.icon-btn { width: 38px; height: 38px; border-radius: 13px; border: 1px solid var(--line); background: #f8fafc; font-size: 24px; line-height: 1; }
.modal-actions { padding: 0; margin: 20px 0 0; display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: #0b1725; color: white; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow); transform: translateY(90px); opacity: 0; transition: .2s; z-index: 30; }
.toast.show { transform: none; opacity: 1; }
.insight { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(37,99,235,.10)); border: 1px solid rgba(20,184,166,.22); }
@media (max-width: 1080px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .hero, .grid-2, .grid-3, .auth-page { grid-template-columns: 1fr; } .auth-info { min-height: auto; } .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-grid, .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .auth-screen { padding: 16px; align-items: start; } .auth-info, .auth-panel { border-radius: 24px; } .auth-info, .auth-form-lg { padding: 20px; } .auth-copy h1 { font-size: 36px; } .auth-benefits, .pricing-grid { grid-template-columns: 1fr; } .pricing-head { display: grid; align-items: start; } .pricing-head strong { text-align: left; } .topbar { align-items: stretch; flex-direction: column; padding: 18px; } .content { padding: 18px; } .kpi-grid, .module-grid, .form-grid { grid-template-columns: 1fr; } .top-actions { align-items: stretch; } .top-actions > * { width: 100%; } .btn { width: 100%; } }
