:root {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-deep: #080c18;
    --surface: #11192b;
    --surface-2: #151f33;
    --surface-3: #1a2840;
    --line: rgba(167,188,220,.13);
    --line-strong: rgba(167,188,220,.22);
    --text: #f0f4fb;
    --muted: #91a0b9;
    --muted-2: #697992;
    --mint: #69e9c2;
    --mint-deep: #2ec9a2;
    --mint-wash: rgba(105,233,194,.09);
    --gold: #d9bbff;
    --red: #ff777e;
    --orange: #ffbd83;
    --radius-xl: 25px;
    --radius-lg: 19px;
    --radius-md: 13px;
    --shadow: 0 20px 70px rgba(0,0,0,.22);
}

* {
    box-sizing: border-box
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% -20%,#182443 0%,transparent 48%),var(--bg);
    color: var(--text);
    font: 14px/1.8 Vazirmatn,Tahoma,sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

button, input {
    font: inherit
}

button {
    touch-action: manipulation
}

    button:focus-visible, input:focus-visible, .list div:focus-visible {
        outline: 2px solid var(--mint);
        outline-offset: 3px
    }

::selection {
    background: rgba(105,233,194,.25);
    color: #fff
}

.ambient {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    filter: blur(2px);
    border-radius: 50%;
    opacity: .45
}

.ambient-one {
    width: 370px;
    height: 370px;
    right: -230px;
    top: 220px;
    background: radial-gradient(circle,rgba(81,111,220,.19),transparent 72%)
}

.ambient-two {
    width: 420px;
    height: 420px;
    left: -290px;
    bottom: -140px;
    background: radial-gradient(circle,rgba(46,201,162,.13),transparent 70%)
}

.app-shell {
    width: min(1320px,100%);
    margin: 0 auto;
    padding: 26px 30px 22px
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 25px;
    animation: fade-up .55s both
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105,233,194,.24);
    border-radius: 17px;
    background: linear-gradient(145deg,rgba(105,233,194,.16),rgba(105,233,194,.035));
    color: var(--mint);
    box-shadow: inset 0 1px rgba(255,255,255,.06),0 8px 28px rgba(38,202,163,.07);
    flex: 0 0 auto
}

    .brand-mark svg {
        width: 36px;
        height: 36px
    }

.brand-copy h1 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -.6px;
    line-height: 1.5;
    font-weight: 900
}

.brand-copy .sub {
    margin: 1px 0 0;
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted)
}

.topbar-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20,30,50,.63);
    color: #c1cbe0;
    font-size: 12px;
    white-space: nowrap
}

.note-icon {
    color: var(--mint);
    font-size: 17px;
    filter: drop-shadow(0 0 9px rgba(105,233,194,.38))
}

.intro-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    min-height: 165px;
    padding: 26px 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(149,174,218,.15);
    border-radius: var(--radius-xl);
    background: linear-gradient(112deg,rgba(28,45,76,.93),rgba(19,31,51,.93) 54%,rgba(16,31,47,.95));
    box-shadow: var(--shadow);
    isolation: isolate;
    animation: fade-up .6s .05s both
}

    .intro-banner:before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 450px;
        height: 450px;
        right: 13%;
        top: -360px;
        border-radius: 50%;
        border: 1px solid rgba(105,233,194,.1);
        box-shadow: 0 0 0 35px rgba(105,233,194,.018),0 0 0 80px rgba(105,233,194,.015)
    }

.intro-copy {
    position: relative;
    z-index: 2;
    max-width: 630px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mint);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 1.8px;
    font-weight: 800;
    direction: ltr
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(105,233,194,.8);
    animation: soft-pulse 2.5s ease-in-out infinite
}

.intro-copy h2 {
    margin: 9px 0 5px;
    font-size: clamp(20px,2.2vw,28px);
    line-height: 1.55;
    letter-spacing: -.5px;
    font-weight: 800
}

.intro-copy p {
    margin: 0;
    color: #a6b4ce;
    font-size: 12px;
    max-width: 570px
}

.market-art {
    position: absolute;
    left: 30px;
    top: 11px;
    width: min(36%,360px);
    height: 145px;
    opacity: .95;
    pointer-events: none
}

    .market-art svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible
    }

.art-glow {
    position: absolute;
    width: 200px;
    height: 100px;
    right: 50px;
    top: 25px;
    background: rgba(105,233,194,.08);
    filter: blur(25px);
    border-radius: 50%
}

.art-grid {
    position: absolute;
    inset: 10px;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
    background-size: 25px 25px;
    mask-image: linear-gradient(90deg,#000,transparent)
}

.art-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: rgba(173,199,218,.45);
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 2px;
    text-align: left;
    font-weight: 800;
    direction: ltr
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(315px,365px) minmax(0,1fr);
    gap: 23px;
    align-items: start;
    direction: rtl
}

.control-panel, .analysis-column {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg,rgba(20,30,49,.96),rgba(13,20,35,.97));
    box-shadow: var(--shadow)
}

.control-panel {
    padding: 22px;
    animation: fade-up .6s .1s both
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.heading-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--mint);
    background: var(--mint-wash);
    border: 1px solid rgba(105,233,194,.13)
}

    .heading-icon svg {
        width: 22px;
        height: 22px
    }

.panel-heading h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    line-height: 1.6
}

.panel-heading p {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 0
}

.control-section {
    margin-top: 22px
}

.section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px
}

    .section-title h2 {
        font-size: 12px;
        font-weight: 800;
        margin: 0;
        color: #e1e8f5
    }

.step-number {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(105,233,194,.08);
    border: 1px solid rgba(105,233,194,.15);
    color: var(--mint);
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 auto
}

.section-hint {
    font-size: 11px;
    color: var(--muted);
    margin: -3px 0 10px
}

.seg {
    display: grid;
    grid-template-columns: .8fr .9fr 1.25fr;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6,11,22,.32)
}

    .seg button {
        position: relative;
        min-width: 0;
        padding: 8px 5px;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        color: var(--muted);
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: background .22s,border-color .22s,color .22s,transform .22s
    }

        .seg button:hover {
            color: var(--text);
            background: rgba(255,255,255,.04)
        }

        .seg button.on {
            color: #09251f;
            background: linear-gradient(135deg,#7cf0ce,#4bd4b0);
            border-color: rgba(181,255,235,.45);
            box-shadow: 0 5px 16px rgba(46,201,162,.13);
            font-weight: 800
        }

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(7,12,23,.4);
    transition: border-color .2s,box-shadow .2s,background .2s
}

    .search-box:focus-within {
        border-color: rgba(105,233,194,.58);
        box-shadow: 0 0 0 3px rgba(105,233,194,.07);
        background: rgba(7,12,23,.62)
    }

    .search-box svg {
        width: 18px;
        height: 18px;
        color: var(--muted-2);
        flex: 0 0 auto
    }

    .search-box input {
        width: 100%;
        min-width: 0;
        padding: 12px 0;
        background: transparent;
        border: 0;
        outline: none;
        color: var(--text);
        font-size: 12px;
        box-shadow: none
    }

        .search-box input::placeholder {
            color: #64738d
        }

        .search-box input:focus-visible {
            outline: 0
        }

        .search-box input::-webkit-search-cancel-button {
            cursor: pointer
        }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.group-chips {
    margin: 10px 0 8px
}

