:root {
    --ink: #132033;
    --muted: #64748b;
    --line: #dbe3ee;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --blue: #1167f1;
    --teal: #0fbd9d;
    --green: #13965f;
    --red: #c43b3b;
    --navy: #071321;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

body.market-home-page {
    overflow-x: hidden;
    background: #071321;
}

body.ipo-page {
    background: #071321;
}

body.broker-page {
    background: #071321;
}

body.market-home-page > header,
body.ipo-page > header,
body.broker-page > header {
    display: none;
}

body.market-home-page > .content,
body.ipo-page > .content,
body.broker-page > .content {
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.street-home {
    min-height: 100vh;
    padding: clamp(18px, 3vw, 42px);
    background:
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(120deg, rgba(15, 189, 157, .24), transparent 36%),
        linear-gradient(135deg, #071321 0%, #102d44 55%, #071321 100%);
    background-size: 44px 44px, 44px 44px, auto, auto;
    color: #f8fbff;
    box-sizing: border-box;
}

.street-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1320px, 100%);
    min-height: calc(100vh - clamp(36px, 6vw, 84px));
    margin: 0 auto;
}

.street-nav,
.broker-header,
.ipo-header,
.trade-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.street-nav {
    padding: 10px 0 28px;
}

.street-nav a,
.ghost-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.ticker-tape {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 4px 0 18px;
    color: #8ff0dc;
    font-family: Consolas, monospace;
    scrollbar-width: none;
}

.ticker-tape::-webkit-scrollbar {
    display: none;
}

.ticker-track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: ticker-scroll 34s linear infinite;
}

.ticker-tape:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-tape span,
.status-pill,
.ticker-badge {
    white-space: nowrap;
    border-radius: 999px;
    font-weight: 800;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.ticker-tape span {
    padding: 8px 11px;
    border: 1px solid rgba(143, 240, 220, .35);
    background: rgba(4, 12, 24, .45);
}

.ticker-tape span.up {
    border-color: rgba(19, 150, 95, .45);
    background: rgba(19, 150, 95, .16);
    color: #8ff0dc !important;
}

.ticker-tape span.down {
    border-color: rgba(196, 59, 59, .52);
    background: rgba(196, 59, 59, .18);
    color: #ffb7b7 !important;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding: clamp(18px, 4vw, 52px) 0;
}

.hero-copy h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(62px, 10vw, 148px);
    line-height: .88;
    letter-spacing: 0;
}

.hero-text {
    max-width: 620px;
    color: #c8d8ea;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.45;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.street-home .eyebrow,
.trade-hero .eyebrow {
    color: #9cebdc;
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin-top: 32px;
}

.home-action,
.broker-console,
.choice-modal,
.broker-panel,
.portfolio-panel,
.ipo-step,
.order-card,
.price-tile {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 22px 70px rgba(9, 23, 41, .16);
}

.home-action {
    display: grid;
    gap: 8px;
    min-height: 170px;
    padding: 20px;
    color: #f8fbff;
    text-decoration: none;
    background: rgba(7, 19, 33, .82);
    backdrop-filter: blur(12px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.home-action:hover {
    transform: translateY(-3px);
    border-color: rgba(143, 240, 220, .5);
    background: rgba(11, 37, 62, .88);
}

.action-icon,
.step-icon,
.ticker-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e6fbf6;
    color: #087d69;
    font-weight: 900;
}

.home-action strong {
    font-size: 24px;
}

.home-action small,
.choice-modal p,
.ipo-header p,
.step-copy p,
.order-head p {
    color: #6b7b91;
    line-height: 1.45;
}

.home-action small {
    color: #c8d8ea;
}

.broker-console {
    display: grid;
    gap: 10px;
    align-self: stretch;
    align-content: center;
    padding: clamp(18px, 3vw, 28px);
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(236,246,252,.94));
}

.console-screen {
    display: grid;
    gap: 8px;
    min-height: 140px;
    margin-bottom: 8px;
    padding: 18px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(15,189,157,.2) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15,189,157,.2) 1px, transparent 1px),
        #071321;
    background-size: 18px 18px;
    color: #dffdf7;
}

.console-screen span {
    color: #8ff0dc;
    font-family: Consolas, monospace;
    font-size: 13px;
}

.console-screen strong {
    align-self: end;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.console-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #f3f7fb;
}

.choice-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 40;
    display: grid;
    gap: 14px;
    width: min(460px, calc(100% - 32px));
    padding: 22px;
    transform: translate(-50%, -50%);
    color: var(--ink);
}

.choice-modal[hidden],
.access-overlay[hidden] {
    display: none;
}

.access-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(7, 19, 33, .45);
    backdrop-filter: blur(9px);
}

.access-open .street-hero {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal-actions,
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.primary-link,
.secondary-link,
.trade-link,
.secondary-button,
.launch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--blue);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-link,
.launch-button {
    background: var(--blue);
    color: #fff;
}

.secondary-link,
.secondary-button,
.trade-link {
    background: #fff;
    color: var(--blue);
}

.follow-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #cbd7e5;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.follow-button.active {
    border-color: rgba(15, 189, 157, .36);
    background: #e6fbf6;
    color: #087d69;
}

