:root {
    --bg: #030506;
    --panel: rgba(12, 18, 22, 0.78);
    --panel-strong: rgba(16, 23, 28, 0.94);
    --border: rgba(124, 150, 168, 0.28);
    --text: #f8fafb;
    --muted: #98a4ae;
    --gold: #f1c64e;
    --gold-light: #ffe783;
    --gold-dark: #a86b0d;
    --shadow: rgba(0, 0, 0, 0.65);
    --success: #2ee66b;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.nav-emoji { display:flex; align-items:center; justify-content:center; width:clamp(19px,5.5vw,23px); height:clamp(19px,5.5vw,23px); font-size:clamp(19px,5.5vw,23px); line-height:1; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background: #030506;
}

body {
    color: var(--text);
    overflow-x: hidden;
}

button, input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 50% -10%, rgba(111, 77, 17, 0.20), transparent 28%), radial-gradient(circle at 85% 22%, rgba(150, 103, 24, 0.10), transparent 24%), linear-gradient(165deg, #020405 0%, #05090b 42%, #020405 100%);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -5;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 44px), repeating-linear-gradient(0deg, rgba(255,255,255,0.009) 0, rgba(255,255,255,0.009) 1px, transparent 1px, transparent 44px);
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.025), transparent 15%, transparent 85%, rgba(255,255,255,0.018)), radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.40) 100%);
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.30;
    pointer-events: none;
}

.ambient-top {
    width: 320px;
    height: 190px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 190, 45, 0.25);
}

.ambient-bottom {
    width: 400px;
    height: 160px;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(194, 128, 16, 0.16);
}

.globe {
    position: absolute;
    top: 30px;
    right: -105px;
    width: 300px;
    height: 300px;
    z-index: -3;
    border-radius: 50%;
    opacity: 0.38;
    border: 1px solid rgba(239, 188, 61, 0.30);
    transform: rotate(-13deg);
    background: radial-gradient(circle at 32% 28%, rgba(255,225,132,0.15), transparent 22%), radial-gradient(circle at 60% 55%, rgba(215,154,31,0.18), transparent 43%), repeating-radial-gradient(circle at center, transparent 0, transparent 27px, rgba(233,183,53,0.10) 28px, transparent 29px), linear-gradient(125deg, rgba(240,190,59,0.17), rgba(10,13,14,0.20) 48%, rgba(198,132,22,0.10));
    box-shadow: inset -45px -30px 80px rgba(0,0,0,0.85), inset 18px 12px 40px rgba(255,208,72,0.08), 0 0 60px rgba(223,163,36,0.08);
}

.globe::before,
.globe::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px solid rgba(235,185,55,0.11);
}

.globe::before {
    transform: scaleX(0.45);
}

.globe::after {
    transform: scaleY(0.42);
}

.globe-ring {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    border: 1px solid rgba(232,184,55,0.08);
}

.globe-ring-one {
    transform: rotate(28deg) scaleX(0.72);
}

.globe-ring-two {
    transform: rotate(-35deg) scaleY(0.68);
}

.globe-ring-three {
    inset: 24%;
    opacity: 0.45;
}

.candles {
    position: absolute;
    display: flex;
    align-items: flex-end;
    gap: 9px;
    height: 180px;
    z-index: -2;
    opacity: 0.23;
    filter: drop-shadow(0 0 9px rgba(235,180,50,0.20));
}

.candles-left {
    top: 170px;
    left: -8px;
    transform: rotate(-2deg);
}

.candles-right {
    top: 300px;
    right: -20px;
    transform: rotate(5deg);
}

.candles span {
    position: relative;
    width: 10px;
    height: var(--h);
    margin-bottom: var(--y);
    border: 1px solid rgba(239,190,57,0.60);
    background: linear-gradient(to bottom, rgba(239,190,57,0.55), rgba(117,78,18,0.20));
}

.candles span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20px;
    width: 1px;
    height: calc(100% + 40px);
    transform: translateX(-50%);
    background: rgba(239,190,57,0.48);
    z-index: -1;
}

