/* Goodboy — клиентский кабинет (не конвейер) */
:root {
  --gb-bg0: #070707;
  --gb-bg1: #0d0d0d;
  --gb-bg2: #16120e;
  --gb-surface: rgba(255, 248, 240, 0.06);
  --gb-border: rgba(245, 154, 46, 0.18);
  --gb-text: #f4ebe0;
  --gb-muted: rgba(244, 235, 224, 0.62);
  --gb-accent: #f59a2e;
  --gb-accent-2: #ffb04a;
  --gb-ok: #7dba6f;
  --gb-danger: #e07060;
  --gb-radius: 18px;
  --gb-font: "Outfit", system-ui, sans-serif;
  --gb-display: "Archivo Black", "Arial Black", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 10% -10%, #3a2a1c 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, #2a1810 0%, transparent 50%),
    var(--gb-bg0);
  color: var(--gb-text);
  font-family: var(--gb-font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gb-accent-2); }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 16px 16px calc(88px + var(--safe-b));
  position: relative;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand {
  font-family: var(--gb-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.brand span { color: var(--gb-accent); }
.top-meta {
  font-size: 0.75rem;
  color: var(--gb-muted);
  text-align: right;
}

.screen { display: none; animation: gbIn 0.28s ease both; }
.screen.is-active { display: block; }
@keyframes gbIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

h1, h2 {
  font-family: var(--gb-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
.lead {
  margin: 0 0 18px;
  color: var(--gb-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.hero-pet {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 180px;
  margin-bottom: 16px;
  background:
    linear-gradient(160deg, rgba(232,165,75,0.35), transparent 55%),
    var(--gb-bg2);
  border: 1px solid var(--gb-border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-pet .pet-name {
  font-family: var(--gb-display);
  font-size: 2rem;
  margin: 0;
  line-height: 1.1;
}
.hero-pet .pet-sub { color: var(--gb-muted); margin-top: 6px; font-size: 0.9rem; }

.panel {
  background: var(--gb-surface);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.panel .label { color: var(--gb-muted); font-size: 0.8rem; }
.panel .value { font-weight: 600; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--gb-accent);
  color: #1a1208;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--gb-text);
  border: 1px solid var(--gb-border);
}
.btn-row { display: grid; gap: 10px; margin-top: 14px; }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--gb-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--gb-border);
  background: rgba(0,0,0,0.25);
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: rgba(232,165,75,0.55);
}

.list { display: grid; gap: 10px; }
.list-item {
  background: var(--gb-surface);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.list-item:active { border-color: rgba(232,165,75,0.5); }
.list-item h3 { margin: 0 0 4px; font-size: 1.05rem; font-family: var(--gb-display); }
.list-item p { margin: 0; color: var(--gb-muted); font-size: 0.85rem; line-height: 1.4; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gb-accent-2);
  background: rgba(232,165,75,0.14);
  border-radius: 999px;
  padding: 4px 10px;
}

.privilege-card {
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(232,165,75,0.28), rgba(36,28,22,0.9) 60%),
    var(--gb-bg2);
  border: 1px solid rgba(232,165,75,0.35);
  text-align: center;
  margin-bottom: 14px;
}
.privilege-card .code {
  font-family: var(--gb-display);
  font-size: 2.1rem;
  letter-spacing: 0.12em;
  margin: 10px 0 6px;
}
.privilege-card .hint { color: var(--gb-muted); font-size: 0.85rem; }

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: rgba(18, 12, 8, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gb-border);
  z-index: 20;
}
.nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gb-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: 12px;
  cursor: pointer;
}
.nav button.is-active {
  color: var(--gb-accent-2);
  background: rgba(232,165,75,0.12);
}
.nav .ico { display: block; font-size: 1.05rem; margin-bottom: 2px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe-b));
  transform: translateX(-50%) translateY(12px);
  background: #111;
  color: #fff;
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 30;
  max-width: min(420px, 92vw);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.gate {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.muted { color: var(--gb-muted); font-size: 0.85rem; }
.demo-banner {
  font-size: 0.75rem;
  color: var(--gb-accent-2);
  background: rgba(232,165,75,0.1);
  border: 1px dashed rgba(232,165,75,0.35);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--gb-muted);
}

.gate {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 18px calc(28px + var(--safe-b));
  overflow: auto;
}
.gate[hidden] { display: none !important; }
.gate-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(212,161,90,0.22), transparent 55%),
    radial-gradient(70% 40% at 100% 80%, rgba(127,168,144,0.12), transparent 50%);
}
.gate-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0 auto;
  animation: gbIn 0.28s ease both;
}
.gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.gate-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.gate-wordmark {
  margin: 0;
  font-family: var(--gb-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 235, 224, 0.7);
}
.gate-title {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--gb-display);
  font-size: clamp(1.7rem, 6vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.gate-lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--gb-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.gate-paths {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.gate-path {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(245, 154, 46, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 248, 240, 0.05);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.gate-path:active { transform: scale(0.99); }
.gate-path:hover,
.gate-path:focus-visible {
  border-color: rgba(245, 154, 46, 0.5);
  background: rgba(245, 154, 46, 0.1);
  outline: none;
}
.gate-path strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
}
.gate-path span {
  display: block;
  font-size: 0.8rem;
  color: var(--gb-muted);
  line-height: 1.35;
}
.gate-path[hidden] { display: none !important; }
.gate-details { margin: 4px 0 12px; }
.gate-details summary { cursor: pointer; color: var(--gb-muted); margin-bottom: 8px; }
.gate-path--soft {
  border-color: rgba(237, 232, 223, 0.12);
  background: rgba(237, 232, 223, 0.03);
}
.gate-tg {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(237, 232, 223, 0.08);
}
.gate-tg-btn { width: 100%; }
.gate-tg-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gb-muted);
}
.gate-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gb-muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0 12px;
  cursor: pointer;
}
.gate-form { margin-bottom: 12px; }
.gate-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(224, 112, 96, 0.12);
  border: 1px solid rgba(224, 112, 96, 0.35);
  color: #f0b0a6;
  font-size: 0.85rem;
}
.gate-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gb-accent-2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  padding: 10px 0;
  text-align: center;
}
.gate-opt {
  font-weight: 500;
  color: var(--gb-muted);
  text-transform: none;
  letter-spacing: 0;
}
.gate-fieldset {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(237, 232, 223, 0.12);
  border-radius: 14px;
  background: rgba(237, 232, 223, 0.03);
}
.gate-fieldset legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7fa890;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gate-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
}
.gate-radio input {
  margin-top: 3px;
  accent-color: var(--gb-accent);
}
.gate-hint {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--gb-muted);
  line-height: 1.4;
}

