/* ================= CABINET 2.0 ================= */
.cab-id { display: flex; align-items: center; gap: 20px; }
.cab-avatar { width: 76px; height: 76px; flex: none; border-radius: 24px; display: grid; place-items: center; font-family: var(--font-d); font-size: 26px; font-weight: 800; background: var(--grad); box-shadow: 0 20px 40px -14px rgba(139, 92, 246, 0.8), inset 0 1px 0 rgba(255,255,255,0.3); }
.cab-id small { color: var(--muted); font-weight: 600; }
.cab-stats { grid-template-columns: repeat(4, 1fr); }
.stat { position: relative; overflow: hidden; }
.stat i { position: absolute; right: 18px; top: 18px; font-style: normal; font-size: 26px; opacity: 0.9; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }

.rentals { grid-template-columns: 1fr; gap: 26px; }
.bay {
  --accent: var(--grad); --glow: 46, 230, 255;
  position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 10px 36px;
  padding: 34px 38px 28px 20px; border-radius: 32px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(var(--glow), 0.25);
  box-shadow: 0 40px 100px -40px rgba(var(--glow), 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  background: #070814;
}
.bay.pro { --accent: var(--grad-pro); --glow: 255, 79, 216; }
.bay::before { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--accent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; z-index: 2; pointer-events: none; }
.bay-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bay-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.55; animation: kenburns 30s ease-in-out infinite alternate; }
.bay-bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7,8,20,0.35) 0%, rgba(7,8,20,0.88) 38%, rgba(7,8,20,0.96) 100%),
  linear-gradient(0deg, rgba(7,8,20,1) 0%, transparent 45%),
  radial-gradient(60% 80% at 15% 60%, rgba(var(--glow), 0.25), transparent 70%); }
@keyframes kenburns { to { transform: scale(1.12) translateX(-2%); } }

.bay-console { position: relative; display: grid; place-items: end center; min-height: 340px; }
.bay-console > img { position: relative; z-index: 1; width: 230px; height: 320px; max-width: none; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,0.7)); animation: hover-console 5s ease-in-out infinite; margin-bottom: 26px; }
@keyframes hover-console { 50% { transform: translateY(-10px); } }
.bay-halo { position: absolute; left: 50%; bottom: 30px; width: 260px; height: 260px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), 0.55), transparent 65%); filter: blur(20px); animation: breathe 3.5s ease-in-out infinite; }
.bay-pedestal { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 240px; height: 46px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 70%); border: 1px solid rgba(var(--glow), 0.5); box-shadow: 0 0 40px rgba(var(--glow), 0.5), inset 0 0 20px rgba(var(--glow), 0.35); }
.bay-pedestal i { position: absolute; inset: -14px -24px; border-radius: 50%; border: 1px dashed rgba(var(--glow), 0.4); animation: spin 18s linear infinite; }

.bay-main { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; min-width: 0; }
.bay-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(52, 227, 155, 0.14); border: 1px solid rgba(52, 227, 155, 0.35); color: var(--green); font-weight: 800; font-size: 13px; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
.bay-server { color: var(--muted); font-size: 13px; font-weight: 600; }
.bay h3 { font-family: var(--font-d); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.timer { display: flex; align-items: flex-start; gap: 8px; perspective: 400px; }
.timer em { font-style: normal; font-family: var(--font-d); font-size: 34px; font-weight: 700; color: rgba(255,255,255,0.25); padding-top: 12px; }
.timer .t { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.timer b { min-width: 78px; padding: 12px 10px; text-align: center; border-radius: 16px; font-family: var(--font-d); font-size: 38px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 -16px 20px -16px rgba(var(--glow), 0.6), 0 10px 30px -14px rgba(0,0,0,0.8); position: relative; overflow: hidden; }
.timer b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,0.45); }
.timer .t:first-child b { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -12px rgba(var(--glow), 0.9); }
.timer span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
/* calm digit change: only a soft fade, never on seconds */
.timer b.flip { animation: soft-in 0.6s ease-out; }
@keyframes soft-in { from { opacity: 0.55; } }
.timer .t:last-child b { background: rgba(255,255,255,0.04); box-shadow: none; color: rgba(238,241,255,0.55); border-color: rgba(255,255,255,0.07); }
.timer .t:last-child b::after { display: none; }
.bay-bar .track { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bay-bar .track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 18px rgba(var(--glow), 0.8); position: relative; transition: width 1s linear; }
.bay-bar .track i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent) no-repeat; background-size: 50% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.bay-bar small { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.bay-specs { display: flex; gap: 8px; flex-wrap: wrap; }
.bay-specs span { padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.bay-specs b { color: var(--text); font-variant-numeric: tabular-nums; }
.bay-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.play-btn { flex: 1 1 260px; font-size: 17px; }
.play-ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.25); display: grid; place-items: center; font-size: 12px; }
.play-btn:hover .play-ico { animation: pulse-w 1s infinite; }
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); } 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

