/* =========================================================
   MockVest Market Games — IntraX Trading Hub
   Slick & slim, matching the provided image
   ========================================================= */

:root {
    --mv-game-purple: #7c3aed;
    --mv-game-purple-dark: #6d28d9;
    --mv-game-purple-light: #a78bfa;
    --mv-game-black: #111114;
    --mv-game-white: #ffffff;
    --mv-game-text: #151519;
    --mv-game-text-muted: #777780;
    --mv-game-text-subtle: #8d8d98;
    --mv-game-surface: #f5f5f7;
    --mv-game-surface-white: #ffffff;
    --mv-game-border: #e7e7eb;
    --mv-game-border-light: #e8e8ec;
    --mv-game-border-medium: #e2e2e7;
    --mv-game-radius: 22px;
    --mv-game-radius-small: 12px;
    --mv-game-radius-mobile: 16px;
    --mv-game-purple-shadow: 0 15px 35px rgba(124, 58, 237, 0.35);
    --mv-game-negative: #ef4444;
    --mv-game-positive: #22c55e;
    --mv-game-letter-tight: -0.045em;
    --mv-game-letter-wide: 0.14em;
}

/* Reset & base */
#mv-intrax-trading-hub,
#mv-intrax-trading-hub *,
#mv-intrax-trading-hub *::before,
#mv-intrax-trading-hub *::after {
    box-sizing: border-box;
}

#mv-intrax-trading-hub {
    width: 100%;
    /*max-width: 1280px;*/
    margin: 0 auto;
    padding: 28px 32px;
    background: #f0f1f5;
    color: var(--mv-game-text);
}

/* Hidden attribute safety */
#mv-intrax-trading-hub [hidden] {
    display: none !important;
}

/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */

.mv-intrax-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mv-intrax-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
}

.mv-intrax-left-col,
.mv-intrax-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.mv-intrax-desk-hero {
    position: relative;
    padding: 36px 40px 32px;
    border-radius: var(--mv-game-radius);
    background: linear-gradient(135deg, #0f0a1f 0%, #1a1035 50%, #2d1b69 100%);
    color: #ffffff;
    overflow: hidden;
}

.mv-intrax-desk-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
    pointer-events: none;
}

.mv-intrax-desk-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0 150 Q150 120 300 140 T600 100 T900 130 T1200 90' stroke='rgba(167,139,250,0.3)' stroke-width='2' fill='none'/%3E%3Cpath d='M0 170 Q200 140 400 160 T800 120 T1200 140' stroke='rgba(167,139,250,0.15)' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat bottom/cover;
    pointer-events: none;
}

.mv-intrax-desk-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.mv-intrax-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
}

.mv-intrax-eyebrow::after {
    content: "";
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.mv-intrax-performance-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mv-intrax-performance-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.mv-intrax-desk-heading {
    position: relative;
    z-index: 1;
}

.mv-intrax-desk-heading h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.mv-intrax-desk-heading p {
    margin: 8px 0 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.mv-intrax-desk-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.mv-intrax-desk-date strong {
    color: #ffffff;
    font-weight: 700;
}

.mv-intrax-desk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

/* =========================================================
   ACCOUNT SUMMARY STRIP
   ========================================================= */

.mv-intrax-desk-summary {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    padding: 24px 32px;
    border-radius: var(--mv-game-radius);
    background: #ffffff;
    border: 1px solid var(--mv-game-border);
}

.mv-intrax-desk-balance,
.mv-intrax-desk-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 28px;
    border-right: 1px solid var(--mv-game-border);
}

.mv-intrax-desk-balance {
    padding-left: 0;
}

.mv-intrax-desk-metric:last-child {
    border-right: 0;
    padding-right: 0;
}

.mv-intrax-desk-balance > span,
.mv-intrax-desk-metric > span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-desk-balance strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--mv-game-text);
}

.mv-intrax-desk-metric strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mv-game-text);
}

.mv-intrax-desk-balance small,
.mv-intrax-desk-metric small {
    font-size: 12px;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-buy-progress {
    width: 100%;
    max-width: 140px;
    height: 6px;
    border-radius: 999px;
    background: #ede9fe;
    overflow: hidden;
    margin-top: 2px;
}

.mv-intrax-buy-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    transition: width 0.4s ease;
}