.broker-shell,
.ipo-shell,
.trade-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 24px auto 56px;
}

.immersive-ipo {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
    box-sizing: border-box;
    background:
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.055) 1px, transparent 1px),
        radial-gradient(circle at 14% 16%, rgba(17,103,241,.24), transparent 27%),
        radial-gradient(circle at 88% 10%, rgba(15,189,157,.22), transparent 26%),
        linear-gradient(135deg, #071321 0%, #102d44 52%, #081626 100%);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.immersive-broker {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
    box-sizing: border-box;
    background:
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.05) 1px, transparent 1px),
        radial-gradient(circle at 12% 14%, rgba(15,189,157,.18), transparent 28%),
        radial-gradient(circle at 86% 8%, rgba(17,103,241,.22), transparent 24%),
        linear-gradient(135deg, #071321 0%, #0f2b45 54%, #081626 100%);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.broker-header,
.ipo-header,
.trade-hero {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a1628, #123f64);
    color: #fff;
}

.immersive-ipo .ipo-header {
    position: relative;
    justify-content: center;
    width: min(1320px, 100%);
    margin: 0 auto 18px;
    background: rgba(7, 19, 33, .72);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px);
    text-align: center;
}

.immersive-ipo .ipo-header .ghost-link {
    position: absolute;
    left: 18px;
    top: 18px;
}

.immersive-ipo .ipo-form {
    width: min(1320px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.immersive-broker .broker-header,
.immersive-broker .broker-panel,
.immersive-broker .portfolio-panel,
.portfolio-hero {
    width: min(1320px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.immersive-broker .broker-header {
    margin-bottom: 18px;
    align-items: center;
    background: rgba(7, 19, 33, .72);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px);
}

.market-note {
    max-width: 700px;
    margin: 8px 0 0;
    color: #c8d8ea;
    line-height: 1.45;
}

.broker-header h1,
.ipo-header h1,
.trade-hero h1,
.panel-title h2,
.ipo-step h2,
.order-card h2,
.choice-modal h2 {
    margin: 0;
    letter-spacing: 0;
}

.cash-chip,
.price-tile,
.market-hours {
    min-width: 190px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
}

.market-hours {
    min-width: 170px;
}

.market-hours small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.market-hours.is-open {
    border: 1px solid rgba(19, 150, 95, .28);
    background: #e8f8ef;
}

.market-hours.is-open strong {
    color: var(--green);
}

.market-hours.is-closed {
    border: 1px solid rgba(196, 59, 59, .25);
    background: #fdecec;
}

.market-hours.is-closed strong {
    color: var(--red);
}

.broker-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.menu-button:hover {
    transform: translateY(-1px);
    border-color: rgba(143, 240, 220, .55);
    background: rgba(143, 240, 220, .16);
}

.ipo-menu-button {
    background: linear-gradient(135deg, rgba(17, 103, 241, .88), rgba(15, 189, 157, .82));
    border-color: rgba(143, 240, 220, .36);
}

.currency-switch {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    min-width: 118px;
    min-height: 44px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}

.currency-switch input {
    position: absolute;
    opacity: 0;
}

.currency-switch span,
.currency-switch strong {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    font-size: 12px;
}

.currency-switch::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: #fff;
    transition: transform .18s ease;
}

.currency-switch span {
    color: var(--blue);
    font-weight: 900;
}

.currency-switch strong {
    color: #d7e5f5;
}

.currency-switch:has(input:checked)::before {
    transform: translateX(100%);
}

.currency-switch:has(input:checked) span {
    color: #d7e5f5;
}

.currency-switch:has(input:checked) strong {
    color: var(--blue);
}

.cash-chip span,
.price-tile span,
.market-hours span,
.market-table span,
.position-item small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.cash-chip strong,
.price-tile strong,
.market-hours strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.market-hours strong {
    font-size: 18px;
}

.cash-chip.compact {
    min-width: 160px;
    box-shadow: none;
    border: 1px solid var(--line);
}

.messages {
    margin: 16px 0;
}

.messages p {
    margin: 0 0 8px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #e8f8ef;
    color: #145c37;
}

.messages .error {
    background: #fdecec;
    color: #8d2424;
}

.broker-panel,
.portfolio-panel {
    margin-top: 18px;
    padding: 18px;
    border-color: var(--line);
    min-width: 0;
    box-sizing: border-box;
}

.accordion-panel > *:not(summary) {
    margin-top: 14px;
}

.accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-chevron {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--soft);
    position: relative;
    transition: transform .2s ease;
}

.accordion-chevron::before {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translate(-50%, -50%) rotate(45deg);
}

.accordion-panel[open] .accordion-chevron {
    transform: rotate(180deg);
}

.quotes-zone {
    width: 100%;
    background: rgba(255,255,255,.96);
}

.holdings-zone {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(237,247,255,.98));
}

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px;
    margin-top: 18px;
    box-sizing: border-box;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.portfolio-summary article {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 70px rgba(9, 23, 41, .16);
}

.portfolio-summary span {
    color: var(--muted);
    font-size: 13px;
}

