/* ================================================================================================
   0. LOCAL FONTS
   ================================================================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/Inter-Black.woff') format('woff'); }

@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/JetBrainsMono-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2'); }


/* ================================================================================================
   1. DESIGN TOKENS
   ================================================================================================ */
html[data-bs-theme="dark"]{
  --bg:#080B11;
  --bg-blob-a: rgba(157,78,221,.16);
  --bg-blob-b: rgba(0,229,255,.11);
  --card-bg:#111622;
  --card-bg-2:#0C1119;
  --border:#1F2635;
  --text-primary:#E9ECF5;
  --text-secondary:#8B93A7;
  --text-muted:#5C6478;
  --cyan:#00E5FF;
  --purple:#9D4EDD;
  --live:#FF5C3C;

  --up:#00E5A0;
  --down:#FF5C7A;
  --binance:#F0B90B;
  --binance-ink:#1E2329;
  --bybit:#F7A600;
  --bybit-ink:#0B0D10;
  --grid-line: rgba(255,255,255,.025);
  --scrollbar-thumb: #232B3D;
  --nav-bg: rgba(8,11,17,.75);
  --amber:#FFC93C;
}
html[data-bs-theme="light"]{
  --bg:#F2F4FA;
  --bg-blob-a: rgba(157,78,221,.09);
  --bg-blob-b: rgba(0,180,214,.09);
  --card-bg:#FFFFFF;
  --card-bg-2:#F7F8FC;
  --border:#E3E7F1;
  --text-primary:#11141D;
  --text-secondary:#565F76;
  --text-muted:#8891A5;
  --cyan:#0091A8;
  --purple:#7C2FD6;
  --live:#E0492B;
  --up:#0C9463;
  --down:#D6335A;
  --binance:#9A6E00;
  --binance-ink:#1E2329;
  --bybit:#B0680A;
  --bybit-ink:#0B0D10;
  --grid-line: rgba(10,15,30,.025);
  --scrollbar-thumb: #D6DBEA;
  --nav-bg: rgba(242,244,250,.75);
  --amber:#B8860B;
}


/* ================================================================================================
   2. BASE & RESET
   ================================================================================================ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
section[id]{ scroll-margin-top:86px; }
body{
  background-color:var(--bg);
  color:var(--text-primary);
  font-family:'Inter', system-ui, sans-serif;
  overflow-x:hidden;
  position:relative;
  min-height:100vh;
  transition: background-color .35s ease, color .35s ease;
}
body.has-ambient-bg::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 10% -5%, var(--bg-blob-a), transparent 40%),
    radial-gradient(circle at 90% 8%, var(--bg-blob-b), transparent 38%),
    repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 42px);
}
.mono{ font-family:'JetBrains Mono', monospace; }
::selection{ background:var(--purple); color:#fff; }
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--scrollbar-thumb); border-radius:99px; }
*:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; border-radius:4px; }
a{ text-decoration:none; }
[data-lucide]{ display:inline-block; }
svg.lucide{ width:1em; height:1em; stroke-width:2; vertical-align:-.15em; }

.text-secondary-c{ color:var(--text-secondary) !important; }
.text-muted-c{ color:var(--text-muted) !important; }
.text-down-c{ color:var(--down) !important; }
.fw-600{ font-weight:600; }
.fw-700{ font-weight:700; }
.fw-800{ font-weight:800; }
.fw-900{ font-weight:900; }
.eyebrow{ letter-spacing:.14em; text-transform:uppercase; font-size:.72rem; font-weight:700; color:var(--purple); display:inline-flex; align-items:center; gap:.4rem; }


/* ================================================================================================
   3. SHARED LAYOUT PRIMITIVES
   ================================================================================================ */
.card-surface{ background:var(--card-bg); border:1px solid var(--border); border-radius:1.25rem; box-shadow:0 10px 38px rgba(0,0,0,.16); }
.divider-line{ height:1px; background:linear-gradient(90deg, transparent, var(--border), transparent); border:none; }
.section-pad{ padding:2.3rem 0; }

@media (max-width:767.98px){ .section-pad{ padding:2rem 0; .mover-symbol{ font-weight:700; font-size:0.8rem; } } }

.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-d1{ transition-delay:.06s; } .reveal-d2{ transition-delay:.12s; } .reveal-d3{ transition-delay:.18s; }
.reveal-d4{ transition-delay:.24s; } .reveal-d5{ transition-delay:.3s; } .reveal-d6{ transition-delay:.36s; }


/* ================================================================================================
   4. SHARED BUTTONS & ICON BUTTONS
   ================================================================================================ */