/* =========================================================
   CARDS (Search / Trade / Portfolio)
   ========================================================= */

.mv-intrax-stock-section,
.mv-intrax-trade-panel,
.mv-intrax-portfolio {
    padding: 24px;
    border-radius: var(--mv-game-radius);
    background: #ffffff;
    border: 1px solid var(--mv-game-border);
}

.mv-intrax-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mv-intrax-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--mv-game-text);
}

.mv-intrax-section-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--mv-game-text-muted);
}

/* =========================================================
   STOCK SEARCH
   ========================================================= */

.mv-intrax-stock-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mv-intrax-search-icon {
    position: absolute;
    left: 16px;
    display: flex;
    color: var(--mv-game-purple);
    pointer-events: none;
}

.mv-intrax-stock-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px 0 46px;
    border: 1.5px solid var(--mv-game-purple-light);
    border-radius: 999px;
    background: #faf8ff;
    color: var(--mv-game-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mv-intrax-stock-search input::placeholder {
    font-weight: 500;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-stock-search input:focus {
    outline: none;
    border-color: var(--mv-game-purple);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* Search Results */
.mv-intrax-stock-search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}

/*
 * Flex row: name on the left, price pushed to the far right.
 * Works whether or not the optional icon / change pill is present.
 */
.mv-intrax-stock-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--mv-game-radius-small);
    background: #ffffff;
    color: var(--mv-game-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mv-intrax-stock-result:hover,
.mv-intrax-stock-result:focus-visible {
    outline: none;
    background: #f7f3ff;
    border-color: #e9d5ff;
}

.mv-intrax-stock-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f3ff;
    flex-shrink: 0;
}

.mv-intrax-stock-result-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.mv-intrax-stock-symbol {
    font-size: 13px;
    font-weight: 800;
    color: var(--mv-game-text);
}

.mv-intrax-stock-company {
    font-size: 12px;
    color: var(--mv-game-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-intrax-stock-result-price {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--mv-game-text);
    white-space: nowrap;
}

.mv-intrax-stock-result-change {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    white-space: nowrap;
}

.mv-intrax-stock-result-change.is-positive {
    color: #16a34a;
    background: #f0fdf4;
}

.mv-intrax-stock-result-change.is-negative {
    color: #dc2626;
    background: #fef2f2;
}

/* Search messages */
.mv-intrax-search-message {
    padding: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--mv-game-text-subtle);
}

/* =========================================================
   TRADE PANEL
   ========================================================= */

.mv-intrax-trade-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1.5px solid var(--mv-game-purple-light);
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
}

.mv-intrax-selected-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mv-game-border-light);
}

.mv-intrax-selected-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mv-intrax-selected-icon {
    display: flex;
    flex-shrink: 0;
}

#mv-intrax-selected-symbol {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mv-game-text);
}

#mv-intrax-selected-company {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--mv-game-text-muted);
}

.mv-intrax-selected-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.mv-intrax-selected-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mv-intrax-selected-price strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mv-game-text);
}

.mv-intrax-selected-change {
    font-size: 12px;
    font-weight: 700;
}

.mv-intrax-selected-change.is-positive {
    color: #16a34a;
}

.mv-intrax-selected-change.is-negative {
    color: #dc2626;
}

.mv-intrax-mini-chart {
    display: flex;
    align-items: center;
}

.mv-intrax-external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--mv-game-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--mv-game-text-muted);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mv-intrax-external-link:hover {
    border-color: var(--mv-game-purple);
    color: var(--mv-game-purple);
    background: #faf8ff;
}

/* Order row */
.mv-intrax-order-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.mv-intrax-order-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mv-intrax-order-input label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-quantity-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--mv-game-border);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mv-intrax-quantity-control:focus-within {
    border-color: var(--mv-game-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.mv-intrax-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--mv-game-text);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mv-intrax-qty-btn:hover {
    background: #f5f3ff;
    color: var(--mv-game-purple);
}

.mv-intrax-quantity-control input {
    flex: 1;
    width: 100%;
    min-height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mv-game-text);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}

.mv-intrax-quantity-control input::-webkit-outer-spin-button,
.mv-intrax-quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mv-intrax-quantity-control input:focus {
    outline: none;
}