.portfolio-summary strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(20px, 2vw, 30px);
}

.portfolio-summary small {
    display: block;
    margin-top: 4px;
    font-weight: 900;
}

.investor-portfolio-block {
    box-sizing: border-box;
}

.portfolio-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
    min-width: 0;
}

.investor-profile-card {
    display: grid;
    grid-template-columns: 1fr auto minmax(220px, .8fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(7,19,33,.04), rgba(15,189,157,.07)),
        #fff;
}

.investor-profile-card span,
.investor-profile-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.inline-nick-form {
    display: grid;
    gap: 5px;
}

.inline-nick-form div {
    display: flex;
    gap: 6px;
}

.inline-nick-form input {
    width: min(220px, 100%);
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd7e5;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}

.inline-nick-form button {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.investor-profile-card strong {
    display: block;
    margin-top: 3px;
    font-size: 20px;
}

.followed-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.followed-strip a {
    padding: 7px 9px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0f4bb5;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.unified-summary {
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
}

.unified-summary .primary-metric {
    background:
        linear-gradient(135deg, rgba(17,103,241,.12), rgba(15,189,157,.12)),
        #fff;
}

.unified-summary .primary-metric strong {
    font-size: clamp(32px, 4vw, 54px);
}

.portfolio-holdings-table {
    grid-column: 1 / -1;
}

.market-nick-modal form {
    display: grid;
    gap: 12px;
}

.market-nick-modal {
    border: 1px solid rgba(143, 240, 220, .35);
    background:
        linear-gradient(135deg, rgba(17,103,241,.08), rgba(15,189,157,.08)),
        rgba(255,255,255,.96);
    box-shadow: 0 34px 100px rgba(7, 19, 33, .34);
}

.market-nick-modal h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.market-nick-modal label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.market-nick-modal input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd7e5;
    border-radius: 10px;
    font: inherit;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.vertical-title {
    align-items: flex-start;
    flex-direction: column;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd7e5;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active {
    border-color: var(--blue);
    background: #eaf2ff;
    color: #0f4bb5;
}

.market-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.market-pagination span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.status-pill {
    padding: 8px 11px;
    background: #e6fbf6;
    color: #087d69;
}

.table-wrap {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
}

.market-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.market-table th {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
}

.market-table th button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-transform: inherit;
}

.market-table th button::after {
    content: " <>"; 
    color: #9aa9bb;
}

.market-table td {
    padding: 13px 10px;
    background: #f8fafc;
    border-top: 1px solid #e8eef5;
    border-bottom: 1px solid #e8eef5;
}

.market-table td:first-child {
    border-left: 1px solid #e8eef5;
    border-radius: 12px 0 0 12px;
}

.market-table td:last-child {
    border-right: 1px solid #e8eef5;
    border-radius: 0 12px 12px 0;
}

.ticker-badge {
    display: inline-flex !important;
    padding: 6px 9px;
    background: #eaf2ff;
    color: #165fd1 !important;
}

.up {
    color: var(--green) !important;
    font-weight: 900;
}

.down {
    color: var(--red) !important;
    font-weight: 900;
}

.ipo-header {
    align-items: flex-start;
}

.ipo-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.ipo-wizard {
    overflow: visible;
}

.wizard-status {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(7, 19, 33, .72);
    color: #fff;
    text-align: center;
}

.wizard-status span {
    color: #9cebdc;
    font-weight: 900;
}

.wizard-status div {
    width: min(540px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
}

.wizard-status i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    transition: width .24s ease;
}

.wizard-window {
    overflow: visible;
    min-width: 0;
}

.wizard-track {
    display: block;
}

.wizard-slide {
    width: 100%;
    box-sizing: border-box;
    animation: wizard-rise .22s ease;
}

.wizard-slide[hidden] {
    display: none;
}

@keyframes wizard-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ipo-step {
    display: block;
    padding: 18px;
    border-color: var(--line);
}

.ipo-step .step-copy {
    display: grid;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto 18px;
    text-align: center;
}

.ipo-step .step-copy p {
    margin-bottom: 0;
}

.field-grid label,
.slider-grid label,
.order-card label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.field-grid input[type="text"],
.field-grid input[type="number"],
.field-grid select,
.order-card input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #cbd7e5;
    border-radius: 10px;
    background: #fff;
}

.checkbox-line {
    display: flex !important;
    grid-column: 1 / -1;
    align-items: center;
    gap: 9px;
}

.card-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.nine-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.select-card {
    cursor: pointer;
}

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

.select-card span {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 112px;
    padding: 14px;
    border: 1px solid #ccd8e6;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 900;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.nine-options .select-card:nth-child(3n + 1) span {
    background: #eef7ff;
}

.nine-options .select-card:nth-child(3n + 2) span {
    background: #f0fbf6;
}

.nine-options .select-card:nth-child(3n) span {
    background: #fff7ed;
}

.exact-step {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,247,255,.98));
}

.finance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-grid label {
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f8fafc;
}

.finance-grid input {
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 900;
}

.choice-hint {
    margin: 12px auto 0;
    color: #0f4bb5;
    font-weight: 800;
    text-align: center;
}