.chips button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.018);
    color: #94a4bf;
    font-size: 10px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease
}

    .chips button:hover {
        border-color: rgba(105,233,194,.38);
        color: #dffbf3;
        background: rgba(105,233,194,.055);
        transform: translateY(-1px)
    }

    .chips button.on {
        border-color: rgba(105,233,194,.38);
        color: var(--mint);
        background: rgba(105,233,194,.095);
        box-shadow: inset 0 0 0 1px rgba(105,233,194,.025)
    }

.list {
    max-height: 252px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(6,11,22,.28);
    scrollbar-width: thin;
    scrollbar-color: #33445e transparent;
    overscroll-behavior: contain
}

    .list div {
        min-height: 42px;
        padding: 9px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        cursor: pointer;
        border-bottom: 1px solid rgba(167,188,220,.075);
        font-size: 11px;
        color: #d7e0f0;
        transition: background .18s,color .18s,padding .18s
    }

        .list div:last-child {
            border: 0
        }

        .list div:hover, .list div.on {
            background: linear-gradient(90deg,rgba(105,233,194,.035),rgba(105,233,194,.11));
            color: #eafff8
        }

        .list div.on {
            padding-inline-start: 15px;
            box-shadow: inset -2px 0 var(--mint)
        }

    .list small {
        color: var(--muted);
        direction: ltr;
        text-align: left;
        font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
        font-size: 10px
    }

    .list div:first-child:only-child {
        color: var(--muted);
        cursor: default;
        justify-content: center;
        min-height: 55px
    }

    .list .err {
        color: var(--red)
    }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    font-size: 9px;
    color: var(--muted);
    direction: rtl
}

    .pager button {
        padding: 4px 8px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,.025);
        color: #d7e1f1;
        font-size: 10px;
        cursor: pointer;
        transition: all .2s
    }

        .pager button:hover:not(:disabled) {
            border-color: rgba(105,233,194,.4);
            color: var(--mint)
        }

        .pager button:disabled {
            opacity: .3;
            cursor: not-allowed
        }

.picked {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 0;
    padding: 9px 11px;
    border: 1px dashed rgba(145,160,185,.2);
    border-radius: 11px;
    color: var(--muted);
    font-size: 10px;
    min-height: 39px;
    overflow-wrap: anywhere
}

    .picked b {
        color: var(--mint);
        font-weight: 800
    }

.picked-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-2);
    flex: 0 0 auto
}

.picked:has(b) .picked-dot {
    background: var(--mint);
    box-shadow: 0 0 10px rgba(105,233,194,.5)
}

.timeframe-section {
    padding-top: 2px
}

.tf-chips {
    gap: 7px
}

    .tf-chips button {
        min-width: 43px;
        padding: 6px 9px;
        font-size: 10px;
        font-weight: 700;
        direction: ltr
    }

.go {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    padding: 14px 18px;
    border: 1px solid rgba(183,255,236,.4);
    border-radius: 14px;
    background: linear-gradient(105deg,#83f1d1,#4bd4af 56%,#39c6a4);
    color: #06271f;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(46,201,162,.13),inset 0 1px rgba(255,255,255,.45);
    transition: transform .22s,box-shadow .22s,filter .22s
}

    .go:before {
        content: "";
        position: absolute;
        top: -80%;
        bottom: -80%;
        left: -35%;
        width: 23%;
        transform: rotate(18deg);
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
        transition: left .65s ease
    }

    .go:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(46,201,162,.22),inset 0 1px rgba(255,255,255,.45);
        filter: saturate(1.08)
    }

        .go:hover:not(:disabled):before {
            left: 125%
        }

    .go:active:not(:disabled) {
        transform: translateY(0) scale(.99)
    }

    .go:disabled {
        opacity: .38;
        cursor: not-allowed;
        box-shadow: none;
        filter: saturate(.6)
    }

.go-arrow {
    font-size: 19px;
    line-height: 1;
    font-family: Arial,sans-serif;
    transition: transform .2s
}

.go:hover:not(:disabled) .go-arrow {
    transform: translateX(-4px)
}

.secure-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    color: #75849d;
    font-size: 9px;
    text-align: center;
    line-height: 1.8
}

    .secure-note svg {
        width: 14px;
        height: 14px;
        flex: 0 0 auto;
        color: #70bbac;
        margin-top: 3px
    }

.analysis-column {
    padding: 24px;
    min-height: 520px;
    animation: fade-up .65s .15s both
}

.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line)
}

    .results-heading h2 {
        font-size: 19px;
        line-height: 1.5;
        letter-spacing: -.4px;
        font-weight: 900;
        margin: 5px 0 1px
    }

    .results-heading p {
        font-size: 11px;
        color: var(--muted);
        margin: 0
    }

.results-emblem {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 42px;
    padding: 7px 9px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(6,11,22,.25);
    direction: ltr
}

    .results-emblem span {
        display: block;
        width: 5px;
        border-radius: 5px;
        background: rgba(105,233,194,.72);
        animation: bars 1.7s ease-in-out infinite alternate
    }

        .results-emblem span:nth-child(1) {
            height: 11px;
            animation-delay: -.2s
        }

        .results-emblem span:nth-child(2) {
            height: 18px;
            animation-delay: -.8s
        }

        .results-emblem span:nth-child(3) {
            height: 25px;
            animation-delay: -.4s
        }

        .results-emblem span:nth-child(4) {
            height: 15px;
            animation-delay: -1.1s
        }

        .results-emblem span:nth-child(5) {
            height: 29px;
            animation-delay: -.6s
        }

