* {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    display: none;
}
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --green: #16a34a;
    --green-bg: #dcfce7;
    --green-border: #bbf7d0;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --red-border: #fecaca;
    --active-border: #3b82f6;
    --active-bg: #f0f9ff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --input-bg: #ffffff;
    --ticker-bg: #1e293b;
    --ticker-text: #f8fafc;
    --asset-ganesh: url('ganesh-prosperity.webp');
    --asset-diya-bowl: url('diya-bowl.webp');
    --asset-diya-flame: url('diya-flame.webp');
    --asset-panda-logo: url('panda-king-mascot-logo.webp');
    --asset-panda-ground: url('panda-king-mascot-base.webp');
    --asset-panda-body: url('panda-king-mascot-body.webp');
}
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-hover: #475569;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #1e3a8a;
    --green: #4ade80;
    --green-bg: #064e3b;
    --green-border: #047857;
    --red: #f87171;
    --red-bg: #7f1d1d;
    --red-border: #b91c1c;
    --active-border: #60a5fa;
    --active-bg: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --input-bg: #0f172a;
    --ticker-bg: #020617;
    --ticker-text: #f8fafc;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    margin: 0;
    padding: 0 0 40px 0;
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dashboard-top-pin-spacer {
    pointer-events: none;
}
.dashboard-top-pin {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-offset, 72px) - 6px);
    z-index: 900;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6px 20px 2px;
    background-color: var(--bg-body);
    box-shadow: none;
    -webkit-app-region: no-drag;
}
body.is-mac .dashboard-top-pin,
body.is-electron.is-mac .dashboard-top-pin {
    top: calc(var(--header-offset, 88px) - 6px);
}
@media (min-width: 1181px) {.dashboard-top-pin {
        padding-right: 268px;
    }
}.market-ticker-bar {
    background-color: var(--ticker-bg);
    color: var(--ticker-text);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 10px auto 0;
    max-width: 1120px;
    user-select: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ticker-label {
    font-weight: 800;
    background: #2563eb;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    flex: 1;
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
}
.ticker-content {
    display: inline-flex;
    gap: 32px;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}
.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}
body.fx-paused .ticker-content,
body.fx-paused .slot-diya::after,
body.fx-paused .slot-diya-circuiting,
body.fx-paused .ganesh-star-sparkle,
body.fx-paused .fc-rocket,
body.fx-paused .fc-spark,
body.fx-paused .fc-flash,
body.fx-paused .fc-trail,
body.fx-paused .fc-smoke-trail,
body.fx-paused .fc-burst-ring,
body.fx-paused .slot-lights span,
body.fx-paused .slot-marquee-track,
body.fx-paused .portfolio-border-lights.border-lights-chase span::after,
body.fx-paused .portfolio-border-lights.border-lights-flicker span::after,
body.fx-paused .bonus-popup-card,
body.fx-paused .coin-rain-coin.coin-live,
body.fx-paused [data-brand="panda-king"] .slot-panda-body,
body.fx-paused [data-brand="panda-king"] .slot-panda-logo,
body.fx-paused [data-brand="panda-king"] .slot-bull-mascot,
body.fx-paused [data-brand="panda-king"] .slot-bear-mascot {
    animation-play-state: paused !important;
}
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.ticker-sym {
    color: #94a3b8;
    font-weight: 700;
}
.ticker-val {
    color: var(--ticker-text);
    font-weight: 700;
}
.ticker-chg {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.ticker-chg.pos {
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.12);
}
.ticker-chg.neg {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.12);
}
.index-pins {
    position: static;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 0 0;
}
.index-pins.index-pins-us {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1181px) {.index-pins {
        padding-right: 0;
    }
}body.is-mac .index-pins,
body.is-electron.is-mac .index-pins {
    top: auto;
}
.index-pin {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-md);
}
.index-pin-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.index-pin-price {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.index-pin-chg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.index-pin-chg.pos { color: var(--green); }
.index-pin-chg.neg { color: var(--red); }
@media (max-width: 640px) {
    .index-pins.index-pins-us {
        gap: 6px;
    }
    .index-pins.index-pins-us .index-pin {
        padding: 8px 8px;
    }
    .index-pins.index-pins-us .index-pin-price {
        font-size: 1.05rem;
    }
    .index-pins.index-pins-us .index-pin-chg {
        font-size: 11px;
    }
}
.container {
    max-width: 1120px;
    margin: 16px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
@media (min-width: 1181px) {.container {
        max-width: 1120px;
        width: calc(100% - 20px - 268px);
        margin: 16px 268px 0 20px;
        padding: 0;
    }
}@media (min-width: 1181px) and (orientation: landscape) {.container {
        width: calc(100% - 220px - 268px);
        margin: 16px 268px 0 220px;
    }
.dashboard-top-pin {
        padding-left: 220px;
        padding-right: 276px;
    }
.index-pins,
    .market-ticker-bar {
        max-width: none;
        width: 100%;
    }
.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) {
        width: 85%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}.commodities-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-md);
    margin: 12px 20px 0;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}
.commodities-panel-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.commodity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.commodity-item {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
}
.commodity-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.commodity-price {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.commodity-chg {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}
.commodity-fx {
    margin-bottom: 10px;
}
.commodity-inv {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--text-muted);
}
.commodity-chg.pos,
.live-pin-chg.pos { color: var(--green); }
.commodity-chg.neg,
.live-pin-chg.neg { color: var(--red); }
@media (min-width: 1181px) and (orientation: landscape) {.commodities-panel {
        position: fixed;
        left: 18px;
        top: 92px;
        z-index: 950;
        width: 196px;
        margin: 0;
        max-width: none;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        pointer-events: auto;
    }
.commodity-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}body.is-mac .commodities-panel,
body.is-electron.is-mac .commodities-panel {
    top: 108px;
}
@media (max-width: 1180px) {.commodities-panel {
        max-width: none;
    }
}.live-pins {
    position: fixed;
    top: 92px;
    right: 18px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 240px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    pointer-events: auto;
}
body.is-mac .live-pins,
body.is-electron.is-mac .live-pins {
    top: 108px;
}
.live-pin {
    pointer-events: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-md);
}
.live-pin-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.live-pin-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.live-pin-inv {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.live-pin-chg {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.live-pin-movers {
    padding: 10px 12px;
}
.fno-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}
.fno-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
}
.fno-list li:last-child { border-bottom: none; }
.fno-list button {
    all: unset;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}
.fno-list button:hover .fno-sym { text-decoration: underline; }
.fno-sym {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fno-pct { font-weight: 700; flex-shrink: 0; }
.fno-pct.pos { color: var(--green); }
.fno-pct.neg { color: var(--red); }
.fno-empty {
    color: var(--text-muted);
    font-size: 11px;
    border-bottom: none !important;
}
.live-pin-mwpl .fno-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 2px;
}
.live-pin-news {
    padding: 10px 12px 12px;
}
.news-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.news-panel-head .live-pin-label {
    margin-bottom: 0;
}
.news-refresh-btn {
    all: unset;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
}
.news-refresh-btn:hover {
    color: var(--text-main);
    background: rgba(127, 127, 127, 0.12);
}
.news-refresh-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
    animation: news-spin 0.8s linear infinite;
}
@keyframes news-spin {
    to { transform: rotate(360deg); }
}
.portrait-fold {
    display: block;
}
.portrait-fold > summary {
    list-style: none;
}
.portrait-fold > summary::-webkit-details-marker {
    display: none;
}
.portrait-fold-head-end {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.portrait-fold-chevron {
    display: none;
}
@media not ((orientation: portrait) and (max-width: 1180px)) {
    .portrait-fold > summary.portrait-fold-head {
        pointer-events: none;
        cursor: default;
    }
    .portrait-fold:not([open]) .portrait-fold-body {
        display: block;
    }
    .commodities-panel .portrait-fold-head .commodities-panel-label {
        margin-bottom: 8px;
    }
    .live-pin-news .portrait-fold-head.news-panel-head {
        margin-bottom: 2px;
    }
}
@media (orientation: portrait) and (max-width: 1180px) {
    .portrait-fold > summary.portrait-fold-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        cursor: pointer;
        user-select: none;
    }
    .portrait-fold[open] > summary.portrait-fold-head {
        margin-bottom: 8px;
    }
    .portrait-fold:not([open]) > summary.portrait-fold-head {
        margin-bottom: 0;
    }
    .portrait-fold:not([open]) .portrait-fold-body {
        display: none;
    }
    .portrait-fold-chevron {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(45deg);
        transition: transform 0.15s ease;
        flex-shrink: 0;
    }
    .portrait-fold[open] .portrait-fold-chevron {
        transform: rotate(-135deg);
    }
    .commodities-panel .portrait-fold-head .commodities-panel-label,
    .live-pin .portrait-fold-head .live-pin-label {
        margin-bottom: 0;
    }
    .live-pin-news .portrait-fold[open] > summary.portrait-fold-head {
        margin-bottom: 2px;
    }
}
.news-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}
.news-list li {
    border-bottom: 1px solid var(--border-color);
}
.news-list li:last-child {
    border-bottom: none;
}
.news-item-link {
    display: block;
    padding: 7px 0;
    text-decoration: none;
    color: inherit;
}
.news-item-link:hover .news-headline {
    color: var(--accent, #2563eb);
    text-decoration: underline;
}
.news-symbol {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.news-headline {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
}
.news-time {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--text-muted);
}
.news-empty {
    padding: 6px 0;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: none !important;
}
.news-google-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent, #2563eb);
    text-decoration: none;
}
.news-google-link:hover {
    text-decoration: underline;
}
.mwpl-ban-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    height: 12px;
    margin-left: 4px;
    padding: 0 3px;
    border-radius: 3px;
    background: var(--red);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}