.compact-cards {
    margin-bottom: 18px;
    display: grid;
    gap: 8px;
}

.compact-cards.card-options {
    grid-template-columns: 1fr;
}

.compact-cards .select-card span {
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 13px 40px 13px 16px;
    font-size: 15px;
}

.compact-cards .select-card:has(input:checked) span::after {
    content: "\2713";
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ipo-step h3 {
    margin: 18px 0 10px;
    color: #0f4bb5;
    letter-spacing: 0;
    text-align: center;
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding-bottom: 4px;
}

.wizard-actions button[disabled] {
    opacity: .45;
    cursor: default;
}

.wizard-actions button {
    flex: 1 1 0;
    max-width: 260px;
}

.wizard-actions .launch-button {
    width: auto;
    margin: 0;
}

[data-submit-step][hidden] {
    display: none !important;
}

.identity-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 860px;
    margin: 0 auto;
}

.option-hint {
    max-width: 420px;
    margin: 14px auto 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.ipo-launch {
    box-shadow: 0 20px 50px rgba(17, 103, 241, .34);
}

.select-card small {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
}

.select-card:has(input:checked) span {
    transform: translateY(-3px);
    border-color: #0f4bb5;
    background:
        linear-gradient(135deg, rgba(17,103,241,.16), rgba(15,189,157,.12)),
        #eaf2ff;
    color: #0f4bb5;
    box-shadow: 0 18px 44px rgba(17, 103, 241, .28), inset 0 0 0 2px rgba(17, 103, 241, .35);
}

.select-card:has(input:checked) span::after {
    content: "Seleccionado";
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #0f4bb5;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

/* --- Mini-wizard generico: una pregunta por pantalla (usado por el formulario entero) --- */
.subwizard-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    perspective: 1400px;
    transition: height .28s ease;
}

.subwizard-track {
    position: relative;
}

.subwizard-question {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 2px;
    backface-visibility: hidden;
}

.subwizard-question:not(.sw-active) {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
}

.subwizard-question.sw-active {
    position: relative;
}

.subwizard-question.sw-flip-out-next,
.subwizard-question.sw-flip-out-prev,
.subwizard-question.sw-flip-in-next,
.subwizard-question.sw-flip-in-prev {
    position: absolute;
    top: 0;
    left: 0;
    visibility: visible;
    pointer-events: none;
}

.subwizard-question.sw-flip-out-next {
    z-index: 1;
    animation: sw-flip-out-l .38s cubic-bezier(.4, 0, .2, 1) forwards;
}

.subwizard-question.sw-flip-in-next {
    z-index: 2;
    animation: sw-flip-in-r .38s cubic-bezier(.4, 0, .2, 1) forwards;
}

.subwizard-question.sw-flip-out-prev {
    z-index: 1;
    animation: sw-flip-out-r .38s cubic-bezier(.4, 0, .2, 1) forwards;
}

.subwizard-question.sw-flip-in-prev {
    z-index: 2;
    animation: sw-flip-in-l .38s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes sw-flip-out-l {
    from { transform: rotateY(0deg); opacity: 1; }
    to   { transform: rotateY(-90deg); opacity: 0; }
}

@keyframes sw-flip-in-r {
    from { transform: rotateY(90deg); opacity: 0; }
    to   { transform: rotateY(0deg); opacity: 1; }
}

@keyframes sw-flip-out-r {
    from { transform: rotateY(0deg); opacity: 1; }
    to   { transform: rotateY(90deg); opacity: 0; }
}

@keyframes sw-flip-in-l {
    from { transform: rotateY(-90deg); opacity: 0; }
    to   { transform: rotateY(0deg); opacity: 1; }
}

.subwizard-question h2 {
    margin: 4px 0 18px;
    color: #0f4bb5;
    text-align: center;
    font-size: 20px;
    line-height: 1.35;
}

.optional-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle;
}

@keyframes sw-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.select-card.sw-pulse span {
    animation: sw-pulse .28s ease;
}

/* --- Slider de porcentaje (margenes, deuda, activos) --- */
.slider-face {
    display: grid;
    justify-items: center;
    gap: 18px;
    max-width: 420px;
    margin: 10px auto 0;
    padding: 28px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(17,103,241,.06), rgba(15,189,157,.06));
    border: 1px solid rgba(17,103,241,.16);
}

.slider-value {
    font-size: 44px;
    font-weight: 900;
    color: #0f4bb5;
    font-variant-numeric: tabular-nums;
}

.slider-face input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    outline: none;
}

.slider-face input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--blue);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .3);
    cursor: grab;
}

.slider-face input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.slider-face input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--blue);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .3);
    cursor: grab;
}

@media (max-width: 520px) {
    .subwizard-question h2 {
        font-size: 17px;
    }

    .slider-value {
        font-size: 36px;
    }

    .slider-face {
        padding: 22px 16px;
    }
}

.slider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.slider-grid label {
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f8fafc;
}

.slider-grid input[type="range"] {
    width: 100%;
    accent-color: var(--blue);
}

.slider-grid output {
    color: var(--blue);
    font-size: 19px;
    font-weight: 900;
}