.mv-intrax-order-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #f5f3ff;
}

.mv-intrax-order-value span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mv-game-purple-dark);
}

.mv-intrax-order-value strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mv-game-text);
}

/* Trade buttons */
.mv-intrax-trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mv-intrax-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--mv-game-black);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mv-intrax-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.mv-intrax-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.mv-intrax-button:disabled {
    cursor: not-allowed;
    background: #e8e8eb;
    color: #a0a0a8;
    box-shadow: none;
    transform: none;
}

.mv-intrax-buy-button {
    background: #22c55e;
    color: #ffffff;
}

.mv-intrax-buy-button:not(:disabled):hover {
    background: #16a34a;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35);
}

.mv-intrax-sell-button {
    background: #ef4444;
    color: #ffffff;
}

.mv-intrax-sell-button:not(:disabled):hover {
    background: #dc2626;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
}

.mv-intrax-trade-panel .mv-intrax-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-trade-panel .mv-intrax-note svg {
    flex-shrink: 0;
    color: var(--mv-game-purple);
}

/* =========================================================
   OPEN POSITIONS — header / meta
   ========================================================= */

.mv-intrax-portfolio-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#mv-intrax-portfolio-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f3edff;
    font-size: 12px;
    font-weight: 700;
    color: var(--mv-game-purple-dark);
    white-space: nowrap;
}

.mv-intrax-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: mv-intrax-pulse 2s ease-in-out infinite;
}

@keyframes mv-intrax-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.mv-intrax-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--mv-game-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mv-game-text-muted);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.mv-intrax-refresh-btn:hover {
    border-color: var(--mv-game-purple);
    color: var(--mv-game-purple);
}

/* =========================================================
   OPEN POSITIONS — summary
   Overall P&L is the hero. The other four stats sit in a
   slim, flat strip underneath it.
   ========================================================= */

.mv-intrax-portfolio-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 8px;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

/* Slim stats strip (Invested / Market / Realized / Unrealized) */
.mv-intrax-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px 0 4px 18px;
    border-right: 0;
    border-left: 1px solid var(--mv-game-border);
    background: transparent;
    min-width: 0;
}

.mv-intrax-stat:nth-child(1) {
    padding-left: 0;
    border-left: 0;
}

.mv-intrax-stat span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-stat strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--mv-game-text);
    white-space: nowrap;
}

.mv-intrax-stat strong.is-positive {
    color: #16a34a;
}

.mv-intrax-stat strong.is-negative {
    color: #dc2626;
}

/* Hero: Overall P&L */
.mv-intrax-overall-stat,
.mv-intrax-stat.mv-intrax-overall-stat {
    position: relative;
    grid-column: 1 / -1;
    order: -1;
    gap: 8px;
    margin-bottom: 18px;
    padding: 26px 30px 28px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f0a1f 0%, #1a1035 55%, #2d1b69 100%);
    overflow: hidden;
}

.mv-intrax-overall-stat::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 70%);
    pointer-events: none;
}

.mv-intrax-overall-stat::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 55%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 80 Q80 60 150 70 T300 45 T450 62 T600 30' stroke='rgba(167,139,250,0.35)' stroke-width='2' fill='none'/%3E%3Cpath d='M0 92 Q120 72 240 84 T480 60 T600 70' stroke='rgba(167,139,250,0.15)' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
    pointer-events: none;
}

.mv-intrax-overall-stat span,
.mv-intrax-overall-stat strong {
    position: relative;
    z-index: 1;
}

.mv-intrax-overall-stat span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.6);
}

.mv-intrax-overall-stat span::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.mv-intrax-overall-stat strong {
    font-size: 48px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
}

/* Brighter greens / reds so they read on the dark hero */
.mv-intrax-overall-stat strong.is-positive {
    color: #4ade80 !important;
    text-shadow: 0 0 36px rgba(74, 222, 128, 0.35);
}

.mv-intrax-overall-stat strong.is-negative {
    color: #fb7185 !important;
    text-shadow: 0 0 36px rgba(251, 113, 133, 0.35);
}

/* =========================================================
   OPEN POSITIONS — holdings ledger
   Flat rows, no cards: a coloured marker, name on the left,
   big P&L on the right, and a slim stat line underneath.
   ========================================================= */