.output-area {
    min-width: 0
}

    .output-area:empty {
        display: grid;
        place-items: center;
        position: relative;
        overflow: hidden;
        min-height: 345px;
        padding: 40px 20px;
        border: 1px dashed rgba(145,160,185,.22);
        border-radius: 18px;
        background: radial-gradient(ellipse at 50% 58%,rgba(105,233,194,.045),transparent 58%),rgba(6,11,22,.19);
        text-align: center
    }

        .output-area:empty:before {
            content: "برای شروع، بازار و نماد موردنظر را انتخاب کنید";
            display: block;
            max-width: 330px;
            color: #d5deee;
            font-size: 14px;
            font-weight: 800;
            line-height: 2.1;
            padding-top: 120px;
            background-repeat: no-repeat;
            background-position: center 0;
            background-size: 110px 105px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='105' viewBox='0 0 110 105' fill='none'%3E%3Crect x='14' y='7' width='82' height='82' rx='24' fill='%2369e9c2' fill-opacity='.06' stroke='%2369e9c2' stroke-opacity='.18'/%3E%3Cpath d='M30 66V49M42 66V34M54 66V43M66 66V24M78 66V39' stroke='%2369e9c2' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M26 75H84' stroke='%2391a0b9' stroke-opacity='.45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
            animation: fade-up .5s both
        }

        .output-area:empty:after {
            content: "پس از دریافت تحلیل، وضعیت بازار، نقاط ورود و سطوح کلیدی اینجا نمایش داده می‌شوند.";
            position: absolute;
            top: calc(50% + 66px);
            left: 20px;
            right: 20px;
            color: var(--muted);
            font-size: 11px;
            line-height: 2
        }

.card {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 23px;
    border: 1px solid rgba(145,160,185,.17);
    border-radius: 18px;
    background: linear-gradient(145deg,rgba(25,37,59,.92),rgba(15,24,41,.96));
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    animation: fade-up .38s ease-out both
}

    .card:before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 2px;
        background: linear-gradient(90deg,transparent,var(--mint),transparent);
        opacity: .7
    }

    .card .dir {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 5px;
        font-size: clamp(21px,2.8vw,30px);
        line-height: 1.5;
        font-weight: 900;
        letter-spacing: -.6px
    }

        .card .dir:before {
            content: "";
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 15px currentColor;
            flex: 0 0 auto
        }

.BUY {
    color: var(--mint) !important
}

.SELL {
    color: var(--red) !important
}

.NEUTRAL {
    color: #a7b4ca !important
}

.meta {
    color: var(--muted);
    margin: 2px 0 15px;
    font-size: 11px;
    line-height: 2;
    overflow-wrap: anywhere
}

.card > div:not(.lv):not(.bar):not(.inp):not(.chips) {
    overflow-wrap: anywhere
}

.card .bar {
    height: 7px;
    background: rgba(145,160,185,.14);
    border-radius: 99px;
    overflow: hidden;
    margin: 7px 0 20px
}

    .card .bar i {
        display: block;
        height: 100%;
        border-radius: 99px;
        box-shadow: 0 0 13px rgba(105,233,194,.25);
        transition: width .8s cubic-bezier(.2,.75,.25,1)
    }

.card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 800;
    margin: 22px 0 10px;
    color: #dce6f6
}

    .card h3:before {
        content: "";
        width: 3px;
        height: 15px;
        border-radius: 4px;
        background: var(--mint);
        box-shadow: 0 0 9px rgba(105,233,194,.18)
    }

.lv {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 12px 0 16px
}

    .lv > div {
        min-width: 0;
        position: relative;
        background: rgba(7,12,23,.35);
        border: 1px solid rgba(145,160,185,.12);
        border-radius: 13px;
        padding: 12px 14px;
        transition: border-color .2s,transform .2s
    }

        .lv > div:hover {
            border-color: rgba(105,233,194,.23);
            transform: translateY(-1px)
        }

    .lv small {
        display: block;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.8;
        margin-bottom: 5px
    }

    .lv b {
        direction: ltr;
        display: block;
        text-align: right;
        overflow-wrap: anywhere;
        font-size: 15px;
        font-family: Vazirmatn,ui-monospace,monospace;
        font-weight: 800;
        line-height: 1.8
    }

.card canvas {
    width: 100%;
    height: 150px;
    display: block;
    margin-top: 15px;
    border: 1px solid rgba(145,160,185,.1);
    border-radius: 12px;
    background: rgba(6,11,22,.24)
}

.card ul {
    margin: 0;
    padding-inline-start: 20px;
    color: #b7c3d8;
    font-size: 11px
}

.card li {
    margin: 6px 0;
    padding-inline-start: 3px;
    line-height: 1.9
}

    .card li::marker {
        color: var(--mint)
    }

.card .warn li {
    color: #ffc49a
}

    .card .warn li::marker {
        color: var(--orange)
    }

.card .inp {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

    .card .inp label {
        display: block;
        min-width: 0;
        font-size: 10px;
        color: var(--muted)
    }

    .card .inp input {
        display: block;
        width: 100%;
        min-width: 0;
        margin-top: 5px;
        padding: 10px 11px;
        border: 1px solid var(--line-strong);
        border-radius: 10px;
        background: rgba(7,12,23,.55);
        color: var(--text);
        font-size: 12px
    }

.card .chips {
    margin: 10px 0;
    gap: 7px
}

    .card .chips button {
        padding: 6px 10px;
        font-size: 10px
    }

.card .err {
    color: var(--red)
}

.mini-disclaimer {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid rgba(255,189,131,.12);
    border-radius: 12px;
    background: rgba(255,189,131,.035);
    color: #a9b4c7
}

    .mini-disclaimer > span {
        color: var(--orange);
        font-size: 13px;
        line-height: 1.8
    }

    .mini-disclaimer p {
        margin: 0;
        font-size: 10px;
        line-height: 1.9
    }

.app-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 5px 0;
    color: #687791;
    font-size: 10px
}

    .app-footer > span:first-child {
        color: #9caac2;
        font-weight: 800
    }

.footer-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #53627a
}

.footer-copy {
    margin-inline-start: auto;
    direction: ltr;
    letter-spacing: .5px;
    font-size: 9px
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes soft-pulse {
    0%,100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(105,233,194,.18)
    }

    50% {
        opacity: .65;
        box-shadow: 0 0 0 5px rgba(105,233,194,0)
    }
}

@keyframes bars {
    from {
        opacity: .48;
        transform: scaleY(.7);
        transform-origin: bottom
    }

    to {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: bottom
    }
}

@media(min-width:1400px) {
    .app-shell {
        padding-inline: 38px
    }

    .workspace-grid {
        grid-template-columns: minmax(340px,385px) minmax(0,1fr);
        gap: 26px
    }

    .control-panel, .analysis-column {
        padding: 27px
    }

    .list {
        max-height: 280px
    }
}

@media(max-width:1000px) {
    .app-shell {
        padding: 22px 20px
    }

    .workspace-grid {
        grid-template-columns: minmax(290px,340px) minmax(0,1fr);
        gap: 16px
    }

    .control-panel {
        padding: 18px
    }

    .analysis-column {
        padding: 20px
    }

    .intro-banner {
        padding: 23px 25px
    }

    .market-art {
        left: 15px;
        width: 34%;
        opacity: .73
    }
}

