/* NORDLINE – zákaznícky portál. Nadväzuje na ../style.css (tokeny, fonty, .button, .eyebrow, .tag, .summary…). */

:root {
  --panel-dark: #252a23;
  --panel-dark-line: #47503e;
  --panel-dark-muted: #a6ae9c;
  --field-line: #858a7d;       /* 3,5:1 voči bielej – hranica poľa musí byť viditeľná (WCAG 1.4.11) */
  --danger: #b42318;
  --danger-strong: #8f1d12;
  --danger-bg: #fdf1ef;
  --ok: #2f5410;
  --ok-bg: #f1f6ea;
  --info: #1d4f91;
  --info-bg: #eef3fb;
}

[hidden] { display: none !important; }

textarea { font: inherit; }
textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.ico-lg { width: 36px; height: 36px; stroke-width: 1.3; color: var(--orange-text); }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.num { text-align: right; white-space: nowrap; }
.break { overflow-wrap: anywhere; }

/* ---------- hlavička ---------- */

.acc-header { height: 88px; gap: 24px; }
.acc-header nav { margin: 0 auto; }
.acc-header nav a { padding: 8px 0; }
.acc-header nav a[aria-current="page"] { color: var(--orange-text); box-shadow: inset 0 -2px 0 var(--orange); }

.acc-user { display: flex; align-items: center; gap: 14px; font-size: 12px; min-width: 0; }
.acc-user-name { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); }
.acc-user-text { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }

.acc-logout,
.acc-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.acc-logout:hover,
.acc-login:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.acc-logout:disabled { cursor: progress; opacity: .7; }

/* ---------- stránka ---------- */

.acc-main { padding: 34px 0 90px; min-height: 62vh; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head-text { min-width: 0; max-width: 720px; }
.page-head .eyebrow { color: var(--orange-text); }
.page-title {
  font: 500 clamp(32px, 4vw, 48px)/1.08 var(--mono);
  letter-spacing: -2px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.page-title:focus { outline: none; }
.page-lead { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; max-width: 600px; }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.page-actions .button { gap: 18px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 18px; transition: color .2s; }
.back-link:hover { color: var(--orange-text); }

.button .ico { width: 15px; height: 15px; }
.button:disabled,
.button[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }
.button:disabled:hover { background: var(--orange-strong); }
.button-danger { background: var(--danger); }
.button-danger:hover { background: var(--danger-strong); }
.button-danger:disabled:hover { background: var(--danger); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--field-line);
  background: #fff;
  color: var(--ink);
  padding: 13px 17px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color .2s, background-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-secondary:disabled { opacity: .65; cursor: progress; }
.btn-secondary:disabled:hover { background: #fff; color: var(--ink); border-color: var(--field-line); }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); justify-content: flex-start; }
.btn-danger-outline:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn-outline-light {
  width: 100%;
  margin-top: 22px;
  border: 1px solid #6d7763;
  background: transparent;
  color: #f5f6f0;
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: border-color .2s, background-color .2s;
}
.btn-outline-light:hover { border-color: #ffa391; background: #3a2a24; }

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--orange-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--orange-text); }

.inline-link { color: var(--orange-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--ink); }

/* ---------- oznamy a stavy ---------- */

.flash-slot:empty { display: none; }
.flash-slot { margin-bottom: 22px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid;
  border-left-width: 3px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 760px;
}
.notice:focus { outline: none; }
.notice .ico { margin-top: 2px; }
.notice-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.notice-success { color: var(--ok); background: var(--ok-bg); border-color: #7da35a; }
.notice-info { color: var(--info); background: var(--info-bg); border-color: #7a9cc9; }
.notice-error { color: var(--danger-strong); background: var(--danger-bg); border-color: var(--danger); }

.state-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}
.state-error { color: var(--danger-strong); flex-wrap: wrap; }
.state-error p { margin: 0; }
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--orange-strong);
  animation: acc-spin .8s linear infinite;
}
@keyframes acc-spin { to { transform: rotate(360deg); } }

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  background: #fff;
  border: 1px dashed #b9bfae;
  padding: 52px 28px;
}
.empty h2 { font-size: 22px; letter-spacing: -.6px; margin: 4px 0 0; }
.empty p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 460px; margin: 0 0 8px; }
.empty-sm { padding: 30px 20px; }
.empty-sm p { margin: 0; }