.mv-intrax-portfolio-holdings {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.mv-intrax-portfolio-holding {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 8px 18px 22px;
    border: 0;
    border-bottom: 1px dashed var(--mv-game-border-medium);
    background: transparent;
    transition: background 0.2s ease;
}

.mv-intrax-portfolio-holding:last-child {
    border-bottom: 0;
}

/* Marker bar (neutral by default, coloured by P&L) */
.mv-intrax-portfolio-holding::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 4px;
    height: 30px;
    border-radius: 4px;
    background: var(--mv-game-border-medium);
}

.mv-intrax-portfolio-holding:has(.is-positive)::before {
    background: linear-gradient(180deg, #4ade80, #16a34a);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.45);
}

.mv-intrax-portfolio-holding:has(.is-negative)::before {
    background: linear-gradient(180deg, #fb7185, #dc2626);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.mv-intrax-portfolio-holding:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.06), transparent 65%);
}

/* Top line: identity + P&L */
.mv-intrax-portfolio-holding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mv-intrax-portfolio-holding-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mv-intrax-portfolio-holding-header > div strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mv-game-text);
}

.mv-intrax-portfolio-holding-header > div span {
    font-size: 12px;
    color: var(--mv-game-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-intrax-holding-pnl {
    display: block;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mv-game-surface);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    color: var(--mv-game-text-muted);
}

.mv-intrax-holding-pnl.is-positive {
    background: #f0fdf4;
}

.mv-intrax-holding-pnl.is-negative {
    background: #fef2f2;
}

/* Bottom line: Qty · Avg. Buy · CMP · Invested · Market Value */
.mv-intrax-portfolio-holding-details {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1fr 1.1fr 1.1fr;
    gap: 0;
}

.mv-intrax-portfolio-holding-details > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-left: 14px;
    border-left: 1px solid var(--mv-game-border-light);
}

.mv-intrax-portfolio-holding-details > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.mv-intrax-portfolio-holding-details span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-portfolio-holding-details strong {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--mv-game-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state */
.mv-intrax-portfolio-holdings > p {
    margin: 0;
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
}

.mv-intrax-empty-state p {
    margin: 0;
    font-size: 13px;
    color: var(--mv-game-text-subtle);
}

.mv-intrax-empty-state p strong {
    font-size: 15px;
    color: var(--mv-game-text);
}

/* =========================================================
   MESSAGES
   ========================================================= */

.mv-intrax-stock-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.mv-intrax-stock-message:empty {
    display: none;
}

.mv-intrax-stock-message-info,
.mv-intrax-stock-message-success,
.mv-intrax-stock-message-error {
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
}

.mv-intrax-stock-message-info {
    background: var(--mv-game-surface);
    color: var(--mv-game-text-muted);
}

.mv-intrax-stock-message-success {
    background: #f0fdf4;
    color: #15803d;
}

.mv-intrax-stock-message-error {
    background: #fff5f5;
    color: #dc2626;
}

#mv-intrax-portfolio-message {
    margin-bottom: 12px;
    color: var(--mv-game-text-muted);
}

/* =========================================================
   P&L COLOURS
   ========================================================= */

.is-positive {
    color: #16a34a !important;
}

