/* ================= "All consoles busy" dialog ================= */
.busy-card { width: min(760px, 100%); text-align: center; padding: 34px 30px 26px; }
.busy-icon { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 154, 60, 0.18), rgba(255, 79, 160, 0.18)); border: 1px solid rgba(255, 154, 60, 0.4); box-shadow: 0 0 40px -8px rgba(255, 120, 80, 0.6); }
.busy-icon svg { width: 38px; height: 38px; fill: none; stroke: #ffb36b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: hourglass 3s ease-in-out infinite; }
.busy-icon .sand { fill: #ffb36b; stroke: none; }
@keyframes hourglass { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.busy-card h3 { font-family: var(--font-d); font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.busy-sub { color: var(--muted); max-width: 540px; margin: 0 auto 24px; font-size: 15px; }
.busy-sub b { color: var(--text); }
.busy-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin-bottom: 14px; }
.busy-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.busy-opt.prem { background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(255, 79, 160, 0.08)); border-color: rgba(255, 79, 160, 0.45); box-shadow: 0 24px 50px -28px rgba(255, 79, 160, 0.8); }
.bo-badge { position: absolute; top: -11px; left: 18px; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--grad-pro); color: #fff; }
.bo-badge.free { background: var(--grad); }
.bo-title { font-family: var(--font-d); font-size: 19px; font-weight: 700; }
.bo-price { font-family: var(--font-d); font-size: 34px; font-weight: 800; line-height: 1; }
.bo-price small { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); }
.busy-opt ul { list-style: none; display: grid; gap: 6px; color: #d6daf2; font-size: 14px; flex: 1; }
.busy-opt li::before { content: '✓'; color: var(--green); font-weight: 900; margin-right: 8px; }
.bo-progress { display: flex; align-items: center; gap: 12px; }
.bo-progress .track { flex: 1; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bo-progress .track i { display: block; height: 100%; border-radius: inherit; background: var(--grad); min-width: 6px; }
.bo-progress span { font-weight: 800; font-size: 14px; white-space: nowrap; }
.bo-link { display: flex; gap: 8px; }
.bo-link input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); font-size: 13px; color: #cfe9ff; outline: none; }
.bo-link .btn { padding: 10px 14px; font-size: 14px; }
.bo-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Premium chip in the header */
.prem-chip { padding: 3px 8px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; background: var(--grad-pro); color: #fff; }

/* ================= cabinet: referral card ================= */
.ref-card:empty { display: none; }
.ref-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 28px 30px; margin-bottom: 44px; border-radius: 26px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(46, 230, 255, 0.07)); border: 1px solid rgba(139, 92, 246, 0.35); }
.ref-status { display: inline-block; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, 0.07); color: var(--muted); margin-bottom: 12px; }
.ref-status.on { background: var(--grad-pro); color: #fff; }
.ref-card h3 { font-family: var(--font-d); font-size: 22px; margin-bottom: 8px; }
.ref-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; max-width: 560px; }
.ref-right { display: flex; align-items: center; gap: 22px; }
.ref-ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; flex: none; }
.ref-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #0d0f20; }
.ref-ring b { position: relative; font-family: var(--font-d); font-size: 30px; }
.ref-ring small { font-size: 15px; color: var(--muted); }
.ref-list { display: grid; gap: 6px; min-width: 210px; }
.ref-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 700; }
.ref-list div.ok small { color: var(--green); }
.ref-list div.no small { color: #ff9fb2; }
.ref-list .none { color: var(--muted); }

@media (max-width: 760px) {
  .busy-opts { grid-template-columns: 1fr; gap: 20px; }
  .busy-card { padding: 28px 18px 20px; }
  .ref-card { grid-template-columns: 1fr; padding: 22px; }
  .ref-right { flex-direction: column; align-items: stretch; }
  .ref-ring { align-self: center; }
}
.ref-list div.wait small { color: #ffcf5c; }

/* personal invite code */
.ref-code { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(46, 230, 255, 0.45); }
.rc-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rc-value { font-family: var(--font-d); font-size: 28px; font-weight: 800; letter-spacing: 0.18em; color: #fff; user-select: all; }
.ref-code .btn { flex: none; padding: 11px 16px; font-size: 14px; }
.ref-card .ref-code { max-width: 460px; }
.code-input { text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--font-d) !important; font-weight: 700; }
.code-input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 400; }
.field .opt { color: var(--dim); font-weight: 600; }
@media (max-width: 560px) { .rc-value { font-size: 22px; letter-spacing: 0.12em; } .ref-code .btn { padding: 10px 12px; font-size: 13px; } }