.bay-games { grid-column: 1 / -1; margin-top: 18px; padding-left: 18px; min-width: 0; }
.bay-games-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.bay-games-head a { text-transform: none; letter-spacing: 0; color: var(--cyan); font-weight: 700; font-size: 14px; }
.bay-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; padding: 8px 2px 8px; scrollbar-width: thin; }
.mini { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.06); border: 1px solid var(--line); transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s; }
.mini img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mini span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,6,13,0.55); font-size: 22px; opacity: 0; transition: opacity 0.25s; }
.mini:hover { transform: translateY(-6px); border-color: rgba(var(--glow), 0.7); box-shadow: 0 16px 30px -12px rgba(var(--glow), 0.7); }
.mini:hover span { opacity: 1; }

.empty-consoles { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.empty-consoles img { width: 110px; height: 160px; object-fit: contain; max-width: none; filter: drop-shadow(0 20px 24px rgba(0,0,0,0.6)); opacity: 0.9; }
.order-plan { display: inline-flex; align-items: center; gap: 10px; }
.order-plan img { width: 22px; height: 32px; object-fit: contain; max-width: none; }

@media (max-width: 980px) {
  .cab-stats { grid-template-columns: repeat(2, 1fr); }
  .bay { grid-template-columns: 1fr; padding: 26px 22px 22px; }
  .bay-console { min-height: 270px; }
  .bay-console > img { width: 180px; height: 250px; }
  .bay-bg::after { background: linear-gradient(180deg, rgba(7,8,20,0.3) 0%, rgba(7,8,20,0.9) 40%, rgba(7,8,20,0.97) 100%), radial-gradient(70% 40% at 50% 20%, rgba(var(--glow), 0.25), transparent 70%); }
  .bay-games { padding-left: 0; }
}
@media (max-width: 560px) {
  .cab-avatar { width: 58px; height: 58px; font-size: 20px; border-radius: 18px; }
  .cab-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px; }
  .stat b { font-size: 22px; }
  .stat i { font-size: 20px; right: 12px; top: 12px; }
  .timer { gap: 4px; }
  .timer em { font-size: 22px; padding-top: 8px; }
  .timer b { min-width: 0; width: 100%; font-size: 26px; padding: 10px 6px; border-radius: 12px; }
  .timer .t { flex: 1; }
  .timer span { font-size: 9px; }
  .bay-actions .btn-glass { flex: 1; padding: 12px 10px; font-size: 14px; }
  .bay-strip { grid-auto-columns: 92px; }
  /* hero HUD on phones */
  .hud-bl { display: none; }
  .hud { font-size: 10px; padding: 5px 8px; }
  .hud-tl { max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chip-a { top: auto; bottom: -18px; left: 8px; }
}

@media (max-width: 560px) { .plan.pro .console-img { grid-row: 3 / 5; } }

/* stream modal: icon inside the ring */
.stream-ring > div { display: grid; place-items: center; position: relative; }
.stream-ring .ic { position: absolute; width: 46px; height: 46px; opacity: 0; transition: opacity 0.25s; }
.stream-ring .ic-load { fill: #fff; opacity: 1; width: 34px; height: 34px; animation: breathe 1.4s ease-in-out infinite; }
.stream-ring .ic-ok path, .stream-ring .ic-err path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.stream-ring .ic-ok path { stroke: var(--green); }
.stream-ring .ic-err path { stroke: var(--red); }
.stream-card.done .ic-load, .stream-card.fail .ic-load { opacity: 0; animation: none; }
.stream-card.done .ic-ok, .stream-card.fail .ic-err { opacity: 1; }
.stream-card.done .ic-ok path, .stream-card.fail .ic-err path { animation: draw 0.55s 0.1s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stream-card.done .stream-ring { box-shadow: 0 0 40px rgba(52, 227, 155, 0.45); }
.stream-card.fail .stream-ring { animation: none; background: var(--red); box-shadow: 0 0 40px rgba(255, 90, 122, 0.45); }
.stream-steps li.bad { color: var(--text); }
.stream-steps li.bad::after { content: '✕'; color: var(--red); font-weight: 900; }
.stream-card .demo-note.err { color: #ffb3c1; background: rgba(255, 90, 122, 0.08); border-color: rgba(255, 90, 122, 0.3); }

/* quick launch: fixed number of hits per row, never scrolls */
.bay-strip { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; }
@media (max-width: 1100px) { .bay-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); } .bay-strip .mini:nth-child(n+8) { display: none; } }
@media (max-width: 760px) { .bay-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .bay-strip .mini:nth-child(n+6) { display: none; } }
@media (max-width: 420px) { .bay-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bay-strip .mini:nth-child(n+5) { display: none; } }
