.club-page {
  --bg:#080f16; --card:#101d28; --ink:#f0f7fb; --muted:#abc0cd; --line:#294450; --accent:#55e3ee; --accent-ink:#072029;
  color-scheme:dark; background:radial-gradient(ellipse at top,#183241,#080f16 65%); min-height:100vh;
}
.club-page .top {display:none}
.club-page main {max-width:700px;padding:0 14px calc(92px + env(safe-area-inset-bottom));}
.club-shell {font:15px/1.45 system-ui,sans-serif;overflow-wrap:anywhere}
.club-shell [hidden] {display:none!important}
.club-shell a {color:var(--accent)}
.club-shell .btn {color:var(--accent-ink);font-size:14px;padding:8px 14px;min-height:44px}
.club-shell .btn.ghost {color:var(--ink)}
.club-shell h1 {font-size:28px;letter-spacing:-.04em;margin:16px 0 8px}
.club-shell h2 {font-size:19px;line-height:1.22;letter-spacing:-.025em;margin:4px 0 8px}
.club-shell p {margin:6px 0}
.club-shell small {font-size:12px;color:var(--muted)}
.club-hero {min-height:clamp(170px,22vw,275px);margin:0 -14px 12px;padding:18px 20px 12px;border-bottom:1px solid #31606c}
.wordmark,.identity,.section-head,.wallet,.achievement summary {display:flex;align-items:center;gap:12px}
.wordmark {font-size:14px;font-weight:900;letter-spacing:.08em;line-height:1.05}
.wordmark img {width:32px;height:38px;object-fit:contain}
.wordmark em {display:block;font:italic 700 22px/1.12 Georgia,serif;color:#79f6ff;letter-spacing:-.04em}
.identity {margin-top:18px;font-size:11px;color:#c6dae4}
.identity>b {border:1px solid #73eefa;background:#102a36;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:19px;color:#bffaff}
.identity strong {display:block;font-size:16px;color:white}
.surface,.club-shell .card {padding:13px 15px;margin:9px 0;border-radius:16px;border:1px solid var(--line);background:linear-gradient(125deg,#172a37,#101b25 73%);box-shadow:inset 0 1px 0 #ffffff09}
.tiers {display:flex;gap:4px;margin-top:8px}.tiers span {flex:1;text-align:center;padding:4px 0;background:#111d28;border:1px solid #34505e;border-radius:8px;color:#c3d0da;font-size:12px}.tiers .active {border-color:#55d3df;color:#aaf8ff;background:#15333c}
.club-shell progress {height:6px;width:100%;accent-color:var(--accent);border:0;background:#31434c;border-radius:4px;overflow:hidden}
.club-shell progress::-webkit-progress-bar {background:#31434c}.club-shell progress::-webkit-progress-value {background:linear-gradient(90deg,#248fbd,#65edf3)}
.club-shell [data-rewards] p {font-size:13px}
.wallet {background:radial-gradient(ellipse at left,#153642,#111d28 72%);animation:club-enter .3s ease-out}
.wallet img {width:74px;height:68px;object-fit:contain}.wallet strong,.cash strong {display:block;font-size:32px;letter-spacing:-.045em;line-height:1.1;color:#adf8ff}
.times {display:grid;grid-template-columns:repeat(3,1fr);padding:9px;text-align:center}
.times>div+div {border-left:1px solid var(--line)}.times time {display:block;font-weight:750;font-variant-numeric:tabular-nums}
.dial {display:block;position:relative;margin:0 auto 2px;border:1px solid #78b7c8;border-radius:50%;width:24px;height:24px;background:radial-gradient(circle,#5adee7 1px,transparent 2px)}
.dial i {position:absolute;bottom:50%;left:calc(50% - 1px);transform-origin:bottom;width:2px;height:6px;background:#a8e8ee}.dial i+i {height:9px;width:1px}
.section-head {justify-content:space-between;margin:13px 0 6px}.section-head h1,.section-head h2 {margin:0}.section-head a {font-size:13px}
.badges {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.badges a {text-decoration:none;color:var(--ink);text-align:center;font-size:10px;line-height:1.15;background:linear-gradient(135deg,#1b2b37,#101923);border:1px solid var(--line);border-radius:10px;padding:4px 1px 6px}
.badges img {display:block;width:100%;height:42px;object-fit:contain}
.club-nav {position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,700px);display:grid;grid-template-columns:repeat(5,1fr);padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:#101e2af7;border:1px solid #34515e;border-bottom:0;border-radius:16px 16px 0 0;z-index:3}
.club-nav a {display:grid;justify-items:center;align-content:center;gap:2px;min-height:47px;border-radius:10px;text-decoration:none;font-size:clamp(10px,2.8vw,13px);color:#aebec9}
.club-nav svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.club-nav a[aria-current] {color:#87f6ff;background:#16353e}
.club-shell summary {cursor:pointer}.achievement summary,.order summary {list-style:none;position:relative;padding-right:16px}
.achievement summary::after,.order summary::after {content:"⌄";position:absolute;right:0;top:4px;color:var(--accent)}
.achievement img {width:49px;height:44px;object-fit:contain}.achievement small,.order b,.order small {display:block}.order b {font-size:19px;margin:4px 0}
.filter {display:flex;justify-content:space-between;align-items:center;color:var(--muted);margin:12px 0}
.filter select {border-radius:9px;padding:9px;background:var(--card);color:var(--ink);border:1px solid var(--line)}
.cash {padding:22px;background:linear-gradient(110deg,#173e49,#132632)}.cash strong {font-size:40px;margin:6px 0}
.club-shell dl {display:grid;grid-template-columns:1fr auto;gap:8px;margin:0}.club-shell dd {font-weight:bold;text-align:right;margin:0}
.club-shell [data-pane]:not([hidden]),.achievement[open] p {animation:club-enter .22s ease-out}
@keyframes club-enter {from {opacity:.5;translate:0 3px}to {opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.club-shell *, .club-shell [data-pane]:not([hidden]) {animation:none!important;scroll-behavior:auto!important}}

.club-shell .surface,.club-shell .badges a{background:linear-gradient(145deg,#17334d,#0d2338 40%,#091b2e);border-color:#376786;box-shadow:inset 0 1px 0 #7bb5cf29,0 6px 16px #0003}
.club-shell .tiers span{min-width:0;display:grid;align-content:start;gap:5px;padding:8px 3px}
.club-shell .tiers span.active{background:linear-gradient(#075f9a,#09243f);border-color:#63eaff;box-shadow:0 0 12px #02b8ff70}
.club-shell .tiers small{font-size:10px}
.club-shell .badges{grid-template-columns:1fr}
.club-shell .badges a{display:flex;gap:10px;align-items:center;text-align:left;padding:8px;font-size:14px}
.club-shell .badges img{width:55px;height:55px;mask-image:radial-gradient(ellipse,#000 57%,transparent)}
.club-shell .badges small,.club-shell .badges em{display:block;margin-top:4px}.club-shell .badges em{font-style:normal;color:#ffdc83}
.club-shell .calc-trigger{margin:8px 0}
@media(min-width:900px){.club-page main,.club-nav{max-width:1280px;width:100%}.club-shell section[data-pane="home"]:not([hidden]){display:grid;grid-template-columns:0.9fr 1.35fr;gap:8px 20px;align-items:start}.goal-list{grid-column:2;grid-row:1/span 5}.club-shell .badges{grid-template-columns:1fr 1fr}.calc-trigger{justify-self:start}.club-shell .tiers small{font-size:12px}}

/* Общая ночная панорама обоих кабинетов. */
body.cabinet-scenery {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #081a28;
}
.cabinet-scenery::before, .cabinet-scenery::after {
  content: "";
  pointer-events: none;
  background-image: url("/club/night-highway.webp");
  background-repeat: no-repeat;
}
/* Нижняя часть дороги остаётся видна при прокрутке. */
.cabinet-scenery::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: max(100%, 760px) auto;
  background-position: center bottom;
  mask-image: linear-gradient(to top, #000, transparent min(33vh, 290px));
}
/* Автовоз принадлежит фону страницы и уходит вверх вместе с заголовком. */
.cabinet-scenery::after {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(100%, clamp(645px, 69vw, 1080px));
  height: clamp(250px, 26vw, 380px);
  z-index: -1;
  background-position: right top;
  background-size: auto clamp(430px, 46vw, 720px);
  mask-image: linear-gradient(to bottom, #000 62%, transparent),
              linear-gradient(to left, #000 62%, transparent 98%);
  mask-composite: intersect;
}
.cabinet-scenery .club-hero, .cabinet-scenery .cabinet-banner {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  text-shadow: 0 1px 5px #04101c;
}
.cabinet-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: clamp(170px,22vw,275px);
  margin-bottom: 16px;
  padding: clamp(16px,3vw,32px);
}
.cabinet-banner h1 { margin: 0; color: #fff; }
.cabinet-banner .btn.ghost { background-color: #102233; }
@media (max-width: 650px) {
  .cabinet-scenery::after {
    background-size: auto clamp(285px, 69vw, 430px);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 95%),
                linear-gradient(to left, #000 15%, #000a 66%, #0003);
  }
}

/* Start the scene below the navigation on public and customer pages. */
.cabinet-scenery:not(.club-page)::after { top: 72px; }
@media (max-width: 650px) {
  .cabinet-scenery:not(.club-page)::after { top: 98px; }
}

/* Всплывающие подсказки по кабинету партнёра */
.tour-tip[hidden],.tour-ring[hidden]{display:none}.club-hero{position:relative}.tour-launch{position:absolute;top:14px;right:7px;padding:8px 14px;border:1px solid #719aa9;background:#0b2233ed;color:#d4f7fa;border-radius:28px;font:600 14px system-ui;cursor:pointer}.tour-ring{box-sizing:border-box;position:fixed;z-index:14;pointer-events:none;border:2px solid #61e4f3;border-radius:12px;box-shadow:0 0 0 3px #5ee1ed25,0 0 0 300vmax #020c1682}.tour-tip{box-sizing:border-box;position:fixed;z-index:15;width:min(344px,calc(100vw - 20px));border:1px solid #5d9bab;background:linear-gradient(140deg,#193b50,#0c2436 85%);color:#ebf8fc;border-radius:15px;padding:13px 17px 11px;font:14px/1.45 system-ui,sans-serif;box-shadow:0 12px 28px #01091370}.tour-tip:before{content:'';position:absolute;width:12px;height:12px;left:calc(var(--arrow) - 6px);transform:rotate(45deg);background:#173649}.tour-tip[data-side=below]:before{top:-7px;border-top:1px solid #5d9bab;border-left:1px solid #5d9bab}.tour-tip[data-side=above]:before{bottom:-7px;background:#102a3b;border-bottom:1px solid #5d9bab;border-right:1px solid #5d9bab}.tour-top,.tour-steps{display:flex;align-items:center;justify-content:space-between;gap:10px}.tour-kicker{font-size:12px;letter-spacing:.03em;font-weight:600;color:#86d9e4}.tour-tip h2{font-size:21px;line-height:1.2;margin:3px 0 6px}.tour-tip p{color:#d1e2eb;margin:0 0 13px}.tour-tip button,.tour-setting button{font:600 13px system-ui;cursor:pointer}.tour-close,.tour-back,.tour-off{background:transparent;color:#bbced9;border:0}.tour-close{font-size:22px!important;line-height:1;padding:0 2px}.tour-back:disabled{opacity:.4}.tour-next{background:#78e4f1;color:#082939;border:0;border-radius:8px;padding:9px 14px}.tour-off{font-size:12px!important;margin-top:9px;padding:5px 0 0}.tour-setting{display:flex;align-items:center;justify-content:space-between;gap:12px}.tour-setting p{color:#bbced8;font-size:13px}.tour-setting button{position:relative;flex:none;width:44px;height:26px;border-radius:16px;background:#314252;border:1px solid #738797}.tour-setting i{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#ebf5fa}.tour-setting [aria-checked=true]{background:#107c8f}.tour-setting [aria-checked=true] i{left:21px}