@media(max-width:760px) {
    .app-shell {
        padding: 17px 15px 18px
    }

    .topbar {
        margin-bottom: 17px;
        gap: 10px
    }

    .brand {
        gap: 10px
    }

    .brand-mark {
        width: 45px;
        height: 45px;
        border-radius: 14px
    }

        .brand-mark svg {
            width: 31px;
            height: 31px
        }

    .brand-copy h1 {
        font-size: 21px
    }

    .brand-copy .sub {
        font-size: 10px;
        max-width: 290px;
        line-height: 1.7
    }

    .topbar-note {
        padding: 7px 9px;
        font-size: 10px;
        gap: 6px
    }

    .note-icon {
        font-size: 14px
    }

    .intro-banner {
        min-height: 145px;
        padding: 23px 21px;
        margin-bottom: 16px;
        border-radius: 20px
    }

    .intro-copy {
        max-width: 100%;
        padding-inline-end: 10px
    }

        .intro-copy h2 {
            font-size: 21px;
            max-width: 380px
        }

        .intro-copy p {
            font-size: 11px;
            max-width: 380px
        }

    .market-art {
        left: -12px;
        width: 39%;
        opacity: .25
    }

    .workspace-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 16px
    }

    .control-panel {
        padding: 18px;
        border-radius: 20px
    }

    .panel-heading {
        padding-bottom: 16px
    }

    .control-section {
        margin-top: 19px
    }

    .list {
        max-height: 230px
    }

    .go {
        margin-top: 20px
    }

    .analysis-column {
        padding: 18px;
        border-radius: 20px;
        min-height: 380px
    }

    .results-heading {
        margin-bottom: 16px
    }

    .output-area:empty {
        min-height: 285px
    }

    .card {
        padding: 18px
    }

        .card canvas {
            height: 130px
        }

    .app-footer {
        padding-top: 17px
    }
}

@media(max-width:430px) {
    .app-shell {
        padding-inline: 11px
    }

    .topbar-note {
        font-size: 0;
        width: 37px;
        height: 37px;
        justify-content: center;
        padding: 0;
        border-radius: 12px;
        flex: 0 0 auto
    }

    .note-icon {
        font-size: 17px
    }

    .brand-copy h1 {
        font-size: 19px
    }

    .brand-copy .sub {
        font-size: 9px;
        max-width: 245px
    }

    .intro-banner {
        padding: 20px 17px;
        min-height: 150px
    }

    .intro-copy h2 {
        font-size: 19px
    }

    .intro-copy p {
        font-size: 10px;
        max-width: 270px
    }

    .control-panel, .analysis-column {
        padding: 15px
    }

    .seg button {
        font-size: 10px;
        padding: 8px 3px
    }

    .pager {
        font-size: 8px
    }

        .pager button {
            padding: 4px 6px
        }

    .lv {
        gap: 7px
    }

        .lv > div {
            padding: 10px
        }

        .lv small {
            font-size: 9px
        }

        .lv b {
            font-size: 13px
        }

    .card .dir {
        font-size: 22px
    }

    .results-heading h2 {
        font-size: 17px
    }

    .results-heading p {
        font-size: 10px
    }

    .results-emblem {
        height: 37px
    }

    .mini-disclaimer {
        padding: 10px
    }

    .app-footer {
        gap: 7px;
        font-size: 9px
    }

    .footer-copy {
        width: 100%;
        margin: 0
    }
}

@media(prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

/* v6: actionable first-screen result and compact mobile workspace */
.mobile-edit {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(105,233,194,.28);
    border-radius: 10px;
    background: rgba(105,233,194,.08);
    color: var(--mint);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer
}

.signal-quality {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    margin: 9px 0 4px
}

    .signal-quality b {
        color: var(--mint);
        direction: ltr;
        font-size: 12px;
        font-variant-numeric: tabular-nums
    }

.neutral-reason {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: start;
    gap: 7px 11px;
    margin: 13px 0;
    padding: 12px 14px;
    border: 1px solid rgba(246,183,105,.23);
    border-radius: 13px;
    background: rgba(246,183,105,.055)
}

    .neutral-reason span {
        color: #f4c38f;
        font-size: 10px;
        font-weight: 900;
        white-space: nowrap;
        padding-top: 2px
    }

    .neutral-reason p {
        margin: 0;
        color: #e0e5ef;
        font-size: 12px;
        line-height: 1.9;
        overflow-wrap: anywhere
    }

.quick-levels {
    margin: 13px 0 12px
}

    .quick-levels > div {
        padding: 11px 12px
    }

.quick-risk-note {
    margin: 7px 0 0;
    color: #8291a9;
    font-size: 9px;
    line-height: 1.7
}

.more-details {
    margin-top: 8px;
    border: 1px solid rgba(145,160,185,.16);
    border-radius: 13px;
    background: rgba(6,11,22,.19);
    overflow: hidden
}

    .more-details > summary {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 42px;
        padding: 10px 13px;
        color: #cbd7e9;
        font-size: 11px;
        font-weight: 800;
        cursor: pointer;
        list-style: none
    }

        .more-details > summary::-webkit-details-marker {
            display: none
        }

        .more-details > summary:after {
            content: '+';
            margin-inline-start: auto;
            color: var(--mint);
            font-size: 17px;
            font-weight: 500
        }

    .more-details[open] > summary:after {
        content: '−'
    }

    .more-details > summary:hover {
        color: var(--mint)
    }

.details-content {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(145,160,185,.1)
}

    .details-content canvas {
        margin-top: 12px
    }

.management-note {
    font-family: inherit !important;
    font-size: 11px !important;
    direction: rtl !important;
    text-align: right !important;
    font-weight: 500 !important;
    line-height: 1.9 !important
}

.loading-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px
}

    .loading-card > b {
        font-size: 14px
    }

    .loading-card .meta {
        margin: 0
    }

.loading-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(105,233,194,.4);
    animation: soft-pulse 1.1s infinite
}