.login-shell {
    position: relative;
    z-index: 5;
    width: min(100%, 480px);
    min-height: 100svh;
    margin: 0 auto;
    padding: max(48px, env(safe-area-inset-top)) 28px max(26px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.brand {
    text-align: center;
    margin-top: 20px;
}

.crown-wrap {
    width: 128px;
    height: 92px;
    margin: 0 auto 2px;
    filter: drop-shadow(0 10px 22px rgba(231,170,34,0.24));
}

.crown {
    width: 100%;
    height: 100%;
}

.brand h1 {
    font-size: clamp(39px, 11vw, 56px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    white-space: nowrap;
    text-shadow: 0 3px 18px rgba(0,0,0,0.75);
}

.brand h1 span {
    color: #ffffff;
}

.brand h1 strong {
    color: var(--gold);
    font-weight: 800;
    background: linear-gradient(100deg, #f2c348, #fff0a0 46%, #bc7710 84%, #f1ca51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    margin-top: 12px;
    color: #c9cdd0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
}

.welcome {
    text-align: center;
    margin-top: 74px;
}

.welcome h2 {
    font-size: 31px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.welcome p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.login-form {
    margin-top: 51px;
}

.input-field {
    position: relative;
    width: 100%;
    height: 72px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18,27,33,0.92), rgba(10,16,20,0.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 13px 32px rgba(0,0,0,0.20);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input-field:focus-within {
    border-color: rgba(241,198,78,0.70);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 0 0 3px rgba(241,198,78,0.08), 0 18px 38px rgba(0,0,0,0.30);
    transform: translateY(-1px);
}

.input-field > svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-left: 24px;
    color: #9aa9b5;
}

.input-field input {
    width: 100%;
    height: 100%;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f6f8f9;
    font-size: 18px;
    font-weight: 450;
}

.input-field input::placeholder {
    color: #77838e;
}

.password-toggle {
    width: 64px;
    height: 100%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: transparent;
    color: #8d9aa6;
}

.password-toggle svg {
    width: 27px;
    height: 27px;
}

.password-toggle.active {
    color: var(--gold);
}

.login-options {
    margin: 8px 1px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e7e8;
    font-size: 14px;
    cursor: pointer;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #231b08;
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(145deg, #ffe879, #d89c23);
    box-shadow: 0 5px 14px rgba(218,157,36,0.20);
}

.remember input:not(:checked) + .custom-check {
    color: transparent;
    background: rgba(18,25,30,0.94);
    border: 1px solid rgba(139,155,166,0.38);
    box-shadow: none;
}

.forgot {
    padding: 6px 0;
    color: var(--gold);
    background: transparent;
    font-size: 14px;
}

.login-button {
    position: relative;
    width: 100%;
    height: 72px;
    overflow: hidden;
    border-radius: 15px;
    color: #191405;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.1px;
    background: linear-gradient(105deg, #f6ca4d 0%, #ffe581 32%, #d99c23 70%, #f3c84c 100%);
    border: 1px solid rgba(255,232,136,0.78);
    box-shadow: 0 14px 28px rgba(183,120,14,0.18), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -2px 4px rgba(126,74,4,0.20);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.login-button:active {
    transform: scale(0.985);
    box-shadow: 0 7px 17px rgba(183,120,14,0.15), inset 0 2px 5px rgba(100,60,5,0.18);
}

.button-shine {
    position: absolute;
    width: 90px;
    height: 170px;
    top: -50px;
    left: -120px;
    transform: rotate(26deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
    animation: buttonShine 5s ease-in-out infinite;
}

.login-status {
    min-height: 18px;
    margin-top: 13px;
    text-align: center;
    color: var(--success);
    font-size: 12px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.login-status.visible {
    opacity: 1;
}

.login-footer {
    position: relative;
    margin-top: auto;
    padding-top: 41px;
    text-align: center;
}

.footer-line {
    width: 78%;
    height: 1px;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, transparent, rgba(140,154,163,0.50), transparent);
}

.login-footer p {
    color: #a1a8ae;
    font-size: 15px;
    letter-spacing: 4px;
}

.login-footer p span {
    padding: 0 7px;
    color: #c6a446;
}

.mountain {
    position: relative;
    width: calc(100% + 56px);
    height: 118px;
    margin: 18px -28px 8px;
    overflow: hidden;
    opacity: 0.72;
    filter: drop-shadow(0 -8px 18px rgba(208,147,24,0.12));
}

.mountain::before {
    content: "";
    position: absolute;
    left: -7%;
    bottom: -65px;
    width: 114%;
    height: 160px;
    background: linear-gradient(135deg, rgba(200,145,37,0.18), rgba(8,12,14,0.98) 58%);
    clip-path: polygon(0 85%, 12% 44%, 20% 68%, 32% 28%, 43% 74%, 55% 38%, 65% 67%, 77% 21%, 88% 64%, 100% 39%, 100% 100%, 0 100%);
    border-top: 1px solid rgba(226,171,50,0.22);
}

.login-footer small {
    display: block;
    margin-top: 7px;
    color: #bc9540;
    font-size: 9px;
    letter-spacing: 5px;
}

@keyframes buttonShine {
    0%, 72% { left: -120px; }
    88%, 100% { left: calc(100% + 70px); }
}

@media (max-width: 390px) {
    .login-shell { padding-left: 22px; padding-right: 22px; }
    .brand { margin-top: 4px; }
    .crown-wrap { width: 108px; height: 78px; }
    .brand h1 { font-size: 37px; }
    .brand-subtitle { font-size: 11px; letter-spacing: 5px; }
    .welcome { margin-top: 49px; }
    .welcome h2 { font-size: 28px; }
    .login-form { margin-top: 37px; }
    .input-field, .login-button { height: 66px; }
    .login-footer { padding-top: 25px; }
    .mountain { width: calc(100% + 44px); margin-left: -22px; margin-right: -22px; height: 95px; }
}

@media (min-height: 900px) {
    .brand { margin-top: 34px; }
    .welcome { margin-top: 82px; }
    .login-form { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* FOREX BOSS — Authentication states */
.login-status {
    min-height: 22px;
    margin-top: 14px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.35px;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.login-status.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-status.success {
    color: #35e978;
    text-shadow: 0 0 18px rgba(53, 233, 120, 0.18);
}

.login-status.error {
    color: #ff4d57;
    text-shadow: 0 0 18px rgba(255, 77, 87, 0.18);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.login-button.loading {
    pointer-events: none;
}

.login-button.loading .button-shine {
    animation-duration: 1.15s;
}

/* =========================================================
   FOREX BOSS — MOBILE DASHBOARD
   ========================================================= */

.dashboard-body { min-height: 100%; background: #020506; color: #f7f8f9; overflow-x: hidden; }

.dashboard-page { --dash-bg:#030708; --dash-panel:rgba(8,15,18,.92); --dash-panel-soft:rgba(14,23,28,.82); --dash-line:rgba(116,145,159,.20); --dash-muted:#a4adb3; --dash-gold:#f3c748; --dash-gold-soft:#ffe078; --dash-green:#16db53; position:relative; width:min(100%,480px); min-height:100svh; margin:0 auto; padding:max(32px,env(safe-area-inset-top)) 14px calc(104px + env(safe-area-inset-bottom)); overflow:hidden; isolation:isolate; background:radial-gradient(circle at 80% 15%,rgba(205,146,27,.09),transparent 23%),radial-gradient(circle at 10% 58%,rgba(18,88,100,.08),transparent 26%),linear-gradient(170deg,#020405 0%,#061014 45%,#020506 100%); }

.dashboard-page::before { content:""; position:absolute; inset:0; z-index:-5; opacity:.24; background:repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 1px,transparent 1px,transparent 42px),repeating-linear-gradient(0deg,rgba(255,255,255,.012) 0,rgba(255,255,255,.012) 1px,transparent 1px,transparent 42px); mask-image:linear-gradient(to bottom,#000,transparent 92%); }

.dashboard-page::after { content:""; position:absolute; inset:0; z-index:20; pointer-events:none; box-shadow:inset 0 0 90px rgba(0,0,0,.64); }

.dashboard-ambient { position:absolute; z-index:-4; border-radius:50%; filter:blur(70px); pointer-events:none; }

.dashboard-ambient-one { width:260px; height:260px; top:-110px; right:-100px; background:rgba(222,160,28,.10); }

.dashboard-ambient-two { width:250px; height:300px; top:430px; left:-170px; background:rgba(13,91,102,.10); }

.dashboard-header { position:relative; height:66px; display:grid; grid-template-columns:42px 1fr 42px; align-items:center; border-bottom:1px solid rgba(105,130,140,.14); margin:0 -14px 14px; padding:0 18px; }

.dashboard-header h1 { text-align:center; white-space:nowrap; font-size:28px; line-height:1; letter-spacing:-.9px; font-weight:800; }

.dashboard-header h1 span { color:#fff; }

.dashboard-header h1 strong { font-weight:800; background:linear-gradient(100deg,#f1bc34,#ffe486 52%,#c18116); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

.header-lock { width:38px; height:38px; display:grid; place-items:center; background:transparent; color:#b7c0c6; }

.header-lock svg { width:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }

.account-card,.risk-card { position:relative; overflow:hidden; border:1px solid var(--dash-line); border-radius:17px; background:linear-gradient(145deg,rgba(10,18,22,.94),rgba(4,10,12,.88)); box-shadow:0 18px 45px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.025); }

.account-card { padding:13px 11px 11px; }

.account-trigger { width:100%; min-height:108px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:0 9px 13px; text-align:left; color:#fff; background:transparent; }

.section-label { display:block; margin-bottom:7px; color:#d8dde0; font-size:17px; font-weight:400; }

.account-selector { height:44px; min-width:150px; padding:0 11px; display:flex; align-items:center; gap:13px; border:1px solid rgba(121,148,161,.20); border-radius:9px; background:linear-gradient(145deg,rgba(18,29,35,.92),rgba(8,14,17,.90)); }

.account-selector strong { font-size:20px; font-weight:450; }

.account-selector svg { width:20px; fill:none; stroke:#a9b5bc; stroke-width:1.8; }

.connection-status { margin-top:10px; display:flex; align-items:center; gap:9px; color:var(--dash-green); font-size:15px; }

.connection-status i { width:15px; height:15px; border-radius:50%; background:linear-gradient(145deg,#32ef70,#05b93a); box-shadow:0 0 16px rgba(23,221,80,.42); }

.mini-market { width:165px; padding-top:8px; text-align:right; }

.mini-bars { height:72px; display:flex; justify-content:flex-end; align-items:flex-end; gap:6px; opacity:.46; }

.mini-bars i { position:relative; display:block; width:6px; border-radius:1px; background:linear-gradient(to bottom,#d7a539,#654416); }

.mini-bars i::before { content:""; position:absolute; left:50%; width:1px; height:calc(100% + 16px); top:-8px; transform:translateX(-50%); background:rgba(220,166,50,.56); z-index:-1; }

.mini-bars i:nth-child(1){height:21px}.mini-bars i:nth-child(2){height:41px}.mini-bars i:nth-child(3){height:54px}.mini-bars i:nth-child(4){height:38px}.mini-bars i:nth-child(5){height:48px}.mini-bars i:nth-child(6){height:37px}.mini-bars i:nth-child(7){height:59px}.mini-bars i:nth-child(8){height:69px}

.mini-market small { display:block; margin-top:6px; color:var(--dash-gold); font-size:8px; line-height:1.6; letter-spacing:3px; font-weight:700; }

/* =========================================================
   FOREX BOSS — MT5 ACCOUNT MODAL
   ========================================================= */

.account-selector { color:#fff; cursor:pointer; transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease; }
.account-selector:active { transform:scale(.985); }
.account-selector:hover { border-color:rgba(243,199,72,.42); background:linear-gradient(145deg,rgba(23,34,39,.96),rgba(10,17,20,.94)); }

body.mt5-modal-open { overflow:hidden; touch-action:none; }

.mt5-modal { position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; padding:max(18px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom)); background:rgba(0,4,6,.74); backdrop-filter:blur(12px) saturate(.75); -webkit-backdrop-filter:blur(12px) saturate(.75); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .22s ease,visibility .22s ease; }

.mt5-modal::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 35%,rgba(219,157,29,.10),transparent 32%),linear-gradient(180deg,rgba(2,6,8,.12),rgba(0,2,3,.48)); }

.mt5-modal.open { opacity:1; visibility:visible; pointer-events:auto; }

.mt5-modal-panel { position:relative; z-index:1; width:min(100%,420px); max-height:calc(100dvh - 36px); overflow-y:auto; overscroll-behavior:contain; padding:22px 18px 18px; border:1px solid rgba(137,163,175,.27); border-radius:20px; background:radial-gradient(circle at 88% 5%,rgba(212,151,26,.10),transparent 24%),linear-gradient(155deg,rgba(14,24,29,.985),rgba(5,11,14,.995)); box-shadow:0 35px 100px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.015) inset,inset 0 1px 0 rgba(255,255,255,.045); transform:translateY(22px) scale(.975); transition:transform .24s cubic-bezier(.2,.8,.2,1); scrollbar-width:none; }

.mt5-modal-panel::-webkit-scrollbar { display:none; }

.mt5-modal.open .mt5-modal-panel { transform:translateY(0) scale(1); }

.mt5-modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:20px; padding-bottom:17px; border-bottom:1px solid rgba(119,145,157,.16); }

.mt5-modal-eyebrow { display:block; margin-bottom:6px; color:#e7bb42; font-size:9px; font-weight:800; letter-spacing:3.2px; }

.mt5-modal-header h2 { color:#f8fafb; font-size:23px; line-height:1.15; font-weight:760; letter-spacing:-.6px; }

.mt5-modal-header p { margin-top:7px; color:#8f9ba2; font-size:12px; line-height:1.4; }

.mt5-modal-close { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border:1px solid rgba(127,151,163,.20); border-radius:11px; color:#aab5bb; background:rgba(15,24,29,.78); transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease; }

.mt5-modal-close:active { transform:scale(.94); }

.mt5-modal-close:hover { color:#f3c748; border-color:rgba(243,199,72,.38); background:rgba(25,31,31,.92); }

.mt5-modal-close svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }

.mt5-modal-status { height:42px; margin-bottom:16px; padding:0 13px; display:flex; align-items:center; gap:9px; border:1px solid rgba(80,141,100,.16); border-radius:10px; color:#aeb9be; background:rgba(8,20,14,.42); font-size:12px; }

.mt5-status-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#25df62; box-shadow:0 0 12px rgba(37,223,98,.48); }

.mt5-modal .credential-field { display:block; margin-bottom:14px; }

.mt5-modal .credential-field > span { display:block; margin:0 0 7px 3px; color:#abb6bc; font-size:12px; font-weight:600; letter-spacing:.3px; }

.mt5-modal .credential-field > input,.mt5-modal .credential-password { width:100%; height:56px; border:1px solid rgba(128,155,167,.26); border-radius:12px; outline:none; background:linear-gradient(145deg,rgba(18,29,35,.96),rgba(9,16,20,.96)); color:#f8fafb; box-shadow:inset 0 1px 0 rgba(255,255,255,.025); transition:border-color .18s ease,box-shadow .18s ease; }

.mt5-modal .credential-field > input { padding:0 15px; font-size:15px; }

.mt5-modal .credential-field > input:focus,.mt5-modal .credential-password:focus-within { border-color:rgba(243,199,72,.54); box-shadow:0 0 0 3px rgba(243,199,72,.06); }

.mt5-modal .credential-password { display:flex; align-items:center; overflow:hidden; }

.mt5-modal .credential-password input { width:100%; height:100%; padding:0 15px; border:0; outline:0; background:transparent; color:#f8fafb; font-size:15px; }

.mt5-modal .credential-password button { width:54px; height:100%; flex:0 0 54px; display:grid; place-items:center; color:#8f9da6; background:transparent; }

.mt5-modal .credential-password button.active { color:#f3c748; }

.mt5-modal .credential-password svg { width:23px; fill:none; stroke:currentColor; stroke-width:1.7; }

.mt5-modal .account-connect-button { width:100%; height:56px; margin-top:5px; border-radius:12px; color:#161104; font-size:15px; font-weight:800; background:linear-gradient(100deg,#eab632 0%,#ffe47a 45%,#d7971b 100%); border:1px solid rgba(255,227,119,.62); box-shadow:0 13px 30px rgba(193,132,20,.16),inset 0 1px 0 rgba(255,255,255,.45); }

.mt5-modal .account-connect-button:active { transform:scale(.988); }

.mt5-modal-security { margin-top:15px; text-align:center; color:#67757d; font-size:8px; font-weight:700; letter-spacing:3px; }

@media(max-width:390px) {
    .mt5-modal { padding-left:11px; padding-right:11px; }
    .mt5-modal-panel { padding:19px 15px 16px; border-radius:17px; }
    .mt5-modal-header h2 { font-size:21px; }
    .mt5-modal .credential-field > input,.mt5-modal .credential-password { height:53px; }
    .mt5-modal .account-connect-button { height:53px; }
}
.credential-field { display:block; margin-bottom:11px; }

.credential-field > span { display:block; margin:0 0 6px 3px; color:#aab4ba; font-size:12px; letter-spacing:.3px; }

.credential-field > input,.credential-password { width:100%; height:52px; border:1px solid rgba(124,151,163,.24); border-radius:11px; outline:none; background:rgba(15,24,29,.90); color:#f8fafb; }

.credential-field > input { padding:0 15px; font-size:15px; }

.credential-password { display:flex; align-items:center; overflow:hidden; }

.credential-password input { width:100%; height:100%; padding:0 15px; border:0; outline:none; background:transparent; color:#f8fafb; font-size:15px; }

.credential-password button { width:52px; height:100%; flex:0 0 auto; display:grid; place-items:center; background:transparent; color:#8f9da6; }

.credential-password button.active { color:var(--dash-gold); }

.credential-password svg { width:23px; fill:none; stroke:currentColor; stroke-width:1.7; }

.account-connect-button { width:100%; height:50px; margin-top:4px; border-radius:10px; color:#171205; font-size:15px; font-weight:750; background:linear-gradient(100deg,#eebd38,#ffe277 50%,#d99c23); box-shadow:0 8px 22px rgba(202,143,25,.15); }

.account-stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }

.account-stat { min-width:0; height:98px; display:flex; align-items:center; justify-content:space-between; gap:7px; padding:14px 12px; border:1px solid rgba(108,135,147,.15); border-radius:13px; background:linear-gradient(145deg,rgba(13,22,27,.90),rgba(6,12,15,.80)); }

.account-stat > div:first-child { min-width:0; }

.account-stat span { display:block; margin-bottom:9px; color:#c7cdd1; font-size:13px; white-space:nowrap; }

.account-stat strong { display:block; color:#f8f9fa; font-size:23px; line-height:1; white-space:nowrap; letter-spacing:-.5px; }

.account-stat .profit-value { color:#20de58; font-size:22px; text-shadow:0 0 17px rgba(32,222,88,.14); }

.stat-icon { width:48px; height:48px; flex:0 0 auto; display:grid; place-items:center; border-radius:10px; }

.stat-icon svg { width:29px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.gold-icon { color:#f3c83e; background:radial-gradient(circle at center,rgba(228,174,45,.13),rgba(132,92,19,.06)); }

.green-icon { color:#18df56; background:radial-gradient(circle at center,rgba(28,210,83,.12),rgba(8,90,35,.04)); }

.risk-card { margin-top:13px; padding:15px 9px 7px; }

.risk-heading { min-height:71px; padding:0 10px 12px; display:flex; align-items:center; justify-content:space-between; gap:10px; }

.risk-title-wrap { display:flex; align-items:center; gap:12px; }

.risk-title-wrap h2 { color:#f8f9fa; font-size:25px; line-height:1; font-weight:750; letter-spacing:-.7px; white-space:nowrap; }

.risk-shield { width:42px; height:42px; display:grid; place-items:center; color:var(--dash-gold); }

.risk-shield svg { width:40px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.risk-heading p { color:#a7afb4; font-size:11px; line-height:1.45; }

.risk-list { overflow:hidden; border:1px solid rgba(104,132,145,.13); border-radius:13px; background:rgba(10,18,22,.72); }

.risk-row { min-height:67px; padding:0 13px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid rgba(105,132,143,.13); }

.risk-row:last-child { border-bottom:0; }

.risk-name { min-width:0; display:flex; align-items:center; gap:13px; color:#f0f2f3; font-size:15px; }

.risk-name > span:last-child { white-space:nowrap; }

.risk-symbol { width:31px; height:31px; flex:0 0 31px; display:grid; place-items:center; color:#edf1f3; font-size:27px; }

.risk-symbol svg { width:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.percent-symbol { font-size:27px; font-weight:500; }

.arrows-symbol { font-size:30px; transform:translateY(-1px); }

.partial-symbol { font-size:34px; font-weight:300; }

.switch { position:relative; flex:0 0 auto; cursor:pointer; }

.switch input { position:absolute; opacity:0; pointer-events:none; }

.switch-track { width:84px; height:42px; padding:3px 4px 3px 12px; display:flex; align-items:center; justify-content:space-between; border-radius:999px; color:#fff; background:#293239; box-shadow:inset 0 1px 3px rgba(0,0,0,.5); transition:.18s ease; }

.switch-text { font-size:13px; font-weight:650; }

.switch-track i { width:34px; height:34px; border-radius:50%; background:#edf1f2; box-shadow:0 2px 7px rgba(0,0,0,.34); transition:.18s ease; }

.switch input:checked + .switch-track { background:linear-gradient(100deg,#03b93b,#1fe566); box-shadow:0 0 18px rgba(17,219,77,.13),inset 0 1px 2px rgba(255,255,255,.22); }

.switch input:not(:checked) + .switch-track { padding-left:4px; padding-right:10px; flex-direction:row-reverse; }

.selectable-row { cursor:pointer; }

.select-wrap { position:relative; height:48px; min-width:108px; display:flex; align-items:center; justify-content:flex-end; }

.select-wrap select { position:relative; z-index:2; width:100%; height:100%; padding:0 28px 0 8px; appearance:none; -webkit-appearance:none; border:0; outline:0; text-align:right; color:#f7f9fa; background:transparent; font-size:16px; font-weight:650; cursor:pointer; }

.select-wrap svg { position:absolute; z-index:1; right:0; width:19px; fill:none; stroke:#7e8b93; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }

.select-wrap select option { color:#fff; background:#10181c; }

.dashboard-nav { position:absolute; z-index:15; left:0; right:0; bottom:0; height:92px; padding:10px 33px max(11px,env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:space-between; border-top:1px solid rgba(100,126,137,.14); background:linear-gradient(to bottom,rgba(3,8,10,.96),rgba(2,5,6,.995)); backdrop-filter:blur(18px); }

.nav-item { width:76px; height:66px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#8e9aa2; background:transparent; font-size:12px; }

.nav-item svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

.nav-item:first-child svg { fill:currentColor; stroke:none; }

.nav-item.active { color:var(--dash-gold); text-shadow:0 0 17px rgba(243,199,72,.15); }

@media(max-width:390px) {
    .dashboard-page { padding-left:10px; padding-right:10px; }
    .dashboard-header { margin-left:-10px; margin-right:-10px; }
    .dashboard-header h1 { font-size:25px; }
    .account-card { padding-left:8px; padding-right:8px; }
    .account-trigger { min-height:116px; padding-left:6px; padding-right:6px; }
    .mini-market { width:125px; }
    .account-selector { min-width:139px; height:41px; }
    .account-selector strong { font-size:18px; }
    .account-stat { height:90px; padding:12px 9px; }
    .account-stat strong { font-size:20px; }
    .account-stat .profit-value { font-size:19px; }
    .stat-icon { width:40px; height:40px; }
    .stat-icon svg { width:24px; }
    .risk-card { padding-left:7px; padding-right:7px; }
    .risk-heading { padding-left:6px; padding-right:6px; }
    .risk-title-wrap { gap:8px; }
    .risk-title-wrap h2 { font-size:22px; }
    .risk-heading p { font-size:9px; }
    .risk-row { min-height:63px; padding-left:9px; padding-right:9px; }
    .risk-name { gap:9px; font-size:13px; }
    .risk-symbol { width:27px; flex-basis:27px; }
    .risk-symbol svg { width:24px; }
    .switch-track { width:73px; height:38px; }
    .switch-track i { width:30px; height:30px; }
    .switch-text { font-size:11px; }
    .select-wrap { min-width:90px; }
    .select-wrap select { font-size:14px; }
}

@media(min-width:431px) {
    .dashboard-page { box-shadow:0 0 70px rgba(0,0,0,.55); }
}

/* =========================================================
   FOREX BOSS — ULTRA COMPACT MOBILE DASHBOARD
   Account + Risk Control tek ekrana sıkıştırma
   ========================================================= */

.dashboard-body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.dashboard-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(64px + env(safe-area-inset-bottom));
}

.dashboard-header {
    height: 48px;
    margin: 0 -10px 6px;
    padding: 0 14px;
}

.dashboard-header h1 {
    font-size: 24px;
}

.header-lock {
    width: 32px;
    height: 32px;
}

.header-lock svg {
    width: 19px;
}


/* ================= ACCOUNT ================= */

.account-card {
    padding: 8px;
    border-radius: 14px;
}

.account-trigger {
    min-height: 72px;
    padding: 0 6px 6px;
    gap: 8px;
}

.section-label {
    margin-bottom: 4px;
    font-size: 14px;
}

.account-selector {
    height: 36px;
    min-width: 132px;
    padding: 0 9px;
    gap: 8px;
    border-radius: 8px;
}

.account-selector strong {
    font-size: 16px;
}

.account-selector svg {
    width: 16px;
}

.connection-status {
    margin-top: 5px;
    gap: 6px;
    font-size: 12px;
}

.connection-status i {
    width: 10px;
    height: 10px;
}

.mini-market {
    width: 115px;
    padding-top: 0;
}

.mini-bars {
    height: 43px;
    gap: 4px;
}

.mini-bars i {
    width: 4px;
}

.mini-market small {
    margin-top: 2px;
    font-size: 6px;
    line-height: 1.35;
    letter-spacing: 2px;
}

.account-stat-grid {
    gap: 5px;
}

.account-stat {
    height: 61px;
    padding: 7px 8px;
    border-radius: 10px;
}

.account-stat span {
    margin-bottom: 4px;
    font-size: 10px;
}

.account-stat strong {
    font-size: 17px;
    letter-spacing: -.25px;
}

.account-stat .profit-value {
    font-size: 17px;
}

.stat-icon {
    width: 33px;
    height: 33px;
    border-radius: 8px;
}

.stat-icon svg {
    width: 20px;
}


/* ================= RISK CONTROL ================= */

.risk-card {
    margin-top: 6px;
    padding: 6px;
    border-radius: 14px;
}

.risk-heading {
    min-height: 43px;
    padding: 0 6px 5px;
    gap: 6px;
}

.risk-title-wrap {
    gap: 7px;
}

.risk-title-wrap h2 {
    font-size: 19px;
}

.risk-shield {
    width: 30px;
    height: 30px;
}

.risk-shield svg {
    width: 29px;
}

.risk-heading p {
    font-size: 8px;
    line-height: 1.25;
}

.risk-list {
    border-radius: 10px;
}

.risk-row {
    min-height: 43px;
    padding: 0 9px;
    gap: 7px;
}

.risk-name {
    gap: 7px;
    font-size: 12px;
}

.risk-symbol {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 20px;
}

.risk-symbol svg {
    width: 21px;
}

.percent-symbol {
    font-size: 21px;
}

.arrows-symbol {
    font-size: 23px;
}

.partial-symbol {
    font-size: 26px;
}


/* ================= SWITCH ================= */

.switch-track {
    width: 64px;
    height: 32px;
    padding: 3px 3px 3px 9px;
}

.switch-track i {
    width: 26px;
    height: 26px;
}

.switch-text {
    font-size: 9px;
}

.switch input:not(:checked) + .switch-track {
    padding-left: 3px;
    padding-right: 8px;
}


/* ================= SELECT ================= */

.select-wrap {
    height: 36px;
    min-width: 80px;
}

.select-wrap select {
    padding: 0 20px 0 5px;
    font-size: 12px;
}

.select-wrap svg {
    width: 15px;
}


/* ================= BOTTOM NAV ================= */

.dashboard-nav {
    height: 58px;
    padding: 3px 28px max(5px, env(safe-area-inset-bottom));
}

.nav-item {
    width: 55px;
    height: 48px;
    gap: 2px;
    font-size: 9px;
}

.nav-item svg {
    width: 21px;
    height: 21px;
}


/* =========================================================
   FOREX BOSS — FINAL AUTO-FIT MOBILE LAYOUT
   TÜM TELEFON YÜKSEKLİKLERİNE OTOMATİK UYUM
   ========================================================= */

.dashboard-body {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.dashboard-page {
    width: min(100%, 480px);
    height: 100dvh;
    min-height: 0;
    margin: 0 auto;
    padding: max(7px, env(safe-area-inset-top)) 10px 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: clamp(4px, .7dvh, 7px);
    overflow: hidden;
}


/* ================= HEADER ================= */

.dashboard-header {
    height: clamp(42px, 6.2dvh, 54px);
    min-height: 0;
    margin: 0 -10px;
    padding: 0 14px;
}

.dashboard-header h1 {
    font-size: clamp(21px, 6vw, 26px);
}

.header-lock {
    width: 32px;
    height: 32px;
}

.header-lock svg {
    width: 19px;
}


/* ================= ACCOUNT ================= */

.account-card {
    min-height: 0;
    padding: clamp(6px, 1dvh, 9px);
    border-radius: 14px;
    display: grid;
    grid-template-rows: auto auto;
    gap: clamp(4px, .6dvh, 6px);
}

.account-trigger {
    width: 100%;
    height: clamp(78px, 11.5dvh, 104px);
    min-height: 0;
    padding: 3px 7px 5px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
}

.section-label {
    margin-bottom: 4px;
    font-size: clamp(12px, 3.4vw, 15px);
}

.account-selector {
    height: clamp(34px, 5.2dvh, 40px);
    min-width: clamp(125px, 36vw, 145px);
    padding: 0 9px;
    gap: 7px;
}

.account-selector strong {
    font-size: clamp(15px, 4.2vw, 18px);
}

.account-selector svg {
    width: 15px;
}

.connection-status {
    margin-top: clamp(4px, .8dvh, 7px);
    gap: 6px;
    font-size: clamp(11px, 3vw, 13px);
}

.connection-status i {
    width: 10px;
    height: 10px;
}

.mini-market {
    width: clamp(100px, 30vw, 125px);
    padding-top: 1px;
}

.mini-bars {
    height: clamp(42px, 7dvh, 60px);
    gap: 4px;
}

.mini-bars i {
    width: 4px;
}

.mini-market small {
    margin-top: 2px;
    font-size: clamp(5px, 1.5vw, 7px);
    line-height: 1.3;
    letter-spacing: 1.8px;
}


/* =========================================================
   FOREX BOSS — TP1 PARTIAL CLOSE CONTROL
   ========================================================= */

.tp1-partial-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.tp1-partial-select {
    min-width: 78px;
    width: 78px;
}

.tp1-partial-select select {
    padding-left: 0;
    padding-right: 23px;
}

/* OFF olduğunda yüzde tamamen kaybolur */
.tp1-partial-controls:has(#tp1PartialEnabled:not(:checked)) .tp1-partial-select {
    display: none;
}

@media (max-width: 390px) {
    .tp1-partial-controls {
        gap: 6px;
    }

    .tp1-partial-select {
        min-width: 68px;
        width: 68px;
    }
}

/* =========================================================
   FOREX BOSS — AUTO TRADE / RISK ENGINE LOCK
   ========================================================= */

.risk-list {
    position: relative;
}

/* Auto Trade haricindeki bütün satırlar */
.risk-list.risk-engine-active > .risk-row:not(:first-child) {
    opacity: 0.34;
    filter: blur(1.15px);
    pointer-events: none;
    user-select: none;
    transition:
        opacity 180ms ease,
        filter 180ms ease;
}

/* Kilit perdesi */
.risk-list.risk-engine-active::after {
    content: "🔒  RISK MOTOR ACTIVE\A Settings locked while Auto Trade is ON";
    white-space: pre-line;

    position: absolute;
    z-index: 20;

    left: 0;
    right: 0;
    top: 67px;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;
    color: #f5f7f8;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.65;
    letter-spacing: 0.35px;

    background:
        linear-gradient(
            180deg,
            rgba(5, 10, 12, 0.28),
            rgba(5, 10, 12, 0.54)
        );

    backdrop-filter: blur(1.8px);
    -webkit-backdrop-filter: blur(1.8px);

    pointer-events: auto;

    animation: riskLockFadeIn 180ms ease;
}

@keyframes riskLockFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 390px) {
    .risk-list.risk-engine-active::after {
        top: 63px;
        font-size: 12px;
    }
}

/* ================= ACCOUNT STATS ================= */

.account-stat-grid {
    min-height: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, clamp(60px, 7.4dvh, 70px));
    gap: clamp(8px, .8dvh, 8px);
}

.account-stat {
    height: auto;
    min-height: 10;
    padding: 10px 8px;
    border-radius: 10px;
}

.account-stat span {
    margin-bottom: 3px;
    font-size: clamp(9px, 2.6vw, 11px);
}

.account-stat strong,
.account-stat .profit-value {
    font-size: clamp(15px, 4.4vw, 18px);
}

.stat-icon {
    width: clamp(28px, 8.5vw, 35px);
    height: clamp(28px, 8.5vw, 35px);
    border-radius: 8px;
}

.stat-icon svg {
    width: clamp(17px, 5vw, 21px);
}


/* ================= RISK CONTROL ================= */

.risk-card {
    min-height: 0;
    margin-top: 0;
    padding: clamp(4px, .7dvh, 6px);
    border-radius: 14px;
    display: grid;
    grid-template-rows: clamp(37px, 5.5dvh, 48px) minmax(0, 1fr);
    overflow: hidden;
}

.risk-heading {
    min-height: 0;
    height: 100%;
    padding: 0 6px 3px;
    gap: 6px;
}

.risk-title-wrap {
    gap: 7px;
}

.risk-title-wrap h2 {
    font-size: clamp(17px, 5vw, 21px);
}

.risk-shield {
    width: clamp(25px, 7vw, 31px);
    height: clamp(25px, 7vw, 31px);
}

.risk-shield svg {
    width: 100%;
    height: 100%;
}

.risk-heading p {
    font-size: clamp(7px, 2vw, 9px);
    line-height: 1.25;
}


/* Risk satırları kalan alanı OTOMATİK paylaşır */

.risk-list {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 10px;
}

.risk-row {
    min-height: 0;
    height: auto;
    padding: 0 clamp(7px, 2.3vw, 10px);
    gap: 7px;
}

.risk-name {
    gap: 7px;
    font-size: clamp(10px, 3vw, 13px);
}

.risk-symbol {
    width: clamp(21px, 6vw, 26px);
    height: clamp(21px, 6vw, 26px);
    flex-basis: clamp(21px, 6vw, 26px);
}

.risk-symbol svg {
    width: clamp(19px, 5.4vw, 23px);
}

.percent-symbol {
    font-size: clamp(19px, 5.7vw, 24px);
}

.arrows-symbol {
    font-size: clamp(21px, 6.2vw, 26px);
}

.partial-symbol {
    font-size: clamp(23px, 6.8vw, 29px);
}


/* ================= SWITCH ================= */

.switch-track {
    width: clamp(58px, 17vw, 72px);
    height: clamp(29px, 4.8dvh, 37px);
    padding: 3px;
}

.switch-track i {
    width: clamp(23px, 6.8vw, 30px);
    height: clamp(23px, 6.8vw, 30px);
}

.switch-text {
    margin-left: 5px;
    font-size: clamp(8px, 2.3vw, 10px);
}


/* ================= SELECT ================= */

.select-wrap {
    height: clamp(30px, 4.8dvh, 38px);
    min-width: clamp(75px, 21vw, 92px);
}

.select-wrap select {
    padding: 0 19px 0 4px;
    font-size: clamp(11px, 3vw, 13px);
}

.select-wrap svg {
    width: 14px;
}


/* =========================================================
   FOREX BOSS — FINAL RESPONSIVE VERTICAL POSITION OVERRIDE
   HEADER + ACCOUNT + RISK CONTROL KOMPLE AŞAĞI
   ALT NAV HER ZAMAN EKRANIN DİBİNDE
   ========================================================= */

.dashboard-body{
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
}

.dashboard-page{
    width:min(100%,480px)!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0 auto!important;

    /* TÜM ÜST BLOĞU AŞAĞI İTEN ANA SATIR */
    padding-top:max(calc(env(safe-area-inset-top,0px) + clamp(18px,3.2dvh,34px)),22px)!important;

    padding-right:10px!important;
    padding-bottom:0!important;
    padding-left:10px!important;

    display:grid!important;
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
    gap:clamp(4px,.65dvh,7px)!important;
    overflow:hidden!important;
}

/* Kısa telefonlarda otomatik daha az aşağı iner */
@media (max-height:700px){
    .dashboard-page{
        padding-top:max(calc(env(safe-area-inset-top,0px) + 10px),14px)!important;
        gap:3px!important;
    }
}

/* Normal telefonlar */
@media (min-height:701px) and (max-height:850px){
    .dashboard-page{
        padding-top:max(calc(env(safe-area-inset-top,0px) + clamp(16px,2.8dvh,24px)),20px)!important;
    }
}

/* Uzun iPhone / Android ekranları */
@media (min-height:851px){
    .dashboard-page{
        padding-top:max(calc(env(safe-area-inset-top,0px) + clamp(24px,3.6dvh,38px)),28px)!important;
    }
}

/* ALT MENÜ GRID'İN SON SATIRINDA KALIR — İÇERİĞİN ÜSTÜNE ÇIKMAZ */
.dashboard-nav{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    align-self:end!important;
    width:auto!important;
    margin:0 -10px!important;
    flex-shrink:0!important;
}


/* =========================================================
   FOREX BOSS — TRUE FULL SCREEN MOBILE FINAL OVERRIDE
   TELEFONUN ENİ + BOYU = UYGULAMANIN ENİ + BOYU
   ========================================================= */

@media (max-width:768px){

    html,
    body,
    .dashboard-body{
        width:100%!important;
        max-width:none!important;
        height:100%!important;
        min-height:100dvh!important;
        margin:0!important;
        padding:0!important;
        overflow:hidden!important;
    }

    .dashboard-page{
        position:relative!important;

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

        height:100dvh!important;
        min-height:100dvh!important;
        max-height:100dvh!important;

        margin:0!important;

        padding:
            max(env(safe-area-inset-top,0px),10px)
            clamp(8px,2.5vw,14px)
            0
            clamp(8px,2.5vw,14px)!important;

        display:grid!important;
        grid-template-rows:auto auto minmax(0,1fr) auto!important;
        gap:clamp(4px,.7dvh,7px)!important;

        overflow:hidden!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
    }

    .dashboard-header{
        width:calc(100% + (clamp(8px,2.5vw,14px) * 2))!important;
        margin-left:calc(clamp(8px,2.5vw,14px) * -1)!important;
        margin-right:calc(clamp(8px,2.5vw,14px) * -1)!important;
    }

    .account-card,
    .risk-card{
        width:100%!important;
        max-width:none!important;
        margin-left:0!important;
        margin-right:0!important;
    }

    .account-trigger,
    .account-stat-grid,
    .risk-list{
        width:100%!important;
        max-width:none!important;
    }

    .risk-card{
        min-height:0!important;
        overflow:hidden!important;
    }

    .dashboard-nav{
        position:relative!important;

        left:auto!important;
        right:auto!important;
        bottom:auto!important;

        width:calc(100% + (clamp(8px,2.5vw,14px) * 2))!important;
        max-width:none!important;

        margin-left:calc(clamp(8px,2.5vw,14px) * -1)!important;
        margin-right:calc(clamp(8px,2.5vw,14px) * -1)!important;
        margin-bottom:0!important;

        padding:
            3px
            clamp(24px,8vw,42px)
            max(5px,env(safe-area-inset-bottom,0px))!important;

        align-self:end!important;
    }
}


/* FOREX BOSS — BOTTOM NAV ABSOLUTE BOTTOM FINAL */
@media (max-width:768px){
  .dashboard-nav{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:6px 24px max(6px,env(safe-area-inset-bottom,0px))!important;
    z-index:9999!important;
    transform:none!important;
  }

  .dashboard-page{
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* =========================================================
   FOREX BOSS — SIGNAL SCREEN
   Home architecture untouched. Signal middle view only.
   ========================================================= */

.signal-screen{display:none;min-height:0;width:100%;overflow:hidden}.dashboard-page.signal-mode{height:100dvh;min-height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.dashboard-page.signal-mode>.account-card,.dashboard-page.signal-mode>.risk-card{display:none}.dashboard-page.signal-mode>.dashboard-header{grid-row:1}.dashboard-page.signal-mode>.signal-screen{grid-row:2;display:flex;flex-direction:column;min-height:0;padding:6px 0 8px}.dashboard-page.signal-mode>.dashboard-nav{grid-row:3;position:relative;bottom:auto;left:auto;transform:none;flex-shrink:0}.signal-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;flex:0 0 auto;margin:0 0 7px}.signal-summary-card{min-width:0;height:58px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:linear-gradient(180deg,rgba(10,19,21,.96),rgba(4,10,12,.96));display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 22px rgba(0,0,0,.24);color:#e8edef}.signal-summary-card span{height:14px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;line-height:1}.signal-summary-card small{display:block;margin-top:3px;color:rgba(255,255,255,.62);font-size:8px;line-height:1;white-space:nowrap}.signal-summary-card strong{display:block;margin-top:4px;color:#f3f6f7;font-size:17px;line-height:1;font-weight:800}.signal-summary-active strong,.signal-summary-active span{color:#19e765}.signal-summary-tp strong,.signal-summary-tp span{color:#f2c24e}.signal-summary-sl strong,.signal-summary-sl span{color:#ff545d}.signal-summary-dot{width:10px;height:10px!important;border-radius:50%;background:#16df61;box-shadow:0 0 10px rgba(22,223,97,.75)}.signal-list-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 1px 4px;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.signal-list-scroll::-webkit-scrollbar{display:none}.signal-trade-card{position:relative;min-height:77px;margin-bottom:6px;padding:8px 12px 7px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:linear-gradient(110deg,rgba(5,13,15,.98),rgba(4,11,13,.96));box-shadow:inset 0 0 24px rgba(0,0,0,.20)}.signal-trade-top{height:22px;display:flex;align-items:center;gap:7px}.signal-pair-wrap{display:flex;align-items:center;gap:8px;min-width:0;margin-right:auto}.signal-pair-wrap>strong{font-size:15px;line-height:1;color:#f2f4f5;font-weight:800;letter-spacing:.1px}.signal-side{height:21px;min-width:44px;padding:0 9px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;line-height:1;font-weight:800}.signal-buy{color:#54f08b;border:1px solid rgba(20,223,92,.55);background:rgba(0,164,55,.22);box-shadow:inset 0 0 12px rgba(0,220,80,.10)}.signal-sell{color:#ff666c;border:1px solid rgba(255,65,72,.55);background:rgba(190,29,35,.22);box-shadow:inset 0 0 12px rgba(255,40,48,.09)}.signal-status{height:21px;padding:0 10px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;font-size:8px;font-weight:800}.signal-status i{width:7px;height:7px;border-radius:50%;background:#19ea63;box-shadow:0 0 8px rgba(25,234,99,.85)}.signal-status-active{color:#40ed7a;border:1px solid rgba(19,197,74,.18);background:rgba(0,150,45,.16)}.signal-status-tp{color:#f3cb61;border:1px solid rgba(220,170,34,.25);background:rgba(121,83,0,.18)}.signal-status-sl{color:#ff646b;border:1px solid rgba(230,60,67,.22);background:rgba(137,23,28,.20)}.signal-status-wait{color:#d7dde0;border:1px solid rgba(255,255,255,.08);background:rgba(104,117,124,.15)}.signal-chevron{margin-left:1px;color:rgba(255,255,255,.62);font-size:20px;line-height:1}.signal-trade-body{display:grid;grid-template-columns:minmax(0,1fr) 123px;gap:8px;align-items:end;margin-top:3px}.signal-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.signal-levels div{min-width:0}.signal-levels small{display:block;color:rgba(255,255,255,.53);font-size:8px;line-height:1}.signal-levels b{display:block;margin-top:2px;color:#e8edef;font-size:11px;line-height:1.05;font-weight:650;white-space:nowrap}.signal-result{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;padding-left:4px}.signal-result strong{font-size:12px;line-height:1;font-weight:800;white-space:nowrap}.signal-result small{margin-top:4px;color:rgba(255,255,255,.50);font-size:8px;line-height:1;white-space:nowrap}.signal-result-profit strong{color:#28e86b}.signal-result-loss strong{color:#ff545c}.signal-result-wait strong{color:#e7ecee}.signal-progress{height:4px;margin-top:6px;margin-right:133px;border-radius:8px;background:#152126;overflow:hidden}.signal-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#08c84a,#23ed6e)}.signal-progress-loss i{background:linear-gradient(90deg,#ff353e,#ff565d)}.signal-progress-wait i{background:#79848a}.signal-screen[aria-hidden="true"]{display:none!important}

@media(max-width:430px){.dashboard-page.signal-mode>.signal-screen{padding-top:4px}.signal-summary{gap:4px;margin-bottom:5px}.signal-summary-card{height:54px;border-radius:10px}.signal-summary-card small{font-size:7px}.signal-summary-card strong{font-size:16px}.signal-trade-card{min-height:73px;margin-bottom:5px;padding:7px 9px 6px;border-radius:11px}.signal-pair-wrap>strong{font-size:14px}.signal-side{height:19px;min-width:40px;padding:0 7px;font-size:8px}.signal-status{height:19px;padding:0 8px;font-size:7px}.signal-trade-body{grid-template-columns:minmax(0,1fr) 112px;gap:5px}.signal-levels{gap:3px}.signal-levels small{font-size:7px}.signal-levels b{font-size:10px}.signal-result strong{font-size:11px}.signal-result small{font-size:7px}.signal-progress{margin-top:5px;margin-right:117px}}


/* =========================================================
   FOREX BOSS — SETTINGS VIEW
   Header + bottom navigation remain untouched.
   Only the center workspace changes.
   ========================================================= */

.settings-screen{display:none;width:100%;min-height:0;overflow:hidden}.settings-screen[aria-hidden="true"]{display:none!important}.dashboard-page.settings-mode{height:100dvh;min-height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.dashboard-page.settings-mode>.account-card,.dashboard-page.settings-mode>.risk-card,.dashboard-page.settings-mode>.signal-screen{display:none!important}.dashboard-page.settings-mode>.dashboard-header{grid-row:1}.dashboard-page.settings-mode>.settings-screen{grid-row:2;display:flex;min-height:0;overflow:hidden}.dashboard-page.settings-mode>.dashboard-nav{grid-row:3;position:relative;bottom:auto;left:auto;transform:none;flex-shrink:0}.settings-scroll{width:100%;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.settings-scroll::-webkit-scrollbar{display:none}.settings-scroll-inner{width:100%;min-height:100%;box-sizing:border-box;padding:7px 0 9px;display:flex;flex-direction:column;justify-content:space-between;gap:10px}.settings-panel{flex:0 0 auto;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:linear-gradient(145deg,rgba(6,16,18,.97),rgba(4,11,13,.97));box-shadow:inset 0 0 30px rgba(0,0,0,.22),0 8px 26px rgba(0,0,0,.08);overflow:hidden}.settings-panel-title{min-height:42px;padding:0 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.045)}.settings-panel-title h2{margin:0;color:#f1f4f5;font-size:16px;line-height:1;font-weight:760;letter-spacing:.05px}.settings-title-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex:0 0 22px}.settings-title-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.settings-gold{color:#efba3e}.settings-row-list{margin:0 9px 9px;border:1px solid rgba(255,255,255,.065);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.008)}.settings-row{width:100%;height:43px;box-sizing:border-box;padding:0 11px;display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:#edf1f2;font:inherit;text-align:left}.settings-row:last-child{border-bottom:0}.settings-action-row{cursor:pointer}.settings-action-row:active{background:rgba(255,255,255,.025)}.settings-row-icon{width:21px;height:21px;display:flex;align-items:center;justify-content:center;flex:0 0 21px;color:#dfe5e7}.settings-row-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.settings-row-label{min-width:0;flex:1;color:rgba(246,248,249,.84);font-size:13px;line-height:1.1;font-weight:500;white-space:nowrap}.settings-row-value{max-width:48%;margin-left:auto;color:rgba(255,255,255,.78);font-size:12px;line-height:1.1;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-chevron{margin-left:1px;color:rgba(255,255,255,.48);font-size:21px;line-height:1}.settings-connection-value{margin-left:auto;display:flex;align-items:center;gap:7px;color:#20d864;font-size:12px;white-space:nowrap}.settings-connection-value i{width:8px;height:8px;border-radius:50%;background:#20db63;box-shadow:0 0 9px rgba(32,219,99,.65)}.settings-connection-value[data-state="offline"]{color:rgba(255,255,255,.52)}.settings-connection-value[data-state="offline"] i{background:#687378;box-shadow:none}.settings-connection-value[data-state="error"]{color:#ff686d}.settings-connection-value[data-state="error"] i{background:#ff5158;box-shadow:0 0 8px rgba(255,81,88,.45)}.settings-toggle{position:relative;width:47px;height:25px;flex:0 0 47px;margin-left:auto;cursor:pointer}.settings-toggle input{position:absolute;opacity:0;pointer-events:none}.settings-toggle>span{position:absolute;inset:0;border-radius:15px;background:#253036;box-shadow:inset 0 0 7px rgba(0,0,0,.25);transition:background .18s ease}.settings-toggle>span i{position:absolute;width:21px;height:21px;left:2px;top:2px;border-radius:50%;background:#f4f6f7;box-shadow:0 2px 7px rgba(0,0,0,.32);transition:transform .18s ease}.settings-toggle input:checked+span{background:linear-gradient(90deg,#08bd45,#17e566);box-shadow:0 0 11px rgba(18,222,91,.17)}.settings-toggle input:checked+span i{transform:translateX(22px)}.settings-logout-wrap{flex:0 0 auto;padding:0 1px 1px}.settings-logout-button{width:100%;height:48px;border:1px solid rgba(255,63,70,.58);border-radius:14px;background:linear-gradient(100deg,rgba(143,25,31,.24),rgba(88,19,23,.27));color:#ff5158;display:flex;align-items:center;justify-content:center;gap:9px;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:inset 0 0 20px rgba(255,48,55,.045);transition:background .18s ease,border-color .18s ease,transform .14s ease}.settings-logout-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.settings-logout-button:hover{background:linear-gradient(100deg,rgba(163,28,34,.30),rgba(105,22,27,.31));border-color:rgba(255,72,79,.76)}.settings-logout-button:active{transform:scale(.99)}.settings-logout-wrap small{display:block;margin-top:6px;text-align:center;color:rgba(255,255,255,.39);font-size:10px;line-height:1.25}

@media(max-width:430px){.settings-scroll-inner{padding:4px 0 6px;gap:6px}.settings-panel{border-radius:13px}.settings-panel-title{min-height:34px;padding:0 10px;gap:7px}.settings-panel-title h2{font-size:13px}.settings-title-icon{width:18px;height:18px;flex-basis:18px}.settings-title-icon svg{width:17px;height:17px}.settings-row-list{margin:0 6px 6px;border-radius:9px}.settings-row{height:36px;padding:0 8px;gap:7px}.settings-row-icon{width:18px;height:18px;flex-basis:18px}.settings-row-icon svg{width:17px;height:17px}.settings-row-label{font-size:11px}.settings-row-value,.settings-connection-value{font-size:10px}.settings-connection-value{gap:5px}.settings-connection-value i{width:6px;height:6px}.settings-chevron{font-size:17px}.settings-toggle{width:40px;height:22px;flex-basis:40px}.settings-toggle>span i{width:18px;height:18px}.settings-toggle input:checked+span i{transform:translateX(18px)}.settings-logout-button{height:41px;border-radius:11px;font-size:12px}.settings-logout-button svg{width:17px;height:17px}.settings-logout-wrap small{margin-top:4px;font-size:8px}}

@media(max-height:720px){.settings-scroll-inner{justify-content:flex-start}.settings-panel-title{min-height:32px}.settings-row{height:34px}.settings-logout-button{height:39px}}



/* FOREX CONTROL — SIGNAL ARCHIVE */
#signalArchiveScreen { --fb-card-height: 80px; box-sizing: border-box; position: fixed; z-index: 40; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 10px 8px; overflow: hidden; isolation: isolate; container-type: inline-size; color: #eef4f6; background: #050b0d; font-family: inherit; }
#signalArchiveScreen[hidden] { display: none !important; }
#signalArchiveScreen *, #signalArchiveScreen *::before, #signalArchiveScreen *::after { box-sizing: border-box; }
#signalArchiveScreen button { font-family: inherit; cursor: pointer; }
#signalArchiveScreen .fb-archive-toolbar { flex: 0 0 36px; display: grid; grid-template-columns: 32px 1fr 42px; align-items: center; gap: 8px; }
#signalArchiveScreen .fb-archive-toolbar h2 { margin: 0; font-size: 13px; font-weight: 700; text-align: center; }
#signalArchiveScreen .fb-archive-back { display: grid; place-items: center; width: 30px; height: 30px; padding: 5px; border: 1px solid #263438; border-radius: 7px; background: #0c171a; color: #f0f5f6; }
#signalArchiveScreen .fb-archive-back svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
#signalArchiveScreen .fb-archive-demo { color: #839397; font-size: 9px; letter-spacing: .08em; text-align: right; }
#signalArchiveScreen .fb-archive-filters { flex: 0 0 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 8px; border-bottom: 1px solid #192226; }
#signalArchiveScreen .fb-archive-filter { position: relative; min-width: 0; padding: 6px 0 10px; border: 0; border-radius: 0; background: transparent; color: #b6c0c6; text-align: center; }
#signalArchiveScreen .fb-archive-filter span { display: block; font-size: clamp(9px, 2.5cqw, 12px); font-weight: 800; letter-spacing: .03em; }
#signalArchiveScreen .fb-archive-filter strong { display: block; margin-top: 3px; font-size: clamp(17px, 4cqw, 22px); line-height: 1; font-variant-numeric: tabular-nums; }
#signalArchiveScreen .fb-archive-filter[data-fb-filter="all"] { color: #f3ce43; }
#signalArchiveScreen .fb-archive-filter[data-fb-filter="tp"] strong { color: #2be67a; }
#signalArchiveScreen .fb-archive-filter[data-fb-filter="sl"] strong { color: #ff515b; }
#signalArchiveScreen .fb-archive-filter.is-selected::after { content: ""; position: absolute; bottom: 0; left: 5%; right: 5%; height: 3px; background: #f3ce43; }
#signalArchiveScreen .fb-archive-list { flex: 1 1 0; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: var(--fb-card-height); align-content: start; gap: 7px; padding: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #315358 transparent; }
#signalArchiveScreen .fb-archive-card { display: flex; flex-direction: column; justify-content: space-evenly; min-width: 0; min-height: 0; padding: 3px 10px; border: 1px solid #142125; border-radius: 9px; background: linear-gradient(115deg, #0d171b, #091215); }
#signalArchiveScreen .fb-archive-card[hidden] { display: none !important; }
#signalArchiveScreen .fb-archive-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
#signalArchiveScreen .fb-archive-pair { display: flex; align-items: center; gap: clamp(12px, 4cqw, 26px); min-width: 0; }
#signalArchiveScreen .fb-archive-pair > strong { color: #f2f5f7; font-size: clamp(14px, 3.8cqw, 23px); line-height: 1.1; font-weight: 800; white-space: nowrap; }
#signalArchiveScreen .fb-archive-side { font-size: clamp(12px, 3.2cqw, 18px); line-height: 1; font-weight: 800; }
#signalArchiveScreen [data-side="BUY"] .fb-archive-side { color:#00e676 !important; }
#signalArchiveScreen [data-side="SELL"] .fb-archive-side { color:#ff3b45 !important; }
#signalArchiveScreen .fb-archive-status { min-width: 60px; padding: 4px 7px; border: 1px solid currentColor; border-radius: 5px; color: #b4c0c6; font-size: clamp(10px, 2.5cqw, 14px); line-height: 1; font-weight: 800; text-align: center; white-space: nowrap; }
#signalArchiveScreen [data-group="active"] .fb-archive-status { color: #23d9ec; background: #09252b; }
#signalArchiveScreen [data-group="tp"] .fb-archive-status { color: #31df7d; background: #0d241b; }
#signalArchiveScreen [data-group="sl"] .fb-archive-status { color: #ff535b; background: #27161b; }
#signalArchiveScreen .fb-archive-details { display: grid; grid-template-columns: .9fr 1.08fr .9fr .9fr .65fr 1fr 1.08fr; align-items: center; min-width: 0; color: #8e9ba2; font-size: clamp(8px, 2.1cqw, 13px); line-height: 1.2; font-variant-numeric: tabular-nums; }
#signalArchiveScreen .fb-archive-details > span { min-width: 0; padding: 0 4px; border-right: 1px solid #293337; white-space: nowrap; text-align: center; }
#signalArchiveScreen .fb-archive-details > span:first-child { padding-left: 0; text-align: left; }
#signalArchiveScreen .fb-archive-details > span:last-child { padding-right: 0; border-right: 0; text-align: right; }
#signalArchiveScreen .fb-archive-details strong { color: #ced6dc; font-weight: 500; }
#signalArchiveScreen .fb-archive-pips { font-weight: 800; }
#signalArchiveScreen .is-positive { color: #2be778; }
#signalArchiveScreen .is-negative { color: #ff505b; }
#signalArchiveScreen .fb-archive-time { color: #c8d0d5; }
#signalArchiveScreen button:focus-visible, #signalArchiveScreen .fb-archive-list:focus-visible { outline: 2px solid #f3ce43; outline-offset: -2px; }

@container (max-width: 400px) {
    #signalArchiveScreen .fb-archive-details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 0; font-size: clamp(9px, 2.8cqw, 11px); }
    #signalArchiveScreen .fb-archive-details > span:nth-child(3) { border-right: 0; }
    #signalArchiveScreen .fb-archive-details > span:nth-child(4) { padding-left: 0; text-align: left; }
    #signalArchiveScreen .fb-archive-status { min-width: 55px; padding: 3px 5px; }
}



/* =========================================================
   FOREX BOSS — PERFORMANCE SCREEN
   ========================================================= */

.performance-page-body {
    overflow: hidden;
}

.performance-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.performance-page .dashboard-header {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
}

.performance-screen {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.performance-scroll {
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding:
        clamp(10px, 2.8vw, 18px)
        clamp(12px, 4vw, 24px)
        clamp(105px, 19vh, 135px);
}

.performance-scroll::-webkit-scrollbar {
    display: none;
}

.performance-toolbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin-bottom: clamp(10px, 2.6vw, 16px);
}

.performance-toolbar h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.035em;
}

.performance-back {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.performance-back:active {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(0.96);
}

.performance-back svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.performance-toolbar-spacer {
    width: 42px;
    height: 42px;
}

.performance-periods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: clamp(52px, 12vw, 64px);
    margin-bottom: clamp(10px, 2.8vw, 16px);
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid rgba(111, 135, 150, 0.26);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(12, 20, 25, 0.94),
            rgba(5, 11, 15, 0.98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 10px 30px rgba(0, 0, 0, 0.18);
}

.performance-periods button {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 42px;
    padding: 0 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #a8b3cd;
    font: inherit;
    font-size: clamp(13px, 3.7vw, 18px);
    font-weight: 800;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.performance-periods button:active {
    transform: scale(0.97);
}

.performance-periods button.is-active {
    color: #11161a;
    background:
        linear-gradient(
            135deg,
            #f6c74e,
            #efa928
        );
    box-shadow:
        0 7px 18px rgba(231, 178, 58, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.performance-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
    gap: clamp(8px, 2.3vw, 13px);
    margin-bottom: clamp(8px, 2.3vw, 13px);
}

.performance-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(7px, 2vw, 11px);
    margin-bottom: clamp(8px, 2.3vw, 13px);
}

.performance-card {
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(111, 135, 150, 0.24);
    border-radius: clamp(13px, 3.6vw, 18px);
    background:
        linear-gradient(
            145deg,
            rgba(13, 22, 27, 0.96),
            rgba(5, 12, 16, 0.98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.022),
        0 12px 34px rgba(0, 0, 0, 0.2);
}

.performance-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: clamp(7px, 2vw, 12px);
    color: #aeb9d1;
    font-size: clamp(9px, 2.5vw, 13px);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.performance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: clamp(22px, 5.5vw, 30px);
    color: #f0b72f;
    font-size: clamp(23px, 6vw, 31px);
    font-weight: 800;
    line-height: 1;
}

.performance-bars-icon {
    align-items: flex-end;
    gap: 4px;
    height: 28px;
}

.performance-bars-icon i {
    display: block;
    width: 4px;
    border-radius: 5px;
    background: #f0b72f;
    box-shadow: 0 0 10px rgba(240, 183, 47, 0.18);
}

.performance-bars-icon i:nth-child(1) {
    height: 13px;
}

.performance-bars-icon i:nth-child(2) {
    height: 25px;
}

.performance-bars-icon i:nth-child(3) {
    height: 18px;
}

.performance-signals-card,
.performance-rr-card {
    min-height: clamp(150px, 38vw, 205px);
    padding: clamp(14px, 4vw, 22px);
}

.performance-signals-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin-top: clamp(15px, 4vw, 24px);
}

.performance-main-value {
    min-width: 0;
}

.performance-main-value strong {
    display: block;
    color: #ffffff;
    font-size: clamp(39px, 11vw, 62px);
    font-weight: 850;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.performance-main-value small {
    display: block;
    margin-top: clamp(12px, 3vw, 18px);
    color: #9eabc7;
    font-size: clamp(11px, 3vw, 15px);
    font-weight: 650;
    white-space: nowrap;
}

.performance-main-value small b {
    font-weight: 750;
}

.performance-ring {
    --ring-progress: 75deg;

    position: relative;
    display: grid;
    place-items: center;
    width: clamp(64px, 18vw, 92px);
    height: clamp(64px, 18vw, 92px);
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        conic-gradient(
            #00e6a0 0deg,
            #00e6a0 calc(var(--ring-progress) * 3.6),
            #263540 calc(var(--ring-progress) * 3.6),
            #263540 360deg
        );
    box-shadow:
        0 0 25px rgba(0, 230, 160, 0.07);
}

.performance-ring::before {
    position: absolute;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    background: #081015;
    content: "";
}

.performance-ring span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(15px, 4.5vw, 23px);
    font-weight: 850;
}

.performance-rr-card {
    display: flex;
    flex-direction: column;
}

.performance-rr-icon {
    font-size: clamp(28px, 7vw, 37px);
}

.performance-green-value {
    color: #00e6a0 !important;
}

.performance-red-value {
    color: #ff5966 !important;
}

.performance-rr-card > strong {
    display: block;
    margin-top: auto;
    font-size: clamp(33px, 9vw, 52px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.performance-period-result {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: clamp(13px, 3vw, 19px);
    color: #9eaac3;
    font-size: clamp(9px, 2.5vw, 13px);
    font-weight: 700;
    white-space: nowrap;
}

.performance-period-result span,
.performance-period-result b {
    color: #00e6a0;
}

.performance-period-result span {
    font-size: clamp(19px, 5vw, 27px);
}

.performance-metric-card {
    min-height: clamp(118px, 31vw, 166px);
    padding: clamp(12px, 3.3vw, 18px);
}

.performance-metric-card .performance-title {
    gap: 4px;
    font-size: clamp(7px, 2.05vw, 11px);
}

.performance-metric-card .performance-icon {
    min-width: clamp(20px, 5vw, 27px);
    font-size: clamp(20px, 5.5vw, 29px);
}

.performance-metric-card > strong {
    display: block;
    margin-top: clamp(21px, 5vw, 31px);
    color: #ffffff;
    font-size: clamp(27px, 7.4vw, 43px);
    font-weight: 850;
    line-height: 0.95;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.performance-outcomes-card,
.performance-execution-card,
.performance-refresh-card,
.performance-risk-card {
    margin-bottom: clamp(8px, 2.3vw, 13px);
    padding: clamp(14px, 4vw, 22px);
}

.performance-outcome-values,
.performance-execution-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    margin-top: clamp(15px, 4vw, 24px);
}

.performance-outcome-values > div,
.performance-execution-values > div {
    min-width: 0;
    text-align: center;
}

.performance-outcome-values small,
.performance-execution-values small {
    display: block;
    color: #a7b2ca;
    font-size: clamp(10px, 2.7vw, 14px);
    font-weight: 750;
}

.performance-outcome-values strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(36px, 10vw, 58px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
}

.performance-value-separator {
    width: 1px;
    height: clamp(48px, 13vw, 70px);
    background:
        linear-gradient(
            transparent,
            rgba(255, 255, 255, 0.13),
            transparent
        );
}

.performance-outcome-bar {
    position: relative;
    height: clamp(10px, 2.8vw, 15px);
    margin-top: clamp(17px, 4.5vw, 25px);
    overflow: hidden;
    border-radius: 999px;
    background: #ff5966;
}

.performance-outcome-bar span {
    display: block;
    height: 100%;
    border-radius: inherit 0 0 inherit;
    background: #00e6a0;
    box-shadow: 0 0 15px rgba(0, 230, 160, 0.18);
}

.performance-execution-values strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: clamp(28px, 7.8vw, 46px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.performance-refresh-content {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(12px, 4vw, 25px);
    margin-top: clamp(12px, 3vw, 18px);
}

.performance-refresh-ring {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: center;
    width: clamp(76px, 20vw, 104px);
    height: clamp(76px, 20vw, 104px);
    border-radius: 50%;
    background:
        conic-gradient(
            #00e6a0 0deg 155deg,
            #263540 155deg 360deg
        );
}

.performance-refresh-ring::before {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: #081015;
    content: "";
}

.performance-refresh-ring strong {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(15px, 4.2vw, 22px);
    font-weight: 850;
    letter-spacing: 0.02em;
}

.performance-refresh-state {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: #aab5cc;
    font-size: clamp(10px, 2.8vw, 14px);
    font-weight: 650;
}

.performance-refresh-state i {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: #00e6a0;
    box-shadow: 0 0 13px rgba(0, 230, 160, 0.55);
}

.performance-risk-card {
    display: flex;
    align-items: center;
    gap: clamp(14px, 4vw, 23px);
    min-height: clamp(104px, 26vw, 137px);
}

.performance-risk-shield {
    flex: 0 0 auto;
    color: #f0b72f;
    font-size: clamp(40px, 10vw, 58px);
    line-height: 1;
}

.performance-risk-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.performance-risk-card small {
    color: #aab5cc;
    font-size: clamp(10px, 2.7vw, 14px);
    font-weight: 800;
}

.performance-risk-card strong {
    margin-top: 2px;
    color: #00e6a0;
    font-size: clamp(31px, 8vw, 48px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.025em;
}

.performance-risk-card > div > span {
    margin-top: 5px;
    color: #aeb9ce;
    font-size: clamp(10px, 2.8vw, 15px);
    font-weight: 650;
}

.performance-risk-card[data-risk-state="warning"] strong {
    color: #f0b72f;
}

.performance-risk-card[data-risk-state="danger"] strong {
    color: #ff5966;
}

.performance-page .dashboard-nav {
    position: absolute;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
}

@media (max-width: 370px) {
    .performance-scroll {
        padding-right: 9px;
        padding-left: 9px;
    }

    .performance-primary-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        gap: 6px;
    }

    .performance-metric-grid {
        gap: 5px;
    }

    .performance-card {
        border-radius: 12px;
    }

    .performance-signals-card,
    .performance-rr-card,
    .performance-metric-card,
    .performance-outcomes-card,
    .performance-execution-card,
    .performance-refresh-card,
    .performance-risk-card {
        padding-right: 10px;
        padding-left: 10px;
    }

    .performance-title {
        gap: 5px;
    }
}

@media (min-width: 700px) {
    .performance-scroll {
        width: min(100%, 760px);
        margin: 0 auto;
    }
}



/* =========================================================
   FOREX BOSS — PERFORMANCE TRUE AUTO-FIT FINAL FIX
   Kaydırma yok — tüm içerik tek ekrana otomatik sığar
   ========================================================= */

.performance-page-body {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
}

.performance-page {
    width: min(100%, 480px) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;

    margin: 0 auto !important;

    padding:
        max(env(safe-area-inset-top, 0px), 6px)
        clamp(7px, 2.2vw, 12px)
        0 !important;

    display: grid !important;

    grid-template-rows:
        clamp(42px, 6.2dvh, 50px)
        minmax(0, 1fr)
        clamp(52px, 7.5dvh, 60px) !important;

    gap: clamp(3px, 0.55dvh, 6px) !important;

    overflow: hidden !important;
}


/* ================= ÜST HEADER ================= */

.performance-page > .dashboard-header {
    grid-row: 1 !important;

    width: calc(100% + (clamp(7px, 2.2vw, 12px) * 2)) !important;
    height: 100% !important;
    min-height: 0 !important;

    margin:
        0
        calc(clamp(7px, 2.2vw, 12px) * -1) !important;

    padding:
        0
        clamp(13px, 4vw, 20px) !important;

    position: relative !important;

    display: grid !important;
    grid-template-columns:
        clamp(30px, 8vw, 40px)
        minmax(0, 1fr)
        clamp(30px, 8vw, 40px) !important;

    align-items: center !important;

    border-bottom:
        1px solid rgba(105, 130, 140, 0.14) !important;
}

.performance-page > .dashboard-header h1 {
    margin: 0 !important;

    font-size:
        clamp(
            18px,
            min(6vw, 3.2dvh),
            26px
        ) !important;

    line-height: 1 !important;
}

.performance-page > .dashboard-header .header-lock {
    width: clamp(28px, 7vw, 34px) !important;
    height: clamp(28px, 7vw, 34px) !important;
}

.performance-page > .dashboard-header .header-lock svg {
    width: clamp(18px, 4.8vw, 23px) !important;
}


/* ================= ANA ALAN ================= */

.performance-screen {
    grid-row: 2 !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    display: block !important;

    overflow: hidden !important;

    container-type: size;
}


/* ================= TAM EKRAN GRID ================= */

.performance-scroll {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

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

    display: grid !important;

    grid-template-rows:
        minmax(28px, 0.44fr)
        minmax(38px, 0.56fr)
        minmax(96px, 1.48fr)
        minmax(78px, 1.13fr)
        minmax(85px, 1.20fr)
        minmax(68px, 0.94fr)
        minmax(68px, 0.94fr)
        minmax(58px, 0.82fr) !important;

    gap: clamp(3px, 0.55dvh, 7px) !important;

    overflow: hidden !important;
    overscroll-behavior: none !important;
}


/* ================= PERFORMANCE BAŞLIK ================= */

.performance-toolbar {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;

    display: grid !important;

    grid-template-columns:
        clamp(28px, 7vw, 38px)
        minmax(0, 1fr)
        clamp(28px, 7vw, 38px) !important;

    align-items: center !important;
}

.performance-toolbar h2 {
    margin: 0 !important;

    font-size:
        clamp(
            17px,
            min(5.6vw, 3.4dvh),
            28px
        ) !important;

    line-height: 1 !important;
}

.performance-back {
    width: clamp(28px, 7vw, 38px) !important;
    height: clamp(28px, 7vw, 38px) !important;
}

.performance-back svg {
    width: clamp(19px, 5vw, 26px) !important;
    height: clamp(19px, 5vw, 26px) !important;
}

.performance-toolbar-spacer {
    width: clamp(28px, 7vw, 38px) !important;
    height: clamp(28px, 7vw, 38px) !important;
}


/* ================= ZAMAN SEÇİMİ ================= */

.performance-periods {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: clamp(2px, 0.4dvh, 4px) !important;

    gap: 2px !important;

    border-radius:
        clamp(
            9px,
            min(3.5vw, 1.8dvh),
            15px
        ) !important;
}

.performance-periods button {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    padding: 0 2px !important;

    border-radius:
        clamp(
            7px,
            min(2.8vw, 1.5dvh),
            12px
        ) !important;

    font-size:
        clamp(
            10px,
            min(3.5vw, 2.2dvh),
            16px
        ) !important;
}


/* ================= BÜTÜN KARTLAR ================= */

.performance-card {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;

    overflow: hidden !important;

    border-radius:
        clamp(
            8px,
            min(3.4vw, 1.9dvh),
            16px
        ) !important;
}

.performance-primary-grid,
.performance-metric-grid {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;

    gap: clamp(3px, 1.4vw, 8px) !important;
}

.performance-primary-grid {
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 0.85fr) !important;
}

.performance-metric-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;
}


/* ================= KART İÇ BOŞLUKLARI ================= */

.performance-signals-card,
.performance-rr-card,
.performance-metric-card,
.performance-outcomes-card,
.performance-execution-card,
.performance-refresh-card,
.performance-risk-card {
    min-height: 0 !important;

    padding:
        clamp(
            6px,
            min(2.7vw, 1.5dvh),
            13px
        ) !important;
}


/* ================= KART BAŞLIKLARI ================= */

.performance-title {
    min-width: 0 !important;

    gap:
        clamp(
            3px,
            min(1.7vw, 1dvh),
            8px
        ) !important;

    font-size:
        clamp(
            6px,
            min(2.45vw, 1.45dvh),
            12px
        ) !important;

    line-height: 1 !important;
}

.performance-icon {
    min-width:
        clamp(
            15px,
            min(5vw, 2.7dvh),
            25px
        ) !important;

    font-size:
        clamp(
            15px,
            min(5.5vw, 3dvh),
            28px
        ) !important;
}

.performance-bars-icon {
    height:
        clamp(
            15px,
            min(5vw, 2.8dvh),
            27px
        ) !important;

    gap: 3px !important;
}

.performance-bars-icon i {
    width:
        clamp(
            2px,
            min(0.9vw, 0.5dvh),
            4px
        ) !important;
}

.performance-bars-icon i:nth-child(1) {
    height: 48% !important;
}

.performance-bars-icon i:nth-child(2) {
    height: 100% !important;
}

.performance-bars-icon i:nth-child(3) {
    height: 70% !important;
}


/* ================= TOTAL SIGNALS ================= */

.performance-signals-layout {
    height: calc(100% - clamp(15px, 2.8dvh, 25px)) !important;

    margin: 0 !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    align-items: center !important;

    gap: clamp(3px, 1vw, 7px) !important;
}

.performance-main-value strong {
    font-size:
        clamp(
            24px,
            min(10vw, 5.9dvh),
            50px
        ) !important;

    line-height: 0.9 !important;
}

.performance-main-value small {
    margin-top:
        clamp(
            4px,
            min(1.8vw, 0.9dvh),
            9px
        ) !important;

    font-size:
        clamp(
            7px,
            min(2.7vw, 1.5dvh),
            13px
        ) !important;

    line-height: 1 !important;
}

.performance-ring {
    width:
        clamp(
            42px,
            min(17vw, 8.5dvh),
            76px
        ) !important;

    height:
        clamp(
            42px,
            min(17vw, 8.5dvh),
            76px
        ) !important;
}

.performance-ring span {
    font-size:
        clamp(
            10px,
            min(4vw, 2.1dvh),
            19px
        ) !important;
}


/* ================= TOTAL RR ================= */

.performance-rr-card > strong {
    margin-top: auto !important;

    font-size:
        clamp(
            23px,
            min(8.5vw, 5.1dvh),
            45px
        ) !important;

    line-height: 0.95 !important;
}

.performance-period-result {
    margin-top:
        clamp(
            3px,
            min(1.5vw, 0.9dvh),
            8px
        ) !important;

    gap: 3px !important;

    font-size:
        clamp(
            6px,
            min(2.2vw, 1.3dvh),
            11px
        ) !important;
}

.performance-period-result span {
    font-size:
        clamp(
            12px,
            min(4vw, 2.3dvh),
            22px
        ) !important;
}


/* ================= ÜÇ METRİK KARTI ================= */

.performance-metric-card {
    display: flex !important;
    flex-direction: column !important;
}

.performance-metric-card .performance-title {
    gap: 2px !important;

    font-size:
        clamp(
            5px,
            min(1.9vw, 1.15dvh),
            9px
        ) !important;
}

.performance-metric-card .performance-icon {
    min-width:
        clamp(
            13px,
            min(4vw, 2.3dvh),
            22px
        ) !important;

    font-size:
        clamp(
            14px,
            min(4.6vw, 2.6dvh),
            24px
        ) !important;
}

.performance-metric-card > strong {
    margin-top: auto !important;
    margin-bottom: auto !important;

    font-size:
        clamp(
            20px,
            min(7.2vw, 4.5dvh),
            38px
        ) !important;

    line-height: 0.95 !important;
}


/* ================= WINS / LOSSES ================= */

.performance-outcomes-card {
    display: grid !important;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        clamp(6px, 1.3dvh, 11px) !important;
}

.performance-outcome-values {
    height: 100% !important;

    margin: 0 !important;

    grid-template-columns:
        minmax(0, 1fr)
        1px
        minmax(0, 1fr) !important;

    align-items: center !important;
}

.performance-outcome-values small {
    font-size:
        clamp(
            7px,
            min(2.3vw, 1.35dvh),
            12px
        ) !important;

    line-height: 1 !important;
}

.performance-outcome-values strong {
    margin-top: 2px !important;

    font-size:
        clamp(
            25px,
            min(9vw, 5.1dvh),
            46px
        ) !important;

    line-height: 0.9 !important;
}

.performance-value-separator {
    height: 72% !important;
}

.performance-outcome-bar {
    height: 100% !important;

    margin: 0 !important;
}


/* ================= EXECUTION QUALITY ================= */

.performance-execution-card {
    display: grid !important;

    grid-template-rows:
        auto
        minmax(0, 1fr) !important;
}

.performance-execution-values {
    height: 100% !important;

    margin: 0 !important;

    align-items: center !important;
}

.performance-execution-values small {
    font-size:
        clamp(
            7px,
            min(2.3vw, 1.35dvh),
            12px
        ) !important;

    line-height: 1 !important;
}

.performance-execution-values strong {
    margin-top: 3px !important;

    font-size:
        clamp(
            20px,
            min(7vw, 4.1dvh),
            37px
        ) !important;

    line-height: 0.95 !important;
}


/* ================= LIVE REFRESH ================= */

.performance-refresh-card {
    display: grid !important;

    grid-template-columns:
        minmax(0, 0.78fr)
        minmax(0, 1.22fr) !important;

    grid-template-rows:
        auto
        minmax(0, 1fr) !important;

    column-gap:
        clamp(
            5px,
            min(2vw, 1.2dvh),
            12px
        ) !important;
}

.performance-refresh-card > .performance-title {
    grid-column: 1 / -1 !important;
}

.performance-refresh-content {
    grid-column: 1 / -1 !important;

    height: 100% !important;

    margin: 0 !important;

    display: grid !important;

    grid-template-columns:
        minmax(70px, 0.8fr)
        minmax(0, 1.2fr) !important;

    gap: clamp(5px, 2vw, 12px) !important;

    align-items: center !important;
}

.performance-refresh-ring {
    width:
        clamp(
            43px,
            min(17vw, 8.2dvh),
            74px
        ) !important;

    height:
        clamp(
            43px,
            min(17vw, 8.2dvh),
            74px
        ) !important;
}

.performance-refresh-ring strong {
    font-size:
        clamp(
            9px,
            min(3.8vw, 2dvh),
            18px
        ) !important;
}

.performance-refresh-state {
    gap:
        clamp(
            4px,
            min(1.8vw, 1dvh),
            8px
        ) !important;

    font-size:
        clamp(
            7px,
            min(2.5vw, 1.4dvh),
            12px
        ) !important;
}

.performance-refresh-state i {
    width:
        clamp(
            6px,
            min(2.5vw, 1.4dvh),
            10px
        ) !important;

    height:
        clamp(
            6px,
            min(2.5vw, 1.4dvh),
            10px
        ) !important;

    flex-basis:
        clamp(
            6px,
            min(2.5vw, 1.4dvh),
            10px
        ) !important;
}


/* ================= RISK STATUS ================= */

.performance-risk-card {
    display: flex !important;

    align-items: center !important;

    gap:
        clamp(
            8px,
            min(3vw, 1.8dvh),
            16px
        ) !important;
}

.performance-risk-shield {
    font-size:
        clamp(
            25px,
            min(8vw, 4.7dvh),
            43px
        ) !important;
}

.performance-risk-card small {
    font-size:
        clamp(
            7px,
            min(2.4vw, 1.35dvh),
            12px
        ) !important;

    line-height: 1 !important;
}

.performance-risk-card strong {
    margin-top: 1px !important;

    font-size:
        clamp(
            22px,
            min(7.5vw, 4.3dvh),
            40px
        ) !important;

    line-height: 0.9 !important;
}

.performance-risk-card > div > span {
    margin-top: 2px !important;

    font-size:
        clamp(
            7px,
            min(2.5vw, 1.4dvh),
            13px
        ) !important;

    line-height: 1 !important;
}


/* ================= ALT HEADER ================= */

.performance-page > .dashboard-nav {
    grid-row: 3 !important;

    position: relative !important;

    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: calc(100% + (clamp(7px, 2.2vw, 12px) * 2)) !important;
    height: 100% !important;
    min-height: 0 !important;

    margin:
        0
        calc(clamp(7px, 2.2vw, 12px) * -1) !important;

    padding:
        2px
        clamp(25px, 8vw, 42px)
        max(3px, env(safe-area-inset-bottom)) !important;

    align-self: stretch !important;
}

.performance-page > .dashboard-nav .nav-item {
    width: clamp(48px, 14vw, 62px) !important;
    height: 100% !important;

    gap: 1px !important;

    font-size:
        clamp(
            7px,
            min(2.3vw, 1.3dvh),
            10px
        ) !important;
}

.performance-page > .dashboard-nav .nav-item svg,
.performance-page > .dashboard-nav .nav-emoji {
    width:
        clamp(
            17px,
            min(5.4vw, 3dvh),
            24px
        ) !important;

    height:
        clamp(
            17px,
            min(5.4vw, 3dvh),
            24px
        ) !important;

    font-size:
        clamp(
            17px,
            min(5.4vw, 3dvh),
            24px
        ) !important;
}


/* ================= ÇOK KISA TELEFONLAR ================= */

@media (max-height: 700px) {
    .performance-page {
        grid-template-rows:
            40px
            minmax(0, 1fr)
            49px !important;

        gap: 2px !important;
    }

    .performance-scroll {
        gap: 3px !important;

        grid-template-rows:
            minmax(25px, 0.40fr)
            minmax(34px, 0.52fr)
            minmax(88px, 1.42fr)
            minmax(70px, 1.08fr)
            minmax(76px, 1.14fr)
            minmax(61px, 0.91fr)
            minmax(61px, 0.91fr)
            minmax(51px, 0.76fr) !important;
    }
}


/* ================= GENİŞ EKRANLAR ================= */

@media (min-width: 481px) {
    .performance-page {
        max-width: 480px !important;
    }
}


/* =========================================================
   PERFORMANCE — CARD-AWARE RESPONSIVE CONTENT
   Her yazı ve ikon kendi kartına göre otomatik ölçeklenir
   ========================================================= */

.performance-card {
    container-type: size !important;
    container-name: performance-card;

    min-width: 0 !important;
    min-height: 0 !important;

    overflow: hidden !important;
}


/* Bütün kart içerikleri sınırın dışına çıkamaz */

.performance-card *,
.performance-card *::before,
.performance-card *::after {
    box-sizing: border-box;
    min-width: 0;
}

.performance-card strong,
.performance-card small,
.performance-card span,
.performance-card b {
    max-width: 100%;
}


/* =========================================================
   BÜTÜN KART BAŞLIKLARI
   ========================================================= */

.performance-card .performance-title {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    gap:
        clamp(
            2px,
            min(2.4cqw, 7cqh),
            9px
        ) !important;

    font-size:
        clamp(
            5px,
            min(5.8cqw, 13cqh),
            13px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
}

.performance-card .performance-title > span:last-child {
    min-width: 0 !important;
    max-width: 100% !important;

    white-space: nowrap !important;
    overflow: hidden !important;

    font-size: inherit !important;
}

.performance-card .performance-icon {
    min-width:
        clamp(
            13px,
            min(12cqw, 24cqh),
            29px
        ) !important;

    width:
        clamp(
            13px,
            min(12cqw, 24cqh),
            29px
        ) !important;

    font-size:
        clamp(
            13px,
            min(13cqw, 27cqh),
            30px
        ) !important;

    line-height: 1 !important;
}


/* =========================================================
   TOTAL SIGNALS
   ========================================================= */

.performance-signals-card {
    container-name: signals-card;
}

.performance-signals-card .performance-signals-layout {
    height: calc(100% - clamp(15px, 21cqh, 28px)) !important;

    margin: 0 !important;

    align-items: center !important;
}

.performance-signals-card .performance-main-value strong {
    font-size:
        clamp(
            20px,
            min(30cqw, 46cqh),
            53px
        ) !important;

    line-height: 0.88 !important;

    white-space: nowrap !important;
}

.performance-signals-card .performance-main-value small {
    margin-top:
        clamp(
            2px,
            5cqh,
            8px
        ) !important;

    font-size:
        clamp(
            6px,
            min(6.6cqw, 12cqh),
            13px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}

.performance-signals-card .performance-ring {
    width:
        clamp(
            37px,
            min(33cqw, 55cqh),
            78px
        ) !important;

    height:
        clamp(
            37px,
            min(33cqw, 55cqh),
            78px
        ) !important;

    max-width: 48% !important;
    max-height: 88% !important;
}

.performance-signals-card .performance-ring span {
    font-size:
        clamp(
            9px,
            min(9cqw, 16cqh),
            20px
        ) !important;

    white-space: nowrap !important;
}


/* =========================================================
   TOTAL RR
   ========================================================= */

.performance-rr-card {
    container-name: rr-card;
}

.performance-rr-card > strong {
    max-width: 100% !important;

    font-size:
        clamp(
            20px,
            min(25cqw, 40cqh),
            47px
        ) !important;

    line-height: 0.9 !important;

    white-space: nowrap !important;
}

.performance-rr-card .performance-period-result {
    max-width: 100% !important;

    margin-top:
        clamp(
            2px,
            5cqh,
            8px
        ) !important;

    gap:
        clamp(
            1px,
            1.8cqw,
            4px
        ) !important;

    font-size:
        clamp(
            5px,
            min(5cqw, 10cqh),
            11px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
}

.performance-rr-card .performance-period-result span {
    flex: 0 0 auto !important;

    font-size:
        clamp(
            10px,
            min(10cqw, 18cqh),
            22px
        ) !important;
}


/* =========================================================
   WIN RATE / PROFIT FACTOR / MAX DRAWDOWN
   ========================================================= */

.performance-metric-card {
    container-name: metric-card;

    display: grid !important;

    grid-template-rows:
        minmax(14px, 30%)
        minmax(0, 70%) !important;
}

.performance-metric-card .performance-title {
    align-self: start !important;

    gap:
        clamp(
            1px,
            2cqw,
            4px
        ) !important;

    font-size:
        clamp(
            5px,
            min(6.9cqw, 12cqh),
            10px
        ) !important;
}

.performance-metric-card .performance-icon {
    min-width:
        clamp(
            12px,
            min(14cqw, 22cqh),
            23px
        ) !important;

    width:
        clamp(
            12px,
            min(14cqw, 22cqh),
            23px
        ) !important;

    font-size:
        clamp(
            12px,
            min(15cqw, 25cqh),
            25px
        ) !important;
}

.performance-metric-card > strong {
    align-self: center !important;

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

    margin: 0 !important;

    font-size:
        clamp(
            17px,
            min(25cqw, 36cqh),
            39px
        ) !important;

    line-height: 0.9 !important;

    white-space: nowrap !important;
}


/* =========================================================
   TRADE OUTCOMES
   ========================================================= */

.performance-outcomes-card {
    container-name: outcomes-card;

    display: grid !important;

    grid-template-rows:
        minmax(14px, 20%)
        minmax(0, 65%)
        minmax(5px, 15%) !important;
}

.performance-outcomes-card .performance-outcome-values {
    height: 100% !important;

    margin: 0 !important;

    align-items: center !important;
}

.performance-outcomes-card .performance-outcome-values small {
    font-size:
        clamp(
            6px,
            min(4.4cqw, 12cqh),
            12px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}

.performance-outcomes-card .performance-outcome-values strong {
    margin-top:
        clamp(
            1px,
            2cqh,
            3px
        ) !important;

    font-size:
        clamp(
            20px,
            min(15cqw, 38cqh),
            47px
        ) !important;

    line-height: 0.88 !important;

    white-space: nowrap !important;
}

.performance-outcomes-card .performance-value-separator {
    height: 70% !important;
}

.performance-outcomes-card .performance-outcome-bar {
    align-self: end !important;

    width: 100% !important;
    height:
        clamp(
            5px,
            9cqh,
            12px
        ) !important;

    margin: 0 !important;
}


/* =========================================================
   EXECUTION QUALITY
   AVG RR VE AVG HOLD ARTIK ÜST ÜSTE BİNMEZ
   ========================================================= */

.performance-execution-card {
    container-name: execution-card;

    display: grid !important;

    grid-template-rows:
        minmax(13px, 28%)
        minmax(0, 72%) !important;
}

.performance-execution-card .performance-execution-values {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    align-items: center !important;
}

.performance-execution-card .performance-execution-values > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    height: 100% !important;

    overflow: hidden !important;
}

.performance-execution-card .performance-execution-values small {
    flex: 0 0 auto !important;

    font-size:
        clamp(
            6px,
            min(4.5cqw, 14cqh),
            12px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}

.performance-execution-card .performance-execution-values strong {
    flex: 0 1 auto !important;

    max-width: 100% !important;

    margin-top:
        clamp(
            1px,
            3cqh,
            4px
        ) !important;

    font-size:
        clamp(
            16px,
            min(13cqw, 31cqh),
            38px
        ) !important;

    line-height: 0.88 !important;

    white-space: nowrap !important;
}


/* =========================================================
   LIVE REFRESH
   ========================================================= */

.performance-refresh-card {
    container-name: refresh-card;

    display: grid !important;

    grid-template-rows:
        minmax(13px, 27%)
        minmax(0, 73%) !important;
}

.performance-refresh-card .performance-refresh-content {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    grid-template-columns:
        minmax(45px, 0.75fr)
        minmax(0, 1.25fr) !important;

    gap:
        clamp(
            3px,
            2cqw,
            10px
        ) !important;

    align-items: center !important;
}

.performance-refresh-card .performance-refresh-ring {
    width:
        clamp(
            34px,
            min(18cqw, 62cqh),
            73px
        ) !important;

    height:
        clamp(
            34px,
            min(18cqw, 62cqh),
            73px
        ) !important;

    max-height: 94% !important;
}

.performance-refresh-card .performance-refresh-ring strong {
    font-size:
        clamp(
            8px,
            min(5cqw, 19cqh),
            18px
        ) !important;

    white-space: nowrap !important;
}

.performance-refresh-card .performance-refresh-state {
    max-width: 100% !important;

    gap:
        clamp(
            3px,
            1.8cqw,
            8px
        ) !important;

    font-size:
        clamp(
            6px,
            min(3.8cqw, 13cqh),
            12px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
}

.performance-refresh-card .performance-refresh-state i {
    width:
        clamp(
            5px,
            min(2.3cqw, 12cqh),
            10px
        ) !important;

    height:
        clamp(
            5px,
            min(2.3cqw, 12cqh),
            10px
        ) !important;

    flex-basis:
        clamp(
            5px,
            min(2.3cqw, 12cqh),
            10px
        ) !important;
}


/* =========================================================
   RISK STATUS
   ========================================================= */

.performance-risk-card {
    container-name: risk-card;

    gap:
        clamp(
            5px,
            min(3cqw, 10cqh),
            15px
        ) !important;
}

.performance-risk-card .performance-risk-shield {
    flex: 0 0 auto !important;

    font-size:
        clamp(
            20px,
            min(10cqw, 48cqh),
            43px
        ) !important;
}

.performance-risk-card > div {
    min-width: 0 !important;
    max-width: calc(100% - 35px) !important;

    justify-content: center !important;
}

.performance-risk-card small {
    font-size:
        clamp(
            6px,
            min(4cqw, 15cqh),
            12px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}

.performance-risk-card strong {
    max-width: 100% !important;

    margin-top:
        clamp(
            1px,
            2cqh,
            3px
        ) !important;

    font-size:
        clamp(
            18px,
            min(15cqw, 38cqh),
            42px
        ) !important;

    line-height: 0.88 !important;

    white-space: nowrap !important;
}

.performance-risk-card > div > span {
    max-width: 100% !important;

    margin-top:
        clamp(
            1px,
            2cqh,
            3px
        ) !important;

    font-size:
        clamp(
            6px,
            min(4.2cqw, 14cqh),
            13px
        ) !important;

    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
}























