/* === CSS Reset & Core Styling (Dark White/Black Theme) === */
:root {
  --font-base: "Onest", system-ui, -apple-system, sans-serif;
  --bg-dark: #000000;
  --bg-card: #0d0d0d;
  --bg-card-hover: #171717;
  --bg-input: #121212;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  
  --primary: #ffffff;
  --primary-hover: #e4e4e7;
  --primary-text: #000000;

  --accent: #ffffff;
  --accent-hover: #d4d4d8;

  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --danger: #ef4444;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(12px, 5vw, 120px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; font-family: var(--font-base); background: var(--bg-dark); color: var(--text); -webkit-font-smoothing: antialiased; }

ul, li { list-style: none !important; }
a { color: inherit; text-decoration: none !important; }
button { font: inherit; border: none; background: none; cursor: pointer; }
input, select { font: inherit; }

/* CRT эффект */
.crt-overlay::after {
  content: " "; position: fixed; inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 4px; pointer-events: none; z-index: 999; opacity: 0.18;
}

.hidden { display: none !important; }
.w-100 { width: 100%; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.center-margin { margin-left: auto; margin-right: auto; }
.max-400 { max-width: 400px; }

/* === ЛОГОТИП === */
.brand-logo-img { height: 32px; width: auto; display: block; object-fit: contain; transition: transform 0.2s ease, filter 0.2s ease; }
.brand-logo-img:hover { transform: scale(1.03); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
.logo-wrapper-link { display: inline-block; }

/* === ПЛАВАЮЩИЕ ФОНОВЫЕ ВСПЫШКИ === */
.ambient-glow {
  position: fixed; border-radius: 50%; filter: blur(140px);
  pointer-events: none; z-index: 0; opacity: 0.15;
}
.glow-top-left { width: 450px; height: 450px; top: -100px; left: -100px; background: rgba(255, 255, 255, 0.12); }
.glow-top-right { width: 450px; height: 450px; top: -100px; right: -100px; background: rgba(255, 255, 255, 0.12); }
.glow-bottom-right { width: 500px; height: 500px; bottom: -150px; right: -150px; background: rgba(255, 255, 255, 0.1); }
.glow-bottom-left { width: 500px; height: 500px; bottom: -150px; left: -150px; background: rgba(255, 255, 255, 0.1); }

@media (max-width: 600px) {
  .ambient-glow { opacity: 0.08; filter: blur(90px); }
  .glow-top-right { width: 280px; height: 280px; top: -50px; right: -50px; }
  .glow-bottom-left { width: 280px; height: 280px; bottom: -50px; left: -50px; }
}

/* === SPOTLIGHT BORDER EFFECT === */
.spot-card { position: relative; }
.spot-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.3), transparent 40%);
  z-index: -1; opacity: 0; transition: opacity 0.25s;
}
.spot-card:hover::before { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .spot-card:hover::before, .spot-card:active::before { opacity: 0 !important; }
}

/* === ПОШАГОВАЯ АНИМАЦИЯ ПОЯВЛЕНИЯ === */
.animate-cascade {
  animation: cascadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  animation-delay: calc(var(--stagger, 1) * 0.08s);
}
@keyframes cascadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === TOAST NOTIFICATION === */
.toast-center {
  position: fixed; top: 30px; right: auto; bottom: auto; left: 50%; transform: translateX(-50%) translateY(0);
  background: rgba(15, 15, 15, 0.95); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px);
  border-radius: 16px; z-index: 10000; overflow: hidden; width: min(320px, calc(100vw - 32px));
  box-shadow: 0 15px 40px rgba(0,0,0,0.9); animation: toastPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toastPop { from { transform: translateX(-50%) translateY(-30px) scale(0.9); opacity: 0; } to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; } }
.toast-content { padding: 14px 20px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; }
.toast-progress-bar { width: 100%; height: 3px; background: rgba(255,255,255,0.1); }
.toast-progress-fill { width: 100%; height: 100%; background: #ffffff; transition: width 1.5s linear; }

/* === BUTTONS & ANIMATIONS === */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 14px; padding: 12px 24px; font-size: 14px; transition: var(--transition);
  overflow: hidden; text-align: center;
}
.btn-primary { 
  background: var(--primary); 
  color: var(--primary-text); 
  box-shadow: 0 4px 25px rgba(255, 255, 255, 0.2); 
}
.btn-primary:hover { 
  background: var(--primary-hover); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.35);
}

.btn-accent { 
  background: #ffffff; 
  color: #000000; 
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2); 
}
.btn-accent:hover { 
  background: #e4e4e7; 
  transform: translateY(-2px); 
}

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); }

.btn-ghost { background: var(--bg-input); border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: #ffffff; color: #ffffff; }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; border-color: var(--border); color: var(--text-dim); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-icon-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

.ripple-wave { position: absolute; border-radius: 50%; background: rgba(0, 0, 0, 0.2); transform: scale(0); animation: ripple 0.6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.btn-copy-anim {
  min-width: 40px; height: 40px; border-radius: 12px; background: var(--bg-input);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition); padding: 0 16px; cursor: pointer; gap: 8px; flex-shrink: 0;
}
.btn-copy-anim svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; transition: var(--transition); }
.btn-copy-anim.copied { background: rgba(74, 222, 128, .16); border-color: rgba(74, 222, 128, .55); color: #b7f7c9; }

/* === FORM INPUTS & SELECTS === */
.form-group { margin-bottom: 16px; text-align: left; }
.form-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: block; }