.form-errors {
    padding: 12px;
    border-radius: 10px;
    background: #fdecec;
    color: #8d2424;
}

.launch-button {
    width: min(320px, 100%);
    min-height: 52px;
    font-size: 16px;
}

.trade-shell {
    display: grid;
    gap: 18px;
}

.trade-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.compact-trade-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
    text-align: center;
}

.daily-variation-tile {
    min-width: 160px;
}

.trade-identity,
.order-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.compact-trade-hero .trade-identity {
    justify-content: center;
}

.ticker-orb {
    width: 62px;
    height: 62px;
    border-radius: 18px;
}

.order-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.trade-wallet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.trade-wallet article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(9, 23, 41, .1);
}

.trade-wallet span,
.order-preview span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.trade-wallet strong,
.order-preview strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.order-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-color: var(--line);
}

.buy-card {
    border-color: rgba(19, 150, 95, .35);
    background: linear-gradient(180deg, #ffffff 0%, #ecfbf3 100%);
}

.sell-card {
    border-color: rgba(196, 59, 59, .35);
    background: linear-gradient(180deg, #ffffff 0%, #fff0f0 100%);
}

.buy-card .step-icon {
    background: #dff8eb;
    color: var(--green);
}

.sell-card .step-icon {
    background: #ffe0e0;
    color: var(--red);
}

.order-card form {
    display: grid;
    gap: 14px;
}

.order-preview {
    padding: 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(19, 32, 51, .08);
}

.ipo-admin-shell {
    color: var(--ink);
}

.ipo-admin-hero {
    text-align: center;
}

.ipo-admin-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(1320px, 100%);
    margin: 0 auto 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(7, 19, 33, .62);
    color: #fff;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
}

.ipo-admin-topbar strong {
    overflow: hidden;
    color: #dffdf7;
    font-size: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ipo-admin-messages {
    position: fixed;
    left: 50%;
    top: 18px;
    z-index: 60;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
    animation: ipo-toast-in .45s ease both;
}

.ipo-listed-alert p {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid rgba(19, 150, 95, .25);
    background: linear-gradient(135deg, #e8f8ef, #f4fffb);
    color: #145c37;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 18px 48px rgba(19, 150, 95, .18);
}

.ipo-admin-messages p {
    margin: 0;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.9);
    box-shadow: 0 18px 50px rgba(7, 19, 33, .16);
    backdrop-filter: blur(12px);
}

.contact-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff4e0, #fff9ef);
    border: 1px solid rgba(154, 107, 0, .28);
    color: #7a5300;
    font-weight: 800;
    text-decoration: none;
    animation: contact-notice-pulse 2.4s ease infinite;
}

.contact-notice-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #9a6b00;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

@keyframes contact-notice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(154, 107, 0, .18); }
    50% { box-shadow: 0 0 0 8px rgba(154, 107, 0, 0); }
}

@keyframes ipo-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.ipo-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.ipo-admin-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f2f8ff);
}

.ipo-admin-card h3,
.ipo-timeline-item h3,
.ipo-timeline-empty h3 {
    margin: 0;
}

.ipo-admin-card p,
.ipo-timeline-item p,
.ipo-timeline-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.ipo-value-grid,
.ipo-admin-layout {
    width: min(1320px, 100%);
    margin: 18px auto 0;
}

.ipo-value-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ipo-value-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 140px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 70px rgba(9, 23, 41, .16);
}

.ipo-value-card.main-value {
    background:
        linear-gradient(135deg, rgba(17,103,241,.12), rgba(15,189,157,.12)),
        #fff;
}

.ipo-value-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.ipo-value-card strong {
    display: block;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1;
}

.ipo-value-card small {
    color: var(--muted);
    line-height: 1.35;
}

.ipo-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 18px;
}

.ipo-ceo-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 28px;
    width: min(1320px, 100%);
    margin: 18px auto 0;
    align-items: start;
}

.ipo-ceo-tools {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 48px);
    margin-top: 0;
    background: rgba(255,255,255,.97);
    overflow: auto;
}

.ipo-ceo-main {
    display: grid;
    gap: 18px;
    width: min(1320px, 100%);
    margin: 18px auto 0;
    min-width: 0;
}

.expanded-metrics {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expanded-metrics .main-value {
    grid-column: span 2;
}

.share-structure-form {
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #f8fafc;
}

.ipo-ceo-menu {
    display: grid;
    gap: 8px;
}

.ceo-menu-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.ceo-menu-item:hover,
.ceo-menu-item.active {
    transform: translateX(3px);
    border-color: rgba(17, 103, 241, .48);
    background: linear-gradient(135deg, #eaf2ff, #f4fffb);
    box-shadow: 0 14px 34px rgba(17, 103, 241, .14);
}

.ceo-menu-item span {
    font-size: 14px;
    font-weight: 900;
}

.ceo-menu-item small {
    color: var(--muted);
    line-height: 1.35;
}

.ipo-tool-workspace {
    margin-top: 0;
    background: rgba(255,255,255,.97);
}

.ipo-tool-panel {
    display: none;
}

.ipo-tool-panel.active {
    display: grid;
    gap: 14px;
}

.compact-share-form {
    max-width: 560px;
}

.share-readout {
    display: grid;
    gap: 8px;
}

.compact-readout {
    padding-top: 12px;
    border-top: 1px solid #dce5ef;
}

.share-readout span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
}

.share-readout strong {
    color: var(--ink);
}

.ceo-tool-button {
    width: 100%;
    margin-top: 10px;
}

.ceo-action-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 0;
    background: rgba(255,255,255,.97);
}