/* ---------- formuláre ---------- */

.acc-form { display: grid; gap: 20px; margin-top: 28px; max-width: 440px; }
.acc-form > .button { width: 100%; }

.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 11px 14px;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--ink); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field input[readonly] { background: #f1f3ed; }
.field select:disabled { background: #f1f3ed; color: var(--muted); }
.field .code-input { font: 600 24px var(--mono); letter-spacing: 8px; max-width: 250px; }
.field .mono-input { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; font-size: 13px; }

.field-hint { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.field-error .ico { width: 14px; height: 14px; margin-top: 2px; }

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  border-left-width: 3px;
  background: var(--danger-bg);
  color: var(--danger-strong);
  font-size: 13px;
  line-height: 1.5;
}
.form-error:focus { outline: none; }
.form-error .ico { margin-top: 2px; }
.form-ok { margin: 0; font-size: 12px; font-weight: 600; color: var(--ok); }
.form-ok:empty { display: none; }
.form-links { margin: -8px 0 0; font-size: 12px; }

.pw-meter { position: relative; height: 4px; background: #e5e8df; overflow: hidden; }
.pw-meter span { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--orange); transition: width .2s; }
.pw-meter.ok span { background: #4d7c1f; }

.check { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; line-height: 1.55; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--orange-strong); cursor: pointer; }

.resend { display: grid; gap: 4px; justify-items: start; }
.resend-status { margin: 0; font-size: 12px; color: var(--muted); }
.resend-status:empty { display: none; }

/* ---------- prihlásenie / registrácia ---------- */

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  max-width: 1000px;
  background: #fff;
  border: 1px solid var(--line);
}
.auth-card { padding: 44px 48px 40px; min-width: 0; }
.auth-card .page-head { margin-bottom: 0; }
.auth-card .flash-slot { margin: 22px 0 0; }
.auth-switch { margin: 26px 0 0; font-size: 13px; color: var(--muted); }

.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 30px;
  background-color: var(--panel-dark);
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 30px 30px;
  color: #f5f6f0;
}
.auth-aside-title { font: 400 30px/1.2 var(--mono); letter-spacing: -1px; margin: 34px 0 30px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 13px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.auth-points .ico { width: 18px; height: 18px; color: var(--orange); margin-top: 1px; }
.auth-aside-note { margin: auto 0 0; padding-top: 30px; font-size: 11px; line-height: 1.6; color: var(--panel-dark-muted); border-top: 1px solid var(--panel-dark-line); }

/* ---------- prehľad serverov ---------- */

.acc-section { min-width: 0; }

.acc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 24px;
}
.acc-stats > div { padding: 0 24px; border-right: 1px solid var(--line); min-width: 0; }
.acc-stats > div:first-child { padding-left: 0; }
.acc-stats > div:last-child { border-right: 0; }
.acc-stats span { display: block; font: 10px var(--mono); letter-spacing: 1.3px; color: var(--muted); margin-bottom: 8px; }
.acc-stats strong { font: 500 22px var(--mono); letter-spacing: -.6px; white-space: nowrap; }

.table-wrap { min-width: 0; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.data-table th {
  text-align: left;
  font: 600 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6f7f2;
  white-space: nowrap;
}
.data-table th.num { text-align: right; }
.data-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfcf9; }

.srv-name { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--mono); letter-spacing: -.3px; overflow-wrap: anywhere; transition: color .2s; }
.srv-name:hover { color: var(--orange-text); }
.srv-name .ico { width: 14px; height: 14px; color: var(--orange-text); }
.srv-order { display: block; margin-top: 4px; font: 11px var(--mono); color: var(--muted); letter-spacing: .4px; }

/* stavové štítky – text vždy nesie význam, farba je len doplnok */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid;
  font: 600 11px var(--mono);
  letter-spacing: .3px;
  white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; background: currentColor; flex: none; }
.status-pending { color: #8a4b00; background: #fff5e6; border-color: #e7c189; }
.status-provisioning { color: var(--info); background: var(--info-bg); border-color: #9db6dc; }
.status-active { color: var(--ok); background: var(--ok-bg); border-color: #9fbf80; }
.status-suspended { color: #a32014; background: #fdecea; border-color: #eba59c; }
.status-cancel-requested { color: #9a3412; background: #fbefe7; border-color: #e8b496; }
.status-cancelled,
.status-unknown { color: #50534c; background: #eef0eb; border-color: #c9cec1; }

/* ---------- detail servera ---------- */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 320px); gap: 20px; }
.acc-panel { background: #fff; border: 1px solid var(--line); padding: 26px 28px; min-width: 0; }
.acc-panel h2 { font: 500 20px/1.25 var(--mono); letter-spacing: -.5px; margin: 0 0 16px; }
.panel-lead { font-size: 13px; line-height: 1.7; margin: -4px 0 0; }

.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.detail-status { margin-bottom: 12px; }
.detail-help { font-size: 13px; line-height: 1.65; margin: 0 0 10px; }
.ip { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.ssh-hint { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 11px 13px; background: #f1f3ed; font-size: 12px; overflow-wrap: anywhere; }
.ssh-hint code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.panel-dark { background: var(--panel-dark); border-color: var(--panel-dark); color: #f5f6f0; display: flex; flex-direction: column; }
.panel-dark .summary-top { margin-bottom: 18px; }
.panel-dark .price { margin: 8px 0 4px; }
.panel-dark .price small { color: var(--panel-dark-muted); }
.panel-dark-note { margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: var(--panel-dark-muted); }

.timeline-panel { margin-top: 20px; }
.timeline { list-style: none; margin: 4px 0 0 4px; padding: 0; border-left: 1px solid var(--line); max-width: 760px; }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; background: var(--ink); }
.timeline li:first-child::before { background: var(--orange); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 11px var(--mono); color: var(--muted); letter-spacing: .3px; }
.tl-title { margin: 5px 0 0; font-size: 13px; font-weight: 600; }
.tl-note { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- objednávka ---------- */

.order-form .config-layout { align-items: start; }
.order-form .config { min-width: 0; }
.order-form .summary { position: sticky; top: 20px; min-width: 0; }

.config-title { font: 500 17px/1.3 'DM Sans', sans-serif; letter-spacing: -.4px; margin: 0; }

.kind-switch { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.kind-switch legend { font-size: 12px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.kind-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kind-option { position: relative; display: block; cursor: pointer; }
.kind-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.kind-box {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s, background-color .2s, color .2s;
}
.kind-box strong { font: 600 14px var(--mono); letter-spacing: -.2px; }
.kind-box small { font-size: 11px; color: var(--muted); }
.kind-option:hover .kind-box { border-color: #b9bfae; }
.kind-radio:checked + .kind-box { border-color: var(--orange); background: #fff5f0; color: var(--orange-text); box-shadow: inset 0 0 0 1px var(--orange); }
.kind-radio:focus-visible + .kind-box { outline: 3px solid var(--orange); outline-offset: 3px; }

.config-body .presets button .ico { width: 13px; height: 13px; }
.config-body .server-specs { padding: 0; margin: 26px 0 28px; }

.config-section { display: grid; gap: 20px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.order-form .os-row select { font-size: 13px; min-height: 42px; border-color: var(--field-line); }

.summary-title { font: 400 29px/1.2 var(--mono); letter-spacing: -1px; margin: 22px 0 18px; }
.summary dd { text-align: right; overflow-wrap: anywhere; }
.summary dl > div { gap: 14px; }
.summary .price.is-stale b { opacity: .55; }
.quote-error { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: #ffa391; }

.summary .field-check { margin-top: 22px; }
.summary .check { color: #e4e7dd; }
.summary .check input:focus-visible { outline-color: var(--orange); }
.summary .field-error { color: #ffa391; }
.summary .form-error { margin-top: 18px; background: #3a2320; border-color: #ff8f7a; color: #ffd9d0; }
.summary .button { margin-top: 20px; }

/* ---------- nastavenia ---------- */

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-grid .acc-form { margin-top: 20px; max-width: none; }
.settings-grid .acc-form .btn-secondary { justify-self: start; }
.settings-grid .acc-panel:last-child .btn-secondary { margin-top: 20px; }

/* ---------- administrácia ---------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs [role="tab"] {
  background: none;
  border: 0;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); }
.tabs [role="tab"]:focus-visible { outline-offset: -3px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.field-inline { max-width: 260px; width: 100%; }
.toolbar-count { margin: 0 0 12px; font-size: 12px; }

.adm-order { background: #fff; border: 1px solid var(--line); margin-bottom: 16px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.adm-head-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.adm-head .tag { color: var(--muted); }
.adm-title { margin: 0; font: 600 17px var(--mono); letter-spacing: -.3px; overflow-wrap: anywhere; }
.adm-title:focus { outline: none; }
.adm-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 8px 22px 12px; }
.adm-form {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 210px) minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  padding: 18px 22px 20px;
  background: #f6f7f2;
  border-top: 1px solid var(--line);
}
.adm-form > .form-error,
.adm-actions { grid-column: 1 / -1; }
.adm-form textarea { min-height: 46px; }
.adm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* ---------- potvrdzovací dialóg ---------- */

dialog {
  border: 1px solid var(--line);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 32px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: #172015aa; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog .eyebrow { color: var(--orange-text); }
dialog h2 { font-size: 24px; letter-spacing: -.8px; margin: 16px 0 12px; }
dialog p { color: var(--muted); line-height: 1.6; font-size: 13px; margin: 0; overflow-wrap: anywhere; }
dialog .form-error { margin-top: 16px; color: var(--danger-strong); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.dialog-actions .button { gap: 16px; }

/* ---------- responzívne ---------- */

@media (max-width: 1050px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .detail-grid .panel-dark { grid-column: 1 / -1; }
  .adm-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm-form > .adm-note { grid-column: 1 / -1; }
  .auth-card { padding: 38px 34px; }
}

@media (max-width: 800px) {
  .acc-header { height: auto; }
  .acc-header nav { margin: 0; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .order-form .summary { position: static; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .acc-stats > div:nth-child(2) { border-right: 0; }
  .acc-stats > div:nth-child(3) { padding-left: 0; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-body { grid-template-columns: minmax(0, 1fr); }
  .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .field textarea,
  .field select,
  .order-form .os-row select { font-size: 16px; }

  /* tabuľky -> karty */
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table { border: 0; background: transparent; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table tr { background: #fff; border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 12px; }
  .data-table tbody tr:hover td { background: transparent; }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .data-table td::before {
    content: attr(data-label);
    flex: none;
    text-align: left;
    font: 10px/1.9 var(--mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .data-table td.cell-main { display: block; text-align: left; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .data-table td.cell-main::before { content: none; }
  .data-table td.num { white-space: normal; }
}

@media (max-width: 480px) {
  .acc-main { padding: 24px 0 64px; }
  .acc-header { gap: 12px; }
  .acc-user { gap: 8px; }
  .acc-user-text { max-width: 96px; }
  .acc-logout,
  .acc-login { padding: 10px 11px; font-size: 11px; gap: 7px; }
  .page-title { letter-spacing: -1.4px; }
  .page-actions,
  .page-actions .button { width: 100%; }
  .auth-card { padding: 28px 18px 26px; }
  .acc-panel { padding: 22px 18px; }
  .acc-stats strong { font-size: 18px; }
  .acc-stats > div { padding: 0 14px; }
  .kind-options { grid-template-columns: minmax(0, 1fr); }
  .config-body .presets button .ico { display: none; }
  .config-body .presets button span { display: inline; }
  .order-form .os-row { flex-wrap: wrap; }
  .order-form .os-row select { max-width: none; width: 100%; }
  .summary-title { font-size: 24px; }
  .adm-head,
  .adm-body,
  .adm-form { padding-left: 16px; padding-right: 16px; }
  .adm-form { grid-template-columns: minmax(0, 1fr); }
  .field-inline { max-width: none; }
  dialog { padding: 26px 20px; }
  .dialog-actions > * { width: 100%; }
  .kv > div { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .acc-user-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: var(--line); }
}

.config-note { margin: 18px 0 0; padding: 12px 14px; font-size: 12px; line-height: 1.5; color: var(--ink); background: #fdf0ea; border-left: 3px solid var(--orange); }

/* --- fakturačné údaje ------------------------------------------------------ */
.billing-fieldset { border: 0; margin: 6px 0 0; padding: 22px 0 0; min-width: 0; display: grid; gap: 20px; border-top: 1px solid var(--line); }
.billing-legend { float: left; width: 100%; font: 600 15px var(--mono); letter-spacing: -.2px; padding: 0; }
.billing-legend + * { clear: both; }
.billing-type { margin: 0; }
.billing-company { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.field-row-zip { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
.field-ico { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
.field-ico > label { grid-column: 1 / -1; }
.field-ico > .field-error, .field-ico > .field-hint { grid-column: 1 / -1; }
.btn-lookup { white-space: nowrap; }
.lookup-msg { margin: -10px 0 0; font-size: 12px; line-height: 1.5; color: var(--ok); }
.lookup-msg:empty { margin: 0; }
.lookup-msg.is-error { color: var(--danger); }
.notice-inline { margin: 14px 0 0; padding: 10px 12px; font-size: 12px; line-height: 1.5; color: var(--danger-strong); background: var(--danger-bg); border-left: 3px solid var(--danger); }
#fakturacne-udaje { grid-row: span 2; }

/* --- platba v tmavom paneli ----------------------------------------------- */
.pay-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--panel-dark-line); display: grid; gap: 10px; }
.pay-box:empty { display: none; }
.pay-box .pay-btn { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
.pay-box .button.pay-btn { padding: 13px 15px; font-size: 12px; }
.pay-box .pay-btn:disabled { opacity: .55; cursor: not-allowed; }
.pay-box .pay-btn:disabled:hover { border-color: #6d7763; background: transparent; }
.pay-box .ico { width: 15px; height: 15px; flex: none; }
.pay-lead { margin: 0; }
.pay-state { margin: 0; font-size: 13px; line-height: 1.55; color: #f5f6f0; }
.pay-paid { display: flex; gap: 8px; align-items: flex-start; color: #cfe6b4; }
.pay-kv { margin: 0; display: grid; gap: 4px; font-size: 12px; }
.pay-kv div { display: flex; justify-content: space-between; gap: 10px; }
.pay-kv dt { color: var(--panel-dark-muted); }
.pay-kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.pay-card-off .panel-dark-note { margin-top: 6px; }
.pay-msg { margin: 0; font-size: 12px; line-height: 1.5; color: #ffb4a6; }
.pay-msg .inline-link { color: #fff; }
.pay-processing { display: flex; align-items: center; gap: 8px; }
.pay-processing .spinner { width: 14px; height: 14px; flex: none; }

/* --- admin: predfaktúra v karte ------------------------------------------- */
.adm-pf { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.adm-pf p { margin: 0; }
.adm-pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-pf-actions .btn-secondary { width: auto; padding: 8px 12px; font-size: 11px; }
.pf-status { font-weight: 600; }
.pf-unpaid { color: var(--orange-text); }
.pf-paid { color: var(--ok); }
.pf-cancelled { color: var(--muted); text-decoration: line-through; }

@media (max-width: 400px) {
  .field-ico { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .btn-lookup { justify-self: start; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row-zip { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); }
}

/* --- navýšenie parametrov ------------------------------------------------- */
.up-panel { margin-top: 20px; }
.up-head .panel-lead { max-width: 720px; }
.up-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 36px; margin-top: 18px; align-items: start; }
.up-sliders { display: grid; gap: 4px; grid-row: span 3; }
.up-sum { margin: 0; }
.up-form .btn-secondary { justify-self: start; }
.up-form .btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.up-pending { margin-top: 16px; display: grid; gap: 12px; max-width: 640px; }
.up-pending .btn-secondary { justify-self: start; }
.pay-extras { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--panel-dark-line); display: grid; gap: 10px; }
.pay-extras-title { margin: 0; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--panel-dark-muted); }
.pay-extra { display: grid; gap: 8px; }
.pay-ok { color: #cfe6b4; }
.pay-due { color: #ffd2c4; }
.pay-sub { display: block; font-size: 11px; color: var(--panel-dark-muted); }
.adm-up { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff8f3; font-size: 12px; line-height: 1.6; display: grid; gap: 8px; }
.adm-up p { margin: 0; }
@media (max-width: 860px) {
  .up-form { grid-template-columns: minmax(0, 1fr); }
  .up-sliders { grid-row: auto; }
}

/* --- admin režim ------------------------------------------------------------ */
.admin-badge { margin-left: 4px; padding: 2px 6px; font: 600 9px var(--mono); letter-spacing: .8px; color: #fff; background: var(--ink); }