@media(max-width:760px) {
    body.results-ready .intro-banner, body.results-ready .app-footer {
        display: none
    }

    body.results-ready .topbar {
        margin-bottom: 9px;
        padding: 0 2px
    }

    body.results-ready .topbar-note {
        display: none
    }

    body.results-ready .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px
    }

    body.results-ready .brand-copy h1 {
        font-size: 17px
    }

    body.results-ready .brand-copy .sub {
        font-size: 9px;
        line-height: 1.4
    }

    .workspace-grid.has-result {
        gap: 8px
    }

        .workspace-grid.has-result .analysis-column {
            order: -1;
            min-height: 0;
            padding: 12px;
            border-radius: 16px
        }

        .workspace-grid.has-result .control-panel {
            order: 1;
            padding: 10px 12px;
            border-radius: 14px
        }

        .workspace-grid.has-result .panel-heading {
            padding: 0;
            border: 0;
            min-height: 35px;
            gap: 8px
        }

            .workspace-grid.has-result .panel-heading .heading-icon {
                width: 30px;
                height: 30px;
                flex: 0 0 30px
            }

                .workspace-grid.has-result .panel-heading .heading-icon svg {
                    width: 17px;
                    height: 17px
                }

            .workspace-grid.has-result .panel-heading h2 {
                font-size: 12px;
                margin: 0
            }

            .workspace-grid.has-result .panel-heading p {
                display: none
            }

        .workspace-grid.has-result .mobile-edit {
            display: inline-flex
        }

        .workspace-grid.has-result:not(.editing-controls) #controls > .control-section,
        .workspace-grid.has-result:not(.editing-controls) #controls > .go,
        .workspace-grid.has-result:not(.editing-controls) #controls > .secure-note,
        .workspace-grid.has-result:not(.editing-controls) #controls > .picked,
        .workspace-grid.has-result:not(.editing-controls) #controls > .pager {
            display: none !important
        }

        .workspace-grid.has-result.editing-controls #controls {
            order: -1
        }

        .workspace-grid.has-result.editing-controls .analysis-column {
            order: 1
        }

        .workspace-grid.has-result.editing-controls #controls .control-section {
            display: block
        }

        .workspace-grid.has-result .results-heading {
            margin-bottom: 10px;
            padding-bottom: 9px;
            gap: 8px
        }

            .workspace-grid.has-result .results-heading h2 {
                font-size: 15px;
                margin: 2px 0 0
            }

            .workspace-grid.has-result .results-heading p {
                display: none
            }

        .workspace-grid.has-result .results-emblem {
            height: 31px;
            padding: 5px 7px
        }

            .workspace-grid.has-result .results-emblem span:nth-child(1) {
                height: 8px
            }

            .workspace-grid.has-result .results-emblem span:nth-child(2) {
                height: 12px
            }

            .workspace-grid.has-result .results-emblem span:nth-child(3) {
                height: 18px
            }

            .workspace-grid.has-result .results-emblem span:nth-child(4) {
                height: 11px
            }

            .workspace-grid.has-result .results-emblem span:nth-child(5) {
                height: 21px
            }

        .workspace-grid.has-result .eyebrow {
            font-size: 8px
        }

        .workspace-grid.has-result .card {
            padding: 13px;
            border-radius: 14px
        }

            .workspace-grid.has-result .card .dir {
                font-size: clamp(19px,5.4vw,24px);
                line-height: 1.45;
                margin-bottom: 3px
            }

            .workspace-grid.has-result .card .meta {
                font-size: 9px;
                line-height: 1.7;
                margin: 2px 0 8px
            }

        .workspace-grid.has-result .signal-quality {
            margin: 6px 0 2px;
            font-size: 10px
        }

        .workspace-grid.has-result .bar {
            height: 5px;
            margin: 5px 0 8px
        }

        .workspace-grid.has-result .quick-levels {
            gap: 7px;
            margin: 9px 0
        }

            .workspace-grid.has-result .quick-levels > div {
                padding: 8px 9px;
                border-radius: 10px
            }

            .workspace-grid.has-result .quick-levels small {
                font-size: 9px;
                line-height: 1.5;
                margin-bottom: 3px
            }

            .workspace-grid.has-result .quick-levels b {
                font-size: clamp(12px,3.7vw,15px);
                line-height: 1.55
            }

        .workspace-grid.has-result .neutral-reason {
            margin: 8px 0;
            padding: 9px 10px;
            gap: 5px 8px
        }

            .workspace-grid.has-result .neutral-reason span {
                font-size: 9px
            }

            .workspace-grid.has-result .neutral-reason p {
                font-size: 10px;
                line-height: 1.7
            }

        .workspace-grid.has-result .more-details {
            margin-top: 8px
        }

            .workspace-grid.has-result .more-details > summary {
                min-height: 35px;
                padding: 8px 10px;
                font-size: 10px
            }

        .workspace-grid.has-result .mini-disclaimer {
            display: none
        }

        .workspace-grid.has-result .output-area:empty {
            min-height: 180px;
            padding: 25px 15px
        }

        .workspace-grid.has-result .control-section {
            margin-top: 14px
        }

        .workspace-grid.has-result .go {
            margin-top: 14px
        }

        .workspace-grid.has-result .list {
            max-height: 175px
        }

        .workspace-grid.has-result #q {
            font-size: 16px
        }
}

@media(max-width:390px) {
    .workspace-grid.has-result .analysis-column {
        padding: 9px
    }

    .workspace-grid.has-result .card {
        padding: 10px
    }

    .workspace-grid.has-result .quick-levels {
        gap: 5px
    }

        .workspace-grid.has-result .quick-levels > div {
            padding: 7px
        }

    .workspace-grid.has-result .neutral-reason {
        grid-template-columns: 1fr
    }
}

.mode-note {
    margin: 8px 0;
    padding: 9px 12px;
    border-radius: 11px;
    background: rgba(230,194,122,.08);
    border: 1px solid rgba(230,194,122,.25);
    color: #e6c27a;
    font-size: 11.5px;
    line-height: 1.8
}

    .mode-note.caution {
        background: rgba(246,183,105,.07);
        color: #f4c38f
    }

.plan-box {
    margin: 10px 0;
    padding: 11px 13px;
    border: 1px solid rgba(143,165,175,.25);
    border-radius: 13px
}

    .plan-box > span {
        display: block;
        color: #9fb0bb;
        font-size: 10.5px;
        font-weight: 900;
        margin-bottom: 6px
    }

.plan-row {
    display: grid;
    gap: 3px;
    padding: 7px 0;
    border-top: 1px dashed rgba(143,165,175,.18)
}

    .plan-row:first-of-type {
        border-top: 0
    }

    .plan-row small {
        color: #aab6c3;
        font-size: 11px;
        line-height: 1.7
    }

/* ===== v10: حساب کاربری، کیف پول، مودال‌ها ===== */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto
}

.acct {
    display: flex;
    align-items: center;
    gap: 8px
}

.acct-login {
    padding: 9px 16px;
    border: 1px solid rgba(105,233,194,.35);
    border-radius: 12px;
    background: rgba(105,233,194,.1);
    color: var(--mint);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s,border-color .2s
}

    .acct-login:hover {
        background: rgba(105,233,194,.17);
        border-color: rgba(105,233,194,.55)
    }