.ceo-action-strip h2 {
    margin: 0;
}

.ceo-action-strip .market-note {
    margin-bottom: 0;
}

.ipo-update-modal {
    width: min(620px, calc(100% - 28px));
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(7, 19, 33, .28);
}

.ipo-welcome-modal {
    width: min(520px, calc(100% - 32px));
    background: rgba(255,255,255,.9);
    box-shadow: 0 24px 80px rgba(7, 19, 33, .22);
    animation: ipo-welcome-in .5s cubic-bezier(.2,.8,.2,1) both;
}

.ipo-setup-modal {
    width: min(680px, calc(100% - 28px));
}

.ipo-setup-modal .panel-title {
    text-align: center;
}

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

.ipo-setup-readout span {
    padding: 13px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--muted);
    font-weight: 800;
}

.ipo-setup-readout strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 20px;
}

.ipo-welcome-modal::backdrop {
    background: rgba(7, 19, 33, .34);
    backdrop-filter: blur(4px);
}

@keyframes ipo-welcome-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ipo-update-modal::backdrop {
    background: rgba(7, 19, 33, .62);
    backdrop-filter: blur(6px);
}

.ipo-welcome-modal::backdrop {
    background: rgba(7, 19, 33, .34);
    backdrop-filter: blur(4px);
}

.ipo-tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(3, 9, 18, .72);
    backdrop-filter: blur(3px);
}

.tour-highlight {
    position: relative;
    z-index: 72;
    outline: 2px solid rgba(143, 240, 220, .92);
    outline-offset: 8px;
    box-shadow: 0 0 0 9999px rgba(3, 9, 18, .04), 0 0 42px rgba(143, 240, 220, .45);
}

.ipo-tour-popover {
    position: fixed;
    z-index: 74;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(143, 240, 220, .34);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.ipo-tour-popover[hidden],
.ipo-tour-backdrop[hidden] {
    display: none;
}

.ipo-update-form {
    display: grid;
    gap: 14px;
}

.ipo-update-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.ipo-update-form input,
.ipo-update-form select,
.ipo-update-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd7e5;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.ipo-update-form textarea {
    min-height: 132px;
    resize: vertical;
}

.ipo-update-form .launch-button {
    margin: 4px auto 0;
}

.ipo-timeline {
    display: grid;
    gap: 12px;
}

.ipo-timeline-item,
.ipo-timeline-empty {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dce5ef;
    border-left: 5px solid var(--blue);
    border-radius: 12px;
    background: #fff;
}

.ipo-timeline-item.positivo {
    border-left-color: var(--green);
}

.ipo-timeline-item.negativo {
    border-left-color: var(--red);
}

.ipo-timeline-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ipo-timeline-item strong {
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--ink);
    font-size: 12px;
}

.ipo-posts {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.ipo-post {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-left: 5px solid var(--blue);
    border-radius: 14px;
    background: #fff;
}

.trade-shell .ipo-timeline-zone,
.ipo-admin-shell .ipo-timeline-zone,
.ipo-admin-shell .ceo-action-strip {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.ipo-post.positivo {
    border-left-color: var(--green);
}

.ipo-post.negativo {
    border-left-color: var(--red);
}

.ipo-post > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 12px;
    cursor: pointer;
    list-style: none;
}

.ipo-post > summary::-webkit-details-marker {
    display: none;
}

.ipo-post > summary::after {
    content: "+";
    grid-column: 3;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--ink);
    font-weight: 900;
}

.ipo-post[open] > summary::after {
    content: "-";
}

.ipo-post-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ipo-post-title {
    min-width: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.ipo-post > summary strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--ink);
    font-size: 12px;
}

.ipo-post h3,
.ipo-post p,
.ipo-comment p,
.empty-comments,
.login-to-comment {
    margin: 0;
}

.ipo-post p,
.empty-comments,
.login-to-comment {
    color: var(--muted);
    line-height: 1.45;
}

.ipo-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e8eef5;
    border-bottom: 1px solid #e8eef5;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #bf2449;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.like-button strong {
    color: inherit;
    font-size: 13px;
}

.ipo-comments {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8eef5;
}