.mwpl-status {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mwpl-status.ban { background: var(--red-bg); color: var(--red); }
.mwpl-status.near { background: #fff7ed; color: #c2410c; }
.mwpl-status.watch { background: #fefce8; color: #a16207; }
.mwpl-status.ok { background: var(--green-bg); color: var(--green); }
[data-theme="dark"] .mwpl-status.near { background: #431407; color: #fdba74; }
[data-theme="dark"] .mwpl-status.watch { background: #422006; color: #fde047; }
.mwpl-bar-wrap {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
}
.mwpl-bar-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 8px;
}
.mwpl-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--border-color);
    overflow: hidden;
}
.mwpl-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--green);
}
.mwpl-bar-fill.watch { background: #eab308; }
.mwpl-bar-fill.near { background: #f97316; }
.mwpl-bar-fill.ban { background: var(--red); }
.mwpl-bar-meta {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}
@media (max-width: 1180px) {.live-pins {
        position: static;
        top: auto;
        right: auto;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 12px 20px 0;
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
        max-height: none;
        overflow: visible;
    }
.live-pin { flex: 1 1 160px; min-width: 160px; }
.live-pin-mwpl { flex: 1.2 1 180px; }
}@media (max-width: 1180px) and (orientation: portrait) {.live-pins {
        position: static;
        max-height: none;
        overflow: visible;
    }
}
/* Stacked layout: squeezed ~4:3 windows and phone/portrait. */
@media (max-width: 1180px), (max-aspect-ratio: 4/3) {
    body {
        display: flex;
        flex-direction: column;
    }
    header.top-titlebar {
        order: 0;
        flex-shrink: 0;
    }
    .dashboard-top-pin-spacer {
        display: none;
    }
    .container {
        display: contents;
    }
    .dashboard-top-pin,
    body.is-mac .dashboard-top-pin,
    body.is-electron.is-mac .dashboard-top-pin {
        order: 1;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        padding: 6px 20px 2px;
        box-shadow: none;
        box-sizing: border-box;
    }
    #portfolio-section {
        order: 2;
        width: calc(100% - 40px);
        max-width: 1120px;
        height: auto;
        margin: 12px 20px 0;
        align-self: center;
        box-sizing: border-box;
    }
    .commodities-panel,
    body.is-mac .commodities-panel,
    body.is-electron.is-mac .commodities-panel {
        order: 3;
        position: static;
        left: auto;
        top: auto;
        width: calc(100% - 40px);
        max-width: 1120px;
        max-height: none;
        margin: 8px 20px 0;
        overflow: visible;
        align-self: center;
        box-sizing: border-box;
    }
    .commodity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .live-pins,
    body.is-mac .live-pins,
    body.is-electron.is-mac .live-pins {
        order: 4;
        position: static;
        top: auto;
        right: auto;
        flex-direction: column;
        flex-wrap: nowrap;
        width: calc(100% - 40px);
        max-width: 1120px;
        max-height: none;
        margin: 8px 20px 0;
        overflow: visible;
        align-self: center;
        box-sizing: border-box;
    }
    .search-section {
        order: 5;
        width: calc(100% - 40px);
        max-width: 1120px;
        margin: 12px 20px 0;
        padding: 0;
        align-self: center;
        box-sizing: border-box;
    }
    .dashboard-grid {
        order: 6;
        width: calc(100% - 40px);
        max-width: 1120px;
        margin: 0 20px 20px;
        align-self: center;
        box-sizing: border-box;
    }
    .live-pin,
    .live-pin-mwpl {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
}
@media (min-width: 720px) and (max-width: 1180px), (min-width: 720px) and (max-aspect-ratio: 4/3) {
    .commodity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
    .portfolio-maximize-btn {
        display: none !important;
    }
    .portfolio-header-bling {
        padding-right: 0;
    }
    .commodity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #portfolio-section.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) {
        overflow: visible;
    }
    #portfolio-section.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-fx-overlay {
        top: -84px;
        bottom: 0;
        overflow: visible;
    }
    #portfolio-section.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .firecracker-layer {
        overflow: visible;
    }
}@media (max-width: 640px) {.live-pins {
        flex-direction: column;
        flex-wrap: nowrap;
        margin-left: 20px;
        margin-right: 20px;
    }
.live-pin,
    .live-pin-mwpl {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
}.top-titlebar {
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    -webkit-app-region: drag;
    user-select: none;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
body.is-mac .top-titlebar,
body.is-electron.is-mac .top-titlebar {
    padding-left: 88px;
}
.top-titlebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-titlebar-brand .app-title {
    margin: 0 0 2px 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.top-titlebar-brand .subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.ticker-wrapper,
.ticker-content,
.ticker-item,
.header-actions,
.search-container,
.watchlist-toolbar,
.timeframe-controls,
.quick-tags,
.index-pins,
.btn,
button,
input,
select,
a,
.suggestion-item,
.watchlist-item {
    -webkit-app-region: no-drag;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #3f2a0a 0%, #1a1208 70%, #0b0906 100%);
    color: #f5d27a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(196, 146, 42, 0.35);
    flex-shrink: 0;
}
.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dashboard-header h1 {
    margin: 0 0 2px 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.refresh-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-app-region: no-drag;
}
.refresh-spacebar-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
}
@media (hover: none), (pointer: coarse) {
    .refresh-spacebar-hint {
        display: none !important;
    }
}
.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    min-width: 36px;
}
.btn-icon-only .settings-gear {
    display: block;
}
.last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    background-color: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.badge-source {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}
.pulse-dot.offline {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}.portfolio-banner {
    margin-bottom: 24px;
    background-color: var(--bg-card);
}
.portfolio-banner.portfolio-bling {
    position: relative;
    overflow: visible;
    padding: 10px 14px 12px;
    border: 3px solid #e8c200;
    border-radius: 16px;
    background: url('portfolio-bg.jpg') center center / cover no-repeat;
    box-shadow:
        inset 1px 0 0 rgba(255, 248, 210, 0.55),
        inset -2px -2px 0 rgba(90, 45, 0, 0.5),
        0 1px 0 #fff3b0,
        0 3px 0 #8a5a00,
        0 8px 18px rgba(0, 0, 0, 0.5),
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 215, 0, 0.35);
}
.portfolio-banner.portfolio-bling.card {
    padding: 10px 14px 12px;
}
.portfolio-banner.portfolio-bling::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(20, 8, 36, 0.48) 0%, rgba(58, 22, 78, 0.38) 45%, rgba(18, 6, 32, 0.52) 100%);
    pointer-events: none;
}
.portfolio-banner.portfolio-bling > * {
    position: relative;
    z-index: 1;
}
.portfolio-banner.portfolio-bling > .portfolio-bling-panel {
    z-index: 4;
}
.portfolio-banner.portfolio-bling > .portfolio-active-row {
    z-index: 1;
}
.portfolio-banner.portfolio-bling > .portfolio-fx-overlay {
    position: absolute;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    overflow: visible;
}
.portfolio-fx-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 80;
}
.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) {
    width: 100%;
    max-width: 1120px;
    position: relative;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-bling-panel {
    margin-inline: 8px;
}
@media (orientation: landscape) {.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) {
        width: min(85%, calc((100vh - var(--header-offset, 72px) - 130px) * 3 / 2));
        max-width: none;
        max-height: calc(100vh - var(--header-offset, 72px) - 130px);
    }
}
.portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) {
    height: calc(var(--portfolio-lock-h, 640px) * var(--portfolio-ui-scale, 1));
    max-height: none;
    overflow: visible;
    padding: 5px 4px;
    box-sizing: border-box;
}
.portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-aspect-shell {
    width: var(--portfolio-lock-w, 960px);
    height: var(--portfolio-lock-h, 640px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    transform: scale(var(--portfolio-ui-scale, 1));
    transform-origin: top left;
}
.portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-scale-inner {
    width: var(--portfolio-inner-w, 960px);
    height: var(--portfolio-inner-h, auto);
    max-width: none;
    flex: 0 0 auto;
}
[data-brand="india"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-scale-inner {
    transform: translate(-18px, -2px);
    transform-origin: top left;
}
[data-brand="panda-king"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-scale-inner {
    transform: translate(-18px, -3px);
    transform-origin: top left;
}
[data-brand="panda-king"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-active-row {
    transform: translateY(-9px);
}
[data-brand="india"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-active-row {
    transform: translateY(-10px);
}
.portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-scale-inner > * {
    flex-shrink: 0;
}
.portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen)::before {
    display: none;
}
.portfolio-aspect-shell {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 10px 14px 12px;
    border: 3px solid #e8c200;
    border-radius: 16px;
    --border-light-end: 14px;
    background: url('portfolio-bg.jpg') center center / cover no-repeat;
    box-sizing: border-box;
    box-shadow:
        inset 1px 0 0 rgba(255, 248, 210, 0.55),
        inset -2px -2px 0 rgba(90, 45, 0, 0.5),
        0 1px 0 #fff3b0,
        0 3px 0 #8a5a00,
        0 8px 18px rgba(0, 0, 0, 0.5),
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 215, 0, 0.35);
}
.portfolio-aspect-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(20, 8, 36, 0.48) 0%, rgba(58, 22, 78, 0.38) 45%, rgba(18, 6, 32, 0.52) 100%);
    pointer-events: none;
}
.portfolio-scale-inner {
    width: 100%;
    transform-origin: center center;
}
.portfolio-aspect-shell > .portfolio-scale-inner,
.portfolio-aspect-shell > *:not(.portfolio-border-lights) {
    position: relative;
    z-index: 1;
}
.portfolio-scale-inner > .portfolio-bling-panel,
.portfolio-aspect-shell > .portfolio-bling-panel {
    z-index: 4;
}
.portfolio-scale-inner > .portfolio-active-row,
.portfolio-aspect-shell > .portfolio-active-row {
    z-index: 1;
}
.portfolio-banner.portfolio-bling:fullscreen.portfolio-fs-uniform,
.portfolio-banner.portfolio-bling.portfolio-fullscreen.portfolio-fs-uniform {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    padding: 48px 56px 56px 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #12061f;
    border: none;
    box-shadow: none;
}
.portfolio-banner.portfolio-bling:fullscreen.portfolio-fs-uniform .portfolio-aspect-shell,
.portfolio-banner.portfolio-bling.portfolio-fullscreen.portfolio-fs-uniform .portfolio-aspect-shell {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    flex: 0 0 auto;
    display: block;
    overflow: visible;
    transform-origin: center center;
    padding: 10px 12px 30px;
    --border-light-end: 18px;
}
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-top span:first-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-top span:last-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-bottom span:first-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-bottom span:last-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-left span:first-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-left span:last-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-right span:first-child,
.portfolio-banner.portfolio-fullscreen .portfolio-border-lights-right span:last-child {
    visibility: hidden;
}
.portfolio-banner.portfolio-bling:fullscreen.portfolio-fs-uniform .portfolio-scale-inner,
.portfolio-banner.portfolio-bling.portfolio-fullscreen.portfolio-fs-uniform .portfolio-scale-inner {
    flex: 0 0 auto;
    box-sizing: border-box;
}
.portfolio-banner.portfolio-fullscreen .portfolio-active-row {
    padding-inline: 4px;
    margin-bottom: 16px;
    transform: translateY(-10px);
    box-sizing: border-box;
}
.portfolio-banner.portfolio-fullscreen .portfolio-alloc {
    margin-bottom: 0;
}
.portfolio-banner.portfolio-fullscreen .active-positions-scroll {
    max-width: 100%;
    max-height: none;
    overflow-y: visible;
    padding-bottom: 10px;
}
.portfolio-banner.portfolio-fullscreen .active-position-card {
    overflow: visible;
}
.portfolio-banner.portfolio-fullscreen .active-positions-block {
    padding-bottom: 10px;
}
.portfolio-banner.portfolio-bling:fullscreen.portfolio-fs-uniform .portfolio-maximize-btn,
.portfolio-banner.portfolio-bling.portfolio-fullscreen.portfolio-fs-uniform .portfolio-maximize-btn {
    z-index: 10001;
    top: 7px;
    right: -7px;
}
.portfolio-banner.portfolio-fullscreen .portfolio-header-bling {
    padding-right: 32px;
    padding-top: 4px;
}
.portfolio-aspect-shell > .portfolio-border-lights {
    position: absolute;
    inset: -3px;
    pointer-events: none;
    z-index: 4;
    border-radius: inherit;
    isolation: isolate;
    transform: translateZ(0);
}
.portfolio-border-lights-top,
.portfolio-border-lights-bottom {
    position: absolute;
    left: var(--border-light-end, 14px);
    right: var(--border-light-end, 14px);
    height: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
}
.portfolio-border-lights-top {
    top: 0;
}
.portfolio-border-lights-bottom {
    bottom: 0;
}
.portfolio-border-lights-left,
.portfolio-border-lights-right {
    position: absolute;
    top: var(--border-light-end, 14px);
    bottom: var(--border-light-end, 14px);
    width: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
}
.portfolio-border-lights-left {
    left: 0;
}
.portfolio-border-lights-right {
    right: 0;
}
.portfolio-border-lights-top::before,
.portfolio-border-lights-bottom::before,
.portfolio-border-lights-left::before,
.portfolio-border-lights-right::before {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 3px;
}
.portfolio-border-lights-top::before,
.portfolio-border-lights-bottom::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background:
        linear-gradient(180deg, rgba(255, 236, 180, 0.45) 0%, transparent 45%),
        linear-gradient(90deg, #4a300c 0%, #c9a227 8%, #8a5a14 22%, #e0b84a 50%, #8a5a14 78%, #c9a227 92%, #4a300c 100%);
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 236, 190, 0.35),
        inset 0 -1px 0 rgba(50, 25, 0, 0.45);
}
.portfolio-border-lights-left::before,
.portfolio-border-lights-right::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background:
        linear-gradient(90deg, rgba(255, 236, 180, 0.45) 0%, transparent 45%),
        linear-gradient(180deg, #4a300c 0%, #c9a227 8%, #8a5a14 22%, #e0b84a 50%, #8a5a14 78%, #c9a227 92%, #4a300c 100%);
    box-shadow:
        1px 0 1px rgba(0, 0, 0, 0.55),
        inset 1px 0 0 rgba(255, 236, 190, 0.35),
        inset -1px 0 0 rgba(50, 25, 0, 0.45);
}
.portfolio-border-lights span {
    --light-i: 0;
    --border-on-bg: radial-gradient(circle at 32% 26%, #ffffff 0%, #fffbe8 35%, #ffe566 100%);
    --border-on-glow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #a07820 0%, #6b5010 48%, #3d2c08 100%);
    border: 1px solid rgba(40, 22, 0, 0.85);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(180, 140, 50, 0.25);
    opacity: 1 !important;
    flex-shrink: 0;
}
.portfolio-border-lights span::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--border-on-bg);
    box-shadow: var(--border-on-glow);
    opacity: 0;
    pointer-events: none;
}
.portfolio-border-lights-top span:nth-child(3n+2),
.portfolio-border-lights-bottom span:nth-child(3n+2),
.portfolio-border-lights-left span:nth-child(3n+2),
.portfolio-border-lights-right span:nth-child(3n+2) {
    background: radial-gradient(circle at 32% 26%, #8a3048 0%, #5c182c 52%, #2e0c16 100%);
    --border-on-bg: radial-gradient(circle at 32% 26%, #ffd6e6 0%, #ff6b9d 42%, #ff3366 100%);
    --border-on-glow: 0 0 8px 2px rgba(255, 107, 157, 0.75);
}
.portfolio-border-lights-top span:nth-child(3n),
.portfolio-border-lights-bottom span:nth-child(3n),
.portfolio-border-lights-left span:nth-child(3n),
.portfolio-border-lights-right span:nth-child(3n) {
    background: radial-gradient(circle at 32% 26%, #1f6b48 0%, #0f4630 52%, #072418 100%);
    --border-on-bg: radial-gradient(circle at 32% 26%, #e8fff4 0%, #5cffb8 42%, #00ff88 100%);
    --border-on-glow: 0 0 8px 2px rgba(92, 255, 184, 0.7);
}
.portfolio-border-lights.border-lights-chase span::after {
    animation: border-light-wave 1.04s linear both;
    animation-delay: calc(var(--light-i, 0) * 70ms);
}
@keyframes border-light-wave {
    0% { opacity: 0; }
    8% { opacity: 1; }
    21% { opacity: 1; }
    100% { opacity: 0; }
}.portfolio-border-lights.border-lights-flicker span {
    transition: none;
    --flicker-dur: 0.16s;
    --flicker-delay: 0s;
}
.portfolio-border-lights.border-lights-flicker span:nth-child(3n) {
    --flicker-dur: 0.11s;
    --flicker-delay: 0.02s;
}
.portfolio-border-lights.border-lights-flicker span:nth-child(3n+1) {
    --flicker-dur: 0.19s;
    --flicker-delay: 0.08s;
}
.portfolio-border-lights.border-lights-flicker span:nth-child(3n+2) {
    --flicker-dur: 0.14s;
    --flicker-delay: 0.05s;
}
.portfolio-border-lights.border-lights-flicker span:nth-child(4n) {
    --flicker-delay: 0.11s;
}
.portfolio-border-lights.border-lights-flicker span:nth-child(5n) {
    --flicker-dur: 0.22s;
}
.portfolio-border-lights.border-lights-flicker span:nth-child(7n) {
    --flicker-dur: 0.13s;
    --flicker-delay: 0.01s;
}
.portfolio-border-lights.border-lights-flicker span::after {
    transition: none;
    animation: slot-light-fill-blink var(--flicker-dur) ease-in-out infinite alternate;
    animation-delay: var(--flicker-delay);
}
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.portfolio-header-bling {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 6px;
    padding-right: 28px;
    position: relative;
}
.portfolio-maximize-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6c200;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.22), rgba(255, 140, 0, 0.12));
    color: #ffe566;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.45),
        inset -1px -1px 0 rgba(90, 50, 0, 0.4),
        0 1px 0 #7a4e00,
        0 0 8px rgba(255, 215, 0, 0.22);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    z-index: 5;
}
.portfolio-maximize-btn:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.38), rgba(255, 140, 0, 0.22));
    border-color: #ffd700;
    transform: scale(1.05);
}
.portfolio-maximize-btn:active {
    transform: scale(0.96);
}
.portfolio-maximize-icon {
    font-size: 0.72rem;
    line-height: 1;
}
body.portfolio-fullscreen-active {
    overflow: hidden;
}
.portfolio-title-bling {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fffef0 0%, #ffd700 35%, #ffb347 70%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.75)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.portfolio-badge-bling {
    border: 1px solid #e6c200;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.15));
    color: #ffe566;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.45),
        inset -1px -1px 0 rgba(90, 50, 0, 0.45),
        0 0 12px rgba(255, 215, 0, 0.4);
    padding: 4px 12px;
    border-radius: 999px;
}
.portfolio-bling-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(26, 10, 46, 0.52) 0%, rgba(45, 27, 78, 0.45) 50%, rgba(15, 5, 28, 0.55) 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.45),
        inset -2px -2px 0 rgba(80, 40, 0, 0.45),
        inset 0 -10px 18px rgba(0, 0, 0, 0.35),
        inset 0 0 36px rgba(255, 215, 0, 0.12),
        0 1px 0 #fff1a8,
        0 2px 0 #8b5a00,
        0 6px 14px rgba(0, 0, 0, 0.48),
        0 14px 28px rgba(0, 0, 0, 0.38),
        0 0 22px rgba(255, 215, 0, 0.22);
    overflow: visible;
    padding: 6px 8px 4px;
    --bling-num-font: 'Oswald', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
    --slot-reel-bevel-shadow:
        0 1px 0 #ffd700,
        0 2px 0 #ff9800,
        0 3px 0 #b45309,
        0 4px 5px rgba(0, 0, 0, 0.78);
    --slot-reel-bevel-stroke: 0.3px #8b6914;
    --slot-digit-y-nudge: calc(var(--slot-row-h, 40px) * -0.08);
}
.portfolio-top-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 0;
}
.portfolio-active-row {
    margin-top: 14px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.portfolio-active-row .active-positions-block {
    flex: 1 1 auto;
    min-width: 0;
}
.portfolio-alloc {
    flex: 0 0 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 6px 7px;
    background: rgba(26, 10, 46, 0.4);
    border: 1px solid #e6c200;
    border-radius: 10px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.28),
        inset -1px -2px 0 rgba(80, 40, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 10px 22px rgba(0, 0, 0, 0.3);
    min-width: 0;
}
.portfolio-alloc[hidden] {
    display: none !important;
}
.portfolio-alloc-pie {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255, 248, 210, 0.2);
}
.portfolio-alloc-pie::after {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: rgba(26, 10, 46, 0.92);
    box-shadow: inset 0 0 0 1px rgba(230, 194, 0, 0.25);
}
.portfolio-alloc-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.portfolio-alloc-legend li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 229, 102, 0.88);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.alloc-swatch {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 248, 210, 0.2);
}
.portfolio-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    overflow: visible;
}
.p-stat {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.p-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}
.p-stat-val.positive {
    color: var(--green);
}
.p-stat-val.negative {
    color: var(--red);
}
.p-stat-val-gold.value-flash-up {
    animation: value-text-flash-up 1.5s ease-out;
}
.p-stat-val-gold.value-flash-down {
    animation: value-text-flash-down 1.5s ease-out;
}
@keyframes value-text-flash-up {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 215, 0, 0.35); color: #ffd700; }
    40% {
        text-shadow:
            0 0 14px rgba(255, 248, 180, 1),
            0 0 28px rgba(255, 215, 0, 0.95),
            0 0 46px rgba(255, 190, 0, 0.6);
        color: #fff8c4;
    }
}@keyframes value-text-flash-down {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 215, 0, 0.35); color: #ffd700; }
    40% { text-shadow: 0 0 14px rgba(248, 113, 113, 0.8); color: #ffb4a2; }
}.portfolio-bling-panel.coin-rain-active {
    overflow: visible;
}
.portfolio-bling-panel.fx-settle {
    transform: translateZ(0);
}
.firecracker-layer {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: visible;
    z-index: 140;
}
.firecracker-layer.is-active {
    overflow: visible;
}
.fc-rocket {
    position: absolute;
    bottom: 4%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    animation: fc-rocket-shoot var(--fc-rise-dur, 0.95s) cubic-bezier(0.12, 0.82, 0.22, 1) forwards;
}
.fc-rocket:not(.is-live),
.fc-burst:not(.is-live),
.fc-spark:not(.is-live),
.fc-smoke-trail:not(.is-live) {
    display: none;
}
.fc-rocket-stick {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 5px;
    height: 32px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(180deg, #c45c1a 0%, #7a3a12 55%, #4a2408 100%);
    box-shadow: inset 0 1px 0 rgba(255, 210, 120, 0.35);
}
.fc-rocket-head {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 11px;
    height: 11px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #ffe566 35%, #ff6a00 72%, #cc2200 100%);
    box-shadow: 0 0 10px rgba(255, 140, 20, 0.8);
}
.fc-rocket-fuse {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: 4px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #fff6a8;
    box-shadow: 0 0 8px #ffd700;
    animation: fc-fuse-spark 0.12s ease-in-out infinite alternate;
}
.fc-smoke-trail {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 220, 120, 0.95) 0%, rgba(255, 120, 20, 0.45) 45%, transparent 72%);
    animation: fc-smoke-trail 0.42s ease-out forwards;
    pointer-events: none;
}
.fc-burst-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(46px * var(--fc-scale, 1));
    height: calc(46px * var(--fc-scale, 1));
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 236, 160, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 200, 80, 0.7);
    animation: fc-burst-ring 0.58s ease-out forwards;
}
.fc-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #ffb347;
    box-shadow: 0 0 6px rgba(255, 170, 40, 0.9);
    transform: translate(-50%, -50%);
    animation: fc-trail-pop 0.35s ease-out forwards;
}
.fc-burst {
    position: absolute;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}
