:root {
  --bg: #090b0d;
  --surface: #13171b;
  --surface-2: #1a2026;
  --surface-3: #222a31;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f6f8;
  --muted: #96a1aa;
  --accent: #f2b332;
  --accent-dark: #d99317;
  --success: #57d695;
  --danger: #ed6d6d;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 3px;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 22rem),
    radial-gradient(circle at 86% 82%, rgba(68, 151, 193, 0.1), transparent 28rem),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.brand-logo { display: block; width: 168px; height: 56px; object-fit: cover; object-position: center; border: 1px solid rgba(242,179,50,.25); border-radius: 8px; }
.brand-copy { display: grid; min-width: 0; gap: 3px; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.brand .current-user { display: block; max-width: 220px; color: var(--text); font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

button { min-height: 42px; border: 1px solid transparent; border-radius: 10px; color: var(--text); font-weight: 700; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
.ghost-button { padding: 0 13px; background: transparent; color: var(--muted); }
.ghost-button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.settings-button, .primary-button { padding: 0 16px; color: #14110b; border-color: color-mix(in srgb, var(--accent) 60%, white); background: var(--accent); }
.settings-button:hover, .primary-button:hover { background: #ffe09a; }
.secondary-button { padding: 0 16px; border-color: var(--line); background: var(--surface-3); color: var(--text); }
.secondary-button:hover { background: #303a43; border-color: rgba(255,255,255,.22); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(24px, 4vw, 60px); width: min(1500px, 100%); margin: 0 auto; padding: clamp(32px, 5vw, 76px); }
.catalogue-area { min-width: 0; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.055em; line-height: .98; }
.hero > div > p:not(.eyebrow) { max-width: 560px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: .77rem; white-space: nowrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--success); box-shadow: 0 0 0 4px rgba(87,214,149,.12); }
.legend-plus { display: inline-grid; width: 15px; height: 15px; place-items: center; border: 1px solid var(--muted); border-radius: 4px; font-style: normal; }

.catalogue { display: grid; gap: 24px; }
.category { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(19, 23, 27, .82); box-shadow: var(--shadow); }
.category-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.category-header h2 { margin: 0; font-size: 1rem; letter-spacing: -.015em; }
.category-header span { color: var(--muted); font-size: .72rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.service { position: relative; display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 98px; padding: 17px; border: 0; border-radius: 0; background: var(--surface); color: var(--text); text-align: left; }
.service:hover { z-index: 1; background: var(--surface-2); }
.service.is-selected { z-index: 1; background: color-mix(in srgb, var(--accent) 15%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.service.is-selected .service-state { color: var(--success); opacity: 1; }
.service-main { display: block; min-width: 0; padding-right: 8px; }
.service-name { display: block; overflow: hidden; font-size: .89rem; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.service-price { display: block; margin-top: 7px; color: var(--accent); font-size: .78rem; font-weight: 800; }
.service-state { flex: 0 0 auto; color: var(--muted); font-size: 1rem; opacity: .55; }
.service.is-quantity .service-state { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid currentColor; border-radius: 7px; font-size: 1.1rem; }

.order-panel { min-width: 0; }
.order-card { position: sticky; top: 106px; overflow: hidden; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: rgba(19, 23, 27, .93); box-shadow: var(--shadow); }
.order-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-heading h2 { margin: 0; font-size: 1.22rem; letter-spacing: -.025em; }
.item-count { flex: 0 0 auto; padding: 6px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: .7rem; }
.cart-empty { display: grid; min-height: 115px; place-items: center; padding: 18px; color: var(--muted); text-align: center; }
.cart-empty span { display: block; color: var(--accent); font-size: 2rem; line-height: 1; transform: rotate(-20deg); }
.cart-empty p { max-width: 180px; margin: 7px 0 0; font-size: .8rem; line-height: 1.4; }
.cart-list { display: grid; max-height: 250px; margin: 0; padding: 7px 0; overflow-y: auto; list-style: none; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cart-item-name { display: block; overflow: hidden; font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.cart-item-right { display: flex; align-items: center; gap: 5px; }
.cart-item-price { color: var(--text); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.remove-cart-item { display: grid; width: 27px; min-height: 27px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.remove-cart-item:hover { color: #fff; background: rgba(237,109,109,.22); }

.discount-box { padding: 16px 0; border-top: 1px solid var(--line); }
.discount-box label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .73rem; font-weight: 700; }
.discount-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
input, select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: #0e1114; }
input::placeholder { color: #6e7880; }
input:focus, select:focus { border-color: var(--accent); }
.discount-row button { min-height: 42px; padding: 0 12px; border-color: rgba(255,255,255,.12); background: var(--surface-3); font-size: .76rem; }
.discount-row button:hover { background: #303a43; }
.discount-scope { margin: 7px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.3; }
.discount-message { min-height: 16px; margin: 7px 0 0; color: var(--success); font-size: .69rem; line-height: 1.25; }
.discount-message.error { color: var(--danger); }
.totals { display: grid; gap: 11px; padding-top: 1px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .8rem; }
.totals strong { color: var(--text); }
.totals .grand-total { align-items: baseline; margin-top: 5px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font-size: .95rem; }
.totals .grand-total strong { color: var(--accent); font-size: 1.65rem; letter-spacing: -.055em; }
.hidden { display: none !important; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.order-actions button { font-size: .76rem; }
.autosave { margin: 12px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }
.autosave span { color: var(--success); font-size: .6rem; }

.dialog { width: min(550px, calc(100vw - 32px)); max-height: min(86vh, 780px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.68); }
.dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(4px); }
.dialog form { position: relative; padding: 29px; }
.dialog-close { position: absolute; top: 13px; right: 13px; display: grid; width: 33px; min-height: 33px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 1.6rem; font-weight: 400; }
.dialog-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.dialog h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; }
.dialog-description { margin: 10px 0 20px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.quantity-dialog label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.quantity-dialog input { font-size: 1.1rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 19px; }

.settings-dialog { width: min(1020px, calc(100vw - 30px)); }
.settings-dialog form { max-height: 88vh; overflow: auto; }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.settings-header .dialog-close { position: static; flex: 0 0 auto; }
.settings-grid { display: grid; grid-template-columns: 2fr 2fr 1fr 72px; gap: 14px; }
.settings-grid label, .service-editor-row label { display: grid; gap: 7px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.settings-grid input[type="color"] { padding: 4px; cursor: pointer; }
.config-transfer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.config-transfer .eyebrow { margin-bottom: 4px; }
.config-transfer p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.config-transfer code { color: var(--text); }
.import-button { flex: 0 0 auto; min-height: 36px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 8px; color: var(--accent); font-size: .73rem; font-weight: 800; cursor: pointer; }
.import-button:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.import-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.settings-section { margin-top: 30px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-title h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.025em; }
.small-button { min-height: 36px; padding: 0 11px; border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: .73rem; }
.small-button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.settings-note { margin: 9px 0 14px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.settings-note strong { color: var(--text); }
.price-editor { display: grid; gap: 8px; }
.service-editor-row { display: grid; grid-template-columns: 2fr 1.35fr 1fr auto 36px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.13); }
.service-editor-row input { min-height: 38px; }
.quantity-check { display: flex !important; flex-direction: row; align-items: center; align-self: end; min-height: 38px; padding-bottom: 1px; color: var(--muted); white-space: nowrap; }
.quantity-check input { width: 16px; min-height: 16px; margin: 0 2px 0 0; accent-color: var(--accent); }
.remove-service { display: grid; width: 36px; min-height: 38px; padding: 0; place-items: center; border-color: rgba(237,109,109,.35); border-radius: 9px; color: var(--danger); background: rgba(237,109,109,.07); font-size: 1.4rem; font-weight: 400; }
.remove-service:hover { color: #fff; background: rgba(237,109,109,.25); }
.discounts-settings-section { padding-top: 4px; }
.discount-editor { display: grid; gap: 8px; }
.discount-editor-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(118px, .7fr) auto 36px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.13); }
.discount-editor-row label { display: grid; gap: 7px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.discount-editor-row input { min-height: 38px; }
.one-time-check { display: flex !important; align-items: center; align-self: end; min-height: 38px; padding-bottom: 1px; white-space: nowrap; }
.one-time-check input { width: 16px; min-height: 16px; margin: 0 7px 0 0; accent-color: var(--accent); }
.remove-discount { display: grid; width: 36px; min-height: 38px; padding: 0; place-items: center; border-color: rgba(237,109,109,.35); border-radius: 9px; color: var(--danger); background: rgba(237,109,109,.07); font-size: 1.4rem; font-weight: 400; }
.remove-discount:hover { color: #fff; background: rgba(237,109,109,.25); }
.settings-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-top: 25px; }
.text-button { min-height: 35px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: .73rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--danger); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: min(360px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: var(--text); background: #28323a; box-shadow: var(--shadow); font-size: .8rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.auth-screen { display: grid; min-height: 100vh; padding: 28px; place-items: center; }
.auth-card { width: min(440px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: rgba(19,23,27,.94); box-shadow: var(--shadow); }
.auth-logo { display: block; width: min(100%, 300px); height: 100px; margin: 0 auto 28px; object-fit: cover; border: 1px solid rgba(242,179,50,.25); border-radius: 12px; }
.auth-card h1 { margin-bottom: 12px; font-size: 2rem; }
.auth-description { margin-bottom: 24px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.login-form { display: grid; gap: 8px; }
.login-form label, .invoice-dialog label { color: var(--muted); font-size: .75rem; font-weight: 750; }
.login-form input { margin-bottom: 8px; }
.login-form .primary-button { width: 100%; margin-top: 8px; }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: .72rem; line-height: 1.3; }
.current-user { max-width: 170px; overflow: hidden; color: var(--muted); font-size: .75rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { min-height: 38px; padding: 0 11px; border-color: rgba(237,109,109,.36); color: #f0a1a1; background: rgba(237,109,109,.08); font-size: .73rem; }
.logout-button:hover { color: #fff; background: rgba(237,109,109,.24); }

.dashboard-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.dashboard-strip article { min-width: 0; padding: 16px 18px; background: rgba(19,23,27,.82); }
.dashboard-strip span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-strip strong { display: block; overflow: hidden; color: var(--accent); font-size: 1.17rem; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.recent-invoices { margin: 0 0 28px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: rgba(19,23,27,.7); }
.recent-invoices-bottom { grid-column: 1 / -1; margin: 0; }
.recent-invoices .section-title { margin-bottom: 12px; }
.recent-invoices-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.recent-invoice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 12px 13px; background: var(--surface); }
.recent-invoice-main { min-width: 0; }
.recent-invoice-title { display: block; overflow: hidden; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.recent-invoice-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; }
.recent-invoice-total { color: var(--text); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.recent-empty { padding: 18px; color: var(--muted); font-size: .78rem; text-align: center; }

.invoice-dialog form { display: grid; }
.invoice-dialog label { display: grid; gap: 7px; margin-bottom: 13px; }
.required { color: var(--danger); }
.invoice-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.invoice-fields label { margin-bottom: 0; }
.invoice-dialog .form-error { margin-top: 12px; }

.success-dialog { width: min(430px, calc(100vw - 32px)); text-align: center; }
.success-dialog-content { position: relative; padding: 29px; }
.success-logo { display: block; width: min(100%, 255px); height: 82px; margin: 0 auto 20px; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 11px; object-fit: cover; }
.invoice-new-customer { display: grid; gap: 10px; margin-top: 16px; padding: 13px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, transparent); }.invoice-new-customer h3 { margin: 0; font-size: .85rem; }.invoice-new-customer .small-button { justify-self: start; }
.success-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; border: 2px solid var(--success); border-radius: 50%; color: var(--success); font-size: 1.7rem; font-weight: 900; }
.success-dialog h2 { margin-bottom: 9px; }
.success-dialog p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .88rem; }
.success-invoice-summary { margin-top: 13px !important; color: var(--accent) !important; font-weight: 800; }
.success-dialog .primary-button { width: 100%; margin-top: 22px; }

.admin-dialog { width: min(930px, calc(100vw - 30px)); }
.admin-dialog-content { max-height: 88vh; padding: 29px; overflow: auto; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 0 0 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.admin-summary article { padding: 14px; background: rgba(0,0,0,.14); }
.admin-summary span { display: block; color: var(--muted); font-size: .66rem; }
.admin-summary strong { display: block; margin-top: 4px; color: var(--accent); font-size: 1rem; }
.admin-section { margin-top: 28px; }
.admin-section h3 { margin-bottom: 0; font-size: 1.05rem; }
.mechanic-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-top: 13px; }
.mechanic-form label { display: grid; gap: 7px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.mechanic-form .webhook-field, .mechanic-form .form-error { grid-column: 1 / -1; }
.mechanic-form .primary-button { justify-self: start; }
.permission-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .82rem; }
.permission-checks label { display: flex; align-items: center; gap: 7px; }
.inventory-dialog { width: min(930px, calc(100vw - 30px)); }
.inventory-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; margin: 12px 0 16px; }
.inventory-item, .stock-history-row { border: 1px solid var(--line); background: rgba(0,0,0,.13); border-radius: 10px; padding: 10px; }
.inventory-item span, .stock-history-row small { display: block; color: var(--muted); font-size: .73rem; }
.inventory-item strong { display: block; margin-top: 4px; color: var(--accent); }
.stock-history { display: grid; gap: 8px; margin-top: 10px; }
.stock-history-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stock-history-row strong.positive { color: var(--success); }
.stock-history-row strong.negative { color: #ff7777; }
.danger-button { color: #ffd7d7; border-color: rgba(239, 68, 68, .65); background: rgba(127, 29, 29, .24); }
.danger-button:hover { color: #fff; border-color: #ef4444; background: rgba(185, 28, 28, .42); }
.leisure-dialog { width: min(520px, calc(100vw - 30px)); }
.stream-dialog { width: min(940px, calc(100vw - 30px)); }
.leisure-content { position: relative; padding: 30px; }
.radio-window-actions { position: absolute; right: 15px; top: 14px; display: flex; gap: 6px; }
.radio-window-actions .dialog-close { position: static; }
.radio-stations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 12px; }
.radio-station { min-height: 54px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.16); color: var(--text); font-weight: 800; cursor: pointer; }
.radio-station:hover { border-color: var(--accent); color: var(--accent); }
.leisure-option { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; align-items: center; padding: 16px; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.16); color: var(--text); text-align: left; cursor: pointer; }
.leisure-option span { grid-row: 1 / 3; font-size: 1.8rem; color: var(--accent); }.leisure-option small { color: var(--muted); }.leisure-option:hover { border-color: var(--accent); }
.stream-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 18px 0 10px; }.stream-frame-wrap { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }.stream-frame-wrap iframe { width: 100%; height: 100%; border: 0; }.stream-mini { bottom: 80px; }
#radioPlayer { width: 100%; margin-top: 8px; }
.radio-volume { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; margin-top: 15px; color: var(--muted); font-weight: 750; font-size: .82rem; }
.radio-volume input { accent-color: var(--accent); }
.radio-fallback { display: inline-block; margin-top: 13px; color: var(--accent); font-weight: 750; }
.football-ready { display: grid; gap: 7px; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.15); }
.football-ready strong { color: var(--accent); }.football-ready span { color: var(--muted); font-size: .9rem; }
.football-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; max-height: 180px; overflow: auto; }.football-player { width: 100%; max-height: 460px; background: #000; border: 1px solid var(--line); border-radius: 10px; }
.football-source-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 18px 0 10px; }.football-source-form label { display: grid; gap: 7px; color: var(--muted); font-size: .74rem; font-weight: 750; }.football-source-url, .football-source-form .settings-note { grid-column: 1 / -1; }.football-source-form .primary-button { justify-self: start; }
.garage-promo { position: relative; min-height: 235px; overflow: hidden; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; background: #101010; }.garage-promo img { width: 100%; height: 100%; min-height: 235px; object-fit: cover; object-position: center; opacity: .78; }.garage-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,7,.93) 0%, rgba(7,7,7,.62) 43%, rgba(7,7,7,.05) 78%); }.garage-promo-copy { position: absolute; z-index: 1; left: 28px; top: 50%; transform: translateY(-50%); max-width: 380px; }.garage-promo-copy h2 { margin: 4px 0 8px; font-size: clamp(1.45rem, 3vw, 2.25rem); }.garage-promo-copy p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.client-area-link { display: inline-block; margin: 4px 0 16px; color: var(--accent); font-weight: 750; text-decoration: none; }.client-area-link:hover { text-decoration: underline; }
.client-side-gallery { display: none; }.client-page, .client-gate { position: relative; z-index: 1; }
.mechanic-side-gallery { display: none; }.auth-screen, .layout { position: relative; z-index: 1; }
@media (min-width: 1540px) { .client-side-gallery { position: fixed; inset: 0; z-index: 0; display: block; overflow: hidden; pointer-events: none; }.client-side-photo { position: absolute; top: 0; width: min(15vw, 300px); height: 100vh; max-height: none; object-fit: cover; opacity: .38; filter: saturate(.86) contrast(1.04) brightness(.62); transform: none; }.client-side-photo-left { left: 0; object-position: 30% center; mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%); }.client-side-photo-right { right: 0; object-position: 70% center; mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%); } }
@media (min-width: 1540px) { .mechanic-side-gallery { position: fixed; inset: 0; z-index: 0; display: block; overflow: hidden; pointer-events: none; }.mechanic-side-photo { position: absolute; top: 0; width: min(15vw, 300px); height: 100vh; object-fit: cover; opacity: .28; filter: saturate(.78) contrast(1.02) brightness(.5); }.mechanic-side-photo-left { left: 0; object-position: 30% center; mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%); }.mechanic-side-photo-right { right: 0; object-position: 70% center; mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%); } }
.client-gate { display: grid; min-height: 100vh; padding: 24px; place-items: center; }.client-gate-card { width: min(430px, 100%); padding: clamp(24px, 5vw, 40px); border: 1px solid rgba(242,179,50,.38); border-radius: 18px; background: rgba(19,23,27,.96); box-shadow: var(--shadow); text-align: center; }.client-gate-card img { width: min(230px, 80%); margin-bottom: 18px; border: 1px solid rgba(242,179,50,.28); border-radius: 10px; }.client-gate-card h1 { margin: 5px 0 11px; font-size: 1.7rem; }.client-gate-card > p:not(.eyebrow):not(.form-error) { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }.turnstile-widget { display: flex; min-height: 65px; justify-content: center; }.client-gate-card .primary-button { width: 100%; }.client-gate-card .primary-button:disabled { cursor: not-allowed; opacity: .45; }
.client-page { width: min(1320px, calc(100vw - clamp(24px, 5vw, 88px))); margin: 0 auto; padding: clamp(14px, 2.5vw, 34px) 0 clamp(38px, 6vw, 72px); }.client-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 42px); min-height: clamp(58px, 8vw, 96px); margin-bottom: clamp(14px, 2vw, 26px); }.client-header img { width: clamp(150px, 19vw, 260px); max-width: 100%; height: auto; }.client-header .ghost-button { justify-self: end; white-space: nowrap; }.client-hero { position: relative; min-height: clamp(390px, 47vw, 560px); overflow: hidden; border: 1px solid var(--line); border-radius: clamp(14px, 2vw, 20px); background: #111; }.client-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }.client-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.95), rgba(5,5,5,.52) 48%, rgba(5,5,5,.05)); }.client-hero > div { position: relative; z-index: 1; max-width: min(520px, 52%); padding: clamp(28px, 6vw, 80px); }.client-hero h1 { margin: 6px 0 12px; font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: .98; }.client-hero p { margin: 0 0 26px; color: #ddd; font-size: clamp(.95rem, 1.5vw, 1.1rem); line-height: 1.55; }.client-hero .primary-button { display: inline-flex; text-decoration: none; }.client-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.5vw, 18px); margin-top: clamp(14px, 2vw, 22px); }.client-benefits article { padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 14px; background: rgba(15,15,15,.85); }.client-benefits span { color: var(--accent); font-size: 1.6rem; }.client-benefits h2 { margin: 10px 0 7px; }.client-benefits p { margin: 0; color: var(--muted); line-height: 1.5; }
.client-hero-compact { min-height: 360px; }.client-hero-compact > div { padding: clamp(28px, 6vw, 62px); }.client-quote { margin-top: 20px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: rgba(19,23,27,.78); }.client-quote-intro { max-width: 690px; }.client-quote-intro h2 { margin: 3px 0 9px; font-size: clamp(1.6rem, 3vw, 2.45rem); }.client-quote-intro > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }.client-quote-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 20px; margin-top: 26px; }.client-catalogue { display: grid; gap: 15px; }.client-loading { color: var(--muted); }.client-service-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }.client-service-group h3 { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: .88rem; }.client-service-list { display: grid; gap: 1px; background: var(--line); }.client-service { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; background: #11161a; }.client-service.is-selected { background: color-mix(in srgb, var(--accent) 12%, #11161a); }.client-service strong, .client-service span { display: block; }.client-service span { margin-top: 4px; color: var(--accent); font-size: .8rem; font-weight: 800; }.client-service-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }.client-service-actions button { min-height: 32px; padding: 0 10px; border-color: rgba(242,179,50,.42); border-radius: 7px; background: rgba(242,179,50,.1); color: var(--accent); font-size: .74rem; }.client-service-actions button:disabled { opacity: .35; cursor: not-allowed; }.client-service-actions span { width: 18px; margin: 0; color: var(--text); text-align: center; }.client-cart-card { position: sticky; top: 18px; align-self: start; padding: 20px; border: 1px solid rgba(242,179,50,.34); border-radius: 14px; background: #121619; }.client-cart-card h2 { margin: 3px 0 15px; }.client-cart-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }.client-cart-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .83rem; }.client-cart-list span, .client-cart-list small { display: block; }.client-cart-list small { margin-top: 3px; color: var(--muted); }.client-cart-list > li > strong { color: var(--accent); white-space: nowrap; }.client-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }.client-total strong { color: var(--accent); font-size: 1.25rem; }.client-request-form { display: grid; gap: 12px; }.client-request-form label { display: grid; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 750; }.client-request-form .primary-button { width: 100%; margin-top: 2px; }.client-privacy-note { margin: 1px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }.client-success { margin: 15px 0 0; padding: 11px; border: 1px solid rgba(87,214,149,.38); border-radius: 9px; color: #a9f0c6; background: rgba(87,214,149,.08); font-size: .82rem; line-height: 1.45; }
.optional { color: var(--muted); font-weight: 600; }
.client-requests-list { display: grid; gap: 10px; margin-top: 16px; }.client-request-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.14); }.client-request-row h3 { margin: 0 0 5px; font-size: .9rem; }.client-request-row p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }.client-request-row .client-request-items { margin-top: 5px; color: var(--text); }.client-request-row > strong { color: var(--accent); white-space: nowrap; }
@media (max-width: 700px) { .client-page { width: min(100% - 24px, 620px); }.client-header { grid-template-columns: 1fr; justify-items: start; min-height: 0; }.client-header .ghost-button { justify-self: start; }.client-header img { width: min(230px, 70vw); }.client-hero { min-height: 620px; }.client-hero::after { background: linear-gradient(0deg, rgba(5,5,5,.92), rgba(5,5,5,.2)); }.client-hero > div { max-width: 100%; padding-top: 300px; }.client-benefits { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .client-quote-layout { grid-template-columns: 1fr; }.client-cart-card { position: static; }.client-hero-compact { min-height: 460px; }.client-hero-compact > div { padding-top: 235px; } }
.radio-mini-player { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--accent); border-radius: 12px; background: #15120c; box-shadow: 0 15px 40px rgba(0,0,0,.45); color: var(--text); }
.radio-mini-player span { font-weight: 750; color: var(--accent); }
.radio-mini-player button { border: 0; border-radius: 7px; padding: 7px 10px; background: rgba(255,255,255,.12); color: var(--text); cursor: pointer; }
.mechanic-list { display: grid; gap: 8px; margin-top: 13px; }
.mechanic-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.13); }
.mechanic-card h4 { margin: 0; font-size: .88rem; }
.mechanic-card p { margin: 4px 0 0; color: var(--muted); font-size: .69rem; }
.mechanic-card strong { color: var(--accent); font-size: .87rem; white-space: nowrap; }
.discord-status { padding: 5px 7px; border-radius: 5px; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.discord-status.ready { color: #8ce4b6; background: rgba(87,214,149,.12); }
.discord-status.missing { color: #efaaa4; background: rgba(237,109,109,.12); }
.mechanic-edit-button { min-height: 32px; padding: 0 9px; font-size: .68rem; white-space: nowrap; }
.edit-mechanic-dialog label { display: grid; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.edit-mechanic-dialog .settings-note { margin: 10px 0 0; }
.account-dialog label { display: grid; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .75rem; font-weight: 750; }

@media (max-width: 1140px) {
  .layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-editor-row { grid-template-columns: 2fr 1.2fr 1fr 36px; }
  .quantity-check { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
  .topbar { position: relative; }
  .layout { grid-template-columns: 1fr; padding-top: 34px; }
  .order-panel { order: -1; }
  .order-card { position: static; }
  .cart-list { max-height: 170px; }
  .hero { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .legend { justify-content: flex-start; }
  .mechanic-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar { min-height: 70px; padding: 11px 16px; }
  .brand-logo { width: 128px; height: 43px; }
  .brand small { display: none; }
  .ghost-button { display: none; }
  .settings-button { min-height: 39px; padding: 0 11px; font-size: .75rem; }
  .brand .current-user { display: none; }
  .logout-button { min-height: 39px; padding: 0 9px; }
  .layout { padding: 25px 16px 40px; }
  h1 { font-size: 2.2rem; }
  .category-header { padding: 15px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 77px; padding: 14px 15px; }
  .order-card { padding: 20px; }
  .order-actions { grid-template-columns: 1fr; }
  .dialog form { padding: 23px 18px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid label:first-child, .settings-grid label:nth-child(2) { grid-column: 1 / -1; }
  .service-editor-row { grid-template-columns: 1fr 1fr 35px; gap: 8px; }
  .service-editor-row label:first-child { grid-column: 1 / -1; }
  .quantity-check { grid-column: 1 / 3; }
  .discount-editor-row { grid-template-columns: minmax(0, 1fr) 35px; gap: 8px; }
  .discount-editor-row label:first-child { grid-column: 1 / -1; }
  .one-time-check { grid-column: 1; }
  .settings-actions { grid-template-columns: 1fr 1fr; }
  .settings-actions .text-button { grid-column: 1 / -1; justify-self: start; }
  .settings-actions span { display: none; }
  .config-transfer { align-items: flex-start; flex-direction: column; gap: 11px; }
  .auth-screen { padding: 16px; }
  .auth-card { padding: 22px; }
  .auth-logo { height: 90px; margin-bottom: 22px; }
  .dashboard-strip { grid-template-columns: 1fr; }
  .recent-invoices { padding: 15px; }
  .invoice-fields { grid-template-columns: 1fr; gap: 0; }
  .admin-dialog-content { padding: 23px 18px; }
  .admin-summary { grid-template-columns: 1fr; }
  .mechanic-form { grid-template-columns: 1fr; }
  .mechanic-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .mechanic-card strong { grid-column: 2; grid-row: 1; }
  .mechanic-card .discord-status { grid-column: 1; grid-row: 2; }
  .mechanic-card .mechanic-edit-button { grid-column: 2; grid-row: 2; }
}