.acct-bal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20,30,50,.63);
    color: #d3dcee;
    font-size: 11px;
    cursor: pointer
}

    .acct-bal b {
        color: var(--mint);
        font-variant-numeric: tabular-nums
    }

    .acct-bal.low b {
        color: var(--orange)
    }

.acct-me {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 3px 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20,30,50,.63);
    color: #d3dcee;
    font-size: 11px;
    cursor: pointer
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: linear-gradient(145deg,rgba(105,233,194,.22),rgba(81,111,220,.22));
    border: 1px solid rgba(105,233,194,.3);
    color: var(--mint);
    font-weight: 900;
    font-size: 14px
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

    .avatar.big {
        width: 88px;
        height: 88px;
        font-size: 32px
    }

.go-cost {
    margin: 10px 0 0;
    text-align: center;
    font-size: 10px;
    color: var(--muted)
}

    .go-cost b {
        color: var(--mint)
    }

body.modal-open {
    overflow: hidden
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4,8,18,.72);
    backdrop-filter: blur(5px);
    animation: fade-in .18s both
}

.sheet {
    position: relative;
    width: min(460px,100%);
    max-height: min(88vh,860px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: linear-gradient(155deg,#17223a,#0f1830);
    box-shadow: 0 30px 90px rgba(0,0,0,.5);
    animation: sheet-in .25s cubic-bezier(.2,.8,.25,1) both;
    scrollbar-width: thin;
    scrollbar-color: #33445e transparent
}

    .sheet.wide {
        width: min(720px,100%)
    }

.sheet-body {
    padding: 24px 22px 22px
}

.sheet-x {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: rgba(255,255,255,.05);
    color: #b9c6dc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2
}

    .sheet-x:hover {
        background: rgba(255,255,255,.1);
        color: #fff
    }

.sheet h2 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.6
}

.sheet .lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.9
}

.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 2px 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6,11,22,.34)
}

    .tabs button {
        flex: 1;
        min-width: 0;
        padding: 8px 6px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: background .2s,color .2s
    }

        .tabs button:hover {
            color: var(--text)
        }

        .tabs button.on {
            color: #09251f;
            background: linear-gradient(135deg,#7cf0ce,#4bd4b0);
            font-weight: 800
        }

.field {
    display: block;
    margin: 0 0 13px
}

    .field > span {
        display: block;
        margin-bottom: 5px;
        color: #aebbd1;
        font-size: 11px;
        font-weight: 600
    }

    .field > small {
        display: block;
        margin-top: 4px;
        color: var(--muted-2);
        font-size: 10px
    }

    .field input, .field select, .field textarea {
        width: 100%;
        min-width: 0;
        padding: 11px 13px;
        border: 1px solid var(--line-strong);
        border-radius: 12px;
        background: rgba(7,12,23,.55);
        color: var(--text);
        font-size: 14px;
        transition: border-color .2s,box-shadow .2s
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            outline: 0;
            border-color: rgba(105,233,194,.58);
            box-shadow: 0 0 0 3px rgba(105,233,194,.08)
        }

        .field input[disabled], .field input[readonly] {
            opacity: .6;
            cursor: not-allowed
        }

        .field input.ltr {
            direction: ltr;
            text-align: left
        }

        .field input.code {
            direction: ltr;
            text-align: center;
            letter-spacing: .5em;
            font-size: 20px;
            font-weight: 800;
            font-variant-numeric: tabular-nums
        }

.field-row {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: #dbe5f5;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s,border-color .2s,transform .15s
}

    .btn:hover:not(:disabled) {
        background: rgba(255,255,255,.08)
    }

    .btn:active:not(:disabled) {
        transform: scale(.985)
    }

    .btn:disabled {
        opacity: .45;
        cursor: not-allowed
    }

    .btn.primary {
        width: 100%;
        color: #09251f;
        border-color: rgba(183,255,236,.4);
        background: linear-gradient(105deg,#83f1d1,#4bd4af 56%,#3cc9a5);
        font-weight: 900
    }

        .btn.primary:hover:not(:disabled) {
            filter: saturate(1.08);
            background: linear-gradient(105deg,#83f1d1,#4bd4af 56%,#3cc9a5)
        }

    .btn.danger {
        color: #ffb4b8;
        border-color: rgba(255,119,126,.3);
        background: rgba(255,119,126,.07)
    }

    .btn.sm {
        padding: 6px 11px;
        font-size: 11px;
        border-radius: 9px
    }

    .btn.link {
        border: 0;
        background: none;
        color: var(--mint);
        padding: 4px 2px;
        font-weight: 600;
        font-size: 12px
    }

.form-err {
    min-height: 20px;
    margin: 0 0 10px;
    color: var(--red);
    font-size: 11.5px;
    line-height: 1.8
}

.form-ok {
    margin: 0 0 10px;
    color: var(--mint);
    font-size: 11.5px
}

.note-box {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(105,233,194,.2);
    border-radius: 12px;
    background: rgba(105,233,194,.06);
    color: #bfeedd;
    font-size: 11.5px;
    line-height: 1.9
}

    .note-box.warn {
        border-color: rgba(255,189,131,.25);
        background: rgba(255,189,131,.06);
        color: #ffd2ad
    }

.fine {
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.9;
    text-align: center
}

.sep {
    height: 1px;
    background: var(--line);
    margin: 18px 0
}

.sec-title {
    margin: 18px 0 10px;
    font-size: 12.5px;
    font-weight: 800;
    color: #dce6f6
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px
}

    .avatar-row .btns {
        display: flex;
        flex-direction: column;
        gap: 7px
    }

.bal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(105,233,194,.22);
    border-radius: 16px;
    background: linear-gradient(135deg,rgba(105,233,194,.12),rgba(81,111,220,.1))
}

    .bal-card small {
        display: block;
        color: var(--muted);
        font-size: 10.5px
    }

    .bal-card b {
        font-size: 26px;
        font-weight: 900;
        color: var(--mint);
        font-variant-numeric: tabular-nums;
        line-height: 1.4
    }

    .bal-card .sub {
        color: #c1ccdf;
        font-size: 11px;
        text-align: left
    }

.pkgs {
    display: grid;
    gap: 10px
}

.pkg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: rgba(7,12,23,.35);
    cursor: pointer;
    text-align: right;
    color: inherit;
    font: inherit;
    width: 100%;
    transition: border-color .2s,background .2s,transform .15s
}

    .pkg:hover {
        border-color: rgba(105,233,194,.45);
        background: rgba(105,233,194,.05);
        transform: translateY(-1px)
    }

    .pkg b {
        display: block;
        font-size: 14px;
        font-weight: 800
    }

    .pkg small {
        display: block;
        color: var(--muted);
        font-size: 10.5px;
        line-height: 1.8
    }

    .pkg .price {
        text-align: left;
        white-space: nowrap;
        color: var(--mint);
        font-weight: 900;
        font-size: 14px;
        font-variant-numeric: tabular-nums
    }

        .pkg .price small {
            color: var(--muted);
            font-weight: 500
        }

.sum {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

    .sum div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        font-size: 12px;
        border-bottom: 1px solid var(--line)
    }

        .sum div:last-child {
            border: 0;
            background: rgba(105,233,194,.07);
            font-weight: 900;
            font-size: 13.5px
        }

    .sum .neg {
        color: var(--mint)
    }

.inline-form {
    display: flex;
    gap: 8px;
    align-items: flex-start
}

    .inline-form .field {
        flex: 1;
        margin: 0
    }

.rows {
    display: grid;
    gap: 8px
}

.row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(7,12,23,.3);
    font-size: 12px;
    width: 100%;
    text-align: right;
    color: inherit;
    font-family: inherit
}

