/* ArmaganFX — masaüstü uygulama kabuğu (y139). Yalnız ≥1025px'te yüklenir (media) ve her kural html.afx-ms altında;
   yönetim paneli ve telefon etkilenmez. Kenar çubuğu 240px ↔ 72px (afx-sb-dar). Tam ekran sayfalarda (body.afx-tamsayfa)
   kenar çubuğu ince (afx-sb-ince) ve açılınca içeriği itmeden üstte durur (afx-sb-ust). */
html.afx-ms{--afxsb-w:240px;--afxsb-ease:cubic-bezier(.32,.72,0,1)}
html.afx-ms.afx-sb-dar,html.afx-ms.afx-sb-ince{--afxsb-w:72px}
html.afx-ms body{padding-left:var(--afxsb-w);transition:padding-left .24s var(--afxsb-ease)}

/* ---------- kenar çubuğu ---------- */
html.afx-ms .afxsb{position:fixed;z-index:80;left:0;top:0;bottom:0;width:var(--afxsb-w);display:flex;flex-direction:column;
  background:linear-gradient(var(--surface,#0B0B0F),var(--surface,#0B0B0F)),var(--bg,#000);border-right:1px solid var(--line,rgba(255,255,255,.08));
  transition:width .24s var(--afxsb-ease),box-shadow .24s ease;overflow:hidden;box-sizing:border-box;font-size:14px}
html.afx-ms.afx-sb-ust .afxsb{width:240px;box-shadow:12px 0 40px rgba(0,0,0,.35)}
html.afx-ms .afxsb *{box-sizing:border-box}
html.afx-ms .afxsb__ik svg,html.afx-ms .afxsb__daralt svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
html.afx-ms .afxsb__ust{display:flex;align-items:center;gap:6px;height:64px;padding:0 12px 0 18px;flex:none}
html.afx-ms .afxsb__logo{display:flex;align-items:center;min-width:0;flex:1;color:var(--txt,#fff);text-decoration:none;overflow:hidden;white-space:nowrap}
html.afx-ms .afxsb__logo svg{width:auto;height:26px;max-width:100%}
html.afx-ms .afxsb__daralt{flex:none;width:36px;height:36px;border-radius:10px;border:0;background:transparent;color:var(--txt-2,#9aa);cursor:pointer;display:grid;place-items:center;transition:background-color .15s ease,color .15s ease,transform .12s ease}
html.afx-ms .afxsb__daralt:active{transform:scale(.94)}
html.afx-ms .afxsb__nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:4px 12px 12px;scrollbar-width:thin;scrollbar-color:var(--line,rgba(255,255,255,.12)) transparent}
html.afx-ms .afxsb__grup{display:flex;flex-direction:column;gap:2px;margin-top:14px}
html.afx-ms .afxsb__grup:first-child{margin-top:4px}
html.afx-ms .afxsb__bas{margin:0 0 4px;padding:0 12px;height:16px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--txt-3,var(--txt-2,#8a8f98));white-space:nowrap;overflow:hidden;transition:opacity .16s ease}
html.afx-ms .afxsb__a{position:relative;display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;border-radius:10px;border:0;background:transparent;width:100%;
  color:var(--txt-2,#b4b6c8);text-decoration:none;font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,transform .12s ease}
html.afx-ms .afxsb__a:active,html.afx-ms .afxsb__btn:active{transform:scale(.97)}
html.afx-ms .afxsb__a.is-active{color:var(--txt,#fff);background:color-mix(in srgb,var(--accent,#4B4BE9) 18%,transparent);font-weight:600}
html.afx-ms .afxsb__a.is-active .afxsb__ik{color:var(--accent-txt,#8A8AFF)}
html.afx-ms .afxsb__ik{display:grid;place-items:center;width:24px;flex:none}
html.afx-ms .afxsb__y{min-width:0;overflow:hidden;text-overflow:ellipsis;transition:opacity .16s ease}
html.afx-ms .afxsb__a .afxrz{margin-left:auto;position:static;transform:none}
html.afx-ms .afxsb__alt{flex:none;display:flex;flex-direction:column;gap:2px;padding:10px 12px 14px;border-top:1px solid var(--line,rgba(255,255,255,.08))}
html.afx-ms .afxsb__kur{color:var(--accent-txt,#8A8AFF)}
html.afx-ms .afxsb__giris{display:flex;flex-direction:column;gap:6px;margin-top:6px}
html.afx-ms .afxsb__btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--line,rgba(255,255,255,.14));
  color:var(--txt,#fff);text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;transition:transform .12s ease,filter .15s ease}
html.afx-ms .afxsb__btn--ana{background:var(--accent,#4B4BE9);border-color:transparent;color:#fff}
@media (hover:hover) and (pointer:fine){
  html.afx-ms .afxsb__a:hover{background:color-mix(in srgb,var(--txt,#fff) 7%,transparent);color:var(--txt,#fff)}
  html.afx-ms .afxsb__a.is-active:hover{background:color-mix(in srgb,var(--accent,#4B4BE9) 22%,transparent)}
  html.afx-ms .afxsb__daralt:hover{background:color-mix(in srgb,var(--txt,#fff) 8%,transparent);color:var(--txt,#fff)}
  html.afx-ms .afxsb__btn:hover{filter:brightness(1.08)}
}
html.afx-ms .afxsb a:focus-visible,html.afx-ms .afxsb button:focus-visible{outline:2px solid var(--accent-txt,#8A8AFF);outline-offset:2px}

/* daraltılmış: yalnız ikonlar (ad title ile görünür) */
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__y,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__y{opacity:0;width:0;pointer-events:none}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__bas,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__bas{opacity:0;height:1px;margin:6px 10px 6px;padding:0;background:var(--line,rgba(255,255,255,.1))}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__a,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__a{justify-content:center;padding:0;gap:0}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__ust,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__ust{padding:0;justify-content:center}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__logo,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__logo{display:none}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__a .afxrz,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__a .afxrz{position:absolute;top:2px;right:4px;margin:0;transform:scale(.85)}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__btn,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__btn{padding:0;gap:0}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__nav,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__nav,
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__alt,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__alt{padding-left:12px;padding-right:12px}

/* ---------- üst çubuk: mevcut <header class="nav"> ince çubuk olur (sekmeler kenar çubuğunda) ---------- */
html.afx-ms .nav__logo,html.afx-ms .nav__links,html.afx-ms .nav__daha,html.afx-ms .navbtn,html.afx-ms .drawer{display:none!important}
html.afx-ms .nav__actions a[title="Telegram"],html.afx-ms .nav__actions a[title="VT Markets"],html.afx-ms .nav__actions #themeBtn,
html.afx-ms .nav__actions a[onclick*="logout"],html.afx-ms .nav__actions a[href="/login"],html.afx-ms .nav__actions a[href="/register"]{display:none!important}
html.afx-ms header.nav{padding:0!important}
html.afx-ms header.nav .nav__inner{flex:1 1 auto!important;max-width:none!important;width:auto!important;margin:0!important;min-height:56px;padding-left:24px;padding-right:20px;justify-content:space-between;border-radius:0!important}
html.afx-ms .afxms-baslik{flex:1;min-width:0;font-size:17px;font-weight:600;letter-spacing:-.01em;color:var(--txt,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.afx-ms .nav__actions{margin-left:auto;gap:8px}
html.afx-ms .afxms-profil{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;flex:none;text-decoration:none;color:var(--txt-2,#9aa);
  border:1px solid var(--line,rgba(255,255,255,.14));overflow:hidden;transition:transform .12s ease,border-color .15s ease}
html.afx-ms .afxms-profil:active{transform:scale(.94)}
html.afx-ms .afxms-av{position:relative;display:grid;place-items:center;width:100%;height:100%}
html.afx-ms .afxms-av svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
html.afx-ms .afxms-harf{font-weight:700;font-size:14px;color:var(--txt,#fff)}
html.afx-ms .afxms-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (hover:hover) and (pointer:fine){html.afx-ms .afxms-profil:hover{border-color:var(--accent-txt,#8A8AFF)}}

/* ---------- içerik: kenar çubuğunun sağındaki alanı kullanır ---------- */
html.afx-ms body{overflow-x:clip}

/* ---------- açılışta içerik hafifçe belirir ---------- */
@keyframes afxmsBelir{from{opacity:0}to{opacity:1}}
html.afx-ms.afx-ms-hazir body>main,html.afx-ms.afx-ms-hazir body>.container,html.afx-ms.afx-ms-hazir body>.wrap{animation:afxmsBelir .22s ease-out both}

/* ---------- uygulama olarak yüklendiğinde (standalone) ---------- */
html.afx-ms.afx-sa header.nav{-webkit-app-region:no-drag}

@media (prefers-reduced-motion:reduce){
  html.afx-ms body,html.afx-ms .afxsb,html.afx-ms .afxsb__y,html.afx-ms .afxsb__bas{transition:none}
  html.afx-ms.afx-ms-hazir body>main,html.afx-ms.afx-ms-hazir body>.container,html.afx-ms.afx-ms-hazir body>.wrap{animation:none}
}
@media (prefers-reduced-transparency:reduce){html.afx-ms .afxsb{background:var(--bg,#000)}}

/* y200: menüde ikinci satır (ör. Canlı Grafik / (TradingView)) */
html.afx-ms .afxsb__alt{display:block;margin-top:1px;font-size:11.5px;font-weight:500;line-height:1.15;opacity:.72;overflow:hidden;text-overflow:ellipsis}
html.afx-ms .afxsb__a:has(.afxsb__alt){padding-top:5px;padding-bottom:5px}
html.afx-ms .afxsb__a .afxsb__alt{padding:0!important;border:0!important;margin:1px 0 0!important;background:none!important;box-shadow:none!important;font-size:11.5px!important;line-height:1.15!important;text-align:left!important}
html.afx-ms .afxsb__a:has(.afxsb__alt) .afxsb__y{line-height:1.2}
html.afx-ms.afx-sb-dar:not(.afx-sb-ust) .afxsb__alt,html.afx-ms.afx-sb-ince:not(.afx-sb-ust) .afxsb__alt{display:none}