.is-negative {
    color: #dc2626 !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .mv-intrax-main-grid {
        grid-template-columns: 1fr;
    }

    .mv-intrax-desk-summary {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 20px 24px;
    }

    .mv-intrax-desk-balance,
    .mv-intrax-desk-metric {
        padding: 0 20px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
    #mv-intrax-trading-hub {
        padding: 16px;
    }

    .mv-intrax-desk-hero {
        padding: 28px 24px 24px;
    }

    .mv-intrax-desk-heading h2 {
        font-size: 38px;
    }

    .mv-intrax-desk-summary {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .mv-intrax-desk-balance,
    .mv-intrax-desk-metric {
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--mv-game-border);
    }

    .mv-intrax-desk-balance {
        padding-left: 20px;
    }

    .mv-intrax-desk-metric:last-child {
        border-bottom: 0;
    }

    .mv-intrax-stock-section,
    .mv-intrax-trade-panel,
    .mv-intrax-portfolio {
        padding: 18px;
    }

    /* Summary: hero on top, 2 x 2 stats beneath */
    .mv-intrax-portfolio-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 14px;
    }

    .mv-intrax-overall-stat,
    .mv-intrax-stat.mv-intrax-overall-stat {
        margin-bottom: 4px;
        padding: 22px 22px 24px;
    }

    .mv-intrax-overall-stat strong {
        font-size: 36px;
    }

    .mv-intrax-stat,
    .mv-intrax-stat:nth-child(1) {
        padding-left: 14px;
        border-left: 1px solid var(--mv-game-border);
    }

    .mv-intrax-stat:nth-child(1),
    .mv-intrax-stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    /* Holdings */
    .mv-intrax-portfolio-holding {
        padding-left: 18px;
    }

    .mv-intrax-portfolio-holding-header {
        flex-wrap: wrap;
    }

    .mv-intrax-holding-pnl {
        font-size: 15px;
    }

    .mv-intrax-portfolio-holding-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 12px;
    }

    .mv-intrax-portfolio-holding-details > div:nth-child(1),
    .mv-intrax-portfolio-holding-details > div:nth-child(4) {
        padding-left: 0;
        border-left: 0;
    }

    .mv-intrax-order-row {
        grid-template-columns: 1fr;
    }

    .mv-intrax-trade-buttons {
        grid-template-columns: 1fr;
    }

    .mv-intrax-selected-stock {
        flex-direction: column;
        align-items: flex-start;
    }

    .mv-intrax-selected-right {
        width: 100%;
        justify-content: space-between;
    }

    .mv-intrax-selected-price {
        align-items: flex-start;
    }

    .mv-intrax-portfolio-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* IntraX BUY / SELL result snackbar */

.mv-intrax-toast {
    position: fixed;
    z-index: 999999;
    left: 50%;
    bottom: 24px;

    display: flex;
    align-items: center;
    gap: 12px;

    width: min(440px, calc(100vw - 32px));
    padding: 15px 16px;

    background: #201a35;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    box-shadow: 0 16px 45px rgba(20, 12, 42, 0.3);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 16px);

    transition:
        opacity 220ms ease,
        transform 220ms ease,
        visibility 220ms ease;
}

.mv-intrax-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mv-intrax-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);

    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.mv-intrax-toast-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mv-intrax-toast-content strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.mv-intrax-toast-content > span {
    color: #e0dced;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mv-intrax-toast-close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;

    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #c9c1dc;

    font-size: 22px;
    cursor: pointer;
}

.mv-intrax-toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Success */
.mv-intrax-toast-success .mv-intrax-toast-icon {
    color: #5ce2ad;
    background: rgba(16, 185, 129, 0.18);
}

/* Failure */
.mv-intrax-toast-error .mv-intrax-toast-icon {
    color: #ff8296;
    background: rgba(244, 63, 94, 0.18);
}

/* Informational messages */
.mv-intrax-toast-info .mv-intrax-toast-icon {
    color: #c8b5ff;
    background: rgba(167, 139, 250, 0.18);
}

@media (max-width: 600px) {
    .mv-intrax-toast {
        bottom: max(16px, env(safe-area-inset-bottom));
        width: calc(100vw - 24px);
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-intrax-toast {
        transition: none;
    }

    .mv-intrax-live-dot {
        animation: none;
    }
}
/* =========================================================
   INTRAX — SESSION CLOSED MESSAGE VIEW
   Extends the Trading Hub styles for the "That's a wrap"
   message card.
   ========================================================= */

/* Tighter heading size for message-only hero (no 52px needed) */
.mv-intrax-desk-hero .mv-intrax-desk-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
}

/* Positive / negative colour helpers already exist via
   .is-positive / .is-negative — nothing to add. */

/* Optional: give the P&L metric a slightly bigger number
   since it's the headline result. */
.mv-intrax-desk-metric strong.is-positive,
.mv-intrax-desk-metric strong.is-negative {
    font-size: 24px;
}

/* Optional: keep the empty state visually centred inside
   the section padding — already handled, no change needed. */

/* =========================================================
   INTRAX — GUEST WELCOME CARD
   A standalone invitation card for logged-out visitors.
   Distinct from the trading hub — dark, centred, hero-driven.
   ========================================================= */