button.row-item {
    cursor: pointer;
    transition: border-color .2s,background .2s
}

    button.row-item:hover {
        border-color: rgba(105,233,194,.35);
        background: rgba(105,233,194,.04)
    }

.row-item .main {
    min-width: 0;
    flex: 1
}

    .row-item .main b {
        display: block;
        font-size: 12.5px;
        font-weight: 800;
        overflow-wrap: anywhere
    }

    .row-item .main small {
        display: block;
        color: var(--muted);
        font-size: 10.5px;
        line-height: 1.8
    }

.row-item .end {
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
    font-variant-numeric: tabular-nums
}

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid var(--line-strong);
    color: #c1ccdf;
    background: rgba(255,255,255,.04)
}

    .badge.ok {
        color: var(--mint);
        border-color: rgba(105,233,194,.35);
        background: rgba(105,233,194,.08)
    }

    .badge.bad {
        color: var(--red);
        border-color: rgba(255,119,126,.35);
        background: rgba(255,119,126,.08)
    }

    .badge.warn {
        color: var(--orange);
        border-color: rgba(255,189,131,.35);
        background: rgba(255,189,131,.08)
    }

.pos {
    color: var(--mint)
}

.neg {
    color: var(--red)
}

.empty {
    padding: 26px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 12px
}

.pager2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    font-size: 10.5px;
    color: var(--muted)
}

.hist-detail .card {
    padding: 16px
}

.toasts {
    position: fixed;
    z-index: 80;
    bottom: max(18px,env(safe-area-inset-bottom));
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none
}

.toast {
    max-width: min(92vw,420px);
    padding: 11px 16px;
    border-radius: 13px;
    background: #1c2842;
    border: 1px solid var(--line-strong);
    color: #eef3fb;
    font-size: 12.5px;
    line-height: 1.8;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    animation: sheet-in .25s both;
    transition: opacity .3s
}

    .toast.ok {
        border-color: rgba(105,233,194,.45)
    }

    .toast.bad {
        border-color: rgba(255,119,126,.5)
    }

    .toast.out {
        opacity: 0
    }

.spin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.2);
    border-top-color: var(--mint);
    border-radius: 50%;
    animation: rot .7s linear infinite
}

@keyframes fade-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes sheet-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes rot {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:560px) {
    .modal {
        align-items: end;
        padding: 0
    }

    .sheet, .sheet.wide {
        width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        border-bottom: 0
    }

    .sheet-body {
        padding: 22px 16px calc(20px + env(safe-area-inset-bottom))
    }

    .acct-me span.nm {
        display: none
    }

    .acct-me {
        padding: 3px
    }

    .acct-login {
        padding: 8px 12px;
        font-size: 11px
    }

    .topbar-actions {
        gap: 6px
    }

    .field-row {
        grid-template-columns: 1fr
    }
}

/* ===== موجودی زنده در نوار بالا ===== */
.acct-bal {
    position: relative;
    transition: border-color .3s,background .3s,box-shadow .3s
}

    .acct-bal .coin {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%,#bffbe9,#2ec9a2);
        box-shadow: 0 0 0 2px rgba(105,233,194,.18)
    }

    .acct-bal.low .coin {
        background: radial-gradient(circle at 35% 30%,#ffe2c4,#ff9d4d);
        box-shadow: 0 0 0 2px rgba(255,189,131,.2)
    }

    .acct-bal.low {
        border-color: rgba(255,189,131,.45);
        animation: low-pulse 2.2s ease-in-out infinite
    }

    .acct-bal.flash-dn {
        animation: bal-dn .7s ease-out
    }

    .acct-bal.flash-up {
        animation: bal-up .7s ease-out
    }

.bal-delta {
    position: absolute;
    top: 100%;
    inset-inline-start: 50%;
    transform: translateX(50%);
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    pointer-events: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    animation: bal-fly 1.5s ease-out forwards;
    z-index: 5
}

[dir=rtl] .bal-delta {
    transform: translateX(50%)
}

.bal-delta.neg {
    color: #ffd0d3;
    background: rgba(255,119,126,.2);
    border: 1px solid rgba(255,119,126,.4)
}

.bal-delta.pos {
    color: #b8ffe9;
    background: rgba(105,233,194,.18);
    border: 1px solid rgba(105,233,194,.4)
}

@keyframes bal-fly {
    0% {
        opacity: 0;
        margin-top: -6px
    }

    15% {
        opacity: 1
    }

    100% {
        opacity: 0;
        margin-top: 26px
    }
}

@keyframes bal-dn {
    0% {
        box-shadow: 0 0 0 0 rgba(255,119,126,.55);
        border-color: rgba(255,119,126,.7)
    }

    100% {
        box-shadow: 0 0 0 12px rgba(255,119,126,0)
    }
}

@keyframes bal-up {
    0% {
        box-shadow: 0 0 0 0 rgba(105,233,194,.55);
        border-color: rgba(105,233,194,.7)
    }

    100% {
        box-shadow: 0 0 0 12px rgba(105,233,194,0)
    }
}

@keyframes low-pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(255,189,131,.28)
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255,189,131,0)
    }
}

.bal-card.empty {
    border-color: rgba(255,189,131,.4);
    background: linear-gradient(135deg,rgba(255,189,131,.13),rgba(255,119,126,.08))
}

    .bal-card.empty b {
        color: var(--orange)
    }

/* ===== پیشنهاد خرید پکیج ===== */
.offer-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px
}

    .offer-head h2 {
        margin: 0 0 4px;
        font-size: 17px;
        line-height: 1.7
    }

    .offer-head .lead {
        margin: 0
    }

