/* ==========================================================================
   24h-upload.co — Panel-Stylesheet
   ========================================================================== */

:root {
    /* Dunkle Grundflaechen (Landrick-Dark) */
    --ink-900: #141b28;   /* dunkelste Flaeche: Sidebar, Hero, Footer */
    --ink-800: #1a2231;
    --ink-700: #273140;   /* Trennlinien auf dunklen Flaechen */
    --ink-600: #35415a;

    --paper: #212b3d;     /* Karten, Topbar, Eingabefelder */
    --surface: #171f2e;   /* Seitenhintergrund */
    --surface-2: #2a3446; /* dezente Fuellung: Tracks, Hover, Ghost */
    --line: #2b3547;      /* Rahmen */
    --line-strong: #3a4864;

    --text: #e6eaf2;
    --text-2: #aab4c4;
    --muted: #7f8ba0;
    --on-dark: #e6eaf2;
    --on-dark-muted: #8b97ab;

    /* Akzent: unveraendert dein Orange */
    --accent: #E4501F;
    --accent-600: #C63F13;
    --accent-300: #f0a98f;               /* helles Orange fuer Text/Badges auf Dunkel */
    --accent-050: rgba(228, 80, 31, .15); /* dunkle Orange-Tint-Flaeche */
    --accent-line: rgba(228, 80, 31, .38);

    --ok: #3ecf8e;   --ok-bg: rgba(62, 207, 142, .14);
    --warn: #e0a44b; --warn-bg: rgba(224, 164, 75, .15);
    --danger: #e5554d; --danger-bg: rgba(229, 85, 77, .15);

    --radius: 8px;
    --radius-sm: 5px;
    --font-ui: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --sidebar-width: 262px;
    --shadow-pop: 0 12px 30px rgba(0, 0, 0, .45);
    --shadow-card: 0 0 3px rgba(60, 72, 88, .45); /* Landrick-Signatur */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover { color: var(--accent-600); text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}

/* Zahlen, Kennungen und Betraege immer dicktengleich. */
.num,
.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background: var(--ink-900);
    color: var(--on-dark);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar__brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--ink-700);
}

.sidebar__nav {
    padding: 14px 10px 24px;
    flex: 1;
}

.sidebar__group {
    margin-bottom: 20px;
}

.sidebar__label {
    font-size: 10.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    padding: 0 8px 7px;
    font-weight: 600;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--on-dark);
    font-size: 13.5px;
    text-decoration: none;
    transition: background-color .12s ease, color .12s ease;
}

.sidebar__link:hover {
    background: var(--ink-700);
    color: #fff;
    text-decoration: none;
}

.sidebar__link.is-active {
    background: var(--accent);
    color: #fff;
}

.sidebar__link.is-active:hover { background: var(--accent-600); }

.sidebar__link.is-disabled {
    color: var(--on-dark-muted);
    cursor: default;
    justify-content: space-between;
}

.sidebar__link.is-disabled > span:first-child {
    white-space: nowrap;
}

.sidebar__link.is-disabled:hover {
    background: transparent;
    color: var(--on-dark-muted);
    text-decoration: none;
}

.sidebar__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    opacity: .85;
}

.sidebar__foot {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--ink-700);
    font-size: 12px;
    color: var(--on-dark-muted);
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 56px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar__title {
    font-size: 14px;
    font-weight: 600;
}

.topbar__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-2);
}