.ipo-comment {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.ipo-comment strong {
    color: var(--ink);
}

.ipo-comment small {
    color: var(--muted);
    font-size: 12px;
}

.ipo-comment-form {
    display: flex;
    align-items: end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8eef5;
}

.ipo-comment-form input,
.ipo-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd7e5;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.ipo-comment-form button {
    flex: 0 0 auto;
}

.comment-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.order-preview small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.buy-button,
.sell-button {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.buy-button {
    background: var(--green);
}

.sell-button {
    background: var(--red);
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metric-strip span {
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--muted);
}

.metric-strip strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
}

.offering-editor,
.offering-public {
    display: grid;
    gap: 18px;
}

.offering-status-band,
.offering-key-data {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.offering-status-band > div,
.offering-key-data article {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: #fff;
}

.offering-status-band span,
.offering-key-data span,
.offering-ask span,
.existing-reservation span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.offering-status-band strong,
.offering-key-data strong {
    font-size: 18px;
}

.offering-form {
    display: grid;
    gap: 18px;
}

.offering-form-section,
.offering-reading-section {
    display: grid;
    gap: 16px;
}

.offering-form-section label,
.reservation-panel label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.offering-form-section input,
.offering-form-section textarea,
.reservation-panel input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.three-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.milestone-fields {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    border-left: 3px solid var(--teal);
}

.offering-actions,
.ipo-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.danger-action {
    color: var(--red);
}

.secondary-trade-link {
    background: #e8eef7;
    color: var(--ink);
}

.offering-public-hero {
    padding: clamp(22px, 4vw, 54px);
    border-radius: 8px;
    background: #0b2235;
    color: #fff;
}

.offering-public-hero nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}

.offering-hero-grid,
.offering-public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    gap: 24px;
}

.offering-public-hero h1 {
    max-width: 780px;
    margin: 8px 0 14px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .95;
}

.offering-lead {
    max-width: 760px;
    color: #d5e3ee;
    font-size: 18px;
    line-height: 1.65;
}

.founder-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.founder-line span {
    color: #9eb4c5;
}

.founder-line a {
    color: #8ff0dc;
}

.offering-ask {
    align-self: end;
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.offering-ask strong {
    font-size: 38px;
}

.progress-track {
    overflow: hidden;
    height: 8px;
    margin-top: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .16);
}

.progress-track i {
    display: block;
    height: 100%;
    background: #43dabd;
}

.offering-key-data {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.offering-story {
    display: grid;
    gap: 18px;
}

.offering-reading-section p {
    max-width: 850px;
    margin: 0;
    color: #405269;
    line-height: 1.7;
}

.offering-reading-section h2,
.offering-reading-section h3 {
    margin: 0;
}

.public-milestones {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
}

.public-milestones li {
    padding: 10px 12px;
    border-left: 3px solid var(--teal);
    background: #f5faf9;
}

.risk-section {
    border-left: 4px solid var(--red);
}

.contract-public {
    border: 1px solid #9fc1b9;
    background: #f7fbfa;
}

.reservation-panel {
    position: sticky;
    top: 18px;
    align-self: start;
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.reservation-panel form {
    display: grid;
    gap: 14px;
}

.accept-contract {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.accept-contract input {
    width: auto;
    margin-top: 2px;
}

.existing-reservation {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-left: 3px solid var(--green);
    background: #f1faf6;
}

.existing-reservation strong {
    font-size: 24px;
}

.experiment-disclaimer {
    display: grid;
    gap: 6px;
    padding: 14px 18px;
    border: 1px solid #f0cc7a;
    border-radius: 8px;
    background: #fff8e6;
    color: #5f430f;
}

.experiment-disclaimer strong {
    font-size: 15px;
}

.evidence-list,
.question-list,
.investor-identity-fields,
.offering-evidence-form,
.public-question-form {
    display: grid;
    gap: 12px;
}

.evidence-card,
.question-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.invite-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.invite-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
    font-family: monospace;
}

.evidence-card span,
.question-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.evidence-card.verified {
    border-color: #95d8bd;
    background: #f2fbf6;
}

.evidence-card.rejected {
    border-color: #efaaa5;
    background: #fff5f4;
}

.evidence-card a {
    color: var(--blue);
    font-weight: 800;
}

.question-card form,
.existing-reservation form {
    display: grid;
    gap: 10px;
}

.question-card textarea,
.public-question-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
}

.pending-pill {
    width: fit-content;
    padding: 6px 9px;
    background: #fff3d6;
    color: #80580d;
}

.ipo-comments,
.ipo-comment-form,
.login-to-comment,
.empty-comments,
.ipo-social-bar > span {
    display: none;
}

.ceo-command-shell {
    display: grid;
    gap: 18px;
}

.valuation-range {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(17,103,241,.08), rgba(15,189,157,.08));
    border: 1px solid rgba(17,103,241,.18);
    text-align: center;
}

.valuation-range-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.valuation-range-figures {
    font-size: 28px;
    color: #0f4bb5;
}

.valuation-range-point {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.valuation-note-ok {
    color: var(--green);
    font-weight: 700;
}

.valuation-note-warn {
    color: #9a6b00;
    font-weight: 700;
}

.valuation-breakdown {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.valuation-breakdown summary {
    cursor: pointer;
    font-weight: 800;
    color: #0f4bb5;
}

.valuation-breakdown ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* --- Reveal gamificado del market cap --- */
.reveal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 30%, rgba(17,103,241,.35), rgba(7,19,33,.92));
    overflow: hidden;
}