.btn-grad-purple{ background:linear-gradient(135deg, var(--purple), #6E2FCF); border:none; color:#fff; font-weight:700; border-radius:.65rem; padding:.55rem 1.1rem; font-size:.85rem; transition:.2s; }
.btn-grad-purple:hover{ color:#fff; transform:translateY(-1px); box-shadow:0 12px 28px rgba(157,78,221,.4); }
.btn-grad-purple:disabled{ opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-sm-grad{ background:linear-gradient(135deg, var(--purple), #6E2FCF); border:none; color:#fff; font-weight:700; border-radius:.65rem; padding:.5rem 1.1rem; font-size:.88rem; transition:.2s; }
.btn-sm-grad:hover{ color:#fff; transform:translateY(-1px); }
.btn-fill-cyan{ background:linear-gradient(135deg, var(--cyan), #00A8C2); border:none; color:#04222A; font-weight:800; border-radius:.75rem; padding:.65rem 1.2rem; transition:.2s; }
.btn-fill-cyan:hover{ color:#04222A; transform:translateY(-1px); }
.btn-ghost{ background:transparent; border:1px solid var(--border); color:var(--text-primary); border-radius:.65rem; padding:.5rem 1rem; font-weight:700; font-size:.82rem; transition:.2s; }
.btn-ghost:hover{ color:var(--text-primary); border-color:var(--text-muted); background:var(--card-bg-2); }
.btn-ghost:disabled{ opacity:.4; }
.btn-outline-c{ background:transparent; border:1.5px solid var(--border); color:var(--text-primary); border-radius:.75rem; padding:.65rem 1.2rem; font-weight:700; transition:.2s; width:100%; }
.btn-outline-c:hover{ border-color:var(--purple); color:var(--purple); }
.btn-danger-ghost{ background:transparent; border:1px solid rgba(255,92,122,.4); color:var(--down); border-radius:.7rem; padding:.6rem 1.15rem; font-weight:700; font-size:.88rem; transition:.2s; }
.btn-danger-ghost:hover{ background:rgba(255,92,122,.08); color:var(--down); }

.icon-btn{ width:40px; height:40px; border-radius:11px; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-secondary); display:inline-flex; align-items:center; justify-content:center; transition:.2s; flex:none; position:relative; }
.icon-btn:hover{ color:var(--text-primary); border-color:var(--cyan); box-shadow:0 0 14px rgba(0,229,255,.16); }
.icon-btn.sm{ width:32px; height:32px; border-radius:8px; }
.theme-toggle-fixed{ position:fixed; top:1.25rem; right:1.25rem; z-index:50; }

.btn-icon{ width:34px; height:34px; border-radius:.6rem; border:1px solid var(--border); background:transparent; color:var(--text-secondary); display:inline-flex; align-items:center; justify-content:center; transition:.18s; flex:none; }
.btn-icon:hover{ transform:translateY(-1px); border-color:var(--purple); color:var(--purple); }
.btn-icon.danger:hover, .act-delete:hover{ border-color:var(--down); color:var(--down); }
.act-edit:hover{ border-color:var(--purple); color:var(--purple); }
.act-pause:hover{ border-color:var(--live); color:var(--live); }

.spinner{ display:inline-block; width:15px; height:15px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; margin-right:.5rem; vertical-align:-2px; }

.btn-grad-cyan{ background:linear-gradient(135deg, var(--cyan), #00A8C2); border:none; color:#04222A; font-weight:700; border-radius:.8rem; padding:.6rem 1.3rem; box-shadow:0 6px 22px rgba(0,229,255,.28); transition:.2s; }
.btn-grad-cyan:hover{ color:#04222A; transform:translateY(-1px); box-shadow:0 10px 28px rgba(0,229,255,.4); }


/* ================================================================================================
   5. SHARED BADGES & BRAND CHIPS
   ================================================================================================ */
.badge-exchange{ font-size:.64rem; font-weight:700; letter-spacing:.02em; border-radius:.35rem; padding:.15rem .4rem; display:inline-flex; align-items:center; gap:.25rem; white-space:nowrap; }
.badge-exchange.binance{ background:rgba(240,185,11,.12); color:var(--binance); border:1px solid rgba(240,185,11,.3); }
.badge-exchange.bybit{ background:rgba(247,166,0,.12); color:var(--bybit); border:1px solid rgba(247,166,0,.3); }
.badge-exchange .xdot{ width:6px; height:6px; border-radius:50%; background:currentColor; }

.chip-brand{ display:inline-flex; align-items:center; gap:.5rem; border-radius:99px; padding:.5rem .95rem; font-weight:800; font-size:.85rem; }
.chip-brand.binance{ background:var(--binance); color:var(--binance-ink); box-shadow:0 8px 22px rgba(0,0,0,.22); }
.chip-brand.bybit{ background:var(--bybit-ink); color:var(--bybit); border:1px solid rgba(247,166,0,.5); }
.chip-brand svg{ width:15px; height:15px; }

.badge-status{ font-size:.74rem; font-weight:600; border-radius:.5rem; padding:.32rem .6rem .32rem .5rem; display:inline-flex; align-items:center; gap:.4rem; }
.badge-status.active{ background:rgba(0,229,160,.1); color:var(--up); border:1px solid rgba(0,229,160,.25); }
.badge-status.paused{ background:rgba(139,147,167,.1); color:var(--text-secondary); border:1px solid var(--border); }
.badge-status .status-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; position:relative; }
.badge-status.active .status-dot::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid currentColor; animation:pulseRing 2.2s cubic-bezier(0,0,.2,1) infinite; }

.badge-soft{ font-size:.68rem; font-weight:700; padding:.25rem .55rem; border-radius:.4rem; white-space:nowrap; }
.badge-soft.this-device{ background:rgba(0,229,160,.1); color:var(--up); }
.badge-soft.readonly{ background:rgba(0,229,255,.1); color:var(--cyan); border:1px solid rgba(0,229,255,.25); }
.badge-soft.paid{ background:rgba(0,229,160,.1); color:var(--up); }


/* ================================================================================================
   6. SHARED FORMS
   ================================================================================================ */
.form-label-c, .form-label-sm{ font-size:.78rem; font-weight:600; color:var(--text-secondary); margin-bottom:.35rem; display:block; }
.form-control, .form-select{ background:var(--card-bg-2); border:1px solid var(--border); color:var(--text-primary); border-radius:.6rem; padding:.55rem .8rem; font-size:.88rem; }
.form-control:focus, .form-select:focus{ background:var(--card-bg-2); color:var(--text-primary); border-color:var(--purple); box-shadow:0 0 0 .2rem rgba(157,78,221,.15); }
.form-control::placeholder{ color:var(--text-muted); }
.form-control.is-invalid, .form-select.is-invalid{ border-color:var(--down); }
.form-text-c{ font-size:.78rem; color:var(--text-muted); margin-top:.35rem; }
.field-error{ font-size:.78rem; color:var(--down); margin-top:.4rem; display:none; align-items:center; gap:.35rem; }
.field-error.show{ display:flex; }
.field-error svg{ width:14px; height:14px; flex:none; }

.input-with-action{ position:relative; }
.input-with-action .form-control{ padding-right:2.6rem; }
.input-action-btn{ position:absolute; top:50%; right:.4rem; transform:translateY(-50%); width:30px; height:30px; border:none; background:transparent; color:var(--text-muted); display:flex; align-items:center; justify-content:center; border-radius:.5rem; }
.input-action-btn:hover{ color:var(--text-primary); }

.form-check-input{ background-color:var(--card-bg-2); border:1.5px solid var(--border); width:1.1em; height:1.1em; margin-top:.2em; cursor:pointer; }
.form-check-input:checked{ background-color:var(--purple); border-color:var(--purple); }
.form-check-input:focus{ box-shadow:0 0 0 .2rem rgba(157,78,221,.18); }
.form-check-label{ color:var(--text-secondary); font-size:.86rem; cursor:pointer; }
.form-check-label a{ color:var(--purple); text-decoration:underline; }
.form-check-label a:hover{ color:var(--cyan); }

.form-switch .form-check-input{ width:2.4em; height:1.35em; background-color:var(--border); border-color:var(--border); margin-top:0; }
.form-switch .form-check-input:checked{ background-color:var(--cyan); border-color:var(--cyan); }
.form-switch .form-check-input:focus{ box-shadow:0 0 0 .2rem rgba(0,229,255,.18); }
.form-switch .form-check-input:disabled{ opacity:.35; cursor:not-allowed; }

.remember-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:1.7rem; }
.forgot-link{ font-size:.85rem; color:var(--purple); font-weight:600; }
.forgot-link:hover{ color:var(--cyan); }

.strength-track{ height:5px; border-radius:99px; background:var(--border); overflow:hidden; margin-top:.55rem; }
.strength-fill{ height:100%; border-radius:99px; transition:width .3s ease, background-color .3s ease; width:0%; background:var(--down); }
.strength-label{ font-size:.75rem; margin-top:.4rem; font-weight:600; color:var(--text-muted); }
.match-hint{ font-size:.78rem; margin-top:.45rem; display:none; align-items:center; gap:.4rem; font-weight:600; }
.match-hint.show{ display:flex; }
.match-hint.ok{ color:var(--up); } .match-hint.ok svg{ color:var(--up); }
.match-hint.bad{ color:var(--down); } .match-hint.bad svg{ color:var(--down); }
.match-hint svg{ width:14px; height:14px; }

/* Exchange picker — консолидировано с нижним блоком (оставлены актуальные значения) */
.exchange-pill{ border:1px solid var(--border); border-radius:1rem; padding:.85rem 1.1rem; cursor:pointer; user-select:none; display:flex; align-items:center; gap:.75rem; background:rgba(255,255,255,.02); transition:all .2s ease; }
.exchange-pill:hover{ border-color:rgba(0,229,255,.4); background:rgba(0,229,255,.04); }
.exchange-pill .pill-icon{ font-size:1.15rem; color:var(--text-muted); transition:.2s; flex:none; }
.exchange-pill .pill-check{ margin-left:auto; opacity:0; transition:.2s; display:none; }
.exchange-pill .name, .exchange-name{ font-weight:700; font-size:.9rem; }
.exchange-sub{ font-size:.74rem; color:var(--text-muted); }
.exchange-pill[data-exchange="binance"].active{ border-color:var(--binance); background:rgba(240,185,11,.07); box-shadow:0 0 18px rgba(240,185,11,.16); }
.exchange-pill[data-exchange="binance"].active .pill-icon, .exchange-pill[data-exchange="binance"].active .pill-check{ color:var(--binance); opacity:1; }
.exchange-pill[data-exchange="bybit"].active{ border-color:var(--bybit); background:rgba(247,166,0,.07); box-shadow:0 0 18px rgba(247,166,0,.16); }
.exchange-pill[data-exchange="bybit"].active .pill-icon, .exchange-pill[data-exchange="bybit"].active .pill-check{ color:var(--bybit); opacity:1; }
.exchange-pill.disabled{ opacity:.4; pointer-events:none; }
.exchange-pill.active{ border-color:var(--cyan, #00E5FF) !important; background:rgba(0,229,255,.1) !important; box-shadow:0 0 16px rgba(0,229,255,.15); }
.exchange-pill.active .pill-check{ color:var(--cyan, #00E5FF); display:block !important; }

/* Logic switch / toggle (обе системы оставлены — обе используются в разметке) */
.logic-switch-wrap { display: inline-flex; background: var(--card-bg-2, #0C1119); border: 1px solid var(--border, #1F2635); border-radius: 0.65rem; padding: 0.2rem; gap: 0.2rem; }
.logic-switch-wrap .btn-check + .logic-btn { padding: 0.32rem 0.85rem; font-size: 0.78rem; font-weight: 700; border-radius: 0.5rem; color: var(--text-secondary, #8B93A7); cursor: pointer; transition: all 0.2s ease; border: none; background: transparent; margin-bottom: 0; user-select: none; }
.logic-switch-wrap .btn-check:checked + .logic-btn.btn-logic-and { background: rgba(157, 78, 221, 0.2); color: var(--purple, #9D4EDD); box-shadow: 0 0 10px rgba(157, 78, 221, 0.3); }
.logic-switch-wrap .btn-check:checked + .logic-btn.btn-logic-or { background: rgba(0, 229, 255, 0.15); color: var(--cyan, #00E5FF); box-shadow: 0 0 10px rgba(0, 229, 255, 0.25); }

.logic-toggle-group { display: inline-flex; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; }
.logic-toggle-btn { font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 7px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s ease; user-select: none; margin-bottom: 0; }
.logic-toggle-btn:hover { color: var(--text-primary); }
.btn-check:checked + .logic-toggle-btn { background: var(--purple); color: #fff; box-shadow: 0 2px 10px rgba(157, 78, 221, 0.4); }

/* Coin picker */
.coin-picker-wrap { position: relative; }
.coin-search-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 1050; background: var(--card-bg, #111622); border: 1px solid var(--border, #1F2635); border-radius: 0.75rem; max-height: 220px; overflow-y: auto; box-shadow: 0 15px 35px rgba(0,0,0,0.5); margin-top: 0.35rem; }
.coin-dropdown-item { padding: 0.55rem 0.9rem; font-size: 0.86rem; font-weight: 600; color: var(--text-primary, #E9ECF5); cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: 0.15s ease; }
.coin-dropdown-item:hover { background: rgba(157, 78, 221, 0.15); color: var(--cyan, #00E5FF); }
.coin-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 0.5rem; background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.25); color: var(--cyan, #00E5FF); font-size: 0.78rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.coin-badge-remove { cursor: pointer; color: var(--text-muted, #5C6478); transition: 0.2s ease; }
.coin-badge-remove:hover { color: var(--down, #FF5C7A); }


/* ================================================================================================
   7. SHARED TOASTS, MODALS, DROPDOWNS, OFFCANVAS
   ================================================================================================ */
.toast{ background:var(--card-bg); border:1px solid var(--border); color:var(--text-primary); border-radius:.85rem; min-width:380px; }
.toast-success{ border-left:3px solid var(--cyan); }
.toast-error{ border-left:3px solid var(--down); }
.toast-info{ border-left:3px solid var(--purple); }
.toast .icn{ width:17px; height:17px; }
.toast-success .icn{ color:var(--cyan); }
.toast-error .icn{ color:var(--down); }
.toast-info .icn{ color:var(--purple); }
html[data-bs-theme="dark"] .btn-close{ filter:invert(1) grayscale(100%) brightness(200%); }

.modal-content{ background:var(--card-bg); border:1px solid var(--border); border-radius:1.1rem; color:var(--text-primary); }
.modal-header, .modal-footer{ border-color:var(--border); }

.dropdown-menu{ background:var(--card-bg); border:1px solid var(--border); border-radius:.9rem; padding:.5rem; box-shadow:0 20px 50px rgba(0,0,0,.28); min-width:220px; }
.dropdown-item{ color:var(--text-secondary); border-radius:.6rem; padding:.55rem .75rem; font-size:.87rem; font-weight:500; display:flex; align-items:center; gap:.6rem; }
.dropdown-item:hover, .dropdown-item:focus{ background:var(--card-bg-2); color:var(--text-primary); }
.dropdown-item svg{ width:15px; height:15px; }
.dropdown-item.danger{ color:var(--down); }
.dropdown-item.danger:hover{ background:rgba(255,92,122,.08); color:var(--down); }
.dropdown-divider{ border-color:var(--border); margin:.4rem 0; }
.dropdown-header-c{ color:var(--text-muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; padding:.5rem .75rem .3rem; }

.offcanvas{ background:var(--card-bg); color:var(--text-primary); border-left:1px solid var(--border); }
.offcanvas .nav-link-c{ font-size:1rem; padding:.8rem 0 !important; border-bottom:1px solid var(--border); border-radius:0; }


/* ================================================================================================
   8. SHARED AVATAR, PROGRESS BARS, DATA ROWS
   ================================================================================================ */
.avatar-circle{ width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg, var(--purple), var(--cyan)); color:#0A0D14; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.25rem; background-size:cover; background-position:center; flex:none; }
.avatar-circle.xs{ width:28px; height:28px; font-size:.68rem; }
.avatar-circle.lg{ width:88px; height:88px; font-size:1.7rem; position:relative; }
.avatar-edit-btn{ position:absolute; bottom:-2px; right:-2px; width:30px; height:30px; border-radius:50%; background:var(--purple); border:2px solid var(--card-bg); color:#fff; display:flex; align-items:center; justify-content:center; transition:.2s; }
.avatar-edit-btn:hover{ transform:scale(1.06); }
.avatar-edit-btn svg{ width:13px; height:13px; }
.avatar-upload-row{ display:flex; align-items:center; gap:1.3rem; flex-wrap:wrap; }

.progress-track{ height:6px; background:var(--border); border-radius:99px; flex:1; overflow:hidden; }
.progress-fill{ height:100%; border-radius:99px; background:linear-gradient(90deg, var(--purple), var(--cyan)); transition:width .5s ease; }

.data-row{ display:flex; align-items:center; gap:1rem; padding:1rem 0; border-top:1px solid var(--border); flex-wrap:wrap; }
.data-row:first-child{ border-top:none; padding-top:0; }
.row-icon{ width:40px; height:40px; border-radius:.7rem; background:var(--card-bg-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-secondary); flex:none; }
.row-icon svg{ width:18px; height:18px; }
.row-body{ min-width:0; }
.row-title{ font-weight:700; font-size:.9rem; display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.row-meta{ font-size:.78rem; color:var(--text-muted); margin-top:.15rem; }
.row-actions{ margin-left:auto; display:flex; align-items:center; gap:.5rem; flex:none; }


/* ================================================================================================
   9. SHARED TERMINAL / LIVE-SIGNAL FEED
   ================================================================================================ */
.terminal-feed{ max-height:340px; overflow-y:auto; font-size:.8rem; line-height:1.7; padding-right:.25rem; }
.feed-line{ padding:.4rem .55rem; border-radius:.5rem; display:flex; gap:.55rem; flex-wrap:wrap; align-items:baseline; }
.feed-line.flash{ animation:flashRow 1.4s ease-out; }
.feed-time{ color:var(--text-muted); flex:none; }
.feed-tag{ font-size:.66rem; font-weight:800; padding:.08rem .42rem; border-radius:4px; flex:none; }
.feed-tag.binance{ color:var(--binance-ink); background:var(--binance); }
.feed-tag.bybit{ color:var(--bybit); background:var(--bybit-ink); border:1px solid rgba(247,166,0,.5); }
.feed-tag.system{ color:var(--text-muted); background:transparent; border:1px solid var(--border); }
.feed-msg{ color:var(--text-secondary); }
.feed-msg .highlight{ color:var(--live); font-weight:600; }
.terminal-cursor{ color:var(--text-muted); }
.terminal-cursor::after{ content:'\2588'; margin-left:4px; color:var(--cyan); animation:blink 1s step-start infinite; }

.live-pill{ display:inline-flex; align-items:center; gap:.4rem; font-size:.72rem; font-weight:700; color:var(--text-muted); }
.live-pill .dot{ position:relative; width:7px; height:7px; border-radius:50%; background:var(--live); flex:none; display:inline-block; }
.live-pill .dot::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid var(--live); animation:pulseRing 1.8s cubic-bezier(0,0,.2,1) infinite; }

.condition-summary{ font-size:.78rem; color:var(--text-secondary); line-height:1.5; }
.strategy-item{ transition:opacity .32s ease, transform .32s ease, transform .2s ease, opacity .25s ease; }
.strategy-item.item-enter{ opacity:0; transform:translateY(-8px); }
.strategy-item.item-enter-active{ opacity:1; transform:translateY(0); }
.strategy-item.item-exit{ opacity:0; transform:translateX(11px) scale(.98); }
.strategy-item.item-exit{ opacity: 0; transform: translateY(-8px); }


/* ================================================================================================
   10. SHARED KEYFRAMES / MOTION UTILITIES
   ================================================================================================ */
@keyframes pulseRing{ 0%{ transform:scale(.55); opacity:.8; } 100%{ transform:scale(1.9); opacity:0; } }
@keyframes flashRow{ 0%{ background:rgba(0,229,255,.12); } 100%{ background:transparent; } }
@keyframes blink{ 50%{ opacity:0; } }
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes pingRing{ 0%{ transform:scale(1); opacity:.8; } 100%{ transform:scale(2.4); opacity:0; } }
@keyframes panelIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }


/* ================================================================================================
   11. MARKETING PAGE ONLY (index.html)
   ================================================================================================ */
.fw-800-hero{ font-weight:800; }

.app-nav{ position:fixed; top:0; left:0; right:0; z-index:1040; padding:1rem 0; transition:.3s ease; border-bottom:1px solid transparent; }
.app-nav.scrolled{ background:var(--nav-bg); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom-color:var(--border); padding:.7rem 0; }
.nav-link-c{ color:var(--text-secondary); font-weight:600; font-size:.92rem; padding:.5rem .9rem !important; border-radius:.6rem; transition:.2s; }
.nav-link-c:hover{ color:var(--text-primary); background:var(--card-bg-2); }
.brand-mark{ width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg, var(--purple), var(--cyan)); display:flex; align-items:center; justify-content:center; box-shadow:0 0 20px rgba(157,78,221,.35); color:#0A0D14; flex:none; }
.brand-mark svg{ width:19px; height:19px; }
.brand-name{ font-weight:800; font-size:1.08rem; color:var(--text-primary); }
.brand-name span{ color:var(--purple); }
.badge-ai{ font-size:.62rem; font-weight:700; letter-spacing:.08em; border:1px solid var(--border); color:var(--text-secondary); border-radius:99px; padding:.15rem .5rem; margin-left:.35rem; vertical-align:middle; }
.btn-telegram{ position:relative; background:var(--card-bg-2); border:1px solid var(--border); color:var(--text-primary); border-radius:11px; font-size:.86rem; font-weight:600; padding:.5rem 1rem; display:inline-flex; align-items:center; gap:.5rem; transition:.2s; }
.btn-telegram:hover{ border-color:var(--purple); box-shadow:0 0 16px rgba(157,78,221,.2); color:var(--text-primary); }
.btn-telegram.connected{ border-color:var(--cyan); color:var(--cyan); }
.ping-dot{ position:absolute; top:-4px; right:-4px; width:10px; height:10px; border-radius:50%; background:var(--live); border:2px solid var(--bg); }
.ping-dot::after{ content:''; position:absolute; inset:-2px; border-radius:50%; border:2px solid var(--live); animation:pingRing 1.6s cubic-bezier(0,0,.2,1) infinite; }

.hero{ padding:9.5rem 0 5rem; position:relative; }
@media (max-width:991.98px){ .hero{ padding:7.5rem 0 3rem; } }
.hero-badge{ display:inline-flex; align-items:center; gap:.5rem; border:1px solid var(--border); background:var(--card-bg-2); border-radius:99px; padding:.5rem .9rem .4rem .6rem; font-size:.78rem; font-weight:600; color:var(--text-secondary); }
.hero-badge .live-dot{ position:relative; width:7px; height:7px; border-radius:50%; background:var(--live); flex:none; display:inline-block; }
.hero-badge .live-dot::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid var(--live); animation:pulseRing 1.8s cubic-bezier(0,0,.2,1) infinite; }
.hero h1{ font-size:clamp(2.2rem, 4.6vw, 3.6rem); font-weight:900; letter-spacing:-.03em; line-height:1.08; margin-bottom:1.15rem; }
.hero h1 .grad{ background:linear-gradient(120deg, var(--cyan), var(--purple)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero h2{ font-size:clamp(1.02rem, 1.6vw, 1.25rem); font-weight:500; color:var(--text-secondary); line-height:1.6; margin-bottom:2rem; max-width:560px; }
.trust-row{ display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-top:1.6rem; font-size:.8rem; color:var(--text-muted); }
.trust-row .sep{ width:3px; height:3px; border-radius:50%; background:var(--text-muted); }

.hero-media{ position:relative; padding:1rem; }
.mockup-window{ background:var(--card-bg); border:1px solid var(--border); border-radius:1.15rem; box-shadow:0 30px 80px rgba(0,0,0,.35), 0 0 60px rgba(157,78,221,.12); overflow:hidden; transform:perspective(1400px) rotateY(-6deg) rotateX(2deg); animation:floatY 7s ease-in-out infinite; animation-play-state:paused; will-change:transform; }
.hero.in-viewport .mockup-window{ animation-play-state:running; }
.mockup-topbar{ display:flex; align-items:center; gap:.5rem; padding:.7rem .9rem; border-bottom:1px solid var(--border); background:var(--card-bg-2); }
.mockup-dot{ width:9px; height:9px; border-radius:50%; }
.mockup-url{ margin-left:.6rem; font-size:.72rem; color:var(--text-muted); background:var(--bg); border:1px solid var(--border); border-radius:99px; padding:.2rem .7rem; display:flex; align-items:center; gap:.35rem; flex:1; }
.mockup-body{ padding:1.1rem; }
.mockup-strategy{ border:1px solid var(--border); border-radius:.85rem; padding:.8rem .9rem; background:var(--card-bg-2); margin-bottom:.8rem; }
.mockup-tag{ font-size:.68rem; font-family:'JetBrains Mono',monospace; border:1px solid var(--border); border-radius:.4rem; padding:.15rem .45rem; color:var(--text-secondary); margin-right:.3rem; display:inline-block; margin-top:.4rem; }
.mockup-chartbox{ height:70px; margin-bottom:.8rem; }
.mockup-feed{ font-size:.72rem; }
.mockup-feed-line{ display:flex; align-items:center; gap:.45rem; padding:.3rem 0; color:var(--text-secondary); border-top:1px solid var(--border); }
.mockup-feed-line:first-child{ border-top:none; }
.mockup-feed-tag{ font-size:.62rem; font-weight:800; padding:.06rem .35rem; border-radius:4px; flex:none; }
.mockup-feed-tag.binance{ color:var(--binance-ink); background:var(--binance); }
.mockup-feed-tag.bybit{ color:var(--bybit); background:var(--bybit-ink); border:1px solid rgba(247,166,0,.5); }
.floating-badge{ position:absolute; border-radius:99px; padding:.55rem 1rem; font-weight:800; font-size:.82rem; display:flex; align-items:center; gap:.5rem; box-shadow:0 14px 34px rgba(0,0,0,.3); animation:floatBadge 5s ease-in-out infinite; animation-play-state:paused; }
.hero.in-viewport .floating-badge{ animation-play-state:running; }
.floating-badge.fb-binance{ top:-6%; right:-6%; background:var(--binance); color:var(--binance-ink); animation-delay:0s; }
.floating-badge.fb-bybit{ bottom:-6%; left:-5%; background:var(--bybit-ink); color:var(--bybit); border:1px solid rgba(247,166,0,.5); animation-delay:1.2s; }
@media (max-width:991.98px){ .floating-badge{ font-size:.72rem; padding:.42rem .8rem; } .mockup-window{ transform:none; animation:none; } }

.ticker-wrap{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--card-bg-2); overflow:hidden; position:relative; }
.ticker-wrap::before, .ticker-wrap::after{ content:''; position:absolute; top:0; bottom:0; width:60px; z-index:2; pointer-events:none; }
.ticker-wrap::before{ left:0; background:linear-gradient(90deg, var(--card-bg-2), transparent); }
.ticker-wrap::after{ right:0; background:linear-gradient(270deg, var(--card-bg-2), transparent); }
.ticker-track{ display:flex; width:max-content; animation:tickerScroll 38s linear infinite; will-change:transform; }
.ticker-wrap:hover .ticker-track{ animation-play-state:paused; }
.ticker-item{ display:flex; align-items:center; gap:.5rem; padding:.85rem 1.5rem; font-family:'JetBrains Mono',monospace; font-size:.85rem; white-space:nowrap; border-right:1px solid var(--border); }
.ticker-item .sym{ font-weight:700; color:var(--text-primary); }
.ticker-item .chg{ font-weight:600; padding:.05rem .4rem; border-radius:.3rem; }
.ticker-item .chg.up{ color:var(--up); background:rgba(0,229,160,.1); }
.ticker-item .chg.down{ color:var(--down); background:rgba(255,92,122,.1); }

.pulse-card{ padding:1.4rem; height:100%; }
.gauge-wrap{ text-align:center; }
.gauge-value{ font-size:2.1rem; font-weight:800; margin-top:-.3rem; }
.gauge-label{ font-size:.85rem; font-weight:700; color:var(--purple); }
#gaugeNeedle{ transform-origin:100px 100px; transition:transform 1.2s cubic-bezier(.34,1.56,.64,1); }
.mcap-value{ font-size:1.9rem; font-weight:800; }
.mcap-chart{ height:60px; margin-top:.6rem; }
.dom-wrap{ position:relative; width:130px; height:130px; margin:0 auto; }
.dom-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.dom-center .num{ font-size:1.3rem; font-weight:800; }
.dom-center .lab{ font-size:.65rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.news-item{ display:flex; gap:.7rem; padding:.75rem 0; border-top:1px solid var(--border); }
.news-item:first-child{ border-top:none; padding-top:0; }
.news-tag{ font-size:.64rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:.15rem .45rem; border-radius:.35rem; flex:none; height:fit-content; margin-top:.15rem; }
.news-headline{ font-size:.86rem; font-weight:600; line-height:1.4; margin-bottom:.2rem; }
.news-meta{ font-size:.72rem; color:var(--text-muted); }

.bento-grid{ display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:auto; align-items:stretch; gap:1.1rem; }
.bento-card{ border:1px solid var(--border); background:var(--card-bg); border-radius:1.25rem; padding:1rem; position:relative; overflow:hidden; transition:.3s ease; display:flex; flex-direction:column; min-height:210px; }
.bento-card:hover{ border-color:var(--purple); box-shadow:0 16px 40px rgba(157,78,221,.16); transform:translateY(-3px); }
.bento-xl{ grid-column:span 2; }
.bento-wide{ grid-column:span 2; }
.bento-icon{ width:42px; height:42px; border-radius:.75rem; background:var(--card-bg-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--cyan); margin-bottom:.9rem; flex:none; }
.bento-icon svg{ width:20px; height:20px; }
.bento-title{ font-weight:800; font-size:1.02rem; margin-bottom:.35rem; }
.bento-desc{ font-size:.84rem; color:var(--text-secondary); line-height:1.55; }
@media (max-width:991.98px){ .bento-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:575.98px){ .bento-grid{ grid-template-columns:1fr; } .bento-card{ grid-column:span 1 !important; } }

.radar-visual{ width:150px; height:150px; border-radius:50%; position:relative; margin:auto auto 0; background:radial-gradient(circle, rgba(0,229,255,.05), transparent 70%); border:1px solid var(--border); flex:none; }
.radar-ring{ position:absolute; border:1px solid var(--border); border-radius:50%; }
.radar-ring.r1{ inset:12%; } .radar-ring.r2{ inset:32%; } .radar-ring.r3{ inset:52%; }
.radar-sweep{ position:absolute; inset:0; border-radius:50%; overflow:hidden; }
.radar-sweep::before{ content:''; position:absolute; inset:0; background:conic-gradient(from 0deg, rgba(0,229,255,.4), transparent 30%); animation:radarSpin 4s linear infinite; animation-play-state:paused; will-change:transform; }
#benefits.in-viewport .radar-sweep::before{ animation-play-state:running; }
.radar-blip{ position:absolute; width:9px; height:9px; border-radius:50%; box-shadow:0 0 12px currentColor; animation:blipPulse 2.4s ease-in-out infinite; animation-play-state:paused; }
#benefits.in-viewport .radar-blip{ animation-play-state:running; }
.blip-binance{ top:22%; left:65%; color:var(--binance); background:var(--binance); }
.blip-bybit{ top:62%; left:28%; color:var(--bybit); background:var(--bybit); animation-delay:1.1s; }

.builder-visual{ padding-top:3.7rem; display:flex; align-items:center; justify-content:center; gap:.4rem; flex-wrap:wrap; }
.builder-chip{ font-family:'JetBrains Mono',monospace; font-size:.72rem; font-weight:700; padding:.45rem .7rem; border-radius:.6rem; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-secondary); opacity:.55; transform:scale(.94); animation:chipPop 2.4s ease-in-out infinite; animation-play-state:paused; }
.builder-connector{ width:14px; height:1px; background:var(--border); flex:none; }
#benefits.in-viewport .builder-chip{ animation-play-state:running; }

.broadcast-visual{ margin-top:auto; padding-top:1rem; display:flex; flex-direction:column; align-items:center; gap:.8rem; }
.broadcast-source{ width:14px; height:14px; border-radius:50%; background:var(--cyan); position:relative; margin-bottom: 2.2rem; }
.broadcast-source::before, .broadcast-source::after{ content:''; position:absolute; inset:-6px; border-radius:50%; border:1.5px solid var(--cyan); animation:pulseRing 2s cubic-bezier(0,0,.2,1) infinite; animation-play-state:paused; }
.broadcast-source::after{ animation-delay:1s; }
#benefits.in-viewport .broadcast-source::before, #benefits.in-viewport .broadcast-source::after{ animation-play-state:running; }
.broadcast-targets{ display:flex; gap:.5rem; }
.broadcast-chip{ display:flex; align-items:center; gap:.35rem; font-size:.68rem; font-weight:700; padding:.35rem .6rem; border-radius:99px; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-secondary); }
.broadcast-chip svg{ width:12px; height:12px; }

.tools-visual{ margin-top:auto; padding-top:1rem; display:flex; gap:.6rem; flex-wrap:wrap; }
.tool-tile{ flex:1; min-width:70px; display:flex; flex-direction:column; align-items:center; gap:.4rem; padding:.7rem .5rem; border-radius:.8rem; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-muted); opacity:.55; transform:scale(.94); animation:chipPop 3.2s ease-in-out infinite; animation-play-state:paused; }
#benefits.in-viewport .tool-tile{ animation-play-state:running; }
.tool-tile svg{ width:18px; height:18px; color:var(--cyan); }
.tool-tile span:last-child{ font-size:.66rem; font-weight:700; }

.candles-visual{ margin-top:auto; padding-top:1rem; }
.candles-svg{ width:100%; height:auto; display:block; }
.candles-indicator-line{ opacity:.55; animation:lineBreathe 3s ease-in-out infinite; animation-play-state:paused; }
#benefits.in-viewport .candles-indicator-line{ animation-play-state:running; }

.chart-switch-visual{ margin-top:auto; padding-top:1rem; }
.chart-switch-tabs{ display:flex; align-items:center; gap:.4rem; margin-bottom:.6rem; }
.chart-tab{ font-size:.68rem; font-weight:700; padding:.3rem .55rem; border-radius:.5rem; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-secondary); opacity:.55; transform:scale(.94); animation:chipPop 3s ease-in-out infinite; animation-play-state:paused; }
#benefits.in-viewport .chart-tab{ animation-play-state:running; }
.chart-tab-star{ margin-left:auto; color:var(--text-muted); display:flex; }
.chart-tab-star svg{ width:14px; height:14px; }
.chart-switch-svg{ width:100%; height:auto; display:block; }

@keyframes chipPop{ 0%,100%{ opacity:.55; transform:scale(.94); } 15%{ opacity:1; transform:scale(1); } 40%{ opacity:.55; transform:scale(.94); } }
@keyframes lineBreathe{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }

.stat-number{ font-size:2.2rem; font-weight:900; font-family:'JetBrains Mono',monospace; background:linear-gradient(120deg, var(--cyan), var(--purple)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ring-wrap{ width:78px; height:78px; position:relative; margin:auto; flex:none; }
.ring-wrap svg{ transform:rotate(-90deg); }
.ring-bg{ fill:none; stroke:var(--border); stroke-width:8; }
.ring-fg{ fill:none; stroke:url(#ringGrad); stroke-width:8; stroke-linecap:round; stroke-dasharray:220; stroke-dashoffset:220; transition:stroke-dashoffset 1.4s cubic-bezier(.34,1.56,.64,1); }
.ring-center{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.95rem; font-family:'JetBrains Mono',monospace; }

.trust-stat{ text-align:center; padding:1.1rem .5rem; }
.trust-stat .num{ font-size:1.5rem; font-weight:800; font-family:'JetBrains Mono',monospace; color:var(--cyan); }
.trust-stat .lab{ font-size:.72rem; color:var(--text-muted); margin-top:.2rem; }

.step-card{ text-align:center; padding:1.6rem 1.2rem; position:relative; }
.step-num{ width:46px; height:46px; border-radius:50%; background:var(--card-bg-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-weight:800; font-family:'JetBrains Mono',monospace; color:var(--purple); margin:0 auto 1rem; }
.step-connector{ position:absolute; top:23px; left:calc(50% + 46px); width:calc(100% - 46px); height:1px; background:repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); }
@media (max-width:767.98px){ .step-connector{ display:none; } }

.testimonial-wrap{ display:flex; align-items:center; gap:1rem; max-width:760px; margin:0 auto; }
.testimonial-card{ flex:1; padding:2.2rem 2rem; text-align:center; min-height:270px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.testimonial-stars{ display:flex; gap:.2rem; color:#FFC93C; margin-bottom:1rem; }
.testimonial-stars svg{ width:16px; height:16px; fill:#FFC93C; }
.testimonial-quote{ font-size:1.12rem; font-weight:500; line-height:1.6; color:var(--text-primary); max-width:520px; margin-bottom:1.4rem; min-height:84px; }
.testimonial-person{ display:flex; align-items:center; gap:.75rem; }
.testimonial-avatar{ width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg, var(--purple), var(--cyan)); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.82rem; color:#0A0D14; flex:none; }
.testimonial-name{ font-weight:700; font-size:.9rem; text-align:left; }
.testimonial-role{ font-size:.78rem; color:var(--text-muted); text-align:left; }
.testimonial-nav{ width:42px; height:42px; border-radius:50%; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-secondary); display:flex; align-items:center; justify-content:center; transition:.2s; flex:none; }
.testimonial-nav:hover{ border-color:var(--purple); color:var(--purple); }
@media (max-width:575.98px){ .testimonial-nav{ display:none; } .testimonial-card{ padding:1.8rem 1.3rem; } }
.testimonial-dots{ display:flex; justify-content:center; gap:.5rem; margin-top:1.5rem; }
.testimonial-dots button{ width:8px; height:8px; border-radius:50%; border:none; background:var(--border); padding:0; transition:.25s; }
.testimonial-dots button.active{ background:var(--purple); width:22px; border-radius:99px; }

.accordion-item{ background:var(--card-bg); border:1px solid var(--border) !important; border-radius:1rem !important; margin-bottom:.75rem; overflow:hidden; }
.accordion-button{ --bs-accordion-btn-icon:none; --bs-accordion-btn-active-icon:none; background:var(--card-bg); color:var(--text-primary); font-weight:700; font-size:.95rem; box-shadow:none !important; padding:1.1rem 1.3rem; }
.accordion-button:not(.collapsed){ background:var(--card-bg-2); color:var(--purple); }
.accordion-button::after{ content:none; }
.accordion-button svg{ width:16px; height:16px; transition:transform .25s ease; margin-left:auto; flex:none; }
.accordion-button:not(.collapsed) svg{ transform:rotate(180deg); color:var(--purple); }
.accordion-body{ color:var(--text-secondary); font-size:.88rem; line-height:1.65; padding:0.7rem 1.3rem 1.2rem; }

.price-toggle{ display:inline-flex; align-items:center; border:1px solid var(--border); border-radius:99px; padding:.25rem; background:var(--card-bg-2); position:relative; }
.price-toggle button{ border:none; background:transparent; color:var(--text-secondary); font-weight:700; font-size:.85rem; padding:.5rem 1.15rem; border-radius:99px; transition:.2s; position:relative; z-index:1; }
.price-toggle button.active{ background:var(--purple); color:#fff; }
.save-badge{ font-size:.65rem; font-weight:800; background:rgba(0,229,160,.14); color:var(--up); border-radius:99px; padding:.1rem .45rem; margin-left:.4rem; }
.pricing-card{ border:1px solid var(--border); border-radius:1.4rem; padding:2rem 1.6rem; background:var(--card-bg); height:100%; position:relative; transition:.3s ease; }
.pricing-card.featured{ border-color:var(--purple); box-shadow:0 20px 50px rgba(157,78,221,.2); transform:scale(1.03); }
@media (max-width:991.98px){ .pricing-card.featured{ transform:none; } }
.pricing-card.highlight-pulse{ border-color:var(--cyan) !important; box-shadow:0 0 0 3px rgba(0,229,255,.22), 0 20px 50px rgba(0,229,255,.22); }
.pricing-ribbon{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:linear-gradient(135deg, var(--purple), #6E2FCF); color:#fff; font-size:.7rem; font-weight:800; letter-spacing:.04em; padding:.35rem 1rem; border-radius:99px; box-shadow:0 8px 20px rgba(157,78,221,.4); white-space:nowrap; }
.plan-name{ font-weight:800; font-size:1.15rem; }
.plan-sub{ font-size:.82rem; color:var(--text-muted); margin-bottom:1.2rem; }
.plan-price{ font-size:2.4rem; font-weight:900; font-family:'JetBrains Mono',monospace; }
.plan-period{ font-size:.85rem; color:var(--text-muted); font-weight:500; }
.plan-features{ list-style:none; padding:0; margin:0.1rem 0 1.6rem; }
.plan-features li{ display:flex; align-items:flex-start; gap:.6rem; font-size:.86rem; color:var(--text-secondary); padding:.4rem 0; }
.plan-features svg{ width:16px; height:16px; color:var(--up); flex:none; margin-top:.15rem; }

.estimator-card{ padding:2rem; }
.estimator-range{ accent-color:var(--purple); height:1.2rem; }
.estimator-range::-webkit-slider-runnable-track{ background:var(--border); height:5px; border-radius:99px; }
.estimator-range::-webkit-slider-thumb{ margin-top:-6px; }
.estimator-result{ background:var(--card-bg-2); border:1px solid var(--border); border-radius:1rem; padding:1.3rem 1.5rem; text-align:center; }
.estimator-plan{ font-size:1.9rem; font-weight:800; background:linear-gradient(120deg, var(--cyan), var(--purple)); -webkit-background-clip:text; background-clip:text; color:transparent; transition:.25s ease; }

.vr-card{ padding:1.4rem; }
.vr-tabs{ display:inline-flex; border:1px solid var(--border); border-radius:.7rem; padding:.2rem; background:var(--card-bg-2); }
.vr-tabs button{ border:none; background:transparent; color:var(--text-secondary); font-weight:700; font-size:.8rem; padding:.4rem .85rem; border-radius:.5rem; transition:.2s; }
.vr-tabs button.active{ background:var(--purple); color:#fff; }
.mover-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-top:1px solid var(--border); gap:.75rem; }
.mover-row:first-child{ border-top:none; padding-top:0; }
.coin-avatar{ width:34px; height:34px; border-radius:50%; background:var(--card-bg-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.8rem; flex:none; }
.mover-id{ display:flex; align-items:center; gap:.6rem; flex:1; min-width:0; }
.mover-symbol{ font-weight:700; font-size:1.2rem; }
.mover-spark{ flex:none; }
@media (max-width:420px){ .mover-spark{ display:none; } }
.mover-price { font-weight: 500; font-size: 0.85rem; color: var(--text-muted, #6c757d); min-width: 70px; text-align: right; }
.mover-change{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.85rem; padding:.2rem .5rem; border-radius:.4rem; flex:none; min-width:70px; text-align:right; }
.mover-change.up{ color:var(--up); background:rgba(0,229,160,.1); }
.mover-change.down{ color:var(--down); background:rgba(255,92,122,.1); }
.spike-row{ padding:.85rem; border:1px solid var(--border); border-radius:.9rem; background:var(--card-bg-2); margin-bottom:.7rem; transition:.3s; }
.spike-row.flash{ animation:flashRow 1.4s ease-out; }
.spike-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.5rem; }
.spike-pair{ font-weight:700; font-size:.88rem; display:flex; align-items:center; gap:.5rem; }
.spike-time{ font-size:.72rem; color:var(--text-muted); }
.spike-mult{ font-family:'JetBrains Mono',monospace; font-weight:800; color:var(--live); font-size:1rem; }
.volume-bar-track{ height:5px; background:var(--border); border-radius:99px; overflow:hidden; margin-top:.5rem; }
.volume-bar-fill{ height:100%; background:linear-gradient(90deg, var(--purple), var(--live)); border-radius:99px; transition:width .6s ease; }

.site-footer{ border-top:1px solid var(--border); padding:2.5rem 0 2rem; background:var(--card-bg-2); }
.footer-heading{ font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; color:var(--text-muted); margin-bottom:1rem; }
.footer-link{ display:block; color:var(--text-secondary); font-size:.88rem; padding:.35rem 0; transition:.2s; }
.footer-link:hover{ color:var(--cyan); }
.footer-social{ width:38px; height:38px; border-radius:10px; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-secondary); transition:.2s; }
.footer-social:hover{ color:var(--text-primary); border-color:var(--purple); }
.footer-social svg{ width:17px; height:17px; }
.newsletter-input{ background:var(--bg); border:1px solid var(--border); color:var(--text-primary); border-radius:.7rem 0 0 .7rem; }
.newsletter-input:focus{ background:var(--bg); color:var(--text-primary); box-shadow:none; border-color:var(--purple); }
.footer-bottom{ font-size:.78rem; color:var(--text-muted); }
.footer-legal a{ color:var(--text-muted); margin-left:1rem; }
.footer-legal a:hover{ color:var(--text-secondary); }

@keyframes floatY{ 0%,100%{ transform:perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(0); } 50%{ transform:perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-12px); } }
@keyframes floatBadge{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-9px); } }
@keyframes tickerScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@keyframes radarSpin{ to{ transform:rotate(360deg); } }
@keyframes blipPulse{ 0%,100%{ opacity:.5; transform:scale(.85); } 50%{ opacity:1; transform:scale(1.15); } }

/* ================================================================================================
   12. STRATEGY BUILDER / DASHBOARD ONLY (cryptostrat-ai.html)
   ================================================================================================ */
.app-header{ position:sticky; top:0; z-index:1030; background:var(--nav-bg); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--border); }
.status-pill{ display:inline-flex; align-items:center; gap:.5rem; border:1px solid var(--border); background:var(--card-bg-2); border-radius:99px; padding:.4rem .85rem .4rem .65rem; font-size:.78rem; color:var(--text-secondary); }
.dot{ width:8px; height:8px; border-radius:50%; flex:none; position:relative; }
.dot-binance{ background:var(--binance); }
.dot-bybit{ background:var(--bybit); }
.dot-binance::after, .dot-bybit::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid currentColor; animation:pulseRing 2.2s cubic-bezier(0,0,.2,1) infinite; }
.dot-binance::after{ border-color:var(--binance); }
.dot-bybit::after{ border-color:var(--bybit); animation-delay:.3s; }

.stepper{ display:flex; align-items:center; gap:.5rem; }
.step-dot{ width:32px; height:32px; border-radius:50%; border:1px solid var(--border); color:var(--text-muted); display:flex; align-items:center; justify-content:center; font-size:.78rem; font-weight:600; transition:.25s; background:var(--card-bg-2); }
.step-dot.active{ border-color:var(--purple); color:var(--purple); box-shadow:0 0 14px rgba(157,78,221,.35); }
.step-dot.done{ background:var(--purple); border-color:var(--purple); color:#fff; }
.step-line{ width:26px; height:1px; background:var(--border); }

.condition-row{ border:1px solid var(--border); border-radius:.9rem; padding:.9rem .9rem .55rem; background:var(--card-bg-2); position:relative; }
.condition-row:hover { border-color: rgba(157,78,221,.4); }
.btn-remove-condition{ width:32px; height:32px; border-radius:9px; border:1px solid rgba(255,255,255,.1); background:transparent; color:var(--text-muted, #8B93A7); display:inline-flex; align-items:center; justify-content:center; transition:.2s; padding:6px 10px; }
.btn-remove-condition:hover{ color: #ff4d6d; border-color: #ff4d6d; background: rgba(255,77,109,.1); }
.btn-add-condition{ width:100%; border:1.5px dashed var(--border); background:transparent; color:var(--text-secondary); border-radius:.9rem; padding:.75rem; font-weight:600; font-size:.88rem; transition:.2s; display:flex; align-items:center; justify-content:center; gap:.5rem; }
.btn-add-condition:hover{ border-color:var(--purple); color:var(--purple); background:rgba(157,78,221,.04); }

.channel-card{ border:1px solid var(--border); border-radius:1rem; padding:1.1rem; background:var(--card-bg-2); height:100%; transition:.2s; }
.channel-card.on{ border-color:var(--cyan); box-shadow:0 0 18px rgba(0,229,255,.12); }

.stat-chip{ border:1px solid var(--border); border-radius:.9rem; padding:.75rem .9rem; background:var(--card-bg-2); }
.stat-chip .val{ font-size:1.28rem; font-weight:700; line-height:1; }
.stat-chip .lab{ font-size:.68rem; color:var(--text-muted); letter-spacing:.06em; text-transform:uppercase; margin-top:.3rem; }

.chart-wrap{ height:210px; position:relative; }
.metric-toggle{ display:flex; border:1px solid var(--border); border-radius:.7rem; padding:.2rem; background:var(--card-bg-2); }
.metric-toggle button{ border:none; background:transparent; color:var(--text-secondary); font-size:.76rem; font-weight:600; padding:.35rem .7rem; border-radius:.5rem; transition:.2s; }
.metric-toggle button.active{ background:var(--purple); color:#fff; }
.metric-toggle button.active[data-metric="hours"]{ background:var(--cyan); color:#04222A; }
.footer-note{ color:var(--text-muted); font-size:.78rem; }

.feature-benefit-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.benefit-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.benefit-icon.cyan { background: rgba(0,229,255,.15); color: #00E5FF; }
.benefit-icon.purple { background: rgba(157,78,221,.15); color: #9D4EDD; }
.benefit-icon.orange { background: rgba(255,158,0,.15); color: #FF9E00; }
.pro-crown-badge { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,229,255,.2), rgba(157,78,221,.25)); border: 1px solid rgba(0,229,255,.4); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #00E5FF; }
.badge-delay { font-size: .7rem; padding: 3px 8px; border-radius: 6px; background: rgba(255,158,0,.12); color: #FFB703; border: 1px solid rgba(255,158,0,.3); }
.badge-realtime { font-size: .7rem; padding: 3px 8px; border-radius: 6px; background: rgba(0,229,255,.12); color: #00E5FF; border: 1px solid rgba(0,229,255,.3); }


/* ================================================================================================
   13. ACCOUNT PAGE ONLY (account.html)
   ================================================================================================ */
.app-topbar{ position:sticky; top:0; z-index:1040; background:var(--nav-bg); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--border); }
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:.8rem 0; gap:1rem; }
.app-nav-pills{ display:flex; gap:.25rem; background:var(--card-bg-2); border:1px solid var(--border); border-radius:99px; padding:.25rem; }
.pill-link{ display:flex; align-items:center; gap:.4rem; padding:.45rem .95rem; border-radius:99px; font-size:.85rem; font-weight:600; color:var(--text-secondary); transition:.2s; }
.pill-link:hover{ color:var(--text-primary); }
.pill-link.active{ background:var(--purple); color:#fff; }
.pill-link svg{ width:15px; height:15px; }
.topbar-actions{ display:flex; align-items:center; gap:.55rem; }
.notif-dot{ position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--live); border:1.5px solid var(--card-bg-2); }
.user-menu-btn{ display:flex; align-items:center; gap:.55rem; background:var(--card-bg-2); border:1px solid var(--border); border-radius:99px; padding:.3rem .9rem .3rem .3rem; color:var(--text-primary); font-weight:600; font-size:.85rem; transition:.2s; }
.user-menu-btn:hover{ border-color:var(--purple); }
.user-menu-btn svg.chev{ width:14px; height:14px; color:var(--text-muted); }
.notif-item{ display:flex; gap:.6rem; padding:.6rem .7rem; border-radius:.7rem; }
.notif-item:hover{ background:var(--card-bg-2); }
.notif-item .row-icon{ width:32px; height:32px; }
.notif-item .row-icon svg{ width:15px; height:15px; }
.notif-text{ font-size:.82rem; color:var(--text-primary); line-height:1.4; }
.notif-time{ font-size:.72rem; color:var(--text-muted); margin-top:.15rem; }

.account-body{ display:flex; align-items:flex-start; gap:2rem; padding:2rem 0 5rem; }
.account-sidebar{ width:262px; flex:none; position:sticky; top:88px; flex-direction:column; }
.sidebar-user-card{ background:var(--card-bg); border:1px solid var(--border); border-radius:1.1rem; padding:1.3rem; text-align:center; margin-bottom:1.1rem; }
.chip-plan{ display:inline-block; margin-top:.65rem; background:linear-gradient(135deg, var(--purple), #6E2FCF); color:#fff; font-size:.64rem; font-weight:800; letter-spacing:.05em; padding:.3rem .7rem; border-radius:99px; }
.sidebar-nav{ display:flex; flex-direction:column; gap:.2rem; }
.sidebar-nav-item{ display:flex; align-items:center; gap:.7rem; padding:.68rem .85rem; border-radius:.7rem; border:none; background:transparent; color:var(--text-secondary); font-weight:600; font-size:.86rem; text-align:left; transition:.18s; width:100%; }
.sidebar-nav-item svg{ width:17px; height:17px; flex:none; }
.sidebar-nav-item:hover{ background:var(--card-bg-2); color:var(--text-primary); }
.sidebar-nav-item.active{ background:rgba(157,78,221,.1); color:var(--purple); }
.sidebar-logout{ display:flex; align-items:center; gap:.7rem; padding:.68rem .85rem; border-radius:.7rem; color:var(--text-muted); font-weight:600; font-size:.86rem; margin-top:.9rem; transition:.18s; }
.sidebar-logout:hover{ color:var(--down); background:rgba(255,92,122,.07); }
.sidebar-logout svg{ width:17px; height:17px; }

.account-tabstrip{ display:flex; gap:.5rem; overflow-x:auto; padding:0 0 .3rem; margin-bottom:1.3rem; }
.account-tabstrip::-webkit-scrollbar{ display:none; }
.tabstrip-item{ flex:none; display:flex; align-items:center; gap:.4rem; padding:.5rem 1rem; border-radius:99px; border:1px solid var(--border); background:var(--card-bg-2); color:var(--text-secondary); font-size:.82rem; font-weight:600; white-space:nowrap; }
.tabstrip-item.active{ background:var(--purple); border-color:var(--purple); color:#fff; }
.tabstrip-item svg{ width:14px; height:14px; }

.account-main{ flex:1; min-width:0; }
.account-panel{ display:none; }
.account-panel.active{ display:block; animation:panelIn .3s ease; }
.panel-header{ margin-bottom:1.5rem; }
.panel-title{ font-size:1.5rem; font-weight:800; letter-spacing:-.01em; }
.panel-sub{ color:var(--text-secondary); font-size:.9rem; margin-top:.25rem; }
.settings-section{ margin-bottom:1.5rem; }
.settings-section:last-child{ margin-bottom:0; }
.section-title{ font-weight:800; font-size:1.02rem; margin-bottom:.15rem; }
.section-desc{ font-size:.82rem; color:var(--text-muted); margin-bottom:1.2rem; }

.trader-card{ position:relative; border-radius:1.4rem; padding:1.8rem 2rem; overflow:hidden; background:linear-gradient(120deg, rgba(157,78,221,.16), transparent 55%), linear-gradient(300deg, rgba(0,229,255,.12), transparent 55%), var(--card-bg); border:1px solid var(--border); display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.trader-card::before{ content:''; position:absolute; inset:0; opacity:.3; pointer-events:none; background:repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 26px); }
.trader-chip-icon{ width:38px; height:26px; border-radius:6px; background:linear-gradient(135deg, var(--cyan), var(--purple)); position:relative; flex:none; }
.trader-chip-icon::before{ content:''; position:absolute; inset:4px; border:1px solid rgba(255,255,255,.4); border-radius:3px; background:repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.28) 8px 9px); }
.trader-card .avatar-circle{ width:72px; height:72px; font-size:1.5rem; position:relative; z-index:1; }
.trader-info{ position:relative; z-index:1; }
.trader-name-row{ display:flex; align-items:center; gap:.45rem; }
.trader-name-row .name{ font-size:1.2rem; font-weight:800; }
.trader-name-row svg{ width:16px; height:16px; color:var(--cyan); }
.trader-meta{ color:var(--text-secondary); font-size:.85rem; margin-top:.15rem; }
.trader-id{ font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--text-muted); letter-spacing:.04em; margin-top:.35rem; }
.trader-card-right{ margin-left:auto; display:flex; flex-direction:column; align-items:flex-end; gap:.55rem; position:relative; z-index:1; }
@media (max-width:767.98px){ .trader-card{ padding:1.4rem; } .trader-card-right{ margin-left:0; width:100%; align-items:flex-start; } }

.stat-card{ background:var(--card-bg); border:1px solid var(--border); border-radius:1.1rem; padding:1.2rem 1.3rem; height:100%; }
.stat-card .stat-icon{ width:36px; height:36px; border-radius:.65rem; background:var(--card-bg-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--cyan); margin-bottom:.7rem; }
.stat-card .stat-icon svg{ width:17px; height:17px; }
.stat-card .stat-val{ font-size:1.5rem; font-weight:800; font-family:'JetBrains Mono',monospace; }
.stat-card .stat-lab{ font-size:.78rem; color:var(--text-muted); margin-top:.1rem; }

.danger-zone{ border:1px solid rgba(255,92,122,.35); background:rgba(255,92,122,.04); border-radius:1.1rem; padding:1.3rem 1.5rem; }
.danger-zone .row-title{ color:var(--down); }
.usage-row{ margin-bottom:1rem; }
.usage-row:last-child{ margin-bottom:0; }
.usage-label{ display:flex; justify-content:space-between; font-size:.82rem; margin-bottom:.4rem; }
.usage-label .val{ color:var(--text-muted); font-family:'JetBrains Mono',monospace; }
.referral-code{ display:flex; align-items:center; gap:.6rem; background:var(--card-bg-2); border:1px dashed var(--border); border-radius:.7rem; padding:.6rem .8rem; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.85rem; }
.referral-code button{ margin-left:auto; }

.border-style-chart {border: 1px solid #1f2635;}

.qr-box{ width:170px; height:170px; background:#fff; border-radius:.8rem; padding:14px; margin:0 auto 1rem; display:grid; grid-template-columns:repeat(14,1fr); grid-template-rows:repeat(14,1fr); gap:2px; }
.qr-box span{ border-radius:1px; }
.qr-box span.on{ background:#0A0D14; }
.otp-inputs{ display:flex; gap:.5rem; justify-content:center; }
.otp-inputs input{ width:44px; height:52px; text-align:center; font-size:1.2rem; font-weight:700; }

.card-mock{ display:flex; align-items:center; gap:.9rem; background:var(--card-bg-2); border:1px solid var(--border); border-radius:.9rem; padding:.9rem 1.1rem; }
.card-brand-icon{ width:42px; height:28px; border-radius:5px; background:linear-gradient(135deg,#2b3554,#141a2b); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:.58rem; letter-spacing:.02em; flex:none; }


/* ================================================================================================
   14. AUTH PAGES ONLY (register.html / login.html)
   ================================================================================================ */
.auth-shell{ min-height:100vh; display:flex; }

.auth-visual{ display:none; flex:1; max-width:560px; position:relative; padding:3rem; flex-direction:column; justify-content:space-between; background: radial-gradient(circle at 15% 10%, rgba(157,78,221,.22), transparent 45%), radial-gradient(circle at 85% 88%, rgba(0,229,255,.16), transparent 45%), var(--card-bg-2); border-right:1px solid var(--border); overflow:hidden; }
.auth-visual::before{ content:''; position:absolute; inset:0; pointer-events:none; opacity:.7; background: repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 42px), repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 42px); }
.auth-visual > *{ position:relative; z-index:1; }
.auth-logo{ display:flex; align-items:center; gap:.55rem; }
.auth-visual-content h2{ font-size:1.65rem; font-weight:800; letter-spacing:-.01em; line-height:1.25; margin-bottom:.75rem; max-width:400px; }
.auth-visual-content p{ color:var(--text-secondary); font-size:.94rem; margin-bottom:1.5rem; max-width:380px; }
.trust-chip-row{ display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:1.4rem; }
.trust-chip{ background:var(--card-bg); border:1px solid var(--border); border-radius:99px; padding:.4rem .85rem; font-size:.75rem; font-weight:600; color:var(--text-secondary); }
.trust-chip strong{ color:var(--cyan); font-family:'JetBrains Mono',monospace; }
.mini-terminal-card{ background:var(--card-bg); border:1px solid var(--border); border-radius:1rem; padding:1rem 1.1rem; margin-bottom:1.3rem; }
.mini-terminal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem; font-weight:700; font-size:.82rem; }
.mini-feed{ font-size:.75rem; line-height:1.75; }
.mini-feed .feed-line{ display:flex; gap:.5rem; flex-wrap:wrap; align-items:baseline; border-top:1px solid var(--border); padding-top:.4rem; margin-top:.4rem; }
.mini-feed .feed-line:first-child{ border-top:none; padding-top:0; margin-top:0; }
.mini-feed.flash{ animation:flashRow 1.4s ease-out; }
.mini-testimonial{ background:var(--card-bg); border:1px solid var(--border); border-radius:1rem; padding:1rem 1.1rem; }
.mini-testimonial p{ font-size:.85rem; color:var(--text-primary); margin-bottom:.7rem; font-style:italic; line-height:1.5; }
.welcome-status{ background:var(--card-bg); border:1px solid var(--border); border-radius:1rem; padding:1rem 1.1rem; display:flex; align-items:center; gap:.8rem; }
.welcome-status .row-icon{ width:38px; height:38px; border-radius:.7rem; background:var(--card-bg-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--up); flex:none; }
.auth-visual-footer{ font-size:.75rem; color:var(--text-muted); }

.auth-form-wrap{ flex:1; display:flex; align-items:center; justify-content:center; padding:3rem 1.5rem; min-height:100vh; }
.auth-form-inner{ width:100%; max-width:420px; }
.auth-logo-mobile{ display:flex; align-items:center; gap:.5rem; margin-bottom:2rem; }
.auth-title{ font-size:1.7rem; font-weight:800; letter-spacing:-.01em; margin-bottom:.4rem; }
.auth-sub{ color:var(--text-secondary); font-size:.92rem; margin-bottom:2rem; }
.auth-switch{ text-align:center; margin-top:1.7rem; font-size:.88rem; color:var(--text-secondary); }
.auth-switch a{ color:var(--purple); font-weight:700; }
.auth-switch a:hover{ color:var(--cyan); }

@media (min-width:992px){ .auth-visual{ display:flex; } }
@media (min-width:1400px){ .container-page,.container-page-lg,.container-page-md,.container-page-sm,.container-page-xl,.container-page-xxl{max-width:1780px} }
@media (max-width:767.98px){ .chart-wrap{ height:180px; } }


/* ================================================================================================
   15. FILTER BAR / SEARCH / DATA TABLE (signals.html)
   ================================================================================================ */
.filter-bar{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:0.85rem; align-items:end; }
.filter-field{ flex:1; min-width:150px; }

.search-input-wrap{ position:relative; width:100%; max-width:340px; }
.search-input-wrap svg{ position:absolute; top:50%; left:.85rem; transform:translateY(-50%); width:16px; height:16px; color:var(--text-muted); pointer-events:none; }
.search-input-wrap .form-control{ padding-left:2.4rem !important; }

.table-wrap{ overflow-x:auto; }
.data-table{ width:100%; border-collapse:collapse; min-width:860px; }
.data-table thead th{ text-align:left; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); padding:.9rem 1rem; border-bottom:1px solid var(--border); white-space:nowrap; }
.data-table tbody td{ padding:.9rem 1rem; border-bottom:1px solid var(--border); font-size:.86rem; vertical-align:middle; }
.data-table tbody tr:last-child td{ border-bottom:none; }
.data-table tbody tr{ transition:background-color .15s; }
.data-table tbody tr:hover{ background:var(--card-bg-2); }
.table-time{ font-family:'JetBrains Mono',monospace; color:var(--text-secondary); white-space:nowrap; }
.table-ticker{ display:flex; flex-direction:column; gap:.35rem; align-items:flex-start; }
.table-ticker .sym{ font-weight:700; font-size:.88rem; }
.table-tf{ font-size:.78rem; color:var(--text-secondary); background:var(--card-bg-2); border:1px solid var(--border); border-radius:.4rem; padding:.15rem .5rem; display:inline-block; }
.table-notification{ color:var(--text-primary); line-height:1.45; }
.table-price{ font-family:'JetBrains Mono',monospace; font-weight:700; display:inline-flex; align-items:center; gap:.35rem; white-space:nowrap; }
.table-price svg{ width:14px; height:14px; }
.table-price.up{ color:var(--up); } .table-price.up svg{ color:var(--up); }
.table-price.down{ color:var(--down); } .table-price.down svg{ color:var(--down); }
.table-empty-row td{ text-align:center; padding:3rem 1rem; color:var(--text-muted); }

.view-switcher-wrap { display: inline-flex; background: var(--card-bg-2, #0C1119); border: 1px solid var(--border, #1F2635); border-radius: 99px; padding: 0.2rem; }
.view-btn { border: none; background: transparent; color: var(--text-secondary, #8B93A7); padding: 0.35rem 0.95rem; font-size: 0.84rem; font-weight: 700; border-radius: 99px; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.4rem; }
.view-btn.active { background: var(--purple, #9D4EDD); color: #fff; box-shadow: 0 0 12px rgba(157, 78, 221, 0.4); }

.charts-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-bottom: 1.5rem; }
@media (max-width: 1200px) { .charts-grid-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { 
  .charts-grid-container { grid-template-columns: 1fr; } 
  .btn-grad-cyan{ border-radius: .5rem; padding: .4rem 0.5rem; font-size: 0.9rem; } 
  .btn-remove-condition { width: 82%; height: 38px; }
  .brand-logo-img {
    height: 34px;
  }  
}

.grid-chart-card { background: var(--card-bg, #111622); border: 1px solid var(--border, #1F2635); border-radius: 0.85rem; overflow: hidden; display: flex; flex-direction: column; height: 375px; position: relative; transition: border-color 0.2s; }
.grid-chart-card.target-slot { border-color: var(--cyan, #00E5FF); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
.grid-chart-header { background: var(--card-bg-2, #0C1119); border-bottom: 1px solid var(--border, #1F2635); padding: 0.35rem 0.65rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; cursor: pointer; }
.grid-chart-canvas { flex: 1; width: 100%; height: 100%; }

.grid-coin-select { background-color: var(--card-bg-2, #0C1119) !important; color: #9d4edd !important; border: 1px solid var(--border, #1F2635) !important; border-radius: 6px; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.4rem; cursor: pointer; }
.grid-coin-select option { background-color: #111622 !important; color: #E9ECF5 !important; padding: 6px 10px; border: 1px solid #a951f0; }

.grid-tool-btn { width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--text-secondary, #8B93A7); font-size: 0.75rem; cursor: pointer; transition: all 0.15s; }
.grid-tool-btn:hover { background: rgba(0, 229, 255, 0.15); color: var(--cyan, #00E5FF); }

.radar-pulse-icon { display: inline-block; width: 18px; height: 18px; color: var(--cyan, #00E5FF); animation: radarRotate 4s linear infinite; vertical-align: middle; }
.radar-pulse-icon.refreshing { animation: radarSpinFast 0.8s linear infinite; color: var(--purple, #9D4EDD); }
@keyframes radarRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes radarSpinFast { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.row-flash-new { animation: highlightRow 2.5s ease-out; }
@keyframes highlightRow { 0% { background: rgba(0, 229, 255, 0.22); } 100% { background: transparent; } }

.clickable-ticker { color: #9d4edd; cursor: pointer; font-weight: 700; transition: text-shadow 0.15s; }
.clickable-ticker:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(0, 229, 255, 0.5); }

.multi-dropdown-wrap { position: relative; }
.multi-dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 1020; background: var(--card-bg, #111622); border: 1px solid var(--border, #1F2635); border-radius: 0.65rem; max-height: 280px; overflow-y: auto; padding: 0.5rem; box-shadow: 0 14px 35px rgba(0,0,0,0.6); display: none; }
.multi-dropdown-item { padding: 0.35rem 0.5rem; border-radius: 0.4rem; font-size: 0.82rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; user-select: none; color: var(--text-primary, #E9ECF5); }
.multi-dropdown-item:hover { background: var(--card-bg-2, #0C1119); }
.multi-dropdown-item.header { font-weight: 700; color: var(--cyan, #00E5FF); border-top: 1px solid var(--border, #1F2635); margin-top: 0.3rem; padding-top: 0.4rem; }
.multi-dropdown-item.header:first-child { border-top: none; margin-top: 0; padding-top: 0.35rem; }

.pagination-counter-badge { color: var(--bs-body-color, #E9ECF5) !important; background: transparent !important; border-left: none !important; border-right: none !important; font-weight: 600; }

.searchable-ticker-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; min-width: 220px; background: var(--bs-body-bg, #1A1E29); border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.12)); border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); z-index: 1050; margin-top: 4px; }
.ticker-option-item { padding: 8px 12px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--bs-body-color, #E9ECF5); transition: background 0.15s ease; }
.ticker-option-item:hover { background: rgba(0, 229, 255, 0.12); color: #00E5FF; }
.ticker-option-item.active { background: rgba(0, 229, 255, 0.18); color: #00E5FF; font-weight: bold; }


/* ================================================================================================
   16. ГРАФИК / CHART
   ================================================================================================ */
.chart-layout { display: flex; flex-direction: column; height: 100vh; }
.chart-topbar { background: var(--card-bg, #111622); border-bottom: 1px solid var(--border, #1F2635); padding: 0.4rem 0.8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; z-index: 20; }
.chart-body-wrap { display: flex; flex: 1; position: relative; overflow: hidden; }
.chart-sidebar { width: 44px; background: var(--card-bg, #111622); border-right: 1px solid var(--border, #1F2635); display: flex; flex-direction: column; align-items: center; padding: 0.6rem 0; gap: 0.35rem; z-index: 20; }
.tool-btn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--text-secondary, #8B93A7); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease; }
.tool-btn:hover { background: var(--card-bg-2, #0C1119); color: var(--cyan, #00E5FF); border-color: rgba(0, 229, 255, 0.2); }
.tool-btn.active { background: rgba(157, 78, 221, 0.25); border-color: var(--purple, #9D4EDD); color: #fff; box-shadow: 0 0 8px rgba(157, 78, 221, 0.4); }
.chart-container-fluid { flex: 1; height: 100%; position: relative; }
#klineChart { width: 100%; height: 100%; }
.tf-btn { padding: 0.2rem 0.5rem; font-size: 0.76rem; font-weight: 700; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--text-secondary, #8B93A7); cursor: pointer; transition: 0.15s; }
.tf-btn:hover { color: var(--text-primary, #E9ECF5); background: var(--card-bg-2, #0C1119); }
.tf-btn.active { background: var(--purple, #9D4EDD); color: #fff; }

.coin-select-wrap { position: relative; min-width: 150px; }
.coin-dropdown-menu { position: absolute; top: 100%; left: 0; width: 240px; max-height: 300px; overflow-y: auto; background: var(--card-bg, #111622); border: 1px solid var(--border, #1F2635); border-radius: 8px; box-shadow: 0 12px 35px rgba(0,0,0,0.6); z-index: 1000; display: none; }
.coin-item { padding: 0.45rem 0.75rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; color: var(--text-primary, #E9ECF5); }
.coin-item:hover { background: rgba(0, 229, 255, 0.12); color: var(--cyan, #00E5FF); }
.brand-badge { font-size: 0.88rem; font-weight: 800; letter-spacing: -0.02em; }
.live-indicator-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up, #00E5A0); box-shadow: 0 0 8px var(--up, #00E5A0); display: inline-block; animation: pulse 1.5s infinite; }

.indicator-setting-row { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border, #1F2635); border-radius: 8px; padding: 0.55rem 0.8rem; margin-bottom: 0.45rem; }
.param-input-sm { width: 60px; height: 28px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; padding: 0.15rem 0.35rem; background: var(--card-bg-2, #0C1119); border: 1px solid var(--border, #1F2635); color: var(--text-primary, #E9ECF5); border-radius: 5px; transition: border-color 0.15s; -webkit-appearance: none; -moz-appearance: textfield; appearance: textfield; }
.param-input-sm::-webkit-outer-spin-button, .param-input-sm::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.param-input-sm:focus { border-color: var(--cyan, #00E5FF); box-shadow: 0 0 6px rgba(0, 229, 255, 0.3); outline: none; }

@media (max-width: 400px) { .param-input-sm { width: 52px; } }
@media (max-width:767.98px){ .app-nav-pills { display: flex; gap: .25rem; background: var(--card-bg-2); border: 1px solid var(--border); border-radius: 10px; padding: .55rem; } }

/* Иерархия слоёв модальных окон */
#chartSettingsModal, #noteModal, #priceAlertModal { z-index: 1070 !important; }
#subscribeModal { z-index: 1090 !important; }
.modal-backdrop + .modal-backdrop { z-index: 1065 !important; }
.modal-backdrop + .modal-backdrop + .modal-backdrop { z-index: 1085 !important; }

/* Светлая тема для модальных окон графика */
[data-bs-theme="light"] #chartModal .modal-content,
[data-bs-theme="light"] #chartSettingsModal .modal-content,
[data-bs-theme="light"] #noteModal .modal-content {
  background-color: #FFFFFF !important;
  color: #11141D !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
[data-bs-theme="light"] #noteModal .modal-title,
[data-bs-theme="light"] #noteModal label { color: #11141D !important; }
[data-bs-theme="light"] #noteModal .form-control { background-color: #F8F9FA !important; color: #11141D !important; border-color: #CED4DA !important; }
[data-bs-theme="light"] #chartSettingsModal .form-check-label,
[data-bs-theme="light"] #chartSettingsModal label,
[data-bs-theme="light"] #chartSettingsModal .modal-title,
[data-bs-theme="light"] #chartSettingsModal .small { color: #11141D !important; }
[data-bs-theme="light"] #chartSettingsModal .form-control { background-color: #F8F9FA !important; color: #11141D !important; border-color: #CED4DA !important; }
[data-bs-theme="light"] .btn-close { filter: none !important; }

/* Стили модального окна графика */
.chart-modal-header { background: var(--card-bg, #111622); border-bottom: 1px solid var(--border, #1F2635) !important; padding: 0.45rem 0.85rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; z-index: 20; }

/* ================================================================================================
   17. TRADING PANEL / CHART PAGE LAYOUT
   ================================================================================================ */
.ta-page{ max-width:95%; margin:0 auto; padding:1.25rem 1rem 3rem; }
.ta-main-row{ display:flex; align-items:stretch; gap:1.1rem; }
.ta-chart-col{ flex:0 0 70%; max-width:70%; min-width:0; height:656px; }
.ta-side-col{ flex:0 0 30%; max-width:30%; min-width:0; height:656px; overflow:hidden; }
@media (max-width:1199.98px){
  .ta-main-row{ flex-direction:column; }
  .ta-chart-col, .ta-side-col{ flex:1 1 100%; max-width:100%; height:auto; }
}

.chart-card{ display:flex; flex-direction:column; height:100%; }
.chart-card-head{ display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; padding:1rem 1.1rem; border-bottom:1px solid var(--border); }
.chart-symbol{ font-weight:800; font-size:1.1rem; }
.chart-price{ font-weight:800; font-size:1.1rem; }
.chart-change{ display:inline-flex; align-items:center; gap:.2rem; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.82rem; padding:.15rem .5rem; border-radius:.4rem; }
.chart-change svg{ width:12px; height:12px; }
.chart-change.up{ color:var(--up); background:rgba(0,229,160,.1); }
.chart-change.down{ color:var(--down); background:rgba(255,92,122,.1); }
.chart-type-icons{ display:flex; gap:.2rem; background:var(--card-bg-2); border:1px solid var(--border); border-radius:.6rem; padding:.2rem; margin-left:auto; }
.chart-type-icons button{ width:30px; height:30px; border-radius:.45rem; border:none; background:transparent; color:var(--text-muted); display:flex; align-items:center; justify-content:center; transition:.15s; }
.chart-type-icons button svg{ width:14px; height:14px; }
.chart-type-icons button:hover{ color:var(--text-primary); }
.chart-type-icons button.active{ background:var(--purple); color:#fff; }
.chart-head-actions{ display:flex; gap:.4rem; }
.chart-head-actions button{ display:inline-flex; align-items:center; gap:.4rem; font-size:.78rem; }
.chart-head-actions svg{ width:13px; height:13px; }

.chart-placeholder-wrap{ position:relative; flex:1; min-height:420px; }
.chart-placeholder-svg{ width:100%; height:100%; display:block; }
.chart-watermark{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; pointer-events:none; }
.chart-watermark .wm-icon{ color:var(--text-muted); opacity:.28; width:38px; height:38px; }
.chart-watermark .wm-text{ color:var(--text-muted); opacity:.5; font-size:.82rem; font-weight:600; margin-top:.5rem; }
.chart-price-axis-tick{ position:absolute; right:.6rem; transform:translateY(-50%); font-family:'JetBrains Mono',monospace; font-size:.68rem; color:var(--text-muted); }
.chart-time-axis-tick{ position:absolute; bottom:.4rem; transform:translateX(-50%); font-family:'JetBrains Mono',monospace; font-size:.66rem; color:var(--text-muted); }

.token-panel{ display:flex; flex-direction:column; height:100%; min-height:0; max-height:100%; overflow:hidden; }
.token-panel-head{ display:flex; align-items:center; gap:.6rem; padding:.85rem 1rem; border-bottom:1px solid var(--border); flex:none; }
.token-tabs{ display:flex; gap:.25rem; background:var(--card-bg-2); border:1px solid var(--border); border-radius:.7rem; padding:.2rem; flex:1; }
.token-tabs button{ flex:1; border:none; background:transparent; color:var(--text-secondary); font-weight:700; font-size:.8rem; padding:.45rem .5rem; border-radius:.5rem; transition:.18s; }
.token-tabs button.active{ background:var(--purple); color:#fff; }

.token-panel-body{ flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; padding:.6rem; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
.token-panel-body::-webkit-scrollbar{ width:8px; }
.token-panel-body::-webkit-scrollbar-track{ background:transparent; }
.token-panel-body::-webkit-scrollbar-thumb{ background:var(--border); border-radius:99px; border:2px solid transparent; background-clip:padding-box; }
.token-panel-body::-webkit-scrollbar-thumb:hover{ background:var(--text-muted); background-clip:padding-box; }

.token-list{ display:flex; flex-direction:column; gap:.45rem; }

.token-list-head{ display:grid; grid-template-columns:5px 64px 1fr 52px 76px 98px; align-items:center; gap:.5rem; padding:.55rem .9rem; border-bottom:1px solid var(--border); font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); flex:none; }
.tlh-star{ display:block; }
.tlh-token{ text-align:left; }
.tlh-price{ text-align:right; }
.tlh-chg{ text-align:right; }
.tlh-vol{ display:inline-flex; align-items:center; justify-content:flex-end; gap:.25rem; }
.tlh-sort{ border:none; background:transparent; padding:0; cursor:pointer; color:var(--text-muted); display:inline-flex; align-items:center; transition:.15s; }
.tlh-sort:hover{ color:var(--cyan); }
.tlh-sort svg{ width:12px; height:12px; }
.tlh-sort.asc svg{ transform:rotate(180deg); }

.tlh-search{ display:flex; align-items:center; gap:.4rem; padding:.28rem .55rem; background:var(--card-bg-2); border:1px solid var(--border); border-radius:.5rem; text-transform:none; letter-spacing:0; color:var(--text-muted); transition:.15s; min-width:0; }
.tlh-search:focus-within{ border-color:var(--purple); }
.tlh-search svg{ width:13px; height:13px; flex:none; }
.tlh-search input{ flex:1 1 auto; min-width:0; border:none; outline:none; background:transparent; color:var(--text-primary); font-size:.74rem; font-weight:600; padding:0; }
.tlh-search input::placeholder{ color:var(--text-muted); }

.token-list-head-signals{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.55rem .9rem; border-bottom:1px solid var(--border); font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); flex:none; }
.signals-fav-filter{ display:inline-flex; align-items:center; gap:.45rem; font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); cursor:pointer; margin:0; flex:none; }
.signals-fav-filter .form-check-input{ width:1.1em; height:1.1em; margin:0; flex:none; }
.tlh-search-signals{ flex:0 1 160px; }

.token-row{ display:grid; grid-template-columns:24px 1fr 78px 62px 82px; align-items:center; gap:.5rem; padding:.5rem .9rem; border-radius:.6rem; border:1px solid var(--border); background:var(--card-bg-2); transition:.15s; cursor:pointer; }
.token-row:hover{ border-color:var(--text-muted); }

.token-star{ width:24px; height:24px; padding:0; border:none; background:transparent; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:var(--text-muted); transition:.15s; border-radius:.35rem; }
.token-star svg{ width:14px; height:14px; }
.token-star:hover{ color:var(--amber); }
.token-star.active{ color:var(--amber); }
.token-star.active svg{ fill:var(--amber); }

.token-info{ min-width:0; }
.token-sym{ display:block; font-weight:800; font-size:.84rem; color:var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.token-price{ text-align:right; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.76rem; color:var(--text-primary); white-space:nowrap; }
.token-chg{ text-align:right; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.76rem; white-space:nowrap; }
.token-chg.up{ color:var(--up); }
.token-chg.down{ color:var(--down); }
.token-vol{ text-align:right; font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--text-secondary); white-space:nowrap; }

.token-list-signals .signal-feed-row{ display:grid; grid-template-columns:62px 95px 1fr; align-items:center; gap:.5rem; padding:.45rem .6rem; border-radius:.55rem; background:var(--card-bg-2); border:1px solid var(--border); font-size:.74rem; white-space:nowrap; }
.signal-feed-time{ font-family:'JetBrains Mono',monospace; font-size:.7rem; font-weight:700; color:var(--text-muted); }
.signal-feed-sym{ font-weight:800; font-size:.76rem; color:var(--text-primary); }
.signal-feed-text{ color:var(--text-secondary); font-size:.74rem; overflow:hidden; text-overflow:ellipsis; }
.signal-feed-text b{ color:var(--cyan); font-weight:700; }

.ta-bottom{ margin-top:1.1rem; }
.tf-buttons{ display:flex; gap:.3rem; overflow-x:auto; }
.tf-buttons button{ flex:none; font-family:'JetBrains Mono',monospace; font-size:.8rem; font-weight:700; padding:.4rem .8rem; border-radius:.55rem; border:1px solid transparent; background:transparent; color:var(--text-muted); transition:.15s; }
.tf-buttons button:hover{ color:var(--text-primary); }
.tf-buttons button.active{ background:var(--card-bg-2); border-color:var(--border); color:var(--cyan); }

.ta-bottom-row{ display:flex; align-items:stretch; gap:1.1rem; }
.ta-summary-col{ flex:0 0 45%; max-width:45%; min-width:0; }
.ta-indicators-col{ flex:0 0 55%; max-width:55%; min-width:0; }
@media (max-width:1199.98px){
  .ta-bottom-row{ flex-direction:column; }
  .ta-summary-col, .ta-indicators-col{ flex:1 1 100%; max-width:100%; }
}

.sr-title{ font-weight:800; font-size:.95rem; margin-bottom:.9rem; display:flex; align-items:center; gap:.5rem; }
.sr-ladder{ display:flex; flex-direction:column; gap:.4rem; }
.sr-row{ display:flex; align-items:center; gap:.7rem; padding:.5rem .7rem; border-radius:.6rem; background:var(--card-bg-2); border:1px solid var(--border); }
.sr-row.current{ border-color:var(--cyan); background:rgba(0,229,255,.06); }
.sr-tag{ width:44px; flex:none; font-size:.7rem; font-weight:800; font-family:'JetBrains Mono',monospace; }
.sr-row.resistance .sr-tag{ color:var(--down); }
.sr-row.support .sr-tag{ color:var(--up); }
.sr-row.current .sr-tag{ color:var(--cyan); }
.sr-price{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.85rem; }
.sr-dist{ margin-left:auto; font-size:.72rem; color:var(--text-muted); font-family:'JetBrains Mono',monospace; }

.info-feed{ display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.info-feed-row{ display:flex; align-items:center; gap:.55rem; padding:.42rem .6rem; border-radius:.55rem; background:var(--card-bg-2); border:1px solid var(--border); font-size:.76rem; white-space:nowrap; overflow:hidden; }
.info-feed-time{ font-family:'JetBrains Mono',monospace; font-size:.72rem; font-weight:700; color:var(--text-muted); flex:none; }
.info-feed-ex{ font-size:.62rem; font-weight:700; border-radius:.3rem; padding:.1rem .4rem; flex:none; }
.info-feed-ex.binance{ background:rgba(240,185,11,.12); color:var(--binance); border:1px solid rgba(240,185,11,.3); }
.info-feed-ex.bybit{ background:rgba(247,166,0,.12); color:var(--bybit); border:1px solid rgba(247,166,0,.3); }
.info-feed-sym{ font-weight:800; font-size:.76rem; color:var(--text-primary); flex:none; }
.info-feed-text{ color:var(--text-secondary); font-size:.74rem; overflow:hidden; text-overflow:ellipsis; }
.info-feed-text b{ color:var(--cyan); font-weight:700; }

.ind-grid{ display:grid; grid-template-columns:1fr 1fr; gap:.9rem; }
@media (max-width:575.98px){ .ind-grid{ grid-template-columns:1fr; } }
.ind-category{ background:var(--card-bg-2); border:1px solid var(--border); border-radius:.9rem; padding:.85rem 0.8rem 0rem .9rem; }
.ind-category-title{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin-bottom:.6rem; }
.ind-row{ display:flex; justify-content:space-between; align-items:center; gap:.5rem; padding:0.688rem 0; border-top:1px solid var(--border); white-space:nowrap; }
.ind-row:first-of-type{ border-top:none; padding-top:0; }
.ind-name{ font-size:.78rem; color:var(--text-secondary); font-weight:600; flex:none; }
.ind-val-wrap{ text-align:right; flex:none; display:flex; align-items:center; gap:.45rem; }
.ind-val{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.78rem; display:inline-flex; align-items:center; white-space:nowrap; }
.ind-signal{ font-size:.62rem; font-weight:700; padding:.05rem .4rem; border-radius:.3rem; display:inline-block; white-space:nowrap; }
.ind-signal.bull{ color:var(--up); background:rgba(0,229,160,.12); }
.ind-signal.bear{ color:var(--down); background:rgba(255,92,122,.12); }
.ind-signal.neutral{ color:var(--text-secondary); background:var(--card-bg); border:1px solid var(--border); }
.ind-signal.weak-bull{ color:var(--amber); background:rgba(255,201,60,.12); }
.ind-signal.strength{ color:var(--cyan); background:rgba(0,229,255,.1); }
.ind-signal.info{ color:var(--purple); background:rgba(157,78,221,.1); }
.ind-dot{ width:6px; height:6px; border-radius:50%; flex:none; margin-right:.4rem; display:inline-block; }
.ind-dot.bull{ background:var(--up); } .ind-dot.bear{ background:var(--down); }

.settings-row{ margin-bottom:1rem; }
.settings-row:last-child{ margin-bottom:0; }

/* ================================================================================================
   DASHBOARD PAGE — new classes only
   ================================================================================================ */
.dash-page{ max-width:1800px; margin:0 auto; padding:1.25rem 1rem 3rem; display:flex; flex-direction:column; gap:1.1rem; }

/* ---- Overnight briefing (hero) ---- */
.briefing-card{ position:relative; overflow:hidden; padding:1.6rem 1.8rem 0.4rem 1.8rem; background:linear-gradient(120deg, rgba(157,78,221,.14), transparent 55%), linear-gradient(300deg, rgba(0,229,255,.1), transparent 55%), var(--card-bg); }
.briefing-head{ display:flex; align-items:center; gap:.7rem; margin-bottom:1.2rem; flex-wrap:wrap; }
.briefing-icon-wrap{ width:42px; height:42px; border-radius:.9rem; background:linear-gradient(135deg, var(--purple), var(--cyan)); display:flex; align-items:center; justify-content:center; color:#0A0D14; flex:none; }
.briefing-title{ font-size:1.15rem; font-weight:800; }
.briefing-time{ font-size:.78rem; color:var(--text-muted); }
.briefing-list{ display:flex; flex-direction:column; gap:.75rem; margin-bottom:1.3rem; }
.briefing-item{ display:flex; align-items:flex-start; gap:.7rem; }
.briefing-item-icon{ width:32px; height:32px; border-radius:.6rem; display:flex; align-items:center; justify-content:center; flex:none; margin-top:.05rem; }
.briefing-item-icon svg{ width:15px; height:15px; }
.briefing-item-icon.strategy{ background:rgba(157,78,221,.14); color:var(--purple); }
.briefing-item-icon.up{ background:rgba(0,229,160,.14); color:var(--up); }
.briefing-item-icon.info{ background:rgba(0,229,255,.14); color:var(--cyan); }
.briefing-item-icon.warn{ background:rgba(255,201,60,.14); color:#FFC93C; }
.briefing-item-icon.down{ background:rgba(255,92,122,.14); color:var(--down); }
.briefing-item-text{ font-size:.9rem; color:var(--text-secondary); line-height:1.5; padding-top:.2rem; }
.briefing-item-text strong{ color:var(--text-primary); }
.briefing-ask{ display:flex; gap:.6rem; padding-top:1.1rem; border-top:1px solid var(--border); }
.briefing-ask input{ flex:1; }
.briefing-reply{ display:none; margin-top:.8rem; padding:.8rem 1rem; border-radius:.8rem; background:var(--card-bg-2); border:1px solid var(--border); font-size:.85rem; color:var(--text-secondary); line-height:1.55; }
.briefing-reply.show{ display:block; }

/* ---- Market pulse strip ---- */
.pulse-strip{ display:flex; align-items:stretch; overflow-x:auto; padding:0; }
.pulse-item{ flex:1; min-width:150px; padding:1rem 1.3rem; display:flex; flex-direction:column; gap:.25rem; border-right:1px solid var(--border); }
.pulse-item:last-child{ border-right:none; }
.pulse-lab{ font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); font-weight:700; }
.pulse-val{ font-size:1.05rem; font-weight:800; font-family:'JetBrains Mono',monospace; }
.pulse-sub{ font-size:.74rem; font-weight:600; }

/* ---- Two-column dashboard layout (reused pattern: 70/30, stacks under 1200px) ---- */
.dash-main-row{ display:flex; align-items:flex-start; gap:1.1rem; }
.dash-left-col{ flex:0 0 68%; max-width:68%; min-width:0; display:flex; flex-direction:column; gap:1.1rem; }
.dash-right-col{ flex:0 0 32%; max-width:32%; min-width:0; display:flex; flex-direction:column; gap:1.1rem; }
@media (max-width:1199.98px){
  .dash-main-row{ flex-direction:column; }
  .dash-left-col, .dash-right-col{ flex:1 1 100%; max-width:100%; }
}
.dash-card-head{ display:flex; align-items:center; gap:.6rem; padding:1rem 1.1rem; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.dash-card-title{ font-weight:800; font-size:.98rem; display:flex; align-items:center; gap:.5rem; }
.dash-card-title svg{ width:16px; height:16px; color:var(--purple); }
.dash-card-body{ padding:.5rem 1.1rem 1rem; }
.dash-card-link{ margin-left:auto; font-size:.78rem; font-weight:700; color:var(--purple); display:flex; align-items:center; gap:.3rem; }
.dash-card-link:hover{ color:var(--cyan); }
.dash-card-link svg{ width:13px; height:13px; }

/* ---- Favorites / watchlist rows ---- */
.fav-row{ display:flex; align-items:center; gap:.7rem; padding:.65rem 0; border-top:1px solid var(--border); }
.fav-row:first-child{ border-top:none; padding-top:0; }
.fav-id{ display:flex; align-items:center; gap:.6rem; flex:1.4; min-width:0; }
.fav-info{ min-width:0; }
.fav-sym-row{ display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.fav-sym{ font-weight:700; font-size:.86rem; }
.fav-col{ flex:1; text-align:right; }
.fav-price{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.84rem; }
.fav-change{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.8rem; }
.fav-change.up{ color:var(--up); } .fav-change.down{ color:var(--down); }
.fav-volume{ font-family:'JetBrains Mono',monospace; font-size:.78rem; color:var(--text-secondary); }
.fav-spark{ flex:none; margin:0 .4rem; }
.fav-bell-btn{ width:30px; height:30px; border-radius:.5rem; border:1px solid var(--border); background:transparent; color:var(--text-muted); display:flex; align-items:center; justify-content:center; flex:none; transition:.15s; }
.fav-bell-btn svg{ width:14px; height:14px; }
.fav-bell-btn.active{ color:var(--purple); border-color:var(--purple); background:rgba(157,78,221,.08); }
.fav-bell-btn:hover{ color:var(--text-primary); }
@media (max-width:575.98px){ .fav-volume, .fav-col.fav-volume-col{ display:none; } }

/* ---- Setups / technical analysis rows ---- */
.setup-row{ display:flex; align-items:center; gap:.7rem; padding:.65rem 0; border-top:1px solid var(--border); flex-wrap:wrap; }
.setup-row:first-child{ border-top:none; padding-top:0; }
.setup-id{ display:flex; align-items:center; gap:.6rem; flex:1.3; min-width:0; }
.setup-name{ font-size:.78rem; color:var(--text-secondary); flex:1.4; min-width:120px; }
.setup-tf-tag{ font-size:.68rem; color:var(--text-muted); font-family:'JetBrains Mono',monospace; background:var(--card-bg-2); border:1px solid var(--border); border-radius:.35rem; padding:.1rem .4rem; flex:none; }
.signal-badge{ font-size:.66rem; font-weight:800; padding:.2rem .5rem; border-radius:.4rem; display:inline-flex; align-items:center; gap:.25rem; white-space:nowrap; flex:none; }
.signal-badge svg{ width:11px; height:11px; }
.signal-badge.long{ background:rgba(0,229,160,.12); color:var(--up); border:1px solid rgba(0,229,160,.3); }
.signal-badge.short{ background:rgba(255,92,122,.12); color:var(--down); border:1px solid rgba(255,92,122,.3); }

/* ---- My strategies snapshot ---- */
.strat-stats-row{ display:flex; gap:.6rem; margin-bottom:1rem; }
.strat-mini-stat{ flex:1; text-align:center; background:var(--card-bg-2); border:1px solid var(--border); border-radius:.7rem; padding:.65rem .4rem; }
.strat-mini-stat .v{ font-size:1.15rem; font-weight:800; font-family:'JetBrains Mono',monospace; }
.strat-mini-stat .l{ font-size:.66rem; color:var(--text-muted); margin-top:.1rem; }
.strat-best{ background:var(--card-bg-2); border:1px solid var(--border); border-radius:.8rem; padding:.8rem .9rem; }
.strat-best-head{ display:flex; justify-content:space-between; align-items:center; font-size:.82rem; margin-bottom:.5rem; }
.strat-best-head .name{ font-weight:700; }
.strat-best-head .rate{ font-family:'JetBrains Mono',monospace; font-weight:800; color:var(--up); }

/* ---- Sector heatmap ---- */
.heatmap-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:.6rem; }
@media (max-width:767.98px){ .heatmap-grid{ grid-template-columns:repeat(2, 1fr); } }
.heatmap-tile{ border-radius:.8rem; padding:.85rem .7rem; text-align:center; border:1px solid var(--border); }
.heatmap-tile .h-name{ font-size:.76rem; font-weight:700; color:var(--text-primary); margin-bottom:.3rem; }
.heatmap-tile .h-val{ font-family:'JetBrains Mono',monospace; font-weight:800; font-size:.92rem; }

/* ---- Derivatives pulse ---- */
.deriv-subhead{ font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin:.9rem 0 .5rem; }
.deriv-subhead:first-child{ margin-top:0; }
.funding-row{ display:flex; align-items:center; gap:.6rem; padding:.4rem 0; }
.funding-pair{ flex:1; font-size:.82rem; font-weight:700; display:flex; align-items:center; gap:.5rem; }
.funding-val{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.82rem; }
.funding-val.up{ color:var(--up); } .funding-val.down{ color:var(--down); }
.oi-row{ display:flex; justify-content:space-between; align-items:baseline; }
.oi-val{ font-size:1.3rem; font-weight:800; font-family:'JetBrains Mono',monospace; }
.liq-split{ display:flex; height:8px; border-radius:99px; overflow:hidden; margin:.5rem 0 .4rem; }
.liq-split .long-side{ background:var(--down); }
.liq-split .short-side{ background:var(--up); }
.liq-legend{ display:flex; justify-content:space-between; font-size:.74rem; }
.liq-legend .long-lab{ color:var(--down); font-weight:700; }
.liq-legend .short-lab{ color:var(--up); font-weight:700; }

/* ---- Secondary full-width row ---- */
.dash-secondary-row{ display:flex; align-items:stretch; gap:1.1rem; }
.dash-secondary-row > div{ flex:1; min-width:0; }
@media (max-width:991.98px){ .dash-secondary-row { flex-direction:column; } .pulse-item { padding:0rem 1.3rem; } }

/* ==========================================================================
   СТИЛИ ДЭШБОРДА SCREENCOIN
   ========================================================================== */
.dash-page {
  padding: 1rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ticker-pill-link {
  color: var(--cyan, #00E5FF);
  text-decoration: none;
  font-weight: 700;
  font-family: monospace;
  padding: 1px 5px;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 4px;
  transition: all .15s ease;
  display: inline-block;
}
.ticker-pill-link:hover {
  background: rgba(0, 229, 255, 0.22);
  color: #fff;
}

/* Утренний брифинг */
.briefing-card {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
}
.briefing-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.briefing-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan, #00E5FF);
  display: flex;
  align-items: center;
  justify-content: center;
}
.briefing-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.briefing-time {
  font-size: .82rem;
  color: var(--text-muted, #8B93A7);
}
.briefing-list-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.briefing-list-scroll::-webkit-scrollbar { width: 4px; }
.briefing-list-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.briefing-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .92rem;
  line-height: 1.45;
  color: #D1D5DB;
}
.briefing-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.briefing-item-icon.up { background: rgba(0, 229, 160, 0.15); color: #00E5A0; }
.briefing-item-icon.down { background: rgba(255, 92, 122, 0.15); color: #FF5C7A; }
.briefing-item-icon.info { background: rgba(0, 229, 255, 0.15); color: #00E5FF; }
.briefing-item-icon.warn { background: rgba(255, 158, 0, 0.15); color: #FF9E00; }
.briefing-item-icon.strategy { background: rgba(157, 78, 221, 0.18); color: #9D4EDD; }

/* Пульс рынка */
.pulse-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1rem;
}
.pulse-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.pulse-lab {
  font-size: .78rem;
  color: var(--text-muted, #8B93A7);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
}
.pulse-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: monospace;
  color: #fff;
}
.pulse-sub {
  font-size: .78rem;
  font-weight: 600;
}

/* ============================================================
   ОСНОВНАЯ СЕТКА DASHBOARD
   ============================================================ */

.dash-main-row {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr) !important;
  column-gap: 20px !important;
  row-gap: 20px !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  align-items: start !important;
}

.dash-left-col,
.dash-right-col {
  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

.dash-left-col {
  grid-column: 1 !important;
}

.dash-right-col {
  grid-column: 2 !important;
}


/* Планшет / узкий экран */
@media (max-width: 1079.98px) {
  .dash-main-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .dash-left-col,
  .dash-right-col {
    grid-column: 1 !important;
  }
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border, #1F2635);
  gap: .75rem;
  flex-wrap: wrap;
}
.dash-card-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.dash-card-link {
  color: var(--cyan, #00E5FF);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.dash-card-link:hover { text-decoration: underline; }
.dash-card-body {
  padding: .75rem 1.25rem;
}

/* Избранное таблица */
.fav-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.fav-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.fav-data-table th {
  padding: .65rem .85rem;
  font-size: .75rem;
  color: var(--text-muted, #8B93A7);
  font-weight: 700;
  border-bottom: 1px solid var(--border, #1F2635);
  text-align: left;
  white-space: nowrap;
}
.fav-data-table td {
  padding: .75rem .85rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}
.fav-data-table tr:hover { background: rgba(255,255,255,0.025); }

.fav-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #8B93A7);
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fav-del-btn:hover {
  color: #FF5C7A;
  background: rgba(255, 92, 122, 0.12);
}

.fav-search-wrap {
  position: relative;
  min-width: 170px;
}
.fav-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111622;
  border: 1px solid var(--border, #1F2635);
  border-radius: .5rem;
  z-index: 1050;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.fav-search-item {
  padding: .45rem .75rem;
  font-family: monospace;
  font-size: .84rem;
  cursor: pointer;
  color: #D1D5DB;
}
.fav-search-item:hover {
  background: rgba(0, 229, 255, 0.12);
  color: #fff;
}

/* Топ движения рынка */
.movers-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.mover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .6rem;
  border-radius: .5rem;
  font-size: .88rem;
  transition: background .12s ease;
}
.mover-row:hover { background: rgba(255,255,255,0.025); }
.mover-left {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mover-price-sub {
  color: var(--text-muted, #8B93A7);
  font-size: .8rem;
  font-family: monospace;
}

/* Живые сигналы */
.live-pill {
  font-size: .68rem;
  padding: 2px 7px;
  background: rgba(0, 229, 160, 0.12);
  color: #00E5A0;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-pill .dot {
  width: 6px;
  height: 6px;
  background: #00E5A0;
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.terminal-feed {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .82rem;
}
.feed-line {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.feed-time { color: var(--text-muted, #8B93A7); flex-shrink: 0; }
.feed-tag {
  font-size: .68rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  flex-shrink: 0;
}
.feed-tag.binance { background: rgba(240, 185, 11, 0.15); color: #F0B90B; }
.feed-tag.bybit { background: rgba(0, 229, 255, 0.15); color: #00E5FF; }

/* Новости */
.news-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.news-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.news-link {
  color: #E5E7EB;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color .15s ease;
}
.news-link:hover { color: var(--cyan, #00E5FF); }
.news-meta {
  font-size: .75rem;
  color: var(--text-muted, #8B93A7);
}

/* Ставки финансирования и ОИ (Правая колонка) */

.exchange-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
}

.exchange-columns > div {
  min-width: 0;
  padding: 0 .85rem;
}

/* Первая колонка */
.exchange-columns > div:first-child {
  padding-left: 0;
}

/* Вторая колонка */
.exchange-columns > div:last-child {
  padding-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Немного воздуха между заголовком биржи и списком */
.exchange-columns .small {
  line-height: 1.2;
}

/* На мобильных снова одна колонка */
@media (max-width: 1079.98px) {
  .exchange-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .exchange-columns > div,
  .exchange-columns > div:first-child,
  .exchange-columns > div:last-child {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .exchange-columns > div + div {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}
    
.compact-pair-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.compact-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  font-size: .82rem;
}

/* Ликвидации бары */
.liq-bar-item {
  margin-bottom: .75rem;
}
.liq-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-family: monospace;
  margin-bottom: 4px;
}
.liq-split-bar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.liq-side-long { background: #00E5A0; }
.liq-side-short { background: #FF5C7A; }

/* КЛАССИЧЕСКАЯ ТЕПЛОВАЯ КАРТА (HEATMAP) */
.heatmap-container-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: 100%;
}
.heatmap-dynamic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .12s ease, filter .15s ease;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
}
.heatmap-dynamic-tile:hover {
  transform: scale(1.03);
  filter: brightness(1.25);
  z-index: 10;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.heatmap-dynamic-tile .h-sym {
  font-weight: 800;
  font-family: monospace;
  line-height: 1.1;
  color: var(--text-primary, #FFFFFF);
}
.heatmap-dynamic-tile .h-val {
  font-weight: 700;
  font-family: monospace;
  line-height: 1.1;
  margin-top: 3px;
}

/* Светлая тема: четкие контрастные цвета текста на плитках */
[data-bs-theme="light"] .heatmap-dynamic-tile .h-sym {
  color: #0F172A !important;
}
[data-bs-theme="light"] .heatmap-dynamic-tile .h-val.val-light-neutral {
  color: #334155 !important;
}

/* Бейджи бирж */
.badge-exchange {
  font-size: .68rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}
.badge-exchange.binance { background: rgba(240, 185, 11, 0.15); color: #F0B90B; }
.badge-exchange.bybit { background: rgba(0, 229, 255, 0.15); color: #00E5FF; }

/* Общие цвета */
/* Поддержка светлой темы */
[data-bs-theme="light"] {
  --text-primary: #0F172A;
  --text-muted: #64748B;
}
[data-bs-theme="light"] .briefing-title,
[data-bs-theme="light"] .dash-card-title,
[data-bs-theme="light"] .pulse-val,
[data-bs-theme="light"] .news-link,
[data-bs-theme="light"] .fav-data-table td,
[data-bs-theme="light"] .compact-pair-row,
[data-bs-theme="light"] .compact-pair-row a,
[data-bs-theme="light"] .compact-pair-row span.text-white {
  color: #0F172A !important;
}
[data-bs-theme="light"] .briefing-item {
  color: #334155 !important;
}
[data-bs-theme="light"] .fav-search-results {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}
[data-bs-theme="light"] .fav-search-item {
  color: #0F172A !important;
}
[data-bs-theme="light"] .compact-pair-row {
  background: rgba(0, 0, 0, 0.03) !important;
}
[data-bs-theme="light"] .exchange-columns > div:last-child {
  border-left-color: rgba(0, 0, 0, 0.08) !important;
}
    
.up { color: #00E5A0 !important; }
.down { color: #FF5C7A !important; }

/* ================================================================================================
   18. MOBILE ADAPTATION CHART.PHP (≤767.98px)
   ================================================================================================ */
@media (max-width:767.98px){
  .tlh-search,
  .tlh-search-signals{ display:none !important; }
  .token-star{ display:none !important; }
  .tlh-vol{ display:none !important; }
  .token-vol{ display:none !important; }

  .token-list-head{ grid-template-columns:1fr 78px 62px; gap:.4rem; padding:.5rem .7rem; }
  .tlh-star{ display:none !important; }
  .token-row{ grid-template-columns:1fr 78px 62px; gap:.4rem; padding:.5rem .7rem; }

  .token-list-signals{ overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
  .token-list-signals::-webkit-scrollbar{ height:6px; }
  .token-list-signals::-webkit-scrollbar-track{ background:transparent; }
  .token-list-signals::-webkit-scrollbar-thumb{ background:var(--border); border-radius:99px; border:2px solid transparent; background-clip:padding-box; }
  .token-list-signals .signal-feed-row{ grid-template-columns:62px 60px 1fr; min-width:520px; }

  .token-list-head-signals{ justify-content:flex-start; gap:.5rem; padding:.5rem .7rem; }

  .ind-grid{ grid-template-columns:1fr; gap:.75rem; }
  .ind-category{ padding:.75rem .8rem; min-width:0; }
  .ind-row{ flex-wrap:wrap; white-space:normal; gap:.35rem .5rem; }
  .ind-name{ flex:1 1 100%; }
  .ind-val-wrap{ flex:1 1 100%; justify-content:space-between; text-align:left; flex-wrap:wrap; gap:.35rem .5rem; }
  .ind-val{ white-space:normal; word-break:break-word; }
  .ind-signal{ white-space:normal; }

  .w-100-mobile { width: 100% !important; }

  .view-switcher-wrap-dashboard {
    display: inline-flex;
    background: var(--card-bg-2, #0C1119);
    border: 1px solid var(--border, #1F2635);
    border-radius: 11px !important;
    padding: 0.8rem !important;
  }
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.1rem;                               
    background: var(--card-bg);                       
    border: 1px solid var(--card-bg-2);                
    border-radius: 8px;
    padding-top: 0.75rem;                              
    min-width: 220px;
    z-index: 1050;                                    
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nav-dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeUp 0.15s ease-out forwards;
}

.nav-dropdown:hover > a > [data-lucide="chevron-down"],
.nav-dropdown.open > a > [data-lucide="chevron-down"] {
    transform: rotate(180deg);
}

.text-li-subscribe {
  color: #3c4354 !important;
}

#theme_appeal.form-select,
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B93A7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 12px;
  padding-right: 2.25rem; 
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

a:hover .brand-logo-img {
  transform: scale(1.02);
}

.border-seatch-icon {
   border: #1f2635 1px solid;    
}

.presets-carousel-wrap {
  position: relative;
}
.presets-carousel-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 1px 4px 1px;
  user-select: none;
  cursor: grab;
}
.presets-carousel-track::-webkit-scrollbar {
  display: none;
}
.presets-carousel-track.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}
.preset-slide {
  flex: 0 0 275px;
  max-width: 275px;
}
@media (max-width: 575.98px) {
  .preset-slide {
    flex: 0 0 245px;
    max-width: 245px;
  }
}
.preset-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border, #242b3d);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.preset-nav-btn:hover {
  border-color: var(--cyan, #00E5FF);
  color: var(--cyan, #00E5FF);
  background: rgba(0, 229, 255, 0.08);
}
.preset-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #242b3d);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  text-align: left;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.preset-card:hover {
  border-color: var(--cyan, #00E5FF);
  background: rgba(0, 229, 255, 0.05);
  transform: translateY(-2px);
}
.preset-card.active {
  border-color: var(--cyan, #00E5FF);
  background: rgba(0, 229, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25);
}
.preset-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 0.25rem;
}
.preset-card-desc {
  font-size: 0.73rem;
  color: var(--text-muted, #8B93A7);
  line-height: 1.35;
  margin-bottom: 0.55rem;
}
[data-bs-theme="light"] .preset-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
[data-bs-theme="light"] .preset-card:hover,
[data-bs-theme="light"] .preset-card.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan, #00E5FF);
}
[data-bs-theme="light"] .preset-card-title {
  color: #0F172A;
}
[data-bs-theme="light"] .preset-nav-btn {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.rsi-map-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
  background:
    linear-gradient(180deg,
      rgba(255, 92, 122, 0.16) 0%,
      rgba(255, 92, 122, 0.05) 30%,
      rgba(139, 147, 167, 0.03) 30%,
      rgba(139, 147, 167, 0.03) 70%,
      rgba(0, 229, 160, 0.05) 70%,
      rgba(0, 229, 160, 0.16) 100%);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
}
[data-bs-theme="light"] .rsi-map-wrap {
  background:
    linear-gradient(180deg,
      rgba(239, 68, 68, 0.14) 0%,
      rgba(239, 68, 68, 0.04) 30%,
      rgba(15, 23, 42, 0.02) 30%,
      rgba(15, 23, 42, 0.02) 70%,
      rgba(16, 185, 129, 0.04) 70%,
      rgba(16, 185, 129, 0.14) 100%);
  border-color: rgba(15, 23, 42, 0.1);
}
.rsi-zone-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.45);
}
[data-bs-theme="light"] .rsi-zone-line {
  border-top-color: rgba(15, 23, 42, 0.15);
  color: rgba(15, 23, 42, 0.55);
}
.rsi-zone-line.overbought {
  top: 30%;
  border-top-color: rgba(255, 92, 122, 0.45);
  color: #FF5C7A;
}
.rsi-zone-line.neutral {
  top: 50%;
}
.rsi-zone-line.oversold {
  top: 70%;
  border-top-color: rgba(0, 229, 160, 0.45);
  color: #00E5A0;
}
[data-bs-theme="light"] .rsi-zone-line.oversold {
  color: #059669;
}
[data-bs-theme="light"] .rsi-zone-line.overbought {
  color: #DC2626;
}
.rsi-dot-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, z-index 0s;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.rsi-dot-node:hover {
  transform: translate(-50%, -50%) scale(1.28);
  z-index: 30;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
}
.rsi-dot-sym {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.rsi-dot-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.56rem;
  line-height: 1;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.rsi-float-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  min-width: 195px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 20, 32, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  font-size: 0.75rem;
  display: none;
}
[data-bs-theme="light"] .rsi-float-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.18);
  color: #0F172A;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

  .sc-pro-modal-dialog {
    max-width: 620px;
  }
  .sc-pro-modal-card {
    background: var(--card-bg, #111622);
    border: 1px solid var(--border, #1F2635);
    border-radius: 16px;
    overflow: hidden;
  }
  [data-bs-theme="light"] .sc-pro-modal-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  }
  .sc-pro-top-glow {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(157, 78, 221, 0.08) 100%);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.07));
    padding: 1.15rem 1.5rem;
  }
  [data-bs-theme="light"] .sc-pro-top-glow {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    border-bottom-color: #E2E8F0;
  }
  .sc-pro-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .sc-pro-lead {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary, #9BA3B8);
    margin-bottom: 1rem;
  }
  [data-bs-theme="light"] .sc-pro-lead {
    color: #475569;
  }
  .sc-pro-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .sc-pro-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.42;
    color: var(--text-secondary, #C7CDD6);
  }
  [data-bs-theme="light"] .sc-pro-check-item {
    color: #334155;
  }
  .sc-pro-check-item strong {
    color: var(--text-primary, #FFFFFF);
    font-weight: 700;
  }
  [data-bs-theme="light"] .sc-pro-check-item strong {
    color: #0F172A;
  }
  .sc-pro-check-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 229, 160, 0.14);
    border: 1px solid rgba(0, 229, 160, 0.3);
    color: #00E5A0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
  }
  [data-bs-theme="light"] .sc-pro-check-mark {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: #059669;
  }
  .sc-pro-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  }
  [data-bs-theme="light"] .sc-pro-actions {
    border-top-color: #E2E8F0;
  }
  .sc-btn-later {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #9BA3B8);
    transition: all 0.18s ease;
  }
  .sc-btn-later:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #FFFFFF);
  }
  [data-bs-theme="light"] .sc-btn-later {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #475569;
  }
  [data-bs-theme="light"] .sc-btn-later:hover {
    background: #F1F5F9;
    color: #0F172A;
  }
  .sc-btn-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #061A23 !important;
    background: linear-gradient(135deg, #00E5FF 0%, #00B8D4 100%);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.25);
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex: 1;
  }
  .sc-btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 229, 255, 0.38);
    color: #061A23 !important;
  }
  @media (max-width: 575.98px) {
    .sc-pro-top-glow {
      padding: 1rem 1.15rem;
    }
    .sc-pro-actions {
      flex-direction: column-reverse;
      align-items: stretch;
    }
    .sc-btn-later,
    .sc-btn-upgrade {
      width: 100%;
    }
  }

  .sc-cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: calc(100% - 24px);
    max-width: 880px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .sc-cookie-banner.sc-cookie-visible {
    opacity: 1;
  }
  .sc-cookie-card {
    background: rgba(18, 22, 31, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
  }

.ray-quick-alert-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(17, 22, 34, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
[data-bs-theme="light"] .ray-quick-alert-bar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(2, 132, 199, 0.45);
  color: #0F172A;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
[data-bs-theme="light"] .ray-quick-alert-bar .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(20%);
}

@media (max-width: 576px) {
  .rsi-map-wrap {
    height: 360px;
  }
}

/* ================================================================================================
   19. REDUCED MOTION (единый блок)
   ================================================================================================ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}