/* ==================== Global Layout ==================== */
html {
  min-height: 100%;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #252840 100%);
}

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  overscroll-behavior: none;
}

/* Layout Container - Width controlled by body class */
.pageContainer {
    margin: 0 auto 20px auto;
    padding: 15px 20px 20px 20px;
}

/* Layout Modes */
body.layout-narrow .pageContainer {
    max-width: 1300px;
}

body.layout-wide .pageContainer {
    max-width: 1800px;
}

body.layout-fluid .pageContainer {
    max-width: 100%;
}

/* ==================== Navigation ==================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    margin-bottom: 10px;
    padding: 0 4px 0 4px;
}

/* ==================== Navbar Right Group ==================== */

.navRight {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
}

.navUserBlock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.navUser {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.navLogoutForm {
    margin: 0;
    display: inline-flex;
}

.navLogout {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 5px 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navLogout:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* ==================== Language Switcher ==================== */

.langSwitcher {
    display: flex;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.langBtn {
    padding: 7px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    letter-spacing: 1.5px;
    user-select: none;
}

.langBtn:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.langBtn--active {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.homeIcon {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
}

.homeIcon img {
    flex: 0 0 auto;
}

.defaultIcon {
    width: 16px;
    height: 16px;
}

.navTitle {
    padding-top: 2px;
    font-size: 16px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.noLinkStyle {
    color: inherit;
    text-decoration: none;
}

/* ==================== Title ==================== */

.titleSection {
    margin-bottom: 40px;
    padding: 35px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, #2a3a7a, #141733);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.titleTitle {
    font-size: 28px;
    font-weight: 650;
    margin-bottom: 20px;
    text-align: center;
}

/* Grid-based layout for match_coupons */
.titleTeams {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    column-gap: 20px;
    margin-bottom: 25px;
    align-items: end;
    justify-content: center;
    justify-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.titleTeams .vsBlock {
    margin: 0;
}

.teamBlock {
    display: flex;
    flex-direction: column;
}

.teamName {
    font-size: 32px;
    font-weight: 600;
}

.teamSide {
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.radiantSide {
    color: #63ff9c;
}

.direSide {
    color: #ff5c5c;
}

/* Text-shadow applied only to winning team */
.radiantSide.winner {
    text-shadow:
        0 0 8px rgba(99,255,156,0.45),
        0 0 14px rgba(99,255,156,0.25);
}


.direSide.winner {
    text-shadow:
        0 0 15px rgba(255,92,92,0.7),
        0 0 25px rgba(255,92,92,0.4);
}

.vsBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 24px;
    font-weight: 600;
    opacity: 0.8;
    margin: 0 16px;
}

/* Grid-based layout variant for match_details */
.titleSection--grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) auto minmax(0, 340px);
    grid-template-rows: auto auto;
    column-gap: 15px;
    row-gap: 10px;
    align-items: end;
    justify-content: center;
    justify-items: center;
}

.titleSection--grid .teamBlock {
    width: auto;
    min-width: 0;
}

.titleSection--grid .teamName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.titleSection--grid .vsBlock {
    grid-column: 2;
    margin: 0;
}

.titleSection--grid .heroStatBox {
    width: 100%;
    max-width: 220px;
}

/* ==================== Statistic Boxes ==================== */

.heroStatsRow {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

.heroStatBox {
    background: rgba(255,255,255,0.06);
    padding: 14px 20px;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.statLabel {
    font-size: 13px;
    opacity: 0.65;
    margin-bottom: 4px;
}

.statValue {
    font-size: 18px;
    font-weight: 600;
}

.winnerValue {
    color: #ffd966;
}

/* ==================== Card Components ==================== */

.plotSection {
    margin-bottom: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.plotCard {
    width: 100%;
    padding: 20px 22px 18px 22px;
    border-radius: 16px;
    background: rgba(10, 12, 32, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.plotTitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.plotDescription {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.plotCurrentValues + .plotWrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 16px;
}

.plotWrapper + .plotDescription {
    margin-top: 12px;
    margin-bottom: 0;
}

.sectionDivider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08) 70%, transparent);
    margin: 24px 0 20px;
}

/* ==================== Chart Current Values ==================== */

.plotCurrentValues {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.plotCurrentLabel {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.analyticsModelLabel {
    min-width: 160px;
}

.analyticsStatsContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

/* ==================== Chart Badges ==================== */

.plotBadges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.plotBadge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.plotBadge--pos {
    background: rgba(99, 255, 156, 0.15);
    color: rgb(99, 255, 156);
}

.plotBadge--neg {
    background: rgba(255, 92, 92, 0.15);
    color: rgb(255, 92, 92);
}

.plotBadge--time {
    background: rgba(80, 180, 255, 0.12);
    color: rgba(80, 180, 255, 0.8);
}

.plotWrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
}

.plotWrapper--scroll {
    justify-content: flex-start;
}

/* ==================== Live Badge ==================== */

.liveBadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 11px;
    background: rgba(99, 255, 156, 0.10);
    border: 1px solid rgba(99, 255, 156, 0.22);
    color: #63ff9c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1;
}

.liveDot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #63ff9c;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(99, 255, 156, 0.6);
    animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
    0% {
        box-shadow:
            0 0 4px rgba(99, 255, 156, 0.6),
            0 0 0 0 rgba(255, 80, 80, 0.6);
    }
    70% {
        box-shadow:
            0 0 4px rgba(99, 255, 156, 0.6),
            0 0 0 6px rgba(255, 80, 80, 0);
    }
    100% {
        box-shadow:
            0 0 4px rgba(99, 255, 156, 0.6),
            0 0 0 0 rgba(255, 80, 80, 0);
    }
}

/* ==================== Tables ==================== */

.statsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 10px;
}

.statsTable th,
.statsTable td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.statsTable thead th {
    padding: 10px 6px;
    color: #ffffff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.statsTable th:first-child,
.statsTable td:first-child {
    text-align: left;
}

.statsTable th:not(:first-child),
.statsTable td:not(:first-child) {
    text-align: right;
}

.statsTable tr:hover {
    background: rgba(255,255,255,0.04);
}

.statsCategory {
    font-weight: 500;
    color: #ffffff;
}

.statsTable--compact th,
.statsTable--compact td {
    padding: 5px 6px;
    font-size: 12px;
}

.thLine--center {
    background: rgba(255, 215, 0, 0.08);
    font-weight: 600;
}

.scrollableTable {
    max-height: 235px;
    overflow-y: auto;
}

.scrollableTable .statsTable thead th {
    position: sticky;
    top: 0;
}

/* ==================== Odds Highlight ==================== */

.heroStatBox--oddsHighlight {
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25), 0 4px 14px rgba(0,0,0,0.3);
}

/* ==================== Strategy Title ==================== */

.strategyVersion {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 215, 0, 0.7);
    margin-left: 8px;
    letter-spacing: 0.5px;
}

/* ==================== Strategy Team Cards ==================== */

.strategyTeamCards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
}

.strategyTeamCard {
    background: linear-gradient(145deg, rgba(18, 20, 45, 0.95), rgba(10, 12, 32, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-left: 4px solid #ffd700;
    border-radius: 14px;
    padding: 10px 10px;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.08),
        0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strategyTeamCard__header {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.strategyTeamCard__oddsBlock {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.strategyTeamCard__oddsRow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oddsChange {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    animation: oddsChangeFade 0.4s ease;
}

.oddsChange__arrow {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.oddsChange__prev {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.85;
    white-space: nowrap;
}

.oddsChange--up .oddsChange__arrow,
.oddsChange--up .oddsChange__prev {
    color: #4caf50;
}

.oddsChange--down .oddsChange__arrow,
.oddsChange--down .oddsChange__prev {
    color: #ef5350;
}

@keyframes oddsChangeFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.strategyTeamCard__oddsLabel {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.6);
}

.strategyTeamCard__oddsValue {
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.strategyTeamCard__divider {
    height: 1px;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.3), transparent);
}

.strategyTeamCard__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strategyTeamCard__stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.strategyTeamCard__statLabel {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.strategyTeamCard__statValue {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.strategyTeamCard__statValue--ratio {
    color: #ffd700;
    font-size: 12px;
}

@media (max-width: 700px) {
    .strategyTeamCards {
        grid-template-columns: 1fr;
    }
}

/* ==================== Team Colors ==================== */

.green {
    color: #63ff9c;
}

.red {
    color: #ff5c5c;
}

/* ==================== Bokeh Chart Alignment ==================== */

.bk-root {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==================== Page Navigation ==================== */

.pageNav {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 6px 0;
}

.pageNav__item--active {
    font-size: 22px;
    font-weight: 650;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.pageNav__sep {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.pageNav__item--link {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.3px;
    transition: color 0.15s;
}

.pageNav__item--link:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* ==================== Section Titles ==================== */

.sectionTitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #ffffff;
}

/* ==================== Grid Layouts ==================== */

.chartsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.chartsGrid .plotSection {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

/* Grid children need min-width: 0 to prevent overflow */
.chartsGrid > * {
    min-width: 0;
}

/* ==================== Light Surface (Dashboard) ==================== */

.surfaceLight {
    color: #212529;
}

.surfaceLight a {
    color: #007bff;
    text-decoration: none;
}

.surfaceLight a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.surfaceLight p,
.surfaceLight span,
.surfaceLight div {
    color: inherit;
}

/* ==================== Bokeh Overflow Fix ==================== */

.plotWrapper .bk-root,
.plotWrapper .bk-root canvas {
    max-width: 100% !important;
}

/* ==================== Responsive ==================== */

@media (max-width: 1200px) {
    .chartsGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .titleSection--grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 15px;
    }

    .titleSection--grid .vsBlock {
        grid-column: 1;
    }

    .titleSection--grid .teamBlock,
    .titleSection--grid .heroStatBox {
        max-width: 100%;
    }

    .titleTeams {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .titleTitle {
        font-size: 26px;
    }

    .teamName {
        font-size: 26px;
    }

    .pageContainer {
        padding: 10px 15px 40px 15px;
    }
}

@media (max-width: 480px) {
    .pageContainer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar {
        gap: 8px;
        padding-left: 0;
        padding-right: 0;
    }

    .homeIcon {
        gap: 6px;
    }

    .navTitle {
        font-size: 14px;
    }

    .navRight {
        gap: 6px;
        min-width: 0;
    }

    .langSwitcher {
        padding: 2px;
        border-radius: 10px;
    }

    .langBtn {
        padding: 6px 10px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .navUserBlock {
        gap: 6px;
        padding: 4px 8px;
    }

    .navUser {
        max-width: 82px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navLogout {
        padding: 4px 6px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
}

/* ==================== Line Bets Control ==================== */

/* Hide all odds elements when line bets are disabled.
   visibility:hidden keeps table layout stable (no column collapse). */
.line-bets-hidden [data-odds] {
    visibility: hidden;
}

.lineBetsBanner {
    width: 100%;
    background-color: #b85c00;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.lineBetsBanner--card {
    position: static;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 12px;
}

.heroStatBox--action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lineBetsBtn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.lineBetsBtn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.lineBetsBtn:active {
    transform: translateY(0);
}

.lineBetsBtn--stop {
    background: #c0392b;
    color: #fff;
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.4);
}

.lineBetsBtn--start {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
}

/* Modal */
.lineBetsModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lineBetsModal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.lineBetsModal__dialog {
    position: relative;
    background: #1e2240;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lineBetsModal__text {
    font-size: 15px;
    color: #e0e0e0;
    margin: 0 0 20px;
    line-height: 1.5;
}

.lineBetsModal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.lineBetsModal__btn {
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.lineBetsModal__btn:hover {
    opacity: 0.85;
}

.lineBetsModal__btn--confirm {
    background: #c0392b;
    color: #fff;
}

.lineBetsModal__btn--cancel {
    background: rgba(255,255,255,0.12);
    color: #e0e0e0;
}

/* History interval selector */
.historyIntervalSelector {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.historyIntervalBtn {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    background: transparent;
    color: #9aa6c4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.historyIntervalBtn:hover {
    background: rgba(255,255,255,0.08);
    color: #e2e8f5;
}

.historyIntervalBtn.active {
    background: rgba(100,120,200,0.25);
    border-color: rgba(100,120,200,0.6);
    color: #e2e8f5;
}

/* ==================== Series statistics ==================== */

.seriesMatchData {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.seriesStatTable--summary {
    font-size: 16px;
    color: #d0d4ff !important;
    border: none;
    padding-top: 20px;
    text-align: right;
}

@media (max-width: 768px) {
    .pageHeader {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pageActions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }

    .pageNav {
        font-size: 13px;
        gap: 6px;
    }

    .pageTitle__sub {
        font-size: 11px;
    }
}

/* ==================== Login Page ==================== */

.loginPage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.loginCard {
    width: 100%;
    max-width: 380px;
    padding: 36px 32px;
    border-radius: 16px;
    background: rgba(10, 12, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.loginTitle {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.loginError {
    background: rgba(255, 92, 92, 0.12);
    border: 1px solid rgba(255, 92, 92, 0.35);
    color: #ff8a8a;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
}

.loginField {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.loginLabel {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.loginField input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.loginField input:focus {
    outline: none;
    border-color: rgba(100, 130, 230, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.loginSubmit {
    margin-top: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(160deg, #4a5fc4 0%, #2c3a85 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.loginSubmit:hover {
    opacity: 0.92;
}

.loginSubmit:active {
    transform: translateY(1px);
}

/* Global-level error toast (bottom-right). */
.pageToast {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #2a1a00;
    border: 1px solid #b85c00;
    color: #ffb347;
    padding: 16px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.pageToast__msg {
    flex: 1;
}

.pageToast__close {
    background: none;
    border: none;
    color: #ffb347;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.pageToast__close:hover {
    opacity: 1;
}

/* ==================== GLOBAL SCROLLBAR ==================== */

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background:  #252840;
}

html::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==================== Buttons ==================== */

.blueBtn {
    padding: 4px 10px;
    background: rgba(76, 125, 255, 0.12);
    color: #6ea8ff !important;
    border: 1px solid rgba(76, 125, 255, 0.45);
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.blueBtn:hover {
    background: rgba(76, 125, 255, 0.18);
    border-color: #5f9bff;
    color: #9cc2ff !important;
    box-shadow:
            0 0 6px rgba(76, 125, 255, 0.35),
            inset 0 0 6px rgba(76, 125, 255, 0.25);
}

/* ==================== Info Tooltip ==================== */
.infoWrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.infoIcon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    cursor: pointer;
}

.infoWrapper:hover .plotTooltip {
    opacity: 1;
    transform: translateY(0);
}
.infoWrapper.active .plotTooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.plotTooltip {
    position: absolute;
    top: 130%;
    left: 0;
    width: 260px;
    padding: 10px;
    background: rgba(10, 12, 32, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #ccc;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 100;
}