.topbar__balance {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.topbar__balance span:first-child {
    font-size: 11px;
    color: var(--muted);
}

.content {
    padding: 24px;
    max-width: 1180px;
    width: 100%;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-head__lead {
    color: var(--text-2);
    margin-top: 5px;
    max-width: 62ch;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Karten und Raster
   -------------------------------------------------------------------------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.card__head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.card__body { padding: 18px; }
.card__body--tight { padding: 0; }

.card__foot {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

.stack { display: grid; gap: 16px; }

/* --------------------------------------------------------------------------
   Kennzahlen
   -------------------------------------------------------------------------- */

.metric {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 17px;
    box-shadow: var(--shadow-card);
}

.metric__label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 600;
}

.metric__value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 23px;
    letter-spacing: -0.02em;
    margin-top: 6px;
    color: var(--text);
}

.metric__value--negative { color: var(--danger); }
.metric__value--accent { color: var(--accent); }

.metric__hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Guthabenanzeige: Balken zeigt Reservierung gegen Guthaben. */
.meter {
    margin-top: 14px;
}

.meter__track {
    height: 6px;
    border-radius: 3px;
    background: var(--surface-2);
    overflow: hidden;
    display: flex;
}

.meter__fill {
    height: 100%;
    background: var(--accent);
}

.meter__fill--over { background: var(--danger); }

.meter__legend {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Tabellen
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

table.data th {
    text-align: left;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.data td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.mono,
table.data td .cell-title.mono { white-space: nowrap; }
table.data tbody tr:hover { background: var(--surface); }

.t-right { text-align: right; }
.t-nowrap { white-space: nowrap; }

.cell-title {
    font-weight: 600;
    color: var(--text);
}

.cell-sub {
    font-size: 12px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Status und Badges
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    white-space: nowrap;
}

.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--accent { background: var(--accent-050); color: var(--accent-300); }

.badge--soon {
    background: rgba(228, 80, 31, .16);
    color: #F0A98F;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 6px;
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field__label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.field__hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 9px 11px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .12s ease, box-shadow .12s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-050);
}

.input--mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.input:disabled,
.input[readonly] {
    background: var(--surface);
    color: var(--text-2);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group__suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-family: var(--font-mono);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--text-2);
}

.checkbox input {
    margin-top: 2px;
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

.range {
    width: 100%;
    accent-color: var(--accent);
    margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   Schaltflaechen
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover { background: var(--accent-600); color: #fff; }

.btn--secondary {
    background: var(--paper);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--secondary:hover { background: var(--surface); color: var(--text); }

.btn--ghost {
    background: transparent;
    color: var(--text-2);
    padding: 7px 10px;
}

.btn--ghost:hover { background: var(--surface-2); color: var(--text); }

.btn--danger {
    background: var(--danger);
    color: #fff;
}

.btn--danger:hover { background: #96190F; color: #fff; }

.btn--sm { padding: 6px 11px; font-size: 12.5px; }
.btn--block { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
}

.btn-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Hinweise
   -------------------------------------------------------------------------- */

.notice {
    display: flex;
    gap: 11px;
    padding: 12px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.notice--success { border-color: rgba(62, 207, 142, .32); background: var(--ok-bg); color: #7fe0b4; }
.notice--error { border-color: rgba(229, 85, 77, .32); background: var(--danger-bg); color: #f4a29b; }
.notice--info { border-color: var(--accent-line); background: var(--accent-050); color: var(--accent-300); }
.notice--neutral { background: var(--surface); color: var(--text-2); }

.notice__bar {
    width: 3px;
    border-radius: 2px;
    background: currentColor;
    flex: 0 0 3px;
    opacity: .5;
}

.empty {
    padding: 44px 24px;
    text-align: center;
    color: var(--muted);
}

.empty h3 { color: var(--text); margin-bottom: 6px; }

/* Einmalige Anzeige von Zugangsdaten */
.secret {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--accent-line);
    background: var(--accent-050);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13.5px;
    word-break: break-all;
}

.kv {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 9px 16px;
    font-size: 13.5px;
}

.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; word-break: break-all; }

/* --------------------------------------------------------------------------
   Oeffentliche Seiten
   -------------------------------------------------------------------------- */

.public {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(14, 16, 19, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ink-700);
}

.public-nav__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.public-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.public-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    color: var(--on-dark);
    font-size: 13.5px;
    text-decoration: none;
}

.public-nav__link:hover { background: var(--ink-700); color: #fff; text-decoration: none; }
.public-nav__link.is-active { color: #fff; background: var(--ink-700); }

.public-nav__actions { display: flex; align-items: center; gap: 8px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.brand:hover { color: #fff; text-decoration: none; }

.brand__mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.brand--dark { color: var(--text); }
.brand--dark:hover { color: var(--text); }

.hero {
    background: var(--ink-900);
    color: var(--on-dark);
    padding: 76px 24px 84px;
}

.hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    color: var(--on-dark-muted);
    max-width: 52ch;
    margin-bottom: 26px;
}

.hero__facts {
    display: flex;
    gap: 30px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero__fact-value {
    font-family: var(--font-mono);
    font-size: 19px;
    color: #fff;
}

.hero__fact-label {
    font-size: 12px;
    color: var(--on-dark-muted);
    margin-top: 3px;
}

/* Preisrechner im Hero */
.calc {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    border-radius: 10px;
    padding: 22px;
}

.calc__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calc__label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--on-dark-muted);
    font-weight: 600;
}

.calc__size {
    font-family: var(--font-mono);
    font-size: 22px;
    color: #fff;
}

.calc__result {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ink-700);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.calc__price {
    font-family: var(--font-mono);
    font-size: 30px;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.calc__note {
    font-size: 12px;
    color: var(--on-dark-muted);
    margin-top: 14px;
}

.section {
    padding: 64px 24px;
}

.section--muted { background: var(--surface); }

.section__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section__head {
    max-width: 62ch;
    margin-bottom: 34px;
}

.section__head h2 {
    font-size: 26px;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
}

.section__head p { color: var(--text-2); }

.feature {
    border-top: 2px solid var(--accent);
    padding-top: 14px;
}

.feature h3 { margin-bottom: 7px; }
.feature p { color: var(--text-2); font-size: 13.5px; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table th,
.spec-table td {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.spec-table th { width: 40%; font-weight: 600; color: var(--text); }
.spec-table td { color: var(--text-2); font-family: var(--font-mono); font-size: 13px; }

.public-foot {
    margin-top: auto;
    background: var(--ink-900);
    color: var(--on-dark-muted);
    padding: 40px 24px;
    font-size: 13px;
}

.public-foot__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.public-foot a { color: var(--on-dark-muted); }
.public-foot a:hover { color: #fff; }

.public-foot__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Coming Soon */
.soon {
    max-width: 720px;
    margin: 0 auto;
    padding: 90px 24px 100px;
    text-align: center;
}

.soon__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-600);
    background: var(--accent-050);
    border: 1px solid var(--accent-line);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.soon h1 {
    font-size: 34px;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.soon p { color: var(--text-2); font-size: 15.5px; }

.soon__points {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin-inline: auto;
}

.soon__points li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-2);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.soon__points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 8px;
    flex: 0 0 6px;
}

/* --------------------------------------------------------------------------
   Anmeldeansichten
   -------------------------------------------------------------------------- */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--paper);
}

.auth__aside {
    background: var(--ink-900);
    color: var(--on-dark);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth__aside h2 {
    font-size: 26px;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.auth__aside p { color: var(--on-dark-muted); max-width: 40ch; }

.auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth__form {
    width: 100%;
    max-width: 380px;
}

.auth__form h1 { margin-bottom: 6px; }
.auth__form > p { color: var(--text-2); margin-bottom: 26px; }

.auth__alt {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Hilfsklassen
   -------------------------------------------------------------------------- */

.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.text-accent { color: var(--accent); }
.small { font-size: 12.5px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.inline-form { display: inline; }

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth__aside { display: none; }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform .18s ease;
        box-shadow: var(--shadow-pop);
    }

    .sidebar.is-open { transform: translateX(0); }

    .menu-toggle { display: inline-flex; }

    .scrim {
        position: fixed;
        inset: 0;
        background: rgba(8, 10, 14, .6);
        z-index: 50;
        display: none;
    }

    .scrim.is-open { display: block; }

    .content { padding: 18px 16px 40px; }
    .topbar { padding: 0 16px; }
    .public-nav__links { display: none; }
}

@media (max-width: 620px) {
    .topbar__balance { display: none; }
    .topbar__title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 40vw;
    }
    .topbar .btn { padding: 8px 11px; font-size: 12.5px; }

    .grid--3,
    .grid--4,
    .grid--2 { grid-template-columns: minmax(0, 1fr); }

    .hero { padding: 52px 20px 60px; }
    .hero h1 { font-size: 30px; }
    .section { padding: 46px 20px; }
    .kv { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
    .kv dt { margin-top: 10px; }
    table.data th,
    table.data td { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media print {
    .sidebar, .topbar, .btn, .public-nav, .public-foot { display: none !important; }
    body { background: #fff; }
    .content { padding: 0; max-width: none; }
    .card { border-color: #ccc; }
}