@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --orange: #ff4b0b;
    --orange-deep: #d93700;
    --ink: #171512;
    --muted: #6f6a63;
    --cream: #f6f1e8;
    --paper: #fffdf8;
    --line: rgba(23, 21, 18, .13);
}

.portal-body, .auth-body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.portal-nav { background: #171512; color: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.portal-brand { display: inline-flex; padding: 6px 8px; border-radius: 12px; background: #fff; align-self: flex-start; }
.portal-brand img { width: 118px; height: auto; }
.portal-role { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: #cfc8be; }
.portal-nav nav { display: grid; gap: 4px; }
.portal-nav nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.portal-nav nav a[aria-current="page"], .portal-nav nav a:hover { background: rgba(255,75,11,.18); }
.portal-nav nav a i { min-width: 18px; height: 18px; border-radius: 99px; background: var(--orange); display: grid; place-items: center; font-style: normal; font-size: 10px; }
.portal-user { margin-top: auto; display: grid; gap: 4px; font-size: 13px; }
.portal-user span, .portal-user a { color: #cfc8be; }
.portal-main { min-width: 0; }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 0; }
.portal-top h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 28px; letter-spacing: -.04em; }
.portal-content { padding: 22px 28px 48px; display: grid; gap: 18px; }
.menu-fab { display: none; }
.quiet-link { color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: none; }

.flash { margin: 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.flash-ok { background: #e7f6ea; }
.flash-bad, .flash-error { background: #fde8e3; }
.flash-wait { background: #fff4d8; }

.panel, .stat-card, .list-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.panel { padding: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 18px; }
.stat-card small, .muted { color: var(--muted); }
.stat-card strong { display: block; margin-top: 6px; font-size: 28px; font-family: Manrope, sans-serif; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.stack { display: grid; gap: 14px; }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }

label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
input, select, textarea {
    width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
    font: inherit; background: #fff;
}
textarea { min-height: 110px; padding: 12px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
button, .button { font: inherit; cursor: pointer; }
.button, .portal-content .button { min-height: 46px; padding: 0 16px; width: auto; }
.button-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form input, .inline-form select { min-height: 36px; }

.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.badge.ok { background: #e7f6ea; color: #1d6b32; }
.badge.wait { background: #fff4d8; color: #8a5a00; }
.badge.bad { background: #fde8e3; color: #9a2b12; }
.badge.mute { background: #efeae3; color: #5d5852; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fare-grid { display: grid; gap: 12px; }
.fare-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.fare-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.check input { width: 18px; min-height: 18px; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px 64px; }
.auth-logo { position: absolute; top: 22px; left: 22px; padding: 6px 8px; background: #171512; border-radius: 12px; }
.auth-logo img { width: 128px; height: auto; }
.auth-card { width: min(560px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 14px; }
.auth-card h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 34px; letter-spacing: -.04em; }
.auth-card h1 em { color: var(--orange); font-style: normal; }
.demo-box { background: var(--cream); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.req-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-hero { text-align: center; padding: 28px 16px; }
.price-hero b { display: block; font-size: 56px; font-family: Manrope, sans-serif; letter-spacing: -.06em; }
.notes { font-size: 13px; color: var(--muted); line-height: 1.55; }
.empty { color: var(--muted); margin: 0; }

@media (max-width: 980px) {
    .portal-shell { grid-template-columns: 1fr; }
    .portal-nav { display: none; }
    .portal-nav.open { display: flex; position: fixed; inset: 0; z-index: 20; }
    .menu-fab { display: inline-flex; }
    .stat-grid, .split, .form-grid { grid-template-columns: 1fr; }
    .portal-top, .portal-content { padding-left: 16px; padding-right: 16px; }
}