.mv-intrax-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    min-height: 60vh;
}

.mv-intrax-guest-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 44px 40px 36px;
    border-radius: 26px;
    background: #0a0a0f;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 55%);
    border: 1px solid rgba(124, 58, 237, 0.22);
    color: #ffffff;
    overflow: hidden;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(124, 58, 237, 0.10);
}

/* Floating glow orbs */
.mv-intrax-guest-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.mv-intrax-guest-glow--one {
    top: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
}

.mv-intrax-guest-glow--two {
    bottom: -160px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 70%);
}

/* Eyebrow */
.mv-intrax-guest-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mv-intrax-guest-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
    animation: mv-intrax-pulse 2s ease-in-out infinite;
}

/* Title */
.mv-intrax-guest-title {
    position: relative;
    z-index: 1;
    margin: 22px 0 14px;
    font-size: clamp(30px, 4.5vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 850;
    color: #ffffff;
}

.mv-intrax-guest-title span {
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sub */
.mv-intrax-guest-sub {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
}

.mv-intrax-guest-sub strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* Stats row */
.mv-intrax-guest-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 28px 0 28px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mv-intrax-guest-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mv-intrax-guest-stat:first-child {
    border-left: 0;
}

.mv-intrax-guest-stat-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.mv-intrax-guest-stat-value {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

/* CTA */
.mv-intrax-guest-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mv-intrax-guest-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #8b4ff0, #7c3aed);
    box-shadow: 0 16px 44px rgba(124, 58, 237, 0.5);
}

.mv-intrax-guest-cta svg {
    transition: transform 0.2s ease;
}

.mv-intrax-guest-cta:hover svg {
    transform: translateX(3px);
}

/* Footnote */
.mv-intrax-guest-note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.5;
}

.mv-intrax-guest-note svg {
    flex: 0 0 14px;
    color: #a78bfa;
}

/* Mobile */
@media (max-width: 520px) {
    .mv-intrax-guest {
        padding: 24px 12px;
    }

    .mv-intrax-guest-card {
        padding: 34px 24px 28px;
        border-radius: 22px;
    }

    .mv-intrax-guest-title {
        font-size: 30px;
    }

    .mv-intrax-guest-stats {
        padding: 18px 0;
        margin: 24px 0 24px;
    }

    .mv-intrax-guest-stat-value {
        font-size: 15px;
    }

    .mv-intrax-guest-stat-label {
        font-size: 8px;
    }
}   

/* =========================================================
   INTRAX — JOIN CHALLENGE CARD (logged-in)
   A distinct pre-session card that invites the player to
   enter today's challenge. Built as a race board.
   ========================================================= */

.mv-intrax-join {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    min-height: 60vh;
}

.mv-intrax-join-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: 36px 40px 32px;
    border-radius: 26px;
    background: #0a0a0f;
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 55%);
    border: 1px solid rgba(124, 58, 237, 0.22);
    color: #ffffff;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(124, 58, 237, 0.10);
}

/* Floating glow orbs */
.mv-intrax-join-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.mv-intrax-join-glow--one {
    top: -150px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
}

.mv-intrax-join-glow--two {
    bottom: -180px;
    left: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 70%);
}

/* Topline */
.mv-intrax-join-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.mv-intrax-join-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mv-intrax-join-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
    animation: mv-intrax-pulse 2s ease-in-out infinite;
}

.mv-intrax-join-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.mv-intrax-join-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
    animation: mv-intrax-pulse 2s ease-in-out infinite;
}

/* Title */
.mv-intrax-join-title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: clamp(30px, 4.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 850;
    color: #ffffff;
}