.fc-flash {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(34px * var(--fc-scale, 1));
    height: calc(34px * var(--fc-scale, 1));
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #fffef4 0%, rgba(255, 230, 140, 0.95) 28%, rgba(255, 150, 30, 0.55) 52%, transparent 74%);
    animation: fc-flash-pop 0.34s ease-out forwards;
}
.fc-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(6px * var(--fc-scale, 1));
    height: calc(6px * var(--fc-scale, 1));
    border-radius: 50%;
    background: var(--fc-color, #ffd700);
    box-shadow: 0 0 10px var(--fc-color, #ffd700);
    transform: rotate(var(--fc-angle, 0deg)) translateY(0) scale(1);
    opacity: 1;
    animation: fc-spark-fly var(--fc-spark-dur, 0.78s) cubic-bezier(0.12, 0.72, 0.28, 1) forwards;
}
.fc-spark.fc-spark-ember {
    width: calc(3px * var(--fc-scale, 1));
    height: calc(3px * var(--fc-scale, 1));
    animation-duration: calc(var(--fc-spark-dur, 0.78s) * 1.15);
    animation-timing-function: ease-out;
}
@keyframes fc-rocket-shoot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    78% {
        opacity: 1;
    }
    100% {
        opacity: 0.15;
        transform: translateX(calc(-50% + var(--fc-drift, 0px))) translateY(calc(-1 * var(--fc-rise, 150px)));
    }
}@keyframes fc-fuse-spark {
    0% { opacity: 0.75; transform: translateX(-50%) scale(0.85); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}@keyframes fc-smoke-trail {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -20%) scale(2.6); }
}@keyframes fc-burst-ring {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.15); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(4.1); }
}@keyframes fc-trail-pop {
    0% { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}@keyframes fc-flash-pop {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.25); }
    35% { opacity: 1; transform: translate(-50%, -50%) scale(2.4); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3.6); }
}@keyframes fc-spark-fly {
    0% {
        opacity: 1;
        transform: rotate(var(--fc-angle, 0deg)) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--fc-angle, 0deg)) translateY(calc(-1 * var(--fc-dist, 98px))) scale(0.4);
    }
}.coin-rain-layer {
    display: none;
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 30;
    isolation: isolate;
    contain: strict;
    content-visibility: hidden;
}
.coin-rain-layer.is-active {
    display: block;
    content-visibility: visible;
    contain: layout style paint;
}
.coin-rain-coin {
    position: absolute;
    top: -84px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(
        circle at var(--coin-shine-x, 32%) var(--coin-shine-y, 28%),
        #fffef0 0%,
        #ffd700 38%,
        #daa520 72%,
        #8b6914 100%
    );
    border: 4px solid #b8860b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: auto;
    contain: strict;
}
.coin-rain-coin.coin-live {
    visibility: visible;
    contain: layout style;
    animation: coin-rain-fall var(--coin-fall-dur, 1.5s) forwards;
}
.coin-rain-coin::after {
    content: '₹';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        0 1px 0 #fffef0,
        0 1px 0 #daa520,
        0 2px 2px rgba(139, 105, 20, 0.55),
        0 0 7px rgba(255, 215, 0, 0.65);
    -webkit-text-stroke: 0.2px #b8860b;
    transform: rotateZ(var(--coin-symbol-rot, 0deg));
}
@keyframes coin-rain-fall {
    0% {
        transform: translate(0, 0) rotate(var(--coin-rz0, 0deg)) scale(var(--coin-scale0, 0.7));
        opacity: 0;
        animation-timing-function: cubic-bezier(0.48, 0.02, 0.82, 0.18);
    }
    6% {
        opacity: 1;
        animation-timing-function: cubic-bezier(0.48, 0.02, 0.82, 0.18);
    }
    72% {
        transform: translate(var(--coin-drift, 0px), var(--coin-floor, 320px))
            rotate(var(--coin-rz1, 0deg))
            scale(var(--coin-scale1, 1));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.2, 0.78, 0.28, 1);
    }
    82% {
        transform: translate(var(--coin-drift, 0px), calc(var(--coin-floor, 320px) - var(--coin-bounce, 32px)))
            rotate(var(--coin-rz1, 0deg))
            scale(var(--coin-scale1, 1));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.48, 0, 0.72, 0.3);
    }
    90% {
        transform: translate(var(--coin-drift, 0px), var(--coin-floor, 320px))
            rotate(var(--coin-rz1, 0deg))
            scale(var(--coin-scale1, 1));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.22, 0.75, 0.32, 1);
    }
    95% {
        transform: translate(var(--coin-drift, 0px), calc(var(--coin-floor, 320px) - var(--coin-bounce, 32px) * 0.22))
            rotate(var(--coin-rz1, 0deg))
            scale(var(--coin-scale1, 1));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.42, 0, 0.72, 0.38);
    }
    98% {
        transform: translate(var(--coin-drift, 0px), var(--coin-floor, 320px))
            rotate(var(--coin-rz1, 0deg))
            scale(var(--coin-scale1, 1));
        opacity: 1;
    }
    100% {
        transform: translate(var(--coin-drift, 0px), var(--coin-floor, 320px))
            rotate(var(--coin-rz1, 0deg))
            scale(var(--coin-scale1, 1));
        opacity: 0;
    }
}.coin-rain-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    animation: coin-rain-banner-pop 3s ease-out forwards;
    z-index: 31;
}
.coin-rain-banner-bonus {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #fff6b0;
    text-shadow:
        0 0 12px rgba(255, 215, 0, 0.95),
        0 0 24px rgba(255, 180, 0, 0.55);
}
.bonus-popup {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.bonus-popup-card {
    min-width: 220px;
    max-width: min(92%, 420px);
    padding: 16px 28px 14px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(180deg, #fff8d4 0%, #ffd700 45%, #e0a800 100%);
    border: 3px solid #fff6b0;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(255, 215, 0, 0.45);
    animation: bonus-popup-pop 2.4s ease-out forwards;
}
.bonus-popup-profit {
    background: linear-gradient(180deg, #fff8d4 0%, #ffd700 45%, #e0a800 100%);
    border-color: #fff6b0;
}
.bonus-popup-jackpot-layer {
    position: absolute;
    inset: 0;
    z-index: 120;
    background: transparent;
}
.bonus-popup-jackpot-layer .bonus-popup-card {
    min-width: min(92%, 520px);
    max-width: min(96%, 620px);
    padding: clamp(22px, 4.5%, 40px) clamp(26px, 5.5%, 52px) clamp(20px, 4%, 34px);
    border-radius: clamp(18px, 2.5%, 28px);
    border-width: 5px;
    animation: jackpot-popup-pop 4.2s ease-out forwards;
}
.bonus-popup-jackpot {
    background: linear-gradient(180deg, #fffef0 0%, #ffe066 30%, #ff9900 68%, #ff6600 100%);
    border-color: #fff6b0;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(255, 160, 0, 0.55);
}
.bonus-popup-jackpot .bonus-popup-label {
    color: #7a3200;
    letter-spacing: 0.34em;
}
.bonus-popup-jackpot-layer .bonus-popup-jackpot .bonus-popup-label {
    font-size: clamp(0.95rem, 2.2vw, 1.35rem);
    letter-spacing: 0.42em;
    margin-bottom: 4px;
}
.bonus-popup-jackpot .bonus-popup-amount {
    color: #4a1f00;
    font-size: 2.15rem;
    text-shadow: 0 0 12px rgba(255, 230, 120, 0.55);
}
.bonus-popup-jackpot-layer .bonus-popup-jackpot .bonus-popup-amount {
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    margin-top: clamp(8px, 1.2vw, 14px);
    line-height: 1.05;
    text-shadow: 0 0 14px rgba(255, 230, 120, 0.55);
}
.bonus-popup-loss {
    background: linear-gradient(180deg, #ffe4d6 0%, #ff8a65 42%, #c62828 100%);
    border-color: #ffcbb8;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(220, 38, 38, 0.35);
}
.bonus-popup-loss .bonus-popup-label,
.bonus-popup-loss .bonus-popup-amount {
    color: #3b0a0a;
}
.bonus-popup-flat {
    background: linear-gradient(180deg, #efe7ff 0%, #c4b5fd 48%, #7c3aed 100%);
    border-color: #ddd6fe;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(124, 58, 237, 0.35);
}
.bonus-popup-flat .bonus-popup-label {
    color: #3b0764;
}
.bonus-popup-flat .bonus-popup-amount {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #2e1065;
    line-height: 1.25;
}
.bonus-popup-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    color: #7a4e00;
}
.bonus-popup-amount {
    display: block;
    margin-top: 4px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #3d2200;
    line-height: 1.1;
}
@keyframes bonus-popup-pop {
    0% { opacity: 0; transform: scale(0.35); }
    16% { opacity: 1; transform: scale(1.18); }
    26% { transform: scale(1); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.82); }
}@keyframes jackpot-popup-pop {
    0% { opacity: 0; transform: scale(0.2); }
    12% { opacity: 1; transform: scale(1.22); }
    22% { transform: scale(1.04); }
    30% { transform: scale(1.1); }
    38% { transform: scale(1); }
    72% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.88); }
}@keyframes coin-rain-banner-pop {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
    10% { opacity: 1; transform: translateX(-50%) scale(1.08); }
    18% { transform: translateX(-50%) scale(1); }
    82% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(0.92); }
}.p-stat-gold {
    position: relative;
    overflow: visible;
    background: linear-gradient(145deg, rgba(26, 10, 46, 0.42) 0%, rgba(45, 27, 78, 0.38) 100%);
    border: 2px solid #e6c200;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.5),
        inset -1px -2px 0 rgba(80, 40, 0, 0.45),
        inset 0 -8px 14px rgba(0, 0, 0, 0.28),
        0 1px 0 #7a4e00,
        0 4px 10px rgba(0, 0, 0, 0.42),
        0 10px 20px rgba(0, 0, 0, 0.32);
    padding: 8px 10px;
}
.p-stat-gold > .p-stat-label,
.p-stat-gold > .p-stat-val,
.p-stat-gold > .p-stat-day {
    position: relative;
    z-index: 2;
}
.p-stat-shine-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}
.p-stat-shine {
    position: absolute;
    top: -70%;
    left: -90%;
    width: 62%;
    height: 240%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 22%,
        rgba(255, 252, 220, 0.12) 32%,
        rgba(255, 248, 200, 0.85) 46%,
        rgba(255, 236, 150, 0.95) 50%,
        rgba(255, 215, 0, 0.55) 56%,
        rgba(255, 252, 220, 0.1) 68%,
        transparent 78%,
        transparent 100%
    );
    transform: skewX(-24deg);
    opacity: 0;
}
.p-stat-gold.shine-sweep .p-stat-shine,
.p-stat-invested.shine-sweep .p-stat-shine {
    animation: gold-shine-sweep 2.25s ease-in-out;
}
@keyframes gold-shine-sweep {
    0% {
        left: -90%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    88% {
        opacity: 0.85;
    }
    100% {
        left: 125%;
        opacity: 0;
    }
}.p-stat-gold .p-stat-label {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
    font-size: 0.68rem;
}
.p-stat-invested {
    margin-right: 3px;
    background: linear-gradient(145deg, rgba(26, 10, 46, 0.42) 0%, rgba(45, 27, 78, 0.38) 100%);
    border: 2px solid #e6c200;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.5),
        inset -1px -2px 0 rgba(80, 40, 0, 0.45),
        inset 0 -8px 14px rgba(0, 0, 0, 0.28),
        0 1px 0 #7a4e00,
        0 4px 10px rgba(0, 0, 0, 0.42),
        0 10px 20px rgba(0, 0, 0, 0.32),
        0 0 12px rgba(255, 215, 0, 0.2),
        inset 0 0 16px rgba(255, 215, 0, 0.06);
    padding: 8px 10px;
    position: relative;
    z-index: 1;
}
.p-stat-invested > .p-stat-label,
.p-stat-invested > .p-stat-val {
    position: relative;
    z-index: 2;
}
.p-stat-invested .p-stat-label {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
    font-size: 0.68rem;
}
.p-stat-val-invested {
    font-size: 1.35rem;
    font-weight: 600;
    font-family: var(--bling-num-font, 'Oswald', sans-serif);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    color: #ffe566;
    letter-spacing: 0.03em;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
.p-stat-active {
    background: rgba(26, 10, 46, 0.4);
    border: 1px solid #e6c200;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.28),
        inset -1px -2px 0 rgba(80, 40, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 10px 22px rgba(0, 0, 0, 0.3);
}
.p-stat-active .p-stat-label {
    color: #ffd700;
}
.p-stat-active .p-stat-val {
    color: #ffe566;
    font-weight: 800;
}
.active-positions-block {
    padding: 7px 10px 8px;
}
.active-positions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}
.active-positions-head .p-stat-label {
    font-size: 0.68rem;
}
.active-positions-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.35px;
}
.active-positions-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 118px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.active-positions-empty {
    font-size: 0.7rem;
    color: rgba(255, 229, 102, 0.75);
    font-weight: 600;
    padding: 4px 2px;
}
.active-position-card {
    flex: 0 0 calc(50% - 4px);
    min-width: 176px;
    max-width: 236px;
    overflow: hidden;
    box-sizing: border-box;
    scroll-snap-align: start;
    background: linear-gradient(145deg, rgba(26, 10, 46, 0.55) 0%, rgba(45, 27, 78, 0.48) 100%);
    border: 1px solid #e6c200;
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.4),
        inset -1px -2px 0 rgba(80, 40, 0, 0.4),
        0 1px 0 #7a4e00,
        0 3px 8px rgba(0, 0, 0, 0.42),
        0 8px 16px rgba(0, 0, 0, 0.32);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.active-position-card:hover {
    border-color: #ffd700;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.45),
        inset -1px -2px 0 rgba(80, 40, 0, 0.4),
        0 1px 0 #7a4e00,
        0 6px 14px rgba(0, 0, 0, 0.48),
        0 0 14px rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}
.active-position-card.selected {
    border-color: #ffd700;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.5),
        inset -1px -2px 0 rgba(80, 40, 0, 0.4),
        0 1px 0 #7a4e00,
        0 6px 14px rgba(0, 0, 0, 0.48),
        0 0 16px rgba(255, 215, 0, 0.35);
}
.active-position-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.active-position-id {
    min-width: 0;
    flex: 1 1 auto;
}
.active-position-id-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.active-position-quote {
    flex: 0 0 auto;
    text-align: right;
    min-width: 0;
}
.active-position-symbol {
    font-weight: 800;
    font-size: 0.86rem;
    color: #ffe566;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.market-session {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 0;
    vertical-align: 1px;
    white-space: nowrap;
    line-height: 1.2;
    flex: 0 0 auto;
}
.market-session.is-open {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.16);
}
.market-session.is-live {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
}
.market-session.is-pre {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.2);
}
.market-session.is-after {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.22);
}
.market-session.is-closed {
    color: rgba(255, 229, 102, 0.55);
    background: rgba(255, 255, 255, 0.06);
}
.watchlist-item .market-session,
.details-header .market-session {
    font-size: 0.62rem;
    vertical-align: middle;
    margin-left: 6px;
}
[data-theme="light"] .watchlist-item .market-session.is-open,
[data-theme="light"] .details-header .market-session.is-open {
    color: #15803d;
    background: rgba(22, 163, 74, 0.12);
}
[data-theme="light"] .watchlist-item .market-session.is-live,
[data-theme="light"] .details-header .market-session.is-live {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .watchlist-item .market-session.is-pre,
[data-theme="light"] .details-header .market-session.is-pre {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}
[data-theme="light"] .watchlist-item .market-session.is-after,
[data-theme="light"] .details-header .market-session.is-after {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.14);
}
[data-theme="light"] .watchlist-item .market-session.is-closed,
[data-theme="light"] .details-header .market-session.is-closed {
    color: var(--text-muted);
    background: var(--bg-body);
}
.active-position-name {
    display: block;
    font-size: 0.64rem;
    color: rgba(255, 229, 102, 0.7);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.active-position-price {
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff8dc;
    text-align: right;
}
.active-position-day {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}
.active-position-day.pos {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}
.active-position-day.neg {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}
.active-position-meta {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.active-position-qty,
.active-position-daycost,
.active-position-pnl {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.active-position-qty {
    font-size: 0.64rem;
    font-weight: 600;
    color: rgba(255, 229, 102, 0.75);
}
.active-position-daycost {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.active-position-daycost.pos {
    color: #ffd700;
}
.active-position-daycost.neg {
    color: #f87171;
}
.active-position-pnl {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    align-self: stretch;
    box-sizing: border-box;
}
.active-position-pnl.pos {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.18);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}
.active-position-pnl.neg {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.18);
}
.p-stat-val-gold {
    font-size: 1.35rem;
    font-weight: 600;
    font-family: var(--bling-num-font, 'Oswald', sans-serif);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    color: #ffd700;
    letter-spacing: 0.03em;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
.p-stat-day {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 229, 102, 0.78);
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.p-stat-day.pos {
    color: #ffd700;
}
.p-stat-day.neg {
    color: #f87171;
}
.p-stat-slot-wrap {
    --slot-fit-default: 1.2;
    --slot-fit: var(--slot-fit-default);
    --slot-mascot-scale: 1.25;
    --slot-mascot-size: 0.8;
    --slot-diya-size: 38px;
    --slot-diya-left: 58px;
    --slot-diya-right: 58px;
    --slot-side-pad-base: 158px;
    --slot-side-pad: calc(var(--slot-side-pad-base) * var(--slot-mascot-scale, 1));
    position: relative;
    transform: translateZ(0);
    overflow: visible;
    z-index: 2;
    margin-top: 2px;
    padding-left: var(--slot-side-pad);
    padding-right: var(--slot-side-pad);
    padding-bottom: 4px;
    min-height: 130px;
}
@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap {
        --slot-side-pad-base: 8px;
        padding-left: var(--slot-side-pad);
        padding-right: var(--slot-side-pad);
        min-height: 148px;
    }
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .p-stat-slot {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        min-height: 148px;
    }
    [data-brand="panda-king"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-machine-value-row {
        justify-content: center;
        margin-inline: auto;
        overflow-x: visible;
        padding-inline: calc(4px * var(--slot-fit, 1));
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .p-stat-slot {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-height: 128px;
    }
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .slot-machine {
        width: 100%;
        max-width: 100%;
        min-height: 136px;
        box-sizing: border-box;
    }
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .slot-machine-chrome {
        width: 100%;
        max-width: 100%;
        min-height: 136px;
        box-sizing: border-box;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-mascot-stack {
        width: var(--slot-ganesh-w);
        height: calc(var(--slot-ganesh-w) * 1.12);
        bottom: 24px;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-mascot-stack .slot-ganesh-shine-wrap {
        width: var(--slot-ganesh-w);
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-mascot-stack-left {
        left: calc(var(--slot-diya-left) + var(--slot-diya-size) / 2 - var(--slot-ganesh-w) / 2);
        right: auto;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-mascot-stack-right {
        right: calc(var(--slot-diya-right) + var(--slot-diya-size) / 2 - var(--slot-ganesh-w) / 2);
        left: auto;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-machine-value-row {
        max-width: 100%;
        width: 100%;
        padding-inline: 0 6px;
        justify-content: center;
        margin-inline: auto;
        overflow-x: visible;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .slot-machine-face {
        padding-inline: 8px;
    }
}.p-stat-slot {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    padding: 6px 0 8px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.p-stat-slot-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(5px * var(--slot-fit, 1));
    width: 100%;
    margin-bottom: calc(2px * var(--slot-fit, 1));
}
.p-stat-slot .p-stat-label {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    padding-right: 0;
    letter-spacing: 1px;
    font-size: calc(0.68rem * var(--slot-fit, 1));
    margin-bottom: 0;
}
.slot-return-info-btn {
    width: calc(15px * var(--slot-fit, 1));
    height: calc(15px * var(--slot-fit, 1));
    min-width: calc(15px * var(--slot-fit, 1));
    min-height: calc(15px * var(--slot-fit, 1));
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.7);
    background: rgba(12, 6, 24, 0.72);
    color: #ffd700;
    font-size: calc(0.58rem * var(--slot-fit, 1));
    font-weight: 800;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.25);
}
.slot-return-info-btn:hover,
.slot-return-info-btn[aria-expanded="true"] {
    background: rgba(255, 215, 0, 0.18);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}
.slot-return-info-tip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    padding: calc(6px * var(--slot-fit, 1)) calc(10px * var(--slot-fit, 1));
    border-radius: calc(8px * var(--slot-fit, 1));
    background: rgba(18, 8, 32, 0.96);
    border: 1px solid #e6c200;
    color: #fff8dc;
    font-size: calc(0.62rem * var(--slot-fit, 1));
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(255, 215, 0, 0.2);
    pointer-events: none;
}
.slot-return-info-tip[hidden] {
    display: none !important;
}
.slot-ganesh-badge {
    position: absolute;
    bottom: 34px;
    top: auto;
    width: 150px;
    aspect-ratio: 682 / 1024;
    background: var(--asset-ganesh) center bottom / contain no-repeat;
    border: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    z-index: 12;
}
.slot-ganesh-left {
    left: 0;
    right: auto;
    transform: scaleX(-1);
    transform-origin: center bottom;
}
.slot-ganesh-right {
    right: 0;
    left: auto;
}
.slot-mascot-stack {
    position: absolute;
    bottom: 34px;
    z-index: 12;
    pointer-events: none;
    line-height: 0;
}
.slot-mascot-stack-left {
    left: 0;
    right: auto;
}
.slot-mascot-stack-right {
    right: 0;
    left: auto;
}
[data-brand="india"] .slot-mascot-stack .slot-ganesh-shine-wrap {
    position: absolute;
    bottom: 0;
    width: var(--slot-ganesh-w, 150px);
    line-height: 0;
    pointer-events: none;
}
[data-brand="india"] .slot-mascot-stack-left .slot-ganesh-shine-wrap {
    left: 0;
    right: auto;
}
[data-brand="india"] .slot-mascot-stack-right .slot-ganesh-shine-wrap {
    right: 0;
    left: auto;
}
[data-brand="india"] .slot-mascot-stack .slot-ganesh-badge {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 1;
    background-position: center bottom;
}
[data-brand="india"] .slot-mascot-stack-left .slot-ganesh-badge {
    transform: scaleX(-1);
    transform-origin: center bottom;
    background-position: 53% bottom;
}
[data-brand="india"] .slot-mascot-stack-right .slot-ganesh-badge {
    transform: none;
    transform-origin: center bottom;
    background-position: 47% bottom;
}
.slot-ganesh-sparkle-layer {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 8;
}
.ganesh-star-sparkle {
    position: absolute;
    left: var(--sx, 50%);
    top: var(--sy, 50%);
    width: var(--ss, 18px);
    height: var(--ss, 18px);
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
    pointer-events: none;
    animation: none;
}
.ganesh-star-sparkle.is-live {
    animation: ganesh-star-sparkle var(--sd, 1.5s) ease-out forwards;
}
.ganesh-star-ray {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 38%,
        #fffef8 49%,
        #ffe566 50%,
        #fffef8 51%,
        rgba(255, 255, 255, 0.15) 62%,
        transparent 100%
    );
}
.ganesh-star-ray-v {
    width: 12%;
    height: 100%;
}
.ganesh-star-ray-h {
    width: 100%;
    height: 12%;
}
.ganesh-star-ray-d1 {
    width: 72%;
    height: 10%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ganesh-star-ray-d2 {
    width: 72%;
    height: 10%;
    transform: translate(-50%, -50%) rotate(-45deg);
}
.ganesh-star-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22%;
    height: 22%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #fff8c8 45%, #ffd700 100%);
    box-shadow: 0 0 8px rgba(255, 230, 140, 0.85);
}
@keyframes ganesh-star-sparkle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.12) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.72) rotate(8deg);
    }
    28% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.35) rotate(14deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.05) rotate(22deg);
    }
}[data-brand="india"] .slot-mascot-stack-left {
    left: calc(var(--slot-diya-left, 58px) + var(--slot-diya-size, 38px) / 2 - var(--slot-ganesh-w, 115.2px) / 2);
    right: auto;
}
[data-brand="india"] .slot-mascot-stack-right {
    right: calc(var(--slot-diya-right, 58px) + var(--slot-diya-size, 38px) / 2 - var(--slot-ganesh-w, 115.2px) / 2);
    left: auto;
}
[data-brand="india"] .slot-machine-value-row {
    justify-content: center;
    margin-inline: auto;
    max-width: 100%;
}
[data-brand="india"] .p-stat-slot .slot-machine {
    width: 100%;
    max-width: 100%;
}
[data-brand="india"] .slot-machine-face {
    align-items: center;
    overflow: visible;
}
.slot-group-crores[hidden],
.slot-comma-crores[hidden],
[data-brand="india"] .slot-machine-value-row:not(.slot-has-crores) .slot-group-crores,
[data-brand="india"] .slot-machine-value-row:not(.slot-has-crores) .slot-comma-crores {
    display: none !important;
}
.slot-mascot-stack .slot-panda-ground,
.slot-mascot-stack .slot-panda-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom center;
    pointer-events: none;
}
.slot-mascot-stack .slot-panda-logo {
    background-image: var(--asset-panda-logo);
}
.slot-mascot-stack .slot-panda-ground {
    z-index: 1;
    background-image: var(--asset-panda-ground);
}
.slot-mascot-stack .slot-panda-body {
    background-image: var(--asset-panda-body);
}
.slot-mascot-stack .slot-panda-body-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.slot-mascot-stack .slot-panda-body-wrap.slot-panda-body-mirror {
    transform: scaleX(-1);
    transform-origin: bottom center;
}
.slot-diya {
    position: absolute;
    bottom: 0;
    width: var(--slot-diya-size, 38px);
    aspect-ratio: 476 / 391;
    z-index: 13;
    pointer-events: none;
    display: block;
    background: var(--asset-diya-bowl) center / contain no-repeat;
}
.slot-diya::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--asset-diya-flame) center / contain no-repeat;
    transform-origin: 50% 45%;
    filter: drop-shadow(0 0 5px rgba(255, 170, 40, 0.5));
    animation: diya-flicker 2.15s ease-in-out infinite;
}
.slot-diya-left {
    left: var(--slot-diya-left, 58px);
}
.slot-diya-right {
    right: var(--slot-diya-right, 58px);
}
@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .slot-ganesh-badge {
        width: 100%;
        bottom: 20px;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .slot-ganesh-badge {
        width: 100%;
        bottom: 18px;
    }
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap {
        --slot-diya-size: 24px;
        --slot-diya-left: 32px;
        --slot-diya-right: 32px;
    }
    .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap .slot-diya {
        bottom: 0;
    }
    [data-brand="india"] .portfolio-banner:not(.portfolio-aspect-lock) .p-stat-slot-wrap {
        --slot-diya-left: 24px;
        --slot-diya-right: 24px;
    }
    [data-brand="india"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .p-stat-slot-wrap {
        --slot-diya-size: 28px;
        --slot-diya-left: 48px;
        --slot-diya-right: 48px;
    }
    [data-brand="india"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .slot-mascot-stack-left {
        left: calc(var(--slot-diya-left) + var(--slot-diya-size) / 2 - var(--slot-ganesh-w) / 2);
        right: auto;
    }
    [data-brand="india"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .slot-mascot-stack-right {
        right: calc(var(--slot-diya-right) + var(--slot-diya-size) / 2 - var(--slot-ganesh-w) / 2);
        left: auto;
    }
}
.portfolio-banner.portfolio-aspect-lock .portfolio-bling-panel {
    padding: 8px 12px 6px;
}
.portfolio-banner.portfolio-aspect-lock .portfolio-aspect-shell {
    --border-light-end: 16px;
}
@media (orientation: portrait) and (max-width: 1180px) {
    .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) {
        overflow: visible;
        padding-inline: 10px;
        padding-bottom: 6px;
    }
    .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-aspect-shell {
        overflow: visible;
        box-shadow:
            inset 1px 0 0 rgba(255, 248, 210, 0.55),
            inset -2px -2px 0 rgba(90, 45, 0, 0.45),
            0 1px 0 #fff3b0,
            0 3px 0 #8a5a00,
            0 6px 14px rgba(0, 0, 0, 0.38);
    }
    [data-brand="panda-king"] .portfolio-banner.portfolio-aspect-lock:not(:fullscreen):not(.portfolio-fullscreen) .portfolio-aspect-shell {
        box-shadow:
            inset 1px 0 0 rgba(255, 235, 150, 0.45),
            inset -2px -2px 0 rgba(40, 20, 0, 0.45),
            0 1px 0 #ffe082,
            0 3px 0 #8d6e00,
            0 6px 14px rgba(0, 0, 0, 0.38);
    }
    .portfolio-banner.portfolio-aspect-lock .portfolio-aspect-shell {
        --border-light-end: 18px;
    }
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-top span:first-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-top span:last-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-bottom span:first-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-bottom span:last-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-left span:first-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-left span:last-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-right span:first-child,
    .portfolio-banner.portfolio-aspect-lock .portfolio-border-lights-right span:last-child {
        visibility: hidden;
    }
}
.portfolio-banner.portfolio-aspect-lock .p-stat-slot-wrap {
    --slot-side-pad-base: 168px;
    --slot-diya-size: 38px;
    --slot-diya-left: 66px;
    --slot-diya-right: 66px;
}
[data-brand="india"] .portfolio-banner.portfolio-aspect-lock .p-stat-slot-wrap {
    --slot-diya-left: 68px;
    --slot-diya-right: 68px;
    --slot-side-pad-base: 176px;
}
[data-brand="india"] .portfolio-banner.portfolio-aspect-lock .slot-mascot-stack-left {
    left: calc(
        var(--slot-diya-left, 68px) + var(--slot-diya-size, 38px) / 2 - var(--slot-ganesh-w, 115.2px) / 2
        + 4px * var(--slot-fit, 1)
    );
}
[data-brand="india"] .portfolio-banner.portfolio-aspect-lock .slot-mascot-stack-right {
    right: calc(
        var(--slot-diya-right, 68px) + var(--slot-diya-size, 38px) / 2 - var(--slot-ganesh-w, 115.2px) / 2
        + 4px * var(--slot-fit, 1)
    );
}
[data-brand="panda-king"] .portfolio-banner.portfolio-aspect-lock .p-stat-slot-wrap {
    --slot-side-pad-base: 176px;
}
.portfolio-banner.portfolio-aspect-lock .portfolio-active-row {
    padding-inline: 6px;
}
.portfolio-banner.portfolio-aspect-lock .p-stat-slot-wrap .slot-ganesh-badge {
    width: var(--slot-ganesh-w, auto);
}
[data-brand="panda-king"] .portfolio-banner.portfolio-aspect-lock .slot-mascot-stack-left {
    left: calc(
        max(0px, (var(--slot-side-pad, 178px) - var(--slot-mascot-h) * var(--slot-mascot-aspect)) / 2)
        - 4px * var(--slot-fit, 1)
    );
}
[data-brand="panda-king"] .portfolio-banner.portfolio-aspect-lock .slot-mascot-stack-right {
    right: calc(
        max(0px, (var(--slot-side-pad, 178px) - var(--slot-mascot-h) * var(--slot-mascot-aspect)) / 2)
        - 4px * var(--slot-fit, 1)
    );
}
.slot-diya-right::after {
    animation-duration: 2.7s;
    animation-delay: -0.8s;
}
@keyframes diya-flicker {
    0%, 100% { transform: scale(1, 1); }
    11% { transform: scale(1.04, 1.14); }
    18% { transform: scale(0.97, 0.9); }
    32% { transform: scale(1.05, 1.18); }
    47% { transform: scale(1.01, 1.04); }
    61% { transform: scale(1.03, 1.12); }
    76% { transform: scale(0.98, 0.93); }
}[data-brand="india"] .p-stat-slot-wrap {
    --slot-fit-default: 1.02;
    --slot-mascot-size: 0.64;
    --slot-ganesh-base: 210px;
    --slot-ganesh-w: calc(var(--slot-ganesh-base) * var(--slot-mascot-scale, 1) * var(--slot-mascot-size, 0.64));
}
[data-brand="india"] .slot-mascot-stack {
    width: var(--slot-ganesh-w, calc(210px * var(--slot-mascot-scale, 1) * var(--slot-mascot-size, 0.64)));
    height: calc(var(--slot-ganesh-w, 210px) * 1.12);
}
.slot-diya-circuiting {
    z-index: 20;
    will-change: left, top, opacity, transform;
}
.p-stat-slot-wrap.diya-circuit-active .slot-diya-circuiting::after {
    animation: diya-flicker 1.55s ease-in-out infinite;
}
.p-stat-slot-wrap.diya-circuit-active .slot-diya-left.slot-diya-circuiting::after,
.p-stat-slot-wrap.diya-circuit-active .slot-diya-right.slot-diya-circuiting::after {
    animation-duration: 2.7s;
    animation-delay: -0.8s;
}
.slot-machine {
    position: relative;
    width: 100%;
    --slot-row-h: var(--slot-row-h-px, calc(40px * var(--slot-fit, 1)));
    --slot-digit-w: calc(28px * var(--slot-fit, 1));
    --slot-reel-gap: calc(3px * var(--slot-fit, 1));
    --slot-reel-pad: calc(6px * var(--slot-fit, 1)) calc(8px * var(--slot-fit, 1));
    --slot-face-gap-y: calc(4px * var(--slot-fit, 1));
    --slot-face-gap-x: calc(2px * var(--slot-fit, 1));
    --slot-sign-size: calc(1.6rem * var(--slot-fit, 1));
    --slot-comma-size: calc(1.5rem * var(--slot-fit, 1));
    --slot-decimal-size: calc(1rem * var(--slot-fit, 1));
    --slot-pct-size: calc(0.72rem * var(--slot-fit, 1));
    --slot-label-size: calc(0.5rem * var(--slot-fit, 1));
    --slot-marquee-h: calc(28px * var(--slot-fit, 1));
    --slot-marquee-font: calc(0.78rem * var(--slot-fit, 1));
    --slot-digit-font: var(--bling-num-font, 'Oswald', 'Avenir Next Condensed', 'Arial Narrow', sans-serif);
    --slot-digit-y-nudge: calc(var(--slot-row-h, 40px) * -0.08);
}
.slot-machine-chrome {
    position: relative;
    border-radius: 12px;
    padding: 8px 10px 10px;
    background: linear-gradient(180deg, rgba(61, 42, 107, 0.62) 0%, rgba(31, 16, 53, 0.58) 50%, rgba(13, 6, 24, 0.65) 100%);
    border: 2px solid #e6c200;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.45),
        inset -2px -3px 0 rgba(70, 35, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 -8px 16px rgba(0, 0, 0, 0.55),
        0 1px 0 #fff1a8,
        0 2px 0 #8b5a00,
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 16px 32px rgba(0, 0, 0, 0.38),
        0 0 16px rgba(255, 215, 0, 0.25);
    overflow: hidden;
}
.slot-marquee {
    overflow: hidden;
    height: var(--slot-marquee-h, 28px);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    border: 1px solid #e6c200;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.3),
        inset -1px -1px 0 rgba(80, 40, 0, 0.4);
    display: flex;
    align-items: center;
    padding: 0;
}
.slot-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: slot-marquee-scroll var(--marquee-duration, 24s) linear infinite;
}
.slot-marquee-item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: var(--slot-marquee-font, 0.78rem);
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
    padding: 6px 0;
    color: #ffd700;
    text-shadow: none;
}
@keyframes slot-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-1 * var(--marquee-loop, 50%)), 0, 0); }
}.slot-machine-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.slot-machine-value-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--slot-face-gap-y, 4px) var(--slot-face-gap-x, 2px);
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-inline: calc(8px * var(--slot-fit, 1));
    scroll-padding-inline: calc(8px * var(--slot-fit, 1));
    padding-bottom: 2px;
    margin-inline: auto;
}
.slot-machine-value-row::before,
.slot-machine-value-row::after {
    content: none;
}
.slot-machine-value-row::-webkit-scrollbar {
    display: none;
}
.slot-machine-value-row > * {
    flex: 0 0 auto;
    flex-shrink: 0;
}
.slot-sign,
.slot-currency {
    font-size: var(--slot-sign-size, 1.6rem);
    font-weight: 600;
    font-family: var(--slot-digit-font);
    letter-spacing: 0.03em;
    color: #ffd700;
    text-shadow: none;
    -webkit-text-stroke: 0;
    align-self: center;
    margin-right: 4px;
    flex-shrink: 0;
    overflow: visible;
}
.slot-sign {
    margin-left: 2px;
    padding-left: 2px;
}
.slot-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: max-content;
}
.slot-group-label {
    font-size: var(--slot-label-size, 0.5rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: #ff69b4;
    text-shadow: 0 0 4px #ff1493;
    width: 100%;
    text-align: center;
    line-height: 1.1;
}
.slot-comma {
    font-size: var(--slot-comma-size, 1.5rem);
    font-weight: 600;
    font-family: var(--slot-digit-font);
    letter-spacing: 0.02em;
    color: #ffd700;
    align-self: center;
    margin: 0 1px;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
.slot-reel {
    display: flex;
    align-items: flex-start;
    gap: var(--slot-reel-gap, 3px);
    padding: var(--slot-reel-pad, 6px 8px);
    background: linear-gradient(180deg, #0a0a12 0%, #1a1a28 50%, #0a0a12 100%);
    border: 3px solid #e6c200;
    border-radius: 8px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 236, 179, 0.45),
        inset -2px -2px 0 rgba(70, 40, 0, 0.55),
        inset 0 4px 12px rgba(0, 0, 0, 0.9),
        0 1px 0 #fff1a8,
        0 2px 0 #8b5a00,
        0 5px 12px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.25);
}
.slot-digit-col {
    width: var(--slot-digit-w, 28px);
    height: calc(var(--slot-row-h, 40px) * 3);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #3d3010 0%, #1a1408 45%, #0d0a04 100%);
    border-radius: 5px;
    border: 2px solid #c9a227;
    box-shadow:
        inset 0 1px 2px rgba(255, 236, 179, 0.28),
        inset 0 -3px 6px rgba(0, 0, 0, 0.75),
        0 1px 4px rgba(0, 0, 0, 0.45);
}
.slot-digit-col::before,
.slot-digit-col::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}
.slot-digit-col::before {
    top: calc(var(--slot-row-h, 40px) - 1px);
    height: calc(var(--slot-row-h, 40px) + 2px);
    border-top: 1px solid rgba(255, 215, 0, 0.28);
    border-bottom: 1px solid rgba(255, 215, 0, 0.28);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02), rgba(255, 215, 0, 0.06));
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.08);
}
.slot-digit-col::after {
    top: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) calc(var(--slot-row-h, 40px) * 0.75), transparent calc(var(--slot-row-h, 40px) * 1.05)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) calc(var(--slot-row-h, 40px) * 0.75), transparent calc(var(--slot-row-h, 40px) * 1.05));
    transition: opacity 0.15s ease;
}
.slot-digit-col:has(.slot-digit-strip.spinning)::before,
.slot-digit-col:has(.slot-digit-strip.spinning)::after {
    opacity: 0;
}
.slot-digit-strip {
    display: flex;
    flex-direction: column;
    transition: none;
}
.slot-digit-strip.spinning {
    transition: none;
    will-change: transform;
}
.slot-digit {
    width: 100%;
    height: var(--slot-row-h, 40px);
    min-height: var(--slot-row-h, 40px);
    max-height: var(--slot-row-h, 40px);
    flex: 0 0 var(--slot-row-h, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--slot-row-h, 40px) * 0.52);
    line-height: 1;
    font-weight: 600;
    font-family: var(--slot-digit-font);
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    color: #ffd700;
    text-shadow: var(--slot-reel-bevel-shadow);
    -webkit-text-stroke: var(--slot-reel-bevel-stroke);
    transform: translateY(var(--slot-digit-y-nudge, 0px));
}
.slot-decimals {
    font-size: var(--slot-decimal-size, 1rem);
    font-weight: 600;
    font-family: var(--slot-digit-font);
    letter-spacing: 0.03em;
    color: #ffe566;
    align-self: center;
    margin-left: 2px;
    margin-right: 6px;
    flex-shrink: 0;
    overflow: visible;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
.slot-decimal-dot,
.slot-decimal-frac {
    display: inline;
    line-height: 1;
    transform: none;
}
.slot-pct {
    font-size: var(--slot-pct-size, 0.72rem);
    font-weight: 700;
    color: #a5f3fc;
    align-self: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    min-width: max-content;
    width: auto;
    margin: 4px 0 0;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    border: 1px solid #e6c200;
    box-shadow:
        inset 1px 1px 0 rgba(255, 248, 210, 0.35),
        inset -1px -1px 0 rgba(80, 40, 0, 0.4);
    box-sizing: border-box;
    position: relative;
    z-index: 15;
}
.slot-lights {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.slot-lights span {
    --slot-off-bg: radial-gradient(circle at 32% 26%, #a07820 0%, #6b5010 48%, #3d2c08 100%);
    --slot-on-bg: radial-gradient(circle at 32% 26%, #ffffff 0%, #fffbe8 35%, #ffe566 100%);
    --slot-on-glow: 0 0 5px 1px rgba(255, 215, 0, 0.9);
    --slot-light-delay: 0s;
    --slot-light-duration: 1.8s;
    position: relative;
    isolation: isolate;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slot-off-bg);
    border: 1px solid rgba(40, 22, 0, 0.85);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    animation: slot-light-chase-scale var(--slot-light-duration) linear infinite;
    animation-delay: var(--slot-light-delay);
}
.slot-lights span::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: var(--slot-on-bg);
    box-shadow: var(--slot-on-glow);
    animation: slot-light-lit-chase var(--slot-light-duration) linear infinite;
    animation-delay: var(--slot-light-delay);
}
.slot-lights span:nth-child(1) { --slot-light-delay: 0s; }
.slot-lights span:nth-child(2) { --slot-light-delay: 0.22s; }
.slot-lights span:nth-child(3) { --slot-light-delay: 0.44s; }
.slot-lights span:nth-child(4) { --slot-light-delay: 0.66s; }
.slot-lights span:nth-child(5) { --slot-light-delay: 0.88s; }
.slot-lights span:nth-child(6) { --slot-light-delay: 1.1s; }
.slot-lights span:nth-child(2),
.slot-lights span:nth-child(5) {
    --slot-off-bg: radial-gradient(circle at 32% 26%, #8a3048 0%, #5c182c 52%, #2e0c16 100%);
    --slot-on-bg: radial-gradient(circle at 32% 26%, #ffd6e6 0%, #ff6b9d 42%, #ff3366 100%);
    --slot-on-glow: 0 0 5px 1px rgba(255, 107, 157, 0.9);
}
.slot-lights span:nth-child(3),
.slot-lights span:nth-child(6) {
    --slot-off-bg: radial-gradient(circle at 32% 26%, #1f6b48 0%, #0f4630 52%, #072418 100%);
    --slot-on-bg: radial-gradient(circle at 32% 26%, #e8fff4 0%, #5cffb8 42%, #00ff88 100%);
    --slot-on-glow: 0 0 5px 1px rgba(92, 255, 184, 0.85);
}
@keyframes slot-light-chase-scale {
    0%, 100% { transform: scale(0.96); }
    16% { transform: scale(1.12); }
    32% { transform: scale(0.96); }
}@keyframes slot-light-lit-chase {
    0%, 100% { opacity: 0; }
    12%, 20% { opacity: 1; }
    32% { opacity: 0; }
}@keyframes slot-light-blink-scale {
    0% { transform: scale(0.96); }
    100% { transform: scale(1.12); }
}@keyframes slot-light-blink-lit {
    0% { opacity: 0; }
    100% { opacity: 1; }
}@keyframes slot-light-fill-blink {
    0% { opacity: 0; }
    100% { opacity: 1; }
}.slot-machine.positive .slot-digit {
    color: #ffe566;
    text-shadow:
        0 1px 0 #ffd700,
        0 2px 0 #ff9800,
        0 3px 0 #b45309,
        0 4px 5px rgba(0, 0, 0, 0.78);
    -webkit-text-stroke: 0.3px #8b6914;
}
.slot-machine.negative .slot-digit {
    color: #ffb347;
    text-shadow:
        0 1px 0 #ffe4cc,
        0 2px 0 #ffcc80,
        0 3px 0 #cc5500,
        0 4px 5px rgba(0, 0, 0, 0.78);
    -webkit-text-stroke: 0.3px #7a3a10;
}
.slot-machine.negative .slot-machine-chrome {
    border-color: #ef4444;
    box-shadow: inset 0 2px 0 rgba(255, 100, 100, 0.15), inset 0 -4px 12px rgba(0, 0, 0, 0.5);
}
.slot-machine:not(.spinning):not(.jackpot) .slot-lights span {
    animation-name: slot-light-chase-scale;
}
.slot-machine:not(.spinning):not(.jackpot) .slot-lights span::before {
    animation-name: slot-light-lit-chase;
}
.slot-machine.spinning .slot-lights span {
    animation-name: slot-light-blink-scale;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.slot-machine.spinning .slot-lights span::before {
    animation-name: slot-light-blink-lit;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.slot-machine.spinning .slot-lights span:nth-child(1) {
    --slot-light-duration: 0.11s;
    --slot-light-delay: 0.02s;
}
.slot-machine.spinning .slot-lights span:nth-child(2) {
    --slot-light-duration: 0.19s;
    --slot-light-delay: 0.08s;
}
.slot-machine.spinning .slot-lights span:nth-child(3) {
    --slot-light-duration: 0.14s;
    --slot-light-delay: 0.05s;
}
.slot-machine.spinning .slot-lights span:nth-child(4) {
    --slot-light-duration: 0.22s;
    --slot-light-delay: 0.12s;
}
.slot-machine.spinning .slot-lights span:nth-child(5) {
    --slot-light-duration: 0.16s;
    --slot-light-delay: 0.01s;
}
.slot-machine.spinning .slot-lights span:nth-child(6) {
    --slot-light-duration: 0.13s;
    --slot-light-delay: 0.09s;
}
.slot-machine.jackpot .slot-machine-chrome {
    animation: slot-jackpot-shake 0.5s ease-in-out 3;
    border-color: #fff;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        0 0 16px rgba(255, 215, 0, 0.55);
}
@keyframes slot-jackpot-shake {
    0%, 100% { transform: translateX(0) scale(1); }
    20% { transform: translateX(-4px) scale(1.02); }
    40% { transform: translateX(4px) scale(1.02); }
    60% { transform: translateX(-3px) scale(1.01); }
    80% { transform: translateX(3px) scale(1.01); }
}.slot-celebration {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: visible;
    z-index: 10;
}
.slot-coin,
.slot-confetti {
    position: absolute;
    font-size: 1.2rem;
    animation: slot-fly 1.8s ease-out forwards;
    opacity: 0;
}
@keyframes slot-fly {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) rotate(720deg) scale(0.3);
    }
}.slot-jackpot-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px #ff6600, 0 2px 4px #000;
    letter-spacing: 4px;
    white-space: nowrap;
    animation: slot-banner-pop 2s ease-out forwards;
    z-index: 11;
}
@keyframes slot-banner-pop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    30% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    85% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}[data-theme="dark"] .p-stat-slot {
    border: none;
}
.btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn.sm {
    padding: 4px 10px;
    font-size: 0.78rem;
}
.btn-action {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-action:hover {
    background-color: var(--border-hover);
}
.btn-action.active {
    background-color: var(--green-bg);
    color: var(--green);
    border-color: var(--green-border);
}
.btn-action.primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-action.primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.search-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.search-container {
    position: relative;
    width: 100%;
}
.search-bar {
    display: flex;
    gap: 12px;
}
.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-input-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 38px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.15s;
    background-color: var(--input-bg);
    color: var(--text-main);
}
.search-input-wrapper input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.clear-search-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}
.clear-search-btn:hover {
    color: var(--text-main);
    background-color: var(--border-color);
}
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
}
.suggestions-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background-color: var(--bg-body);
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}
.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.12s ease;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: var(--primary-light);
}
.suggestion-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.suggestion-top-line {
    display: flex;
    align-items: center;
    gap: 8px;
}
.suggestion-symbol {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
.badge-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
}
.badge-tag.nse {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.badge-tag.us {
    background-color: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.badge-tag.crypto {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}
.suggestion-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}
.suggestion-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 12px;
    flex-shrink: 0;
}
.suggestion-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}
.suggestion-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.suggestion-change.positive {
    background-color: var(--green-bg);
    color: var(--green);
}
.suggestion-change.negative {
    background-color: var(--red-bg);
    color: var(--red);
}
.quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.quick-tags-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.quick-tag {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
}
.quick-tag:hover {
    background-color: var(--border-hover);
    color: var(--text-main);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {.dashboard-grid {
        grid-template-columns: 1fr;
    }
}.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-title-row h2,
.stock-details-section h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}
.watchlist-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 600;
    outline: none;
}
.badge-count {
    font-size: 0.75rem;
    background: var(--bg-body);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid var(--border-color);
}
.watchlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
}
.watchlist-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.watchlist-item:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-body);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.watchlist-item.selected {
    border-color: var(--active-border);
    background-color: var(--active-bg);
}
.item-left {
    display: flex;
    flex-direction: column;
}
.item-symbol-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.item-symbol {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}
.item-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-holding {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}
.item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.item-price {
    font-weight: 700;
    font-size: 0.98rem;
    text-align: right;
}
.pill-change {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}
.pill-change.positive {
    background-color: var(--green-bg);
    color: var(--green);
}
.pill-change.negative {
    background-color: var(--red-bg);
    color: var(--red);
}
.btn-remove {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}
.btn-remove:hover {
    color: var(--red);
    background-color: var(--red-bg);
}
.timeframe-controls {
    display: flex;
    gap: 4px;
    background-color: var(--bg-body);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.tf-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.tf-btn.active, .tf-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}