.offer-coin {
    flex: none;
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 8px 18px rgba(46,201,162,.35));
    animation: coin-float 3.2s ease-in-out infinite
}

    .offer-coin svg {
        width: 100%;
        height: 100%
    }

@keyframes coin-float {
    0%,100% {
        transform: translateY(0) rotate(-4deg)
    }

    50% {
        transform: translateY(-5px) rotate(4deg)
    }
}

.offer-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-bottom: 16px
}

    .offer-stats div {
        padding: 10px 8px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: rgba(7,12,23,.35);
        text-align: center
    }

    .offer-stats small {
        display: block;
        color: var(--muted);
        font-size: 10px;
        margin-bottom: 2px
    }

    .offer-stats b {
        font-size: 17px;
        font-weight: 900;
        color: var(--mint);
        font-variant-numeric: tabular-nums
    }

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 12px
}

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 16px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: linear-gradient(165deg,rgba(24,36,62,.9),rgba(11,18,36,.9));
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    animation: fade-up .45s ease forwards;
    transition: transform .2s,border-color .2s,box-shadow .2s
}

    .offer-card:hover, .offer-card:focus-visible {
        transform: translateY(-4px);
        border-color: rgba(105,233,194,.55);
        box-shadow: 0 18px 40px rgba(0,0,0,.35),0 0 0 1px rgba(105,233,194,.2);
        outline: none
    }

    .offer-card.hot {
        border-color: rgba(105,233,194,.5);
        background: linear-gradient(165deg,rgba(28,62,66,.75),rgba(11,22,40,.95));
        box-shadow: 0 0 0 1px rgba(105,233,194,.14),0 14px 38px rgba(46,201,162,.12)
    }

        .offer-card.hot::before {
            content: "";
            position: absolute;
            inset: -40% -20% auto;
            height: 90%;
            background: radial-gradient(closest-side,rgba(105,233,194,.22),transparent);
            pointer-events: none
        }

    .offer-card.pop {
        border-color: rgba(217,187,255,.55)
    }

        .offer-card.pop::before {
            background: radial-gradient(closest-side,rgba(217,187,255,.2),transparent)
        }

.offer-badge {
    position: absolute;
    top: 0;
    inset-inline-start: 50%;
    transform: translateX(50%);
    padding: 3px 12px;
    border-radius: 0 0 11px 11px;
    background: linear-gradient(105deg,#83f1d1,#3cc9a5);
    color: #06271f;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap
}

.offer-card.pop .offer-badge {
    background: linear-gradient(105deg,#e6cfff,#b99af0)
}

.offer-title {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #cdd8ec
}

.offer-reqs b {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
    font-variant-numeric: tabular-nums
}

.offer-reqs span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: -4px
}

.offer-tokens {
    font-size: 12px;
    font-weight: 700;
    color: var(--mint)
}

.offer-desc {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.8
}

.offer-feats {
    list-style: none;
    margin: 6px 0;
    padding: 10px 0;
    border-block: 1px dashed var(--line-strong);
    display: grid;
    gap: 5px;
    font-size: 10.8px;
    color: #b9c6dc;
    text-align: right
}

    .offer-feats li::before {
        content: "✓";
        color: var(--mint);
        margin-inline-end: 6px;
        font-weight: 900
    }

    .offer-feats li.save {
        color: #b8ffe9;
        font-weight: 700
    }

.offer-price {
    font-size: 21px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    margin-top: auto;
    padding-top: 4px
}

    .offer-price small {
        font-size: 11px;
        color: var(--muted);
        font-weight: 500
    }

.offer-cta {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(105,233,194,.1);
    border: 1px solid rgba(105,233,194,.3);
    color: var(--mint);
    font-size: 12.5px;
    font-weight: 900;
    transition: background .2s,color .2s
}

.offer-card:hover .offer-cta, .offer-card.hot .offer-cta {
    background: linear-gradient(105deg,#83f1d1,#4bd4af 56%,#3cc9a5);
    color: #06271f;
    border-color: rgba(183,255,236,.4)
}

.offer.inline {
    margin-top: 18px;
    padding: 22px 18px 18px;
    border: 1px solid rgba(255,189,131,.28);
    border-radius: 22px;
    background: linear-gradient(155deg,rgba(255,189,131,.07),rgba(105,233,194,.05) 60%,transparent);
    animation: fade-up .5s ease both
}

    .offer.inline h2 {
        font-size: 15px
    }

.offer-wrap {
    margin-top: 6px
}

@media (max-width:560px) {
    .offer-head {
        flex-direction: column;
        text-align: center
    }

    .offer-grid {
        grid-template-columns: 1fr
    }

    .offer-card {
        padding-top: 24px
    }

    .offer-reqs b {
        font-size: 30px
    }
}

@media (prefers-reduced-motion:reduce) {
    .acct-bal.low, .acct-bal.flash-dn, .acct-bal.flash-up, .offer-coin, .offer-card {
        animation: none;
        opacity: 1
    }
}

/* v15.1 — personal watchlist and monitor health */
.watch-add { margin-top: 9px; background: linear-gradient(135deg,rgba(105,233,194,.16),rgba(105,233,194,.06)); border:1px solid rgba(105,233,194,.28); color:var(--mint); }
.watch-add:disabled { opacity:.45; cursor:not-allowed; }
.monitor-panel { margin-top:22px; padding:20px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.monitor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.monitor-head h3 { margin:4px 0; font-size:1.05rem; }
.monitor-head p { margin:0; color:var(--muted); font-size:.82rem; }
.monitor-head button { border:1px solid var(--line-strong); background:var(--surface-2); color:var(--text); border-radius:10px; padding:8px 12px; cursor:pointer; }
.monitor-health { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:9px; margin-bottom:12px; }
.monitor-metric,.monitor-item,.monitor-notice { background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:11px 13px; }
.monitor-metric b { display:block; font-size:1rem; margin-top:4px; }
.monitor-metric small,.monitor-item small,.monitor-notice small { color:var(--muted); }
.monitor-items,.monitor-notifications { display:grid; gap:8px; }
.monitor-item { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.monitor-item b,.monitor-notice b { display:block; }
.monitor-item .meta-line { color:var(--muted); font-size:.78rem; margin-top:4px; }
.monitor-item button { border:0; background:transparent; color:var(--red); cursor:pointer; }
.monitor-notice-head { margin-top:20px; }
.monitor-notice { display:flex; justify-content:space-between; gap:10px; }
.monitor-empty { color:var(--muted); font-size:.85rem; padding:12px 2px; }
.monitor-state { color:var(--mint); font-size:.8rem; }
@media(max-width:600px){.monitor-panel{padding:14px}.monitor-head{align-items:flex-start}}