.form-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  padding: 14px 16px; border-radius: 14px; color: #fff; font-size: 15px; transition: var(--transition);
  position: relative; z-index: 2;
}
.form-input:focus { border-color: #ffffff; outline: none; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }

/* TV import is intentionally split into a method screen and a focused entry screen. */
.tv-import-pane { text-align: left; }
.tv-code-label { display: block; margin: 0 0 8px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.tv-code-input {
  appearance: none; width: 100%; min-height: 58px; margin: 0 0 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input); color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700;
  letter-spacing: 0; text-align: center; text-transform: uppercase; transition: var(--transition);
}
.tv-code-input::placeholder { color: var(--text-dim); font-family: var(--font-base); font-size: 14px; font-weight: 600; text-transform: none; }
.tv-code-input:focus { border-color: #ffffff; outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.tv-camera-frame { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #000000; }
.tv-camera-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv-back-control { display: block; width: 100%; margin-top: 16px; color: var(--text-muted); font-size: 13px; font-weight: 700; text-align: center; }
.tv-back-control:hover { color: #ffffff; }

select.form-input { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 40px; }

.otp-inputs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.otp-box, .otp-box-ce, .otp-box-w {
  width: clamp(38px, 10vw, 44px); height: clamp(46px, 12vw, 52px); background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; text-align: center; font-size: 20px; font-weight: 800; color: #fff;
}
.otp-box:focus, .otp-box-ce:focus, .otp-box-w:focus { border-color: #ffffff; outline: none; }

.validation-error-hint { font-size: 12px; color: var(--danger); margin-top: 6px; font-weight: 600; }

/* === AUTH PAGE STYLES === */
.auth-page-bg { display: flex; align-items: center; justify-content: center; min-height: 100vh; position: relative; background: #000000; overflow-x: hidden; }
.auth-lang-corner { position: absolute; top: 20px; right: 20px; z-index: 100; }
.auth-page-wrapper { width: 100%; display: flex; justify-content: center; align-items: center; padding: 24px 16px; z-index: 1; }
.auth-container { width: 100%; max-width: 420px; text-align: center; }
.auth-brand { margin-bottom: 24px; display: flex; justify-content: center; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px, 5vw, 36px) clamp(20px, 4vw, 32px); text-align: left; }
.auth-title { font-size: 24px; font-weight: 900; color: #ffffff; margin-bottom: 6px; text-align: center; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; text-align: center; line-height: 1.4; }
.auth-divider { display: flex; align-items: center; text-align: center; font-size: 12px; color: var(--text-dim); margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

.btn-telegram-login {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 14px 20px; border-radius: 14px; background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.35); color: #229ED9; font-weight: 700; font-size: 14px;
  transition: var(--transition); cursor: pointer;
}
.btn-telegram-login:hover { background: #229ED9; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34, 158, 217, 0.4); }
.tg-svg-ic { width: 20px; height: 20px; flex-shrink: 0; }

.auth-footer-terms { margin-top: 24px; font-size: 12px; color: var(--text-dim); line-height: 1.5; text-align: center; }
.auth-footer-terms a { color: var(--text-muted); text-decoration: underline !important; transition: var(--transition); }
.auth-footer-terms a:hover { color: #ffffff; }

/* === DASHBOARD LAYOUT === */
.dash-page-bg { display: flex; min-height: 100vh; position: relative; background: #000000; }
.dashboard-layout { display: flex; width: 100%; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 240px; background: transparent !important; border-right: none !important;
  display: flex; flex-direction: column; padding: 24px 16px; flex-shrink: 0;
}
.sidebar-brand { padding: 0 12px 24px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  color: var(--text-muted); font-size: 14px; font-weight: 600; transition: var(--transition);
}
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: #ffffff; color: #000000; box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2); }

.sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border); }
.nav-logout { display:flex; align-items:center; gap:12px; width:100%; padding:12px 16px; border:1px solid rgba(248,113,113,.24); border-radius:14px; color:#fecaca; background:rgba(127,29,29,.28); font:inherit; font-size:14px; font-weight:700; cursor:pointer; transition:var(--transition); }
.nav-logout svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; flex-shrink:0; }
.nav-logout:hover { color:#fff; background:rgba(127,29,29,.52); border-color:rgba(248,113,113,.55); }
.lang-toggle-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px;
  border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 700; transition: var(--transition);
}
.lang-toggle-btn:hover { border-color: #ffffff; color: #fff; }
.lang-flag-ic { width: 22px; height: 16px; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.flag-svg { width: 100%; height: 100%; object-fit: cover; }

/* Content Area */
.dash-content { flex-grow: 1; padding: clamp(16px, 4vw, 32px); overflow-y: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.header-breadcrumbs { font-size: 13px; color: var(--text-dim); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.mobile-only-logo { display: none; }

.header-user-status { display: flex; align-items: center; gap: 12px; }
.balance-badge {
  background: var(--bg-card); border: 1px solid var(--border); padding: 8px 16px;
  border-radius: 30px; font-size: 13px; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.balance-badge strong { color: #ffffff; }
.header-balance-icon { width: 16px; height: 16px; stroke: #ffffff; fill: none; stroke-width: 2; flex-shrink: 0; }

.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #ffffff; color: #000000;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}

.mobile-menu-trigger {
  display: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border); color: #ffffff; justify-content: center; align-items: center; cursor: pointer;
}
.mobile-menu-trigger svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Tab Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation:tabPanelIn .28s ease both; }
@keyframes tabPanelIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.card-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: clamp(16px, 3vw, 28px); }
.panel-main-title { font-size: clamp(18px, 2.5vw, 22px); font-weight: 800; }
.panel-sub-text { font-size: 14px; color: var(--text-muted); }
.panel-page-h1 { font-size: clamp(22px, 3.5vw, 28px); font-weight: 900; margin-bottom: 4px; }
.panel-page-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* TAB 1: HOME */
.sub-hero-card {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(30px, 6vw, 60px) 20px;
  text-align: center; margin-bottom: 20px;
}
.num-big { font-size: clamp(60px, 12vw, 96px); font-weight: 900; line-height: 1; color: #ffffff; text-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
.days-lbl { font-size: clamp(13px, 2vw, 16px); color: var(--text-muted); font-weight: 600; margin-top: 8px; }

.sub-link-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  gap: 12px; flex-wrap: nowrap; overflow: hidden;
}
.link-label-group { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.link-text-content { min-width: 0; flex: 1; }

.chain-link-icon {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: #ffffff; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.chain-link-icon svg { width: 20px; height: 20px; }

.link-title { font-size: 11px; color: var(--text-dim); }
.link-url {
  font-size: clamp(12px, 1.8vw, 14px); font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%;
}

.home-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-action-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition); text-align: left;
}
.home-action-card:hover { border-color: #ffffff; transform: translateY(-2px); }
.h-card-icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center; color: #ffffff; flex-shrink: 0;
}
.h-card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.h-card-title { font-size: 16px; font-weight: 800; color: #fff; }
.h-card-sub { font-size: 13px; color: var(--text-muted); }

/* TAB: TARIFFS & GIFT BANNER */
.gift-banner-hint {
  background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--border);
  padding: 14px 20px; border-radius: 16px; display: flex; justify-content: space-between;
  align-items: center; font-size: 14px; color: var(--text-muted); gap: 12px; flex-wrap: wrap;
}
.gift-link-accent { color: #ffffff; font-weight: 800; text-decoration: underline !important; }

/* TAB 2: SUB & DEVICE ITEM CARD */
.sub-3grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sub-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; text-align: center; }
.sub-stat-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: #ffffff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.sub-stat-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.sub-stat-val { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.sub-stat-lbl { font-size: 13px; color: var(--text-muted); }
.traffic-mini-bar { width: 100%; height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.traffic-mini-fill { height: 100%; background: #ffffff; }

.blocked-devices-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 14px; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.blocked-devices-chip:hover { background: #ef4444; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); }
.bl-ic { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bl-ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; }

.device-item-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: var(--transition);
}
.device-item-card:hover { border-color: #ffffff; transform: translateY(-2px); background: var(--bg-card-hover); }
.d-ic-box { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-input); display: flex; align-items: center; justify-content: center; color: #ffffff; flex-shrink: 0; }
.d-ic-box.danger-ic { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.d-ic-box svg { width: 20px; height: 20px; }
.d-name { font-size: 15px; font-weight: 800; color: #fff; word-break: break-all; }
.d-sub-os { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.device-empty-state { padding: 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--text-muted); text-align: center; }

/* МОДАЛКА УСТРОЙСТВА */
.device-modal-details { display: flex; flex-direction: column; gap: 14px; }
.d-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 10px; gap: 16px;
}
.d-detail-row span { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.d-detail-row strong { color: #ffffff; font-weight: 800; text-align: right; word-break: break-all; }

/* TAB 3: BALANCE */
.quick-preset-row { display: flex; gap: 10px; flex-wrap: wrap; }
.preset-chip {
  padding: 8px 16px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 700; font-size: 13px; transition: var(--transition);
}
.preset-chip.active, .preset-chip:hover { border-color: #ffffff; background: #ffffff; color: #000000; }

.calc-stars-sub-hint { font-size: 13px; color: #ffffff; font-weight: 700; margin-top: 6px; }

.trans-list { display: flex; flex-direction: column; gap: 10px; }
.trans-row {
  background: var(--bg-input); border: 1px solid var(--border); padding: 14px 18px; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; transition: var(--transition);
}
.trans-row:hover { border-color: #ffffff; background: var(--bg-card-hover); }
.t-type { font-size: 14px; font-weight: 700; display: block; }
.t-date { font-size: 11px; color: var(--text-dim); }
.t-sum { font-size: 15px; font-weight: 800; white-space: nowrap; }
.plus { color: #ffffff; }
.minus { color: var(--text-muted); }

/* ПАГИНАЦИЯ */
.pagination-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pagination-info { font-size: 13px; font-weight: 700; color: var(--text-muted); }

/* TAB 4: WHEEL */
.wheel-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.wheel-page-head .panel-page-h1 { margin-bottom:8px; }
.wheel-page-head .panel-page-sub { margin:0; }
.wheel-page-head .wheel-subscription-note { margin:12px 0 0; max-width:620px; }
.wheel-label,.wheel-mode-label>span { color:var(--text-muted); font-size:9px; font-weight:800; letter-spacing:.1em; }
.wheel-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,390px); align-items:start; gap:16px; }
.wheel-stage { display:block; min-height:0; padding:23px 25px 24px; overflow:hidden; border:1px solid var(--border); border-radius:20px; background:linear-gradient(145deg,var(--bg-card),#171717); }
.wheel-stage-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.wheel-stage-head h2 { margin:8px 0 0; font-size:24px; letter-spacing:0; }
.wheel-live { display:inline-flex; align-items:center; gap:6px; padding:7px 9px; border:1px solid rgba(255,255,255,.25); border-radius:8px; color:#fff; font-size:9px; font-weight:800; letter-spacing:.08em; }
.wheel-live i { width:6px; height:6px; border-radius:50%; background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.1); animation:archive-wheel-pulse 1.8s ease-in-out infinite; }
.wheel-visual { position:relative; display:grid; place-items:center; width:min(100%,580px); aspect-ratio:1; margin:7px auto 1px; }
.wheel-visual:before { content:""; position:absolute; width:83%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.13),transparent 65%); filter:blur(18px); }
.wheel-orbit { position:absolute; aspect-ratio:1; border:1px solid rgba(255,255,255,.16); border-radius:50%; pointer-events:none; }
.wheel-orbit-one { width:94%; animation:archive-wheel-orbit 15s linear infinite; }
.wheel-orbit-two { width:78%; border-style:dashed; border-color:rgba(255,255,255,.2); animation:archive-wheel-orbit 21s linear infinite reverse; }
.wheel-disc { position:relative; z-index:2; display:grid; place-items:center; width:76%; aspect-ratio:1; border-radius:50%; background:transparent; box-shadow:0 22px 38px rgba(0,0,0,.42),0 0 0 10px rgba(255,255,255,.05),0 0 44px rgba(255,255,255,.1); }
.wheel-svg { display:block; width:100%; height:100%; overflow:visible; transform-origin:50% 50%; transition:transform 1.55s cubic-bezier(.16,.83,.18,1); filter:drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.wheel-segment path { stroke:rgba(255,255,255,.24); stroke-width:2; vector-effect:non-scaling-stroke; transition:filter .25s; }
.wheel-segment:hover path { filter:brightness(1.12); }
.wheel-segment-glyph { font-size:18px; font-weight:900; pointer-events:none; }
.wheel-shadow { fill:rgba(0,0,0,.35); }
.wheel-ring { fill:url(#wheel-ring-gradient); stroke:none; pointer-events:none; }
.wheel-inner-ring { fill:none; stroke:rgba(255,255,255,.34); stroke-width:2; }
.wheel-dividers line { stroke:rgba(255,255,255,.3); stroke-width:2; }
.wheel-hub { fill:url(#wheel-hub-gradient); stroke:#fff; stroke-width:3; }
.wheel-hub-line { fill:none; stroke:rgba(255,255,255,.45); stroke-width:1; }
.wheel-hub-shine { fill:rgba(255,255,255,.25); }
.wheel-hub-core { fill:#171717; stroke:#fff; stroke-width:2; }
.wheel-center-caption { fill:#fff; font-size:11px; font-weight:800; letter-spacing:2px; text-anchor:middle; dominant-baseline:middle; }
.wheel-empty { fill:var(--text-muted); text-anchor:middle; font-size:13px; font-weight:800; letter-spacing:.08em; }
.wheel-pointer { position:absolute; z-index:4; top:4.5%; left:50%; width:39px; height:46px; color:#fff; transform:translateX(-50%); filter:drop-shadow(0 5px 5px rgba(0,0,0,.5)); }
.wheel-pointer:before { content:""; position:absolute; top:0; left:50%; width:26px; height:26px; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:var(--bg-card); transform:translateX(-50%); box-shadow:0 0 0 6px rgba(255,255,255,.06); }
.wheel-pointer span { position:absolute; z-index:1; top:17px; left:50%; width:0; height:0; border-top:25px solid #fff; border-right:13px solid transparent; border-left:13px solid transparent; transform:translateX(-50%); }
.wheel-mode-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 auto 8px; max-width:520px; }
.wheel-mode-label small { color:var(--text-muted); font-size:10px; }
.wheel-modes { display:grid; grid-template-columns:1fr; gap:8px; max-width:520px; margin:0 auto; }
.wheel-mode { position:relative; display:flex; align-items:center; gap:9px; min-height:63px; width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:13px; color:var(--text-muted); background:var(--bg-input); cursor:pointer; text-align:left; transition:transform .22s,border-color .22s,background .22s,color .22s; }
.wheel-mode:hover:not(:disabled) { border-color:#fff; transform:translateY(-2px); }
.wheel-mode.is-selected { border-color:#fff; color:var(--text); background:rgba(255,255,255,.08); box-shadow:0 8px 20px rgba(255,255,255,.06); }
.wheel-mode:disabled { cursor:not-allowed; opacity:.5; }
.wheel-mode-check { flex:0 0 auto; width:14px; height:14px; border:1px solid var(--text-muted); border-radius:50%; }
.wheel-mode.is-selected .wheel-mode-check { border:4px solid #fff; }
.wheel-mode-copy { display:grid; gap:2px; min-width:0; }
.wheel-mode-copy b { font-size:11px; white-space:nowrap; }
.wheel-mode-copy small { color:var(--text-muted); font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wheel-mode>svg { width:17px; height:17px; margin-left:auto; color:#fff; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.wheel-stage-bottom { display:flex; align-items:center; justify-content:space-between; gap:15px; max-width:520px; margin:14px auto 0; }
.wheel-note { display:flex; align-items:flex-start; gap:7px; max-width:250px; margin:0; color:var(--text-muted); font-size:10px; line-height:1.45; }
.wheel-note svg,.wheel-subscription-note svg { flex:0 0 auto; width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.wheel-note svg { color:#fff; }
.wheel-spin-button { min-width:154px; min-height:48px; letter-spacing:.06em; }
.wheel-spin-button svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.wheel-spin-button:disabled { cursor:not-allowed; opacity:.55; transform:none; }
.wheel-side { display:grid; gap:14px; }
.wheel-prizes-panel { padding:21px; }
.wheel-panel-title,.wheel-history-heading { display:flex; align-items:flex-start; gap:12px; }
.wheel-panel-title { margin-bottom:12px; }
.wheel-panel-title h3 { margin:2px 0 4px; font-size:17px; }
.wheel-panel-title p { color:var(--text-muted); font-size:10px; line-height:1.35; }
.wheel-number-tag { display:grid; place-items:center; min-width:27px; height:27px; padding:0 6px; border-radius:7px; color:#000; background:#fff; font-size:10px; font-weight:800; }
.prize-list { display:grid; gap:2px; }
.prize-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:60px; padding:7px 6px; border-bottom:1px solid var(--border); border-radius:10px; transition:background .2s,transform .2s; }
.prize-row:hover { background:var(--bg-input); transform:translateX(2px); }
.prize-row:last-child { border-bottom:0; }
.prize-icon { display:grid; place-items:center; width:32px; height:32px; border:1px solid rgba(255,255,255,.35); border-radius:10px; color:#fff; background:rgba(255,255,255,.08); font-size:11px; font-weight:900; }
.prize-icon-1,.prize-icon-3,.prize-icon-5,.prize-icon-7 { color:#000; background:#fff; }
.prize-copy { display:grid; gap:2px; min-width:0; }
.prize-copy b { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.prize-copy small,.prize-weight { color:var(--text-muted); font-size:9px; }
.wheel-tip,.wheel-subscription-note { display:flex; align-items:center; gap:11px; padding:15px; border:1px solid rgba(255,255,255,.25); border-radius:14px; color:var(--text); background:rgba(255,255,255,.07); }
.wheel-tip-icon { display:grid; place-items:center; flex:0 0 auto; width:34px; height:34px; border-radius:10px; color:#000; background:#fff; }
.wheel-tip-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.wheel-tip div { display:grid; gap:3px; }
.wheel-tip b { font-size:11px; }
.wheel-tip small { color:var(--text-muted); font-size:9px; line-height:1.35; }
.wheel-subscription-note { margin-top:15px; border-color:rgba(239,68,68,.45); color:var(--text-muted); background:rgba(239,68,68,.08); font-size:11px; }
.wheel-subscription-note svg { color:#ef4444; }
.wheel-history-panel { margin-top:16px; padding:21px; }
.wheel-history-heading { align-items:center; margin-bottom:12px; }
.wheel-history-heading strong { font-size:17px; }
.wheel-history-list { display:grid; gap:8px; }
.wheel-history-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:58px; padding:9px 8px; border:1px solid var(--border); border-radius:12px; background:var(--bg-input); }
.wheel-history-row:hover { border-color:#fff; }
.wheel-history-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:#000; background:#fff; font-size:13px; }
.wheel-history-row span:nth-child(2) { display:grid; gap:3px; min-width:0; }
.wheel-history-row b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.wheel-history-row small { color:var(--text-muted); font-size:10px; }
.wheel-history-row strong { color:#fff; font-size:11px; white-space:nowrap; }
.wheel-empty-row { padding:22px 8px; color:var(--text-muted); font-size:12px; text-align:center; }
.wheel-page-button { min-width:96px; }
@keyframes archive-wheel-pulse { 0%,100% { opacity:1; box-shadow:0 0 0 4px rgba(255,255,255,.1); } 50% { opacity:.45; box-shadow:0 0 0 7px rgba(255,255,255,.03); } }
@keyframes archive-wheel-orbit { to { transform:rotate(360deg); } }
@keyframes archive-wheel-led-chase { 0%,100% { fill:#313131; stroke:#111; } 10%,30% { fill:#fff; stroke:#fff; } }
@keyframes archive-wheel-led-glow { 0%,100% { opacity:0; } 10%,30% { opacity:.45; } }
.wheel-led-dot { fill:#313131; stroke:#111; stroke-width:1; animation:archive-wheel-led-chase 6s linear infinite; }
.wheel-led-glow { fill:#fff; opacity:0; filter:blur(1px); animation:archive-wheel-led-glow 6s linear infinite; }
.wheel-is-spinning .wheel-led-dot { animation-duration:2s; }.wheel-is-spinning .wheel-led-glow { animation-duration:2s; }
@media (max-width:1100px) { .wheel-layout { grid-template-columns:1fr; }.wheel-side { grid-template-columns:1fr 1fr; }.wheel-tip { align-self:start; min-height:100%; } }
@media (max-width:768px) { .wheel-page-head { align-items:flex-start; flex-direction:column; }.wheel-stage { padding:17px 13px 16px; border-radius:16px; }.wheel-stage-head h2 { font-size:19px; }.wheel-visual { width:calc(100vw - 40px); max-width:430px; margin-top:5px; }.wheel-disc { width:82%; }.wheel-mode { min-height:58px; }.wheel-stage-bottom { align-items:stretch; flex-direction:column; margin-top:12px; }.wheel-note { max-width:none; }.wheel-spin-button { width:100%; }.wheel-side { grid-template-columns:1fr; }.wheel-prizes-panel,.wheel-history-panel { padding:16px; }.wheel-tip { min-height:0; }.wheel-subscription-note { align-items:flex-start; }.wheel-history-row { grid-template-columns:30px minmax(0,1fr); }.wheel-history-row strong { grid-column:2; } }

/* TAB 5: REFERRALS & WITHDRAW */
.ref-top-2grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ref-balance-widget { border-color: #ffffff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, var(--bg-card) 100%); }
.ref-balance-lbl { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.ref-big-num { font-size: clamp(36px, 6vw, 48px); font-weight: 900; color: #ffffff; }
.ref-big-num.highlight { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }

.ref-conditions-box { display: flex; flex-direction: column; gap: 12px; }
.ref-cond-item {
  background: var(--bg-card); border: 1px solid var(--border); padding: 16px;
  border-radius: 16px; display: flex; align-items: center; gap: 16px;
}
.cond-icon-svg { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.cond-icon-svg svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.cond-title { font-size: 14px; font-weight: 800; }
.cond-desc { font-size: 12px; color: #ffffff; }

.saved-methods-list { display: flex; flex-direction: column; gap: 8px; }
.saved-method-card {
  background: var(--bg-input); border: 1px solid var(--border); padding: 14px 18px; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition);
}
.saved-method-card:hover { border-color: #ffffff; }
.saved-method-card.active { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.sm-left { display: flex; align-items: center; gap: 12px; }
.sm-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #ffffff; flex-shrink: 0; }
.sm-icon svg { width: 100%; height: 100%; }
.sm-title { font-size: 14px; font-weight: 800; color: #fff; }
.sm-val { font-size: 11px; color: var(--text-muted); }
.sm-actions { display: flex; align-items: center; gap: 12px; }

/* CТАТУСЫ ВЫВОДА СРЕДСТВ */
.status-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; text-transform: uppercase; }
.status-badge.success { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-badge.pending { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-badge.cancelled { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.receipt-img-wrapper { background: #121212; border: 1px solid var(--border); border-radius: 16px; padding: 12px; overflow: hidden; display: flex; justify-content: center; }
.receipt-img { max-width: 100%; height: auto; max-height: 400px; border-radius: 8px; object-fit: contain; }

/* TAB 6: GIFTS */
.inner-subtabs { display: flex; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); padding: 6px; border-radius: 16px; width: fit-content; max-width: 100%; overflow-x: auto; }
.inner-tab { padding: 8px 20px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--text-muted); transition: var(--transition); white-space: nowrap; }
.inner-tab.active { background: #ffffff; color: #000000; }

.inner-panel { display: none; }
.inner-panel.active { display: block; animation:giftPanelIn .28s ease both; }
@keyframes giftPanelIn { from { opacity:0; transform:translateX(10px); } to { opacity:1; transform:translateX(0); } }

.gift-tariffs-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gift-tariff-card {
  background: var(--bg-card); border: 1px solid var(--border); padding: 24px; border-radius: 20px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; position: relative;
}
.popular-card { border-color: #ffffff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, var(--bg-card) 100%); }
.popular-badge-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #ffffff; color: #000; font-size: 10px; font-weight: 800; padding: 2px 10px; border-radius: 10px; }
.g-tag { font-size: 11px; font-weight: 800; color: #ffffff; }
.g-title { font-size: 18px; font-weight: 800; margin-top: 4px; }
.g-desc { font-size: 12px; color: var(--text-muted); }
.g-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; }
.g-price { font-size: 20px; font-weight: 900; color: #fff; }

.gift-center-icon {
  width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center; color: #ffffff; margin: 0 auto;
}
.gift-center-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 2; }

.gift-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gift-f-btn { padding: 6px 14px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-muted); }
.gift-f-btn.active { background: #ffffff; color: #000000; border-color: #ffffff; }
.gift-f-btn { cursor:pointer; transition:var(--transition); }
.gift-f-btn:hover { border-color:#fff; color:#fff; }

.gift-history-item {
  background: var(--bg-input); border: 1px solid var(--border); padding: 16px 20px;
  border-radius: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px;
}
.my-gifts-list { display: grid; gap: 10px; }
.gift-history-item { width: 100%; cursor: pointer; text-align: left; }
.gh-code { font-size: 15px; font-weight: 800; }
.gh-sub { font-size: 12px; color: var(--text-muted); }
.gh-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.gh-status.active { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

/* TAB 7: FAQ & LEGAL DOCS */
.legal-docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.legal-doc-card {
  background: var(--bg-card); border: 1px solid var(--border); padding: 18px 20px; border-radius: 18px;
  display: flex; align-items: center; gap: 16px; transition: var(--transition);
}
.legal-doc-card:hover { border-color: #ffffff; transform: translateY(-2px); background: var(--bg-card-hover); }
.ld-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-input); display: flex; align-items: center; justify-content: center; color: #ffffff; flex-shrink: 0; }
.ld-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.ld-title { font-size: 15px; font-weight: 800; color: #fff; }
.ld-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.faq-accordion-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: var(--transition); }
.faq-item-card summary { padding: 18px 24px; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item-card summary::-webkit-details-marker { display: none; }
.faq-icon-svg { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: #ffffff; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.faq-icon-svg svg { width: 100%; height: 100%; }
.faq-item-card[open] .faq-icon-svg { transform: rotate(45deg); }

.faq-body {
  padding: 0 24px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.5;
  animation: faqExpand 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes faqExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TAB 8: PROFILE & СЛАЙД-АНИМАЦИИ */
.user-profile-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.up-avatar {
  width: 60px; height: 60px; border-radius: 50%; background: #ffffff; color: #000000;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; flex-shrink: 0;
}
.up-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.up-row { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.up-row strong { color: #fff; }

.arrow-lg { font-size: 22px; font-weight: 700; line-height: 1; display: inline-block; color: var(--text-muted); }
.curr-right-val { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }

.currency-select-list { display: flex; flex-direction: column; gap: 10px; }
.currency-card-item {
  background: var(--bg-card); border: 1px solid var(--border); padding: 18px 24px; border-radius: 18px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition);
}
.currency-card-item:hover { border-color: #ffffff; transform: translateY(-2px); }
.currency-card-item.active { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.c-left { display: flex; align-items: center; gap: 16px; }
.c-symbol {
  width: 40px; height: 40px; border-radius: 12px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.c-check-ic { font-size: 18px; font-weight: 900; color: #ffffff; }

.sec-view-container { position: relative; overflow: hidden; width: 100%; }
.sec-view {
  display: none; width: 100%; opacity: 0; transform: translateX(0);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sec-view.active { display: block; opacity: 1; transform: translateX(0); }

.sec-nav-header { display: flex; align-items: center; gap: 16px; }
.btn-back-square {
  width: 44px; height: 44px; border-radius: 14px; background: var(--bg-card);
  border: 1px solid var(--border); color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.btn-back-square:hover { border-color: #ffffff; background: var(--bg-card-hover); transform: translateX(-2px); }
.sec-page-title { font-size: 22px; font-weight: 800; }

.sec-menu-list { display: flex; flex-direction: column; gap: 10px; }
.sec-card-item {
  background: var(--bg-card); border: 1px solid var(--border); padding: 18px 24px; border-radius: 18px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition); gap: 12px;
}
.sec-card-item:hover { border-color: #ffffff; transform: translateY(-2px); }
.sc-left { display: flex; align-items: center; gap: 16px; }
.sc-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; background: var(--bg-input); flex-shrink: 0;
}
.sc-icon.tg { color: #229ED9; }
.sc-icon svg { width: 22px; height: 22px; }
.sc-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sec-actions-row { display: flex; align-items: center; gap: 8px; }

/* A linked login method must never fall back to the old "Link" action.
   The dashboard still contains legacy modal code, so this state selector is
   deliberately stronger than individual button class toggles. */
.sec-card-item[data-provider-linked="true"] .btn-sec-link { display: none !important; }
.sec-card-item[data-provider-linked="true"] .btn-sec-pencil { display: inline-flex !important; }

.btn-sec-pencil {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-input);
  border: 1px solid var(--border); color: #ffffff; display: flex;
  align-items: center; justify-content: center; transition: var(--transition); cursor: pointer;
}
.btn-sec-pencil svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-sec-pencil:hover { border-color: #ffffff; background: var(--bg-card-hover); transform: translateY(-2px) scale(1.05); }

.btn-sec-trash {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; display: flex;
  align-items: center; justify-content: center; transition: var(--transition); cursor: pointer;
}
.btn-sec-trash svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-sec-trash:hover { background: #ef4444; color: #ffffff; border-color: #ef4444; transform: translateY(-2px) scale(1.05); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }

.profile-menu-list { display: flex; flex-direction: column; gap: 8px; }
.p-menu-item {
  background: var(--bg-card); border: 1px solid var(--border); padding: 16px 20px; border-radius: 16px;
  display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition);
}
.p-menu-item:hover { border-color: #ffffff; transform: translateY(-2px); }
.p-item-left { display: flex; align-items: center; gap: 12px; }
.p-item-left svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.danger-item { color: var(--danger); }

.confirm-icon-danger {
  width: 56px; height: 56px; border-radius: 18px; background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; display: flex;
  align-items: center; justify-content: center; margin: 0 auto;
}
.confirm-icon-danger svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; }
.confirm-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-destination-dropdown { position: relative; z-index: 2; }
.account-destination-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border, #555); border-radius: 14px; padding: 13px 16px; color: var(--text, #fff); background: var(--bg-input, #141414); font: inherit; cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease; }
.account-destination-trigger:hover, .account-destination-trigger[aria-expanded="true"] { border-color: #fff; background: #1c1c1c; }
.account-destination-chevron { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.account-destination-trigger[aria-expanded="true"] .account-destination-chevron { transform: rotate(180deg); }
.account-destination-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; padding: 5px; border: 1px solid #666; border-radius: 14px; background: #121212; box-shadow: 0 16px 36px rgba(0,0,0,.45); overflow: hidden; animation: destination-menu-in .16s ease-out; }
.account-destination-menu button { display: block; width: 100%; border: 0; border-radius: 9px; padding: 11px 12px; color: #fff; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.account-destination-menu button:hover, .account-destination-menu button[aria-selected="true"] { background: #2469d8; }
@keyframes destination-menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.account-link-success { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.82); backdrop-filter: blur(9px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.account-link-success:not(.hidden) { opacity: 1; pointer-events: auto; }
.account-link-success-card { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 440px; color: #fff; text-align: center; transform: translateY(18px) scale(.96); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.account-link-success:not(.hidden) .account-link-success-card { transform: translateY(0) scale(1); }
.account-link-success-card strong { font-size: clamp(20px, 4vw, 30px); }
.account-link-success-card span { color: #cfcfcf; font-size: 15px; }
.account-link-success-check { display: grid; place-items: center; width: 92px; height: 92px; border: 2px solid #70f59b; border-radius: 50%; color: #70f59b; box-shadow: 0 0 0 0 rgba(112,245,155,.45), 0 0 35px rgba(112,245,155,.25); animation: success-pulse .8s ease-out both; }
.account-link-success-check svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.account-link-success-check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: success-check .55s .18s ease-out forwards; }
@keyframes success-check { to { stroke-dashoffset: 0; } }
@keyframes success-pulse { 0% { transform: scale(.55); box-shadow: 0 0 0 0 rgba(112,245,155,.45), 0 0 0 rgba(112,245,155,0); } 70% { transform: scale(1.05); box-shadow: 0 0 0 18px rgba(112,245,155,0), 0 0 35px rgba(112,245,155,.25); } 100% { transform: scale(1); } }

/* WIZARD */
.wizard-window { max-width: 500px; }
.wiz-badge { font-size: 11px; font-weight: 800; color: var(--text-muted); background: var(--bg-input); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; }

.wiz-os-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wiz-os-card {
  background: var(--bg-input); border: 1px solid var(--border); padding: 14px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: var(--transition);
}
.wiz-os-card:hover { border-color: #ffffff; transform: translateY(-2px); background: var(--bg-card-hover); }
.wiz-os-card.detected-os { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.wiz-os-card .os-ic { width: 24px; height: 24px; flex-shrink: 0; }
.wiz-os-card .os-ic svg { width: 100%; height: 100%; fill: currentColor; }
.wiz-os-card .os-title { font-size: 14px; font-weight: 700; color: #fff; }
.wiz-os-card .os-tag { font-size: 10px; color: var(--text-muted); display: block; }

.wiz-apps-grid { display: flex; flex-direction: column; gap: 10px; }
.wiz-app-card {
  background: var(--bg-input); border: 1px solid var(--border); padding: 16px; border-radius: 16px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition);
}
.wiz-app-card:hover { border-color: #ffffff; transform: translateY(-2px); background: var(--bg-card-hover); }
.wiz-app-name { font-size: 16px; font-weight: 800; color: #fff; }
.wiz-app-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.wiz-app-badge { font-size: 10px; font-weight: 800; background: var(--primary); color: #000; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }

.wiz-links-box { display: flex; flex-direction: column; gap: 10px; }
.wiz-dl-btn {
  background: var(--bg-input); border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; font-weight: 700;
  transition: var(--transition); text-align: left;
}
.wiz-dl-btn:hover { border-color: #ffffff; background: var(--bg-card-hover); }

.wiz-hint-callout {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); padding: 12px 14px;
  border-radius: 12px; display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); line-height: 1.4; align-items: flex-start;
}
.wiz-hint-callout svg { width: 20px; height: 20px; stroke: #ffffff; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }

/* MODAL & АНИМАЦИИ ЗАКРЫТИЯ МОДАЛОК */
.modal-backdrop, .drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 1; transition: opacity 0.25s ease;
}
.modal-backdrop.closing { opacity: 0; }

/* The full mobile menu sits above ordinary layers. The logout confirmation
   must be above it when it is opened from that menu. */
#customConfirmModal { z-index: 10006; }

.modal-window {
  background: var(--bg-card); border: 1px solid var(--border); padding: clamp(20px, 4vw, 32px); border-radius: 24px;
  width: 100%; max-width: 440px; position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes modalScaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-backdrop.closing .modal-window {
  animation: modalScaleOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes modalScaleOut { from { transform: scale(1); opacity: 1; } to { transform: scale(0.9); opacity: 0; } }

.modal-close, .drawer-close { position: absolute; top: 16px; right: 16px; font-size: 24px; color: var(--text-muted); }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.modal-sub strong { color: #ffffff; }
.modal-pay-options { display: flex; flex-direction: column; gap: 10px; }
.promo-checkout { display: grid; gap: 9px; margin-bottom: 16px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-input); }
.promo-checkout label { color: var(--text); font-size: 12px; font-weight: 700; }
.promo-checkout-row { display: flex; gap: 8px; }
.promo-checkout-row .form-input { min-width: 0; flex: 1; }
.promo-checkout-row .btn { flex: 0 0 auto; }
.promo-skip { width: 100%; }
.promo-checkout-message { min-height: 16px; margin: 0; color: var(--text-muted); font-size: 11px; }
.promo-old-price { margin-right: 5px; color: var(--text-muted); font-size: .72em; }
.promo-badge { display: inline-block; margin-left: 5px; color: var(--text); font-size: .55em; font-weight: 800; }

.modal-pay-btn {
  background: var(--bg-input); border: 1px solid var(--border); padding: 14px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 14px; text-align: left; color: #fff; transition: var(--transition); width: 100%;
}
.modal-pay-btn:hover { border-color: #ffffff; background: var(--bg-card-hover); }

.frozen-disabled { opacity: 0.5; cursor: not-allowed; border-color: rgba(255, 255, 255, 0.05); }
.payment-method-minimum { display:block; margin-top:3px; font-size:11px; color:var(--text-muted); }
.modal-pay-btn.frozen-disabled .payment-method-minimum { color:#ff9aa0; }

/* Cabinet consistency fixes */
.gift-history-item, .gift-history-item .gh-code, .drawer-panel, .drawer-panel .drawer-title, .drawer-panel strong, #giftDrawer .modal-window, #giftDrawer .modal-window strong { color: var(--text-main); }
.gh-status.active { background: rgba(74, 222, 128, .16); border: 1px solid rgba(74, 222, 128, .55); color: #b7f7c9; }
.gh-status.pending { background: rgba(250, 204, 21, .14); border: 1px solid rgba(250, 204, 21, .5); color: #fde68a; }
.gh-status.ready { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; }
#giftDrawer #btnCopyGiftCode { width:100%; min-height:44px; height:44px; margin-top:20px; padding:0 16px; justify-content:center; gap:8px; }
#giftDrawer #btnCopyGiftCode.copied { background:rgba(74,222,128,.16); border-color:rgba(74,222,128,.55); color:#b7f7c9; }
.gift-history-item .gh-sub { color: var(--text-muted); }
.gift-history-item:hover { background: var(--bg-card-hover); border-color: #fff; }
.drawer-panel { max-width: 440px; border-radius: 22px 0 0 22px; }
.devices-list-section { display: grid; gap: 12px; }
.d-info-box { min-width: 0; display: grid; gap: 4px; }
.d-ic-box svg path { fill: currentColor; stroke: none; }
.frozen-badge { font-size: 10px; font-weight: 800; background: var(--danger); color: #fff; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.frozen-sub-text { font-size: 11px; color: var(--danger); display: block; margin-top: 2px; }
.payment-balance-sub { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }

.pay-icon-svg { width: 28px; height: 28px; color: #ffffff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pay-icon-svg svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; }
.pay-icon-svg svg.payment-sbp-icon { stroke: none; fill: none; width: 22px; }
.pay-icon-svg svg.payment-fill-icon { stroke: none; fill: currentColor; }
.payment-icon-defs { display: none; }

.payment-progress { position:fixed; z-index:10001; inset:0; display:grid; place-items:center; padding:24px; color:#fff; background:rgba(0,0,0,.94); }
.payment-progress-content { display:grid; justify-items:center; gap:17px; width:min(100%,430px); text-align:center; }
.payment-progress h2 { margin:0; font-size:22px; line-height:1.35; }
.payment-progress p { min-height:20px; margin:0; color:var(--text-muted); font-size:15px; }
.payment-progress-spinner { width:42px; height:42px; border:3px solid rgba(255,255,255,.2); border-top-color:#fff; border-radius:50%; animation:paymentProgressSpin .75s linear infinite; }
.payment-progress-check { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; color:#07140c; background:#64d889; font-size:30px; font-weight:800; }
.payment-progress-dots { display:inline-flex; width:24px; text-align:left; }
.payment-progress-dots i { width:4px; height:4px; margin:0 1px; border-radius:50%; background:currentColor; opacity:.2; }
.payment-progress-dots i:nth-child(1) { animation:paymentProgressDotOne 1.2s infinite; }
.payment-progress-dots i:nth-child(2) { animation:paymentProgressDotTwo 1.2s infinite; }
.payment-progress-dots i:nth-child(3) { animation:paymentProgressDotThree 1.2s infinite; }
@keyframes paymentProgressSpin { to { transform:rotate(360deg); } }
@keyframes paymentProgressDotOne { 0%,20%,100% { opacity:.2; } 21%,80% { opacity:1; } }
@keyframes paymentProgressDotTwo { 0%,40%,100% { opacity:.2; } 41%,80% { opacity:1; } }
@keyframes paymentProgressDotThree { 0%,60%,100% { opacity:.2; } 61%,80% { opacity:1; } }

/* ПОЛНОЭКРАННОЕ МОБИЛЬНОЕ МЕНЮ */
.full-mobile-menu-backdrop {
  position: fixed; inset: 0; background: #000000;
  z-index: 10005; display: flex; flex-direction: column; padding: 24px 20px;
  opacity: 1; transition: opacity 0.25s ease;
  animation: fmFadeIn 0.25s ease-out forwards;
}
@keyframes fmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.full-mobile-menu-backdrop.closing { animation: fmFadeOut 0.25s ease-in forwards; }
@keyframes fmFadeOut { from { opacity: 1; } to { opacity: 0; } }

.full-mobile-menu-panel {
  width: 100%; height: 100%; display: flex; flex-direction: column; overflow-y: auto;
  animation: fmSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fmSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.fm-nav-links { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

.fm-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-radius: 14px; font-size: 16px; font-weight: 600;
  color: var(--text-muted); transition: var(--transition); background: transparent;
}
.fm-link-left { display: flex; align-items: center; gap: 14px; }
.fm-link-left svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.fm-link:hover, .fm-link.active { background: #ffffff; color: #000000; font-weight: 800; }
.fm-footer { padding-top: 20px; border-top: 1px solid var(--border); }
.fm-logout { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; margin-top:20px; padding:14px 18px; border:1px solid rgba(248,113,113,.28); border-radius:14px; color:#fecaca; background:rgba(127,29,29,.28); font:inherit; font-size:15px; font-weight:800; cursor:pointer; transition:var(--transition); }
.fm-logout svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; }
.fm-logout:hover { color:#fff; background:rgba(127,29,29,.52); border-color:rgba(248,113,113,.55); }

/* Drawer Panel */
.drawer-backdrop { justify-content: flex-end; padding: 0; }
.drawer-panel {
  background: var(--bg-card); border-left: 1px solid var(--border); width: 100%; max-width: 400px;
  height: 100%; padding: 32px; position: relative; animation: slideDrawer 0.3s ease-out;
}
@keyframes slideDrawer { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.drawer-info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; gap: 12px; }

/* Мобильный Док */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 12px; left: 12px; right: 12px;
  background: rgba(15, 15, 15, 0.95); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 8px 12px; z-index: 1000;
  justify-content: space-around; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8); backdrop-filter: blur(12px);
}
.m-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted);
  font-size: 10px; font-weight: 700; transition: var(--transition); flex: 1; text-align: center;
}
.m-nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.m-nav-item.active { color: #ffffff; }
.m-nav-logout { border:0; background:transparent; cursor:pointer; font:inherit; }
.m-nav-logout:hover { color:#fecaca; background:rgba(127,29,29,.35); }

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) { .gift-tariffs-row-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .sub-3grid, .ref-top-2grid, .legal-docs-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-bottom-nav { display: grid; grid-template-columns: repeat(var(--mobile-nav-count, 5), minmax(0, 1fr)); }
  .mobile-menu-trigger { display: flex; }
  .dash-content { padding: 16px 16px 90px; }
  .mobile-only-logo { display: block; height: 32px; }
  .home-bottom-grid { grid-template-columns: 1fr; }

  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-window {
    max-width: 100%; border-radius: 24px 24px 0 0; border-bottom: none;
    animation: bottomSheetSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    padding: 24px 20px 32px;
  }
  @keyframes bottomSheetSlideIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

  .modal-backdrop.closing .modal-window {
    animation: bottomSheetSlideOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
  }
  @keyframes bottomSheetSlideOut { from { transform: translateY(0); } to { transform: translateY(100%); } }
}

@media (max-width: 500px) {
  .gift-tariffs-row-4 { grid-template-columns: 1fr; }
  .wiz-os-grid { grid-template-columns: 1fr; }
}
/* Initial data loading state */
.dashboard-loader { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 42%, #171c20 0%, #090b0e 44%, #050608 100%); transition: opacity .72s cubic-bezier(.22,.61,.36,1), visibility .72s; }
.dashboard-loader.is-exiting { opacity: 0; visibility: hidden; pointer-events:none; }
.dashboard-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.dashboard-loader-logo { width: 156px; max-width: 45vw; object-fit: contain; filter: drop-shadow(0 0 24px rgba(255,255,255,.14)); animation: dashboard-loader-pulse 1.25s ease-in-out infinite; }
.dashboard-loader-text { color: rgba(255,255,255,.72); font-size: 14px; letter-spacing: .02em; }
@keyframes dashboard-loader-pulse { 0%,100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1); } }
@keyframes dashboard-loader-fade-out { 0% { opacity:1; visibility:visible; } 100% { opacity:0; visibility:hidden; } }
.dashboard-loader.is-exiting .dashboard-loader-logo, .dashboard-loader.is-exiting .dashboard-loader-text { animation: dashboard-loader-content-out .52s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes dashboard-loader-content-out { from { opacity:1; transform:translateY(0); filter:blur(0); } to { opacity:0; transform:translateY(-18px); filter:blur(8px); } }

/* Smooth full-scene exit for the cabinet loading overlay. */
.dashboard-loader { transition: opacity .6s ease, visibility .6s ease, filter .6s ease; }
.dashboard-loader.is-exiting { opacity: 0; filter: blur(10px); transform: none; }
.dashboard-loader.is-exiting .dashboard-loader-logo, .dashboard-loader.is-exiting .dashboard-loader-text { animation: dashboard-loader-content-out .45s ease forwards; }