.cabinet-access-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 161, 90, 0.12);
  border: 1px solid rgba(212, 161, 90, 0.28);
  font-size: 0.82rem;
  color: var(--gb-accent-2);
}
.cabinet-access-banner a { color: inherit; font-weight: 700; }
.cabinet-access-banner--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cabinet-lock {
  text-align: center;
  padding: 28px 12px;
}
.cabinet-lock h2 {
  margin: 0 0 8px;
  font-family: var(--gb-display);
}
.cabinet-lock p {
  margin: 0 0 16px;
  color: var(--gb-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

/* —— Кабинет: 4 страницы —— */
body.mode-app.gb-site {
  background: #151a18;
}
.app.gb-cabinet {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  min-height: 100dvh;
}
.gb-cabinet .gate {
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top, 0px)) 18px calc(28px + var(--safe-b));
}

.cabinet-app[hidden] { display: none !important; }
.cabinet-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background:
    radial-gradient(90% 40% at 50% 0%, rgba(212,161,90,0.14), transparent 55%),
    #151a18;
  color: #ede8df;
}

.cabinet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(237,232,223,0.08);
  background: rgba(21, 26, 24, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.cabinet-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cabinet-header-brand img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.cabinet-header-kicker {
  display: block;
  font-family: var(--gb-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,232,223,0.55);
}
.cabinet-title {
  margin: 2px 0 0;
  font-family: var(--gb-display);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.cabinet-header-user {
  flex: 1 1 auto;
  max-width: 46%;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gb-accent-2);
  text-align: right;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.cabinet-pages {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.cabinet-page {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 14px 16px 8px;
  animation: gbIn 0.22s ease both;
}
.cabinet-page.is-active {
  display: block;
}

.cabinet-block {
  margin-bottom: 16px;
}
.cabinet-block-title {
  margin: 0 0 10px;
  font-family: var(--gb-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #7fa890;
  text-transform: uppercase;
}
.cabinet-hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gb-muted);
}

.cabinet-pet-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cabinet-pet-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}
.cabinet-pet-copy h2 {
  margin: 0 0 4px;
  font-family: var(--gb-display);
  font-size: 1.35rem;
}
.cabinet-pet-copy p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gb-muted);
  line-height: 1.4;
}
.cabinet-empty-pet {
  text-align: center;
  padding: 8px 8px 16px;
}
.cabinet-empty-pet h2 {
  margin: 10px 0 6px;
  font-family: var(--gb-display);
  font-size: 1.25rem;
}
.cabinet-empty-pet p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gb-muted);
  line-height: 1.45;
}
.cabinet-demo-preview {
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(237,232,223,0.14);
  background: rgba(237,232,223,0.03);
}
.cabinet-demo-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gb-muted);
}
.cabinet-pet-hero.is-muted { opacity: 0.72; }
.cabinet-stats { margin-bottom: 10px; }