.mv-intrax-join-title span {
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sub */
.mv-intrax-join-sub {
    position: relative;
    z-index: 1;
    margin: 0 0 26px;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
}

.mv-intrax-join-sub strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* Stat grid */
.mv-intrax-join-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    margin-bottom: 26px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mv-intrax-join-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.mv-intrax-join-stat:first-child {
    border-left: 0;
    padding-left: 0;
}

.mv-intrax-join-stat-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.mv-intrax-join-stat-value {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mv-intrax-join-stat--hero .mv-intrax-join-stat-value {
    font-size: 24px;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mv-intrax-join-stat-note {
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

/* CTA */
.mv-intrax-join-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mv-intrax-join-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #8b4ff0, #7c3aed);
    box-shadow: 0 16px 44px rgba(124, 58, 237, 0.5);
}

.mv-intrax-join-cta:disabled {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    transform: none;
}

.mv-intrax-join-cta svg {
    transition: transform 0.2s ease;
}

.mv-intrax-join-cta:hover:not(:disabled) svg {
    transform: translateX(3px);
}

/* Feedback slot */
.mv-intrax-join-feedback {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.mv-intrax-join-feedback:empty {
    display: none;
}

.mv-intrax-join-feedback.is-error {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.25);
    color: #fb7185;
}

.mv-intrax-join-feedback.is-success {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ade80;
}

/* Footnote */
.mv-intrax-join-note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 16px 0 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.5;
}

.mv-intrax-join-note svg {
    flex: 0 0 14px;
    color: #a78bfa;
}

/* Mobile */
@media (max-width: 560px) {
    .mv-intrax-join {
        padding: 24px 12px;
    }

    .mv-intrax-join-card {
        padding: 28px 22px 24px;
        border-radius: 22px;
    }

    .mv-intrax-join-title {
        font-size: 30px;
    }

    .mv-intrax-join-sub {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .mv-intrax-join-stats {
        grid-template-columns: 1fr 1fr;
        row-gap: 14px;
        column-gap: 0;
        padding: 16px 0;
    }

    .mv-intrax-join-stat {
        padding: 0 12px;
    }

    /* Reset for the 2x2 grid: first two on the left, no left border */
    .mv-intrax-join-stat:nth-child(1),
    .mv-intrax-join-stat:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    /* Hero becomes full-width on top */
    .mv-intrax-join-stat--hero {
        grid-column: 1 / -1;
        padding-left: 0;
        padding-bottom: 12px;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 2px;
    }

    .mv-intrax-join-stat--hero .mv-intrax-join-stat-value {
        font-size: 26px;
    }

    .mv-intrax-join-cta {
        min-height: 52px;
        font-size: 14px;
    }
}

/* =========================================================
   INTRAX — NO CHALLENGE TODAY
   A calm, quiet state. Same family as guest/join cards but
   visually distinct — softer, centred, single-column.
   ========================================================= */

.mv-intrax-noch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    min-height: 60vh;
}

.mv-intrax-noch-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 44px 40px 40px;
    border-radius: 26px;
    background: #0a0a0f;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    overflow: hidden;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(124, 58, 237, 0.06);
}

/* Soft single glow */
.mv-intrax-noch-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.mv-intrax-noch-glow--one {
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
}

/* Icon */
.mv-intrax-noch-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 20px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #a78bfa;
    box-shadow:
        0 12px 32px rgba(124, 58, 237, 0.18),
        inset 0 0 20px rgba(124, 58, 237, 0.08);
}

.mv-intrax-noch-icon svg {
    width: 30px;
    height: 30px;
}

/* Eyebrow */
.mv-intrax-noch-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mv-intrax-noch-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Title */
.mv-intrax-noch-title {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    font-size: clamp(30px, 4.5vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 850;
    color: #ffffff;
}

.mv-intrax-noch-title span {
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sub */
.mv-intrax-noch-sub {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 380px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.75;
}

.mv-intrax-noch-sub strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

/* Extra message pill */
.mv-intrax-noch-message {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    padding: 12px 16px;
    max-width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.mv-intrax-noch-message svg {
    flex: 0 0 14px;
    color: #a78bfa;
}

.mv-intrax-noch-message span {
    min-width: 0;
}

/* Mobile */
@media (max-width: 520px) {
    .mv-intrax-noch {
        padding: 24px 12px;
    }

    .mv-intrax-noch-card {
        padding: 34px 24px 30px;
        border-radius: 22px;
    }

    .mv-intrax-noch-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .mv-intrax-noch-icon svg {
        width: 26px;
        height: 26px;
    }

    .mv-intrax-noch-title {
        font-size: 28px;
    }

    .mv-intrax-noch-sub {
        font-size: 13px;
    }

    .mv-intrax-noch-message {
        font-size: 11px;
        padding: 10px 14px;
    }
}