.stock-details-content {
    background-color: var(--bg-card);
    min-height: 280px;
}
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.details-title h3 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.details-title h3 .market-session {
    margin-left: 0;
    font-size: 0.68rem;
}
.details-company {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.details-price-block {
    text-align: right;
}
.details-price {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
}
.sparkline-container {
    position: relative;
    margin-bottom: 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
}
.sparkline-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.sparkline-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sparkline-hover-info {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
}
.sparkline-svg {
    width: 100%;
    height: 120px;
    overflow: visible;
}
.chart-point {
    cursor: pointer;
    transition: r 0.15s ease, fill 0.15s ease;
}
.chart-point:hover {
    r: 6;
}
.portfolio-hint {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.widget-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.widget-panel-single {
    grid-template-columns: 1fr;
}
.holding-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.holding-field label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}
.holding-live {
    margin: 8px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}
.btn-set-position {
    margin-top: 6px;
    border: none;
    background: none;
    color: var(--primary, #2563eb);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
@media (max-width: 600px) {.widget-panel {
        grid-template-columns: 1fr;
    }
}.widget-box {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
}
.widget-box h4 {
    margin: 0 0 10px 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}
.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.form-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-main);
    font-size: 0.82rem;
    outline: none;
    width: 100%;
}
.form-input:focus {
    border-color: var(--primary);
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stat-box {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}
.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}
.toast {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.alert-hit {
    border-left-color: #f59e0b;
    background-color: var(--bg-card);
}
.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
}
.toast-close:hover {
    color: var(--text-main);
    background-color: var(--border-color);
}
.item-source-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 6px;
    display: inline-block;
}
.item-source-badge.proxy {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--border-color);
}
.item-source-badge.free {
    background-color: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}
.item-source-badge.sim {
    background-color: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.position-card {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
}
.position-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.position-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}
.position-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 10px;
    align-items: flex-end;
}
@media (max-width: 640px) {.position-inputs-grid {
        grid-template-columns: 1fr 1fr;
    }
}.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.input-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.position-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    width: 100%;
}
.position-input:focus {
    border-color: var(--primary);
}
.position-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}
.pos-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pos-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.pos-stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}
.pos-stat-val.pos {
    color: var(--green);
}
.pos-stat-val.neg {
    color: var(--red);
}
.item-holding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
}
.item-holding-qty {
    color: var(--text-muted);
    font-weight: 600;
}
.item-holding-pnl {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.item-holding-pnl.pos {
    background-color: var(--green-bg);
    color: var(--green);
}
.item-holding-pnl.neg {
    background-color: var(--red-bg);
    color: var(--red);
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}body.is-electron .web-only-btn {
    display: none !important;
}
.web-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}
.web-modal[hidden] {
    display: none !important;
}
.web-modal-card {
    width: min(420px, 100%);
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.web-modal-card h3 {
    margin: 0 0 8px;
}
.web-modal-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.disclaimer-modal {
    z-index: 25000;
}
.disclaimer-card {
    width: min(480px, 100%);
    text-align: left;
}
.disclaimer-card h3 {
    text-align: center;
    margin-bottom: 12px;
}
.disclaimer-lead {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}
.disclaimer-points {
    margin: 0 0 14px;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}
.disclaimer-points li {
    margin-bottom: 8px;
}
.disclaimer-points li:last-child {
    margin-bottom: 0;
}
.disclaimer-foot {
    font-size: 0.88rem;
    margin-bottom: 18px;
}
.disclaimer-card .btn {
    width: 100%;
    justify-content: center;
}
.donate-qr {
    width: min(280px, 100%);
    aspect-ratio: 1;
    height: auto;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    margin: 4px auto 16px;
    display: block;
}
.settings-card {
    text-align: left;
    width: min(440px, 100%);
}
.settings-card p {
    margin-bottom: 16px;
}
.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}
.settings-select,
.settings-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font: inherit;
    box-sizing: border-box;
}
.settings-input {
    font-weight: 500;
    font-size: 0.82rem;
}
.settings-hint {
    margin: -8px 0 14px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
}
.settings-hint code {
    font-size: 0.76rem;
}
.settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin: 12px 0 8px;
    cursor: pointer;
}
.settings-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 8px 26px;
}
.settings-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.settings-grid input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-main);
    font-weight: 700;
}
.settings-card .btn {
    margin-top: 16px;
    width: 100%;
}
[data-brand="panda-king"] .region-india-only {
    display: none !important;
}
[data-brand="panda-king"][data-display-currency="INR"] .slot-group-crores:not([hidden]),
[data-brand="panda-king"][data-display-currency="INR"] .slot-comma-crores:not([hidden]) {
    display: flex !important;
}
[data-brand="panda-king"][data-display-currency="INR"] .slot-comma-crores:not([hidden]) {
    display: inline !important;
}
.region-intl-only {
    display: none !important;
}
[data-brand="panda-king"] .region-intl-only {
    display: block !important;
}
[data-brand="panda-king"] .index-pins.region-intl-only {
    display: grid !important;
}
[data-brand="panda-king"] .slot-panda-body-wrap.region-intl-only {
    display: block !important;
}
[data-brand="panda-king"] .brand-icon {
    background: radial-gradient(circle at 35% 30%, #2e7d32 0%, #1b5e20 70%, #0d2818 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}
[data-brand="panda-king"] .portfolio-banner.portfolio-bling,
[data-brand="panda-king"] .portfolio-aspect-shell {
    border-color: #d4af37;
    background: url('panda-king-bg.jpg') center center / cover no-repeat;
    box-shadow:
        inset 1px 0 0 rgba(255, 235, 150, 0.45),
        inset -2px -2px 0 rgba(40, 20, 0, 0.45),
        0 1px 0 #ffe082,
        0 3px 0 #8d6e00,
        0 8px 18px rgba(0, 0, 0, 0.5),
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 193, 7, 0.28);
}
[data-brand="panda-king"] .portfolio-banner.portfolio-bling::before,
[data-brand="panda-king"] .portfolio-aspect-shell::before {
    background:
        linear-gradient(180deg, rgba(18, 4, 28, 0.72) 0%, rgba(36, 8, 48, 0.55) 42%, rgba(12, 4, 20, 0.68) 100%);
}
[data-brand="panda-king"] .portfolio-title-bling {
    background: linear-gradient(180deg, #fff8e1 0%, #ffd54f 38%, #ffb300 72%, #f57f17 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
}
[data-brand="panda-king"] .portfolio-bling-panel {
    --slot-ganesh-w: 210px;
    background: linear-gradient(160deg, rgba(8, 32, 16, 0.58) 0%, rgba(16, 48, 24, 0.5) 50%, rgba(6, 20, 10, 0.6) 100%);
    box-shadow:
        inset 1px 1px 0 rgba(200, 255, 210, 0.35),
        inset -2px -2px 0 rgba(20, 60, 30, 0.45),
        inset 0 -10px 18px rgba(0, 0, 0, 0.35),
        inset 0 0 36px rgba(255, 193, 7, 0.1),
        0 1px 0 #ffe082,
        0 2px 0 #558b2f,
        0 6px 14px rgba(0, 0, 0, 0.48),
        0 14px 28px rgba(0, 0, 0, 0.38),
        0 0 22px rgba(129, 199, 132, 0.18);
}
[data-brand="panda-king"] .p-stat-slot .p-stat-label,
[data-brand="panda-king"] .p-stat-gold .p-stat-label,
[data-brand="panda-king"] .p-stat-invested .p-stat-label {
    color: #c8e6c9;
}
[data-brand="panda-king"] .p-stat-val-gold {
    color: #ffd54f;
    text-shadow: 0 0 8px rgba(255, 213, 79, 0.45);
}
[data-brand="panda-king"] .p-stat-day.pos {
    color: #b9f6ca;
}
[data-brand="panda-king"] .p-stat-day.neg {
    color: #ffab91;
}
[data-brand="panda-king"] .slot-marquee-item {
    color: #ffe082;
    text-shadow: 0 0 8px rgba(255, 224, 130, 0.45);
}
[data-brand="panda-king"] .slot-sign,
[data-brand="panda-king"] .slot-currency,
[data-brand="panda-king"] .slot-comma,
[data-brand="panda-king"] .slot-decimals {
    align-self: center;
    margin-bottom: 0;
}
[data-brand="panda-king"] .slot-decimals {
    align-items: center;
}
[data-brand="panda-king"] .slot-reel {
    align-items: stretch;
}
[data-brand="panda-king"] .slot-digit-col {
    display: flex;
    flex-direction: column;
}
[data-brand="panda-king"] .slot-digit {
    transform: translateY(var(--slot-digit-y-nudge, 0px));
    line-height: 1;
}
[data-brand="panda-king"] .p-stat-slot-wrap {
    --slot-fit-default: 1.02;
}
[data-brand="panda-king"] .portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .p-stat-slot-wrap {
    --slot-ganesh-base: 210px;
    --slot-side-pad-base: 168px;
    --slot-ganesh-w: calc(var(--slot-ganesh-base) * var(--slot-mascot-scale, 1) * var(--slot-mascot-size, 0.8));
    --slot-side-pad: calc(var(--slot-side-pad-base) * var(--slot-mascot-scale, 1));
    overflow: visible;
}
[data-brand="india"] .portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .p-stat-slot-wrap {
    --slot-ganesh-base: 210px;
    --slot-side-pad-base: 168px;
    --slot-ganesh-w: calc(var(--slot-ganesh-base) * var(--slot-mascot-scale, 1) * var(--slot-mascot-size, 0.8));
    --slot-side-pad: calc(var(--slot-side-pad-base) * var(--slot-mascot-scale, 1));
    --slot-diya-left: 66px;
    --slot-diya-right: 66px;
    overflow: visible;
}
[data-brand="india"] .portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .slot-mascot-stack-left {
    left: calc(
        var(--slot-diya-left, 66px) + var(--slot-diya-size, 38px) / 2 - var(--slot-ganesh-w, 115.2px) / 2
        + 4px * var(--slot-fit, 1)
    );
}
[data-brand="india"] .portfolio-banner.portfolio-bling:not(:fullscreen):not(.portfolio-fullscreen) .slot-mascot-stack-right {
    right: calc(
        var(--slot-diya-right, 66px) + var(--slot-diya-size, 38px) / 2 - var(--slot-ganesh-w, 115.2px) / 2
        + 4px * var(--slot-fit, 1)
    );
}
[data-brand="panda-king"] .p-stat-slot .slot-machine {
    width: 100%;
    max-width: 100%;
}
[data-brand="panda-king"] .slot-machine-face {
    align-items: center;
    overflow: visible;
}
[data-brand="panda-king"] .slot-machine-value-row {
    justify-content: center;
    margin-inline: auto;
    max-width: 100%;
}
@keyframes panda-body-life {
    0%, 100% { transform: scale(1) translateY(0) rotate(0deg); }
    3% { transform: scale(1.16) translateY(-26px) rotate(0deg); }
    6% { transform: scale(0.94) translateY(8px) rotate(0deg); }
    9% { transform: scale(1.08) translateY(-14px) rotate(-4.5deg); }
    12% { transform: scale(1.05) translateY(-8px) rotate(4.5deg); }
    15% { transform: scale(1.02) translateY(-3px) rotate(-2deg); }
    18% { transform: scale(1) translateY(0) rotate(0deg); }
    32% { transform: scale(1.018, 1.028) translateY(-2px) rotate(0.35deg); }
    48% { transform: scale(0.992, 0.986) translateY(1px) rotate(-0.25deg); }
    64% { transform: scale(1.012, 1.02) translateY(-1px) rotate(0.2deg); }
    80% { transform: scale(1) translateY(0) rotate(0deg); }
}@keyframes panda-logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.35));
    }
    45% {
        transform: scale(1.085);
        filter: drop-shadow(0 0 14px rgba(255, 215, 64, 0.75));
    }
    70% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.55));
    }
}@keyframes mascot-bull-shake {
    0%, 100% { transform: scale(1) translate(0, 0) rotate(0deg); }
    12% { transform: scale(1) translate(-4px, 2px) rotate(-0.8deg); }
    25% { transform: scale(1) translate(4px, -3px) rotate(0.8deg); }
    37% { transform: scale(1) translate(-3px, -2px) rotate(-0.5deg); }
    50% { transform: scale(1) translate(3px, 3px) rotate(0.6deg); }
    62% { transform: scale(1) translate(-4px, 1px) rotate(-0.7deg); }
    75% { transform: scale(1) translate(4px, -2px) rotate(0.7deg); }
    87% { transform: scale(1) translate(-2px, 2px) rotate(-0.4deg); }
}@keyframes mascot-bear-shake {
    0%, 100% { transform: scale(1) translate(0, 0) rotate(0deg); }
    12% { transform: scale(1) translate(4px, -2px) rotate(0.8deg); }
    25% { transform: scale(1) translate(-4px, 3px) rotate(-0.8deg); }
    37% { transform: scale(1) translate(3px, 2px) rotate(0.5deg); }
    50% { transform: scale(1) translate(-3px, -3px) rotate(-0.6deg); }
    62% { transform: scale(1) translate(4px, -1px) rotate(0.7deg); }
    75% { transform: scale(1) translate(-4px, 2px) rotate(-0.7deg); }
    87% { transform: scale(1) translate(2px, -2px) rotate(0.4deg); }
}@keyframes mascot-bull-shake-fs {
    0%, 100% { transform: scale(1.08) translate(0, 0) rotate(0deg); }
    12% { transform: scale(1.08) translate(-5px, 3px) rotate(-0.8deg); }
    25% { transform: scale(1.08) translate(5px, -4px) rotate(0.8deg); }
    37% { transform: scale(1.08) translate(-4px, -3px) rotate(-0.5deg); }
    50% { transform: scale(1.08) translate(4px, 4px) rotate(0.6deg); }
    62% { transform: scale(1.08) translate(-5px, 2px) rotate(-0.7deg); }
    75% { transform: scale(1.08) translate(5px, -3px) rotate(0.7deg); }
    87% { transform: scale(1.08) translate(-3px, 3px) rotate(-0.4deg); }
}@keyframes mascot-bear-shake-fs {
    0%, 100% { transform: scale(1.08) translate(0, 0) rotate(0deg); }
    12% { transform: scale(1.08) translate(5px, -3px) rotate(0.8deg); }
    25% { transform: scale(1.08) translate(-5px, 4px) rotate(-0.8deg); }
    37% { transform: scale(1.08) translate(4px, 3px) rotate(0.5deg); }
    50% { transform: scale(1.08) translate(-4px, -4px) rotate(-0.6deg); }
    62% { transform: scale(1.08) translate(5px, -2px) rotate(0.7deg); }
    75% { transform: scale(1.08) translate(-5px, 3px) rotate(-0.7deg); }
    87% { transform: scale(1.08) translate(3px, -3px) rotate(0.4deg); }
}[data-brand="panda-king"] .slot-mascot-stack {
    --slot-mascot-h: calc(var(--slot-ganesh-w, 210px) * 0.966);
    --slot-mascot-aspect: 543 / 560;
    bottom: calc(18px * var(--slot-fit, 1));
    width: calc(var(--slot-mascot-h) * var(--slot-mascot-aspect));
    height: var(--slot-mascot-h);
    z-index: 24;
    overflow: visible;
}
[data-brand="panda-king"] .slot-mascot-stack-left {
    left: calc(
        max(0px, (var(--slot-side-pad, 178px) - var(--slot-mascot-h) * var(--slot-mascot-aspect)) / 2)
        - 14px * var(--slot-fit, 1)
    );
}
[data-brand="panda-king"] .slot-mascot-stack-right {
    right: calc(
        max(0px, (var(--slot-side-pad, 178px) - var(--slot-mascot-h) * var(--slot-mascot-aspect)) / 2)
        - 14px * var(--slot-fit, 1)
    );
}
[data-brand="panda-king"] .slot-mascot-stack .slot-ganesh-badge {
    width: auto;
    height: var(--slot-ganesh-w, 190px);
    max-width: none;
    background-position: bottom center;
}
[data-brand="panda-king"] .slot-panda-logo {
    z-index: 0;
    inset: unset;
    top: -18%;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-position: top center;
    transform-origin: center top;
    opacity: 0.96;
    animation: panda-logo-pulse 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
[data-brand="panda-king"] .slot-panda-ground {
    z-index: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}
[data-brand="panda-king"] .slot-panda-body-wrap {
    z-index: 3;
}
[data-brand="panda-king"] .slot-panda-body {
    z-index: 3;
    transform-origin: bottom center;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
    animation: panda-body-life 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
[data-brand="panda-king"] .slot-mascot-stack-left .slot-panda-body {
    animation-delay: -2.4s;
}
[data-brand="panda-king"] .slot-mascot-stack-right .slot-panda-body {
    animation-delay: -5.8s;
}
[data-brand="panda-king"] .slot-mascot-stack-left .slot-panda-logo {
    animation-delay: -0.9s;
}
@media (prefers-reduced-motion: reduce) {[data-brand="panda-king"] .slot-panda-body,
    [data-brand="panda-king"] .slot-panda-logo,
    [data-brand="panda-king"] .slot-bull-mascot,
    [data-brand="panda-king"] .slot-bear-mascot {
        animation: none !important;
    }
}[data-brand="panda-king"] .portfolio-fx-overlay {
    --slot-ganesh-w: 210px;
}
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-market-mascot,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-market-mascot {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 150;
    width: auto;
    height: calc(var(--slot-ganesh-w, 181px) * 1.22);
    max-width: min(42vw, 320px);
    object-fit: contain;
    object-position: bottom center;
    bottom: calc(6px * var(--slot-fit, 1));
    transform: scale(0.68);
    transform-origin: bottom center;
    transition:
        opacity 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
[data-brand="panda-king"] .slot-market-mascot.is-visible {
    opacity: 1;
    transform: scale(1);
    will-change: opacity, transform;
}
[data-brand="panda-king"] .slot-market-mascot.is-leaving {
    opacity: 0;
    transform: scale(0.78);
    transition:
        opacity 0.4s ease-in,
        transform 0.4s ease-in;
}
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-bear-mascot,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-bear-mascot {
    left: calc(8px * var(--slot-fit, 1));
    transform-origin: bottom left;
}
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-bull-mascot,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-bull-mascot {
    right: calc(8px * var(--slot-fit, 1));
    transform-origin: bottom right;
}
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-bear-mascot.is-visible,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-bear-mascot.is-visible {
    animation: mascot-bear-shake 0.11s linear infinite;
    filter: drop-shadow(0 0 16px rgba(244, 67, 54, 0.85));
}
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-bull-mascot.is-visible,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-bull-mascot.is-visible {
    animation: mascot-bull-shake 0.11s linear infinite;
    filter: drop-shadow(0 0 16px rgba(76, 175, 80, 0.85));
}
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-bear-mascot.is-leaving,
[data-brand="panda-king"] .portfolio-fx-overlay > .slot-bull-mascot.is-leaving,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-bear-mascot.is-leaving,
[data-brand="panda-king"] .portfolio-bling-panel > .slot-bull-mascot.is-leaving {
    animation: none;
    transform: scale(0.78);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
[data-brand="panda-king"] .slot-machine.positive .slot-digit {
    color: #b9f6ca;
    text-shadow:
        0 0 8px rgba(129, 199, 132, 0.75),
        0 0 16px rgba(76, 175, 80, 0.45);
}
[data-brand="panda-king"] .slot-machine.negative .slot-digit {
    color: #ffab91;
}
[data-brand="panda-king"] .bonus-popup-jackpot {
    background: linear-gradient(180deg, #fffde7 0%, #ffd54f 30%, #ff8f00 68%, #e65100 100%);
    border-color: #ffe082;
}
[data-brand="panda-king"] .bonus-popup-card:not(.bonus-popup-loss):not(.bonus-popup-flat) {
    background: linear-gradient(180deg, #f1f8e9 0%, #aed581 35%, #7cb342 100%);
    border-color: #ffd54f;
}
[data-brand="panda-king"] .coin-rain-banner {
    background: linear-gradient(90deg, rgba(27, 94, 32, 0.95), rgba(183, 28, 28, 0.92), rgba(27, 94, 32, 0.95));
    border-color: #ffd54f;
}