.cabinet-details {
  margin-bottom: 16px;
  border: 1px solid rgba(237,232,223,0.1);
  border-radius: 16px;
  background: rgba(237,232,223,0.03);
  overflow: hidden;
}
.cabinet-details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}
.cabinet-details summary::-webkit-details-marker { display: none; }
.cabinet-details[open] summary {
  border-bottom: 1px solid rgba(237,232,223,0.08);
}
.cabinet-form {
  padding: 12px 16px 16px;
}
.field,
.field-row,
.gate-form,
.gate-panel,
.gate-fieldset,
.gate-details,
.cabinet-form {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.field-row > * { min-width: 0; }
.gate-title,
.gate-lead,
.gate-details summary {
  overflow-wrap: anywhere;
}
@media (max-width: 414px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .gate { padding-left: 14px; padding-right: 14px; }
}

.cabinet-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(237,232,223,0.06);
  font-size: 0.88rem;
  min-width: 0;
}
.cabinet-kv span { color: var(--gb-muted); min-width: 0; }
.cabinet-kv strong {
  text-align: right;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: break-word;
}

.cabinet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.cabinet-chip {
  appearance: none;
  border: 1px solid rgba(237,232,223,0.14);
  background: rgba(237,232,223,0.04);
  color: var(--gb-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cabinet-chip.is-on {
  background: rgba(212,161,90,0.18);
  border-color: rgba(212,161,90,0.45);
  color: var(--gb-accent-2);
}

.cabinet-map-wrap { margin-bottom: 12px; min-width: 0; }
.cabinet-map {
  height: min(48vh, 280px);
  min-height: 220px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #1b221f;
  z-index: 0;
}
.leaflet-container img { max-width: none !important; }
.leaflet-container .leaflet-control-attribution {
  font-size: 10px;
  line-height: 1.2;
  max-width: 72%;
  white-space: normal;
}
.leaflet-div-icon.gb-pin {
  background: #ede8df;
  border: 2px solid #1e2421;
  border-radius: 50%;
  box-sizing: border-box;
}
.leaflet-div-icon.gb-pin--cafe { background: #d4a15a; }
.leaflet-div-icon.gb-pin--shop { background: #7fa890; }
.leaflet-div-icon.gb-pin--vet { background: #e08a8a; }
.leaflet-div-icon.gb-pin--groom { background: #c9a6d8; }
.leaflet-div-icon.gb-pin--play { background: #8fbf6a; }
.leaflet-div-icon.gb-pin--park { background: #6aa88a; }
.leaflet-div-icon.gb-pin--partner {
  background: #f3d48a;
  border-radius: 4px;
  box-shadow: 0 0 0 3px #1e2421, 0 0 0 5px #f3d48a;
}
.leaflet-div-icon.gb-pin.is-on { box-shadow: 0 0 0 6px rgba(212, 161, 90, 0.45); }
.cabinet-place-card {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(212, 161, 90, 0.28);
  background: rgba(212, 161, 90, 0.08);
  min-width: 0;
}
.cabinet-place-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fa890;
}
.cabinet-place-card h2 {
  margin: 0 0 6px;
  font-family: var(--gb-display);
  font-size: 1.2rem;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.cabinet-place-card p {
  margin: 0 0 10px;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.cabinet-route {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  text-decoration: none;
  padding: 10px 16px;
  margin-bottom: 8px;
}
.cabinet-map .ps-pin {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cabinet-map .ps-pin.is-active {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 8px rgba(212,161,90,0.22);
}

.cabinet-place-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  min-width: 0;
}
.cabinet-place {
  appearance: none;
  border: 1px solid rgba(237,232,223,0.1);
  background: rgba(237,232,223,0.04);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cabinet-place > div { min-width: 0; }
.cabinet-place strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
  overflow-wrap: break-word;
}
.cabinet-place span {
  display: block;
  font-size: 0.74rem;
  color: var(--gb-muted);
  line-height: 1.35;
  overflow-wrap: break-word;
}
.cabinet-place em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gb-accent-2);
  flex-shrink: 0;
}
.cabinet-place.is-active {
  border-color: rgba(212,161,90,0.45);
  background: rgba(212,161,90,0.1);
}

.cabinet-sub-card { margin-bottom: 10px; }
.cabinet-cta-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
}

.cabinet-partner-list {
  display: grid;
  gap: 10px;
}
.cabinet-partner-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(237,232,223,0.04);
  border: 1px solid rgba(237,232,223,0.1);
}
.cabinet-partner-card.is-featured {
  background: rgba(212,161,90,0.1);
  border-color: rgba(212,161,90,0.28);
}
.cabinet-partner-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.cabinet-partner-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--gb-muted);
  line-height: 1.35;
}
.cabinet-copy-btn { margin-top: 10px; }

.cabinet-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px 6px calc(6px + var(--safe-b));
  border-top: 1px solid rgba(237,232,223,0.1);
  background: rgba(14, 18, 16, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.cabinet-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gb-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.cabinet-nav button.is-active {
  color: var(--gb-accent-2);
  background: rgba(212,161,90,0.12);
}
.cabinet-nav-ico {
  width: 22px;
  height: 22px;
  display: block;
}
.cabinet-nav-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cabinet-nav-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  overflow-wrap: break-word;
  max-width: 100%;
}

.gb-cabinet .ps-kicker { color: #7fa890; }
.gb-cabinet .ps-tip { margin-top: 0; overflow-wrap: break-word; }
.gb-cabinet .ps-stats { min-width: 0; }
.gb-cabinet .ps-stats div { min-width: 0; overflow-wrap: break-word; }
.gb-cabinet .ps-chips { min-width: 0; }
.gb-cabinet .ps-chips span { max-width: 100%; overflow-wrap: break-word; }
.gb-cabinet .ps-card,
.gb-cabinet .ps-pet,
.gb-cabinet .cabinet-block,
.gb-cabinet .cabinet-partner-card,
.gb-cabinet .cabinet-lock,
.gb-cabinet .btn {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.gb-cabinet .btn { white-space: normal; height: auto; }
.gb-cabinet h2,
.gb-cabinet h3,
.gb-cabinet p,
.gb-cabinet label { overflow-wrap: break-word; }
.gb-cabinet .ps-bar i { width: var(--w, 70%); }
.gb-cabinet .cabinet-map .ps-pin {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gb-cabinet .toast {
  bottom: calc(72px + var(--safe-b));
}

.cabinet-desk-col { min-width: 0; max-width: 100%; }
.cabinet-pay {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1rem;
}

/* Десктоп кабинета в браузере. Telegram и телефон — без .gb-desk. */
@media (min-width: 900px) {
  body.gb-desk.mode-app.gb-site {
    background:
      radial-gradient(90% 55% at 85% 8%, rgba(212, 161, 90, 0.16), transparent 55%),
      radial-gradient(70% 45% at 8% 92%, rgba(127, 168, 144, 0.12), transparent 50%),
      #1e2421;
  }
  body.gb-desk .app.gb-cabinet {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 20px 40px;
    min-height: 100dvh;
    background: transparent;
  }
  body.gb-desk .cabinet-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-width: none;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    min-height: 0;
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid rgba(212, 161, 90, 0.24);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    background:
      radial-gradient(80% 36% at 50% 0%, rgba(212, 161, 90, 0.14), transparent 58%),
      #151a18;
  }
  body.gb-desk .cabinet-header {
    grid-row: 1;
    position: relative;
    top: auto;
    border-bottom: 0;
    background: transparent;
    padding-bottom: 6px;
  }
  body.gb-desk .cabinet-nav {
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    position: static;
    padding: 0 18px 14px;
    border-top: 0;
    border-bottom: 1px solid rgba(237, 232, 223, 0.08);
    background: transparent;
  }
  body.gb-desk .cabinet-nav button {
    flex-direction: row;
    width: auto;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
  }
  body.gb-desk .cabinet-nav button.is-active {
    border-color: rgba(212, 161, 90, 0.45);
    background: rgba(212, 161, 90, 0.16);
  }
  body.gb-desk .cabinet-nav-label {
    font-size: 0.84rem;
    letter-spacing: 0.01em;
  }
  body.gb-desk .cabinet-pages {
    grid-row: 3;
    min-height: 0;
    overflow: auto;
  }
  body.gb-desk .cabinet-page {
    padding: 8px 22px 28px;
  }
  body.gb-desk .cabinet-page.is-active {
    height: auto;
    overflow: visible;
  }
  body.gb-desk .cabinet-desk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 16px;
    align-items: start;
  }
  body.gb-desk .cabinet-block,
  body.gb-desk .cabinet-details {
    background: rgba(237, 232, 223, 0.04);
    border: 1px solid rgba(212, 161, 90, 0.16);
    border-radius: 20px;
  }
  body.gb-desk .cabinet-block { padding: 16px 16px 8px; }
  body.gb-desk .cabinet-block .cabinet-form { padding-left: 0; padding-right: 0; }
  body.gb-desk .cabinet-map { height: 420px; min-height: 380px; }
  body.gb-desk .cabinet-lock {
    max-width: 440px;
    margin: 36px auto;
    padding: 32px 24px;
    border-radius: 24px;
    border: 1px solid rgba(212, 161, 90, 0.2);
    background: rgba(237, 232, 223, 0.04);
  }
  body.gb-desk .gb-cabinet .gate {
    min-height: calc(100dvh - 68px);
    align-items: center;
    justify-content: center;
    padding: 24px 0 32px;
  }
  body.gb-desk .gate-panel {
    width: min(560px, 100%);
    padding: 28px 26px 16px;
    border-radius: 28px;
    background: rgba(21, 26, 24, 0.94);
    border: 1px solid rgba(212, 161, 90, 0.24);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  }
  body.gb-desk .gb-cabinet .toast { bottom: 28px; }
}