.reveal-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.reveal-confetti i {
    position: absolute;
    top: -20px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    opacity: .9;
    animation-name: confetti-fall;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

.reveal-card {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(420px, 100%);
    padding: 40px 28px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    animation: reveal-pop .45s cubic-bezier(.16,1,.3,1) both;
}

@keyframes reveal-pop {
    from { opacity: 0; transform: scale(.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal-eyebrow {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.reveal-figure {
    font-size: 48px;
    font-weight: 900;
    color: #0f4bb5;
    font-variant-numeric: tabular-nums;
}

.reveal-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 520px) {
    .reveal-card {
        padding: 32px 20px;
    }

    .reveal-figure {
        font-size: 38px;
    }
}

.ceo-briefing {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.ceo-briefing article {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #fff;
}

.ceo-briefing span,
.ceo-next-actions span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ceo-briefing strong {
    font-size: 26px;
}

.ceo-next-actions {
    display: grid;
    gap: 10px;
}

.ceo-next-actions article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.ceo-next-actions span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
}

.ceo-next-actions p {
    margin: 0;
    line-height: 1.5;
}

.ceo-agent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ceo-agent-card {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.ceo-agent-card h2,
.ceo-agent-card p {
    margin: 8px 0 0;
}

.ceo-agent-card p {
    color: var(--muted);
    line-height: 1.5;
}

.ceo-agent-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.ceo-agent-card li {
    line-height: 1.45;
}

.home-offerings {
    display: grid;
    gap: 18px;
    width: min(1320px, 100%);
    margin: 20px auto 0;
    padding: 24px 0;
}

.home-offerings h2 {
    margin: 4px 0;
    font-size: 28px;
}

.home-offering-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-offering-list a {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

.home-offering-list small {
    color: #b8cad8;
}

@media (max-width: 860px) {
    .hero-layout,
    .order-board,
    .slider-grid,
    .metric-strip,
    .trade-wallet,
    .portfolio-hero,
    .portfolio-dashboard-grid,
    .trade-hero,
    .nine-options,
    .finance-grid,
    .ipo-value-grid,
    .ipo-admin-layout,
    .ipo-ceo-layout,
    .expanded-metrics {
        grid-template-columns: 1fr;
    }

    .offering-hero-grid,
    .offering-public-grid,
    .offering-key-data,
    .offering-status-band,
    .three-fields,
    .home-offering-list,
    .ceo-briefing,
    .ceo-agent-grid {
        grid-template-columns: 1fr;
    }

    .reservation-panel {
        position: static;
    }

    .expanded-metrics .main-value {
        grid-column: auto;
    }

    .ipo-ceo-tools {
        position: static;
        max-height: none;
    }

    .ceo-action-strip {
        grid-template-columns: 1fr;
    }

    .ipo-setup-readout {
        grid-template-columns: 1fr;
    }

    .ipo-admin-topbar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .home-actions,
    .modal-actions,
    .field-grid,
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .broker-header,
    .panel-title,
    .ipo-header {
        align-items: stretch;
        flex-direction: column;
    }

    .immersive-ipo .ipo-header .ghost-link {
        position: static;
    }

    .broker-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .currency-switch {
        width: 100%;
    }

    .portfolio-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .investor-profile-card {
        grid-template-columns: 1fr;
    }

    .followed-strip {
        justify-content: flex-start;
    }

    .unified-summary .primary-metric {
        grid-column: 1 / -1;
    }

    .portfolio-chart {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cash-chip,
    .price-tile,
    .market-hours {
        min-width: 0;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 15vw, 76px);
    }

    .street-hero {
        min-height: calc(100vh - 32px);
        justify-content: flex-start;
    }

    .hero-layout {
        padding-top: 22px;
    }

    .broker-console {
        align-self: auto;
    }

    .wizard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .street-home {
        min-height: 100svh;
        padding: 14px;
    }

    .broker-shell,
    .ipo-shell,
    .trade-shell {
        width: min(100% - 16px, 1180px);
        margin-top: 12px;
    }

    .broker-header,
    .ipo-header,
    .trade-hero,
    .broker-panel,
    .portfolio-panel,
    .ipo-step,
    .order-card {
        padding: 14px;
        border-radius: 12px;
    }

    .hero-text {
        font-size: 17px;
    }

    .home-action {
        min-height: 138px;
        padding: 16px;
    }

    .console-screen {
        min-height: 110px;
    }

    .portfolio-summary {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .immersive-broker {
        padding: 10px;
    }

    .broker-shell,
    .ipo-shell,
    .trade-shell,
    .immersive-broker .broker-header,
    .immersive-broker .broker-panel,
    .immersive-broker .portfolio-panel,
    .portfolio-hero {
        width: 100%;
    }

    .market-table {
        min-width: 720px;
    }

    .market-pagination {
        flex-wrap: wrap;
    }

    .ipo-update-modal {
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
        padding: 14px;
    }

    .ipo-post {
        padding: 12px;
    }

    .ipo-post > summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ipo-post > summary::after {
        grid-column: 2;
    }

    .ipo-post > summary strong {
        grid-column: 1;
        grid-row: 3;
    }

    .ipo-comment-form {
        align-items: stretch;
    }

    .ipo-comment-form textarea {
        min-width: 0;
    }
}
