/* ============================================
   Mobile Bond Detail Sheet + Mobile Order Sheet
   ============================================ */

/* Backdrop — dims the list behind the sheet */
.mbds-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mbds-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sheet — slides from bottom, 75vh default, up to 95vh */
.mbds-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75vh;
    max-height: 95vh;
    z-index: 10101;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), height 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    color: #fff;
}

.mbds-sheet.visible {
    transform: translateY(0);
}

.mbds-sheet.expanded {
    height: 95vh;
}

/* Top-of-sheet grip handle */
.mbds-grip {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
    flex-shrink: 0;
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.mbds-grip::before {
    content: '';
    width: 42px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

/* Category-colored accent strip at the very top */
.mbds-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4FC3F7; /* default govt — overridden per data-category */
    z-index: 1;
}

.mbds-sheet[data-category="Government"] .mbds-accent { background: #4FC3F7; }
.mbds-sheet[data-category="Corporate"]  .mbds-accent { background: #66BB6A; }
.mbds-sheet[data-category="SGB"]        .mbds-accent { background: #FFB74D; }
.mbds-sheet[data-category="Tax-free"]   .mbds-accent { background: #CE93D8; }

/* Scrollable inner container */
.mbds-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0;
}

/* ── Identity header (always visible at top) ── */
.mbds-id {
    padding: 4px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mbds-id-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mbds-id-rating {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(79, 195, 247, 0.12);
    color: #4FC3F7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mbds-id-type {
    font-size: 0.58rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.mbds-id-spacer { flex: 1; }

.mbds-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbds-id-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-transform: lowercase;
}

.mbds-id-tenure {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 3px;
    text-transform: lowercase;
}

/* ── Hero ── */
.mbds-hero {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.mbds-hero.mbds-hero-glow-positive {
    background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
}

.mbds-hero.mbds-hero-glow-negative {
    background: radial-gradient(ellipse at top, rgba(239, 68, 68, 0.06) 0%, transparent 70%);
}

.mbds-hero-top {
    padding: 14px 18px 8px;
}

.mbds-hero-closed-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 2px 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mbds-hero-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.mbds-hero-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mbds-hero-cell + .mbds-hero-cell {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 14px;
}

/* Single-cell variant — shown when there's no last-traded price so the
   "previous close" column is intentionally suppressed. */
.mbds-hero-rates.single {
    grid-template-columns: 1fr;
}

.mbds-hero-rates.single .mbds-hero-cell {
    border-left: none;
    padding-left: 0;
}

.mbds-hero-label {
    font-size: 0.56rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mbds-hero-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4FC3F7;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.mbds-hero-secondary-val {
    color: rgba(255, 255, 255, 0.9);
}

.mbds-hero-sub {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

.mbds-hero-per {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.mbds-hero-empty {
    font-size: 0.78rem;
    color: rgba(255, 183, 77, 0.8);
    font-style: italic;
}

.mbds-hero-trade-time {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.mbds-hero-change {
    font-size: 0.66rem;
    margin-top: 3px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mbds-hero-change.up { color: #ef4444; }
.mbds-hero-change.down { color: #22c55e; }

/* Deviation banner */
.mbds-hero-warning {
    font-size: 0.64rem;
    font-weight: 500;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.mbds-hero-warning.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.18);
}
.mbds-hero-warning.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.18);
}
.mbds-hero-warning.neutral {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.mbds-hero-disclaimer {
    font-size: 0.56rem;
    color: rgba(255, 183, 77, 0.6);
    margin-top: 6px;
    font-style: italic;
}

/* Mini order book (market open) */
.mbds-hero-depth {
    padding: 6px 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mbds-depth-hdr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.54rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 6px;
}

.mbds-depth-hdr span:first-child { text-align: left; }
.mbds-depth-hdr span:nth-child(2) { text-align: center; }
.mbds-depth-hdr span:last-child { text-align: right; }

.mbds-ob-section {
    display: flex;
    flex-direction: column;
}

.mbds-ob-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 3px 6px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
    position: relative;
    border-radius: 3px;
}

.mbds-ob-row.empty { height: 20px; }

.mbds-ob-row .mbds-ob-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.08);
    z-index: 0;
    border-radius: 3px;
}

.mbds-ob-row.bid .mbds-ob-bar {
    background: rgba(34, 197, 94, 0.08);
    left: 0;
    right: auto;
}

.mbds-ob-row .mbds-ob-cell {
    position: relative;
    z-index: 1;
}

.mbds-ob-row .mbds-ob-cell:first-child { text-align: left; }
.mbds-ob-row .mbds-ob-cell:nth-child(3) { text-align: center; }
.mbds-ob-row .mbds-ob-cell.qty { text-align: right; }

.mbds-ob-row.ask { color: rgba(239, 68, 68, 0.85); }
.mbds-ob-row.bid { color: rgba(34, 197, 94, 0.9); }

.mbds-ob-spread {
    height: 6px;
    margin: 3px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* History sparkline (market closed) */
.mbds-hero-history {
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mbds-hero-history-title {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.mbds-hero-spark-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mbds-hero-chart-area {
    position: relative;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.mbds-hero-spark {
    width: 100%;
    height: 92px;
    display: block;
}

.mbds-hero-bars {
    width: 100%;
    height: 28px;
    display: block;
}

/* Hover/touch tooltip */
.mbds-hero-tip {
    position: absolute;
    top: -6px;
    left: 0;
    width: 130px;
    padding: 6px 8px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.12s ease;
    font-family: 'Manrope', sans-serif;
    z-index: 5;
}

.mbds-hero-tip.visible {
    opacity: 1;
}

.mbds-hero-tip-yield {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4FC3F7;
    font-variant-numeric: tabular-nums;
    margin-bottom: 3px;
    text-align: center;
}

.mbds-hero-tip-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: lowercase;
}

.mbds-hero-tip-meta em {
    font-style: italic;
    color: rgba(255, 183, 77, 0.8);
}

.mbds-hero-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 2px;
    text-transform: lowercase;
}

.mbds-hero-legend {
    font-size: 0.56rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    text-align: center;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* ============================================
   Tab content cards (match desktop card styling, compact)
   ============================================ */
.mbds-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.mbds-card-title {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.mbds-empty {
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

/* Payments — coupon strip */
.mbds-coupon-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.mbds-coupon-rate-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 80px;
}

.mbds-coupon-rate-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #4FC3F7;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
}

.mbds-coupon-rate-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: lowercase;
    margin-top: 2px;
}

.mbds-coupon-detail-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.mbds-coupon-line.exdate {
    color: rgba(255, 183, 77, 0.85);
    font-weight: 500;
}

.mbds-hl {
    color: #fff;
    font-weight: 600;
}

/* Cash flow summary */
.mbds-cf-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.mbds-cf-sum {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mbds-cf-sum-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.mbds-cf-sum-lbl {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.mbds-cf-note {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 2px solid rgba(79, 195, 247, 0.4);
    line-height: 1.4;
}

.mbds-cf-note.tds {
    border-left-color: rgba(255, 183, 77, 0.5);
}

/* Invest row — qty + price inputs */
.mbds-cf-invest-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.mbds-cf-invest-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.mbds-cf-invest-input {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 8px;
    height: 30px;
    gap: 4px;
    transition: border-color 0.15s ease;
}

.mbds-cf-invest-input:focus-within {
    border-color: rgba(79, 195, 247, 0.5);
}

.mbds-cf-invest-prefix {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: lowercase;
}

.mbds-cf-invest-input input {
    width: 70px;
    height: 26px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.mbds-cf-invest-input input::-webkit-outer-spin-button,
.mbds-cf-invest-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mbds-cf-invest-at {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Next payment banner */
.mbds-cf-next {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    margin-top: 10px;
    background: rgba(79, 195, 247, 0.06);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: 10px;
}

.mbds-cf-next-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(79, 195, 247, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mbds-cf-next-detail {
    font-size: 0.78rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.mbds-cf-next-type {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* Year accordion */
.mbds-cf-years {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
}

.mbds-cf-year {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mbds-cf-year:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.mbds-cf-year-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mbds-cf-year-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.mbds-cf-year.maturity .mbds-cf-year-label {
    color: #4FC3F7;
}

.mbds-cf-year-type {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
}

.mbds-cf-year-amount {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.mbds-cf-year.maturity .mbds-cf-year-amount {
    color: #4FC3F7;
}

.mbds-cf-year-chevron {
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease;
}

.mbds-cf-year.expanded .mbds-cf-year-chevron {
    transform: rotate(180deg);
}

.mbds-cf-year-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 4px;
}

.mbds-cf-year.expanded .mbds-cf-year-detail {
    max-height: 500px;
    padding: 0 4px 10px;
}

.mbds-cf-detail-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 16px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.mbds-cf-detail-date {
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

.mbds-cf-detail-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.mbds-cf-badge {
    font-size: 0.54rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.mbds-cf-badge.coupon {
    background: rgba(79, 195, 247, 0.1);
    color: #4FC3F7;
}

.mbds-cf-badge.principal {
    background: rgba(255, 183, 77, 0.1);
    color: #FFB74D;
}

.mbds-cf-detail-amount {
    color: #fff;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Market tab — 12-cell grid */
.mbds-mkt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mbds-mkt-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.mbds-mkt-val {
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.mbds-mkt-lbl {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: lowercase;
}

/* Trades list */
.mbds-trades-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mbds-trades-hdr {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr;
    padding: 5px 2px;
    font-size: 0.54rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mbds-trades-hdr span:nth-child(2),
.mbds-trades-hdr span:nth-child(3),
.mbds-trades-hdr span:nth-child(4) {
    text-align: right;
}

.mbds-trades-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr;
    padding: 7px 2px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mbds-trades-row:last-child { border-bottom: none; }

.mbds-trades-row span:nth-child(2),
.mbds-trades-row span:nth-child(3),
.mbds-trades-row span:nth-child(4) {
    text-align: right;
}

.mbds-trades-row span:nth-child(3) { color: #4FC3F7; font-weight: 500; }

/* Ratings tab */
.mbds-rt-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.mbds-rt-badge {
    min-width: 58px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    background: rgba(255, 255, 255, 0.02);
}

.mbds-rt-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mbds-rt-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.3;
}

.mbds-rt-agency {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Ladder — 7 tiers in a compact vertical layout */
.mbds-rt-ladder {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mbds-rt-tier {
    display: grid;
    grid-template-columns: 12px 60px 1fr;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-family: 'Manrope', sans-serif;
}

.mbds-rt-tier.active {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 5px 6px;
}

.mbds-rt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mbds-rt-tier-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.mbds-rt-tier.active .mbds-rt-tier-label { font-weight: 700; }

.mbds-rt-tier-desc {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: lowercase;
}

.mbds-rt-tier.active .mbds-rt-tier-desc { color: rgba(255, 255, 255, 0.55); }

/* Metrics grid */
.mbds-rt-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbds-rt-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.mbds-rt-metric-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mbds-rt-metric-unit {
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
}

.mbds-rt-metric-lbl {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
    text-transform: lowercase;
}

.mbds-rt-metric-hint {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
    margin-top: 1px;
}

/* Liquidity */
.mbds-rt-liquidity {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.mbds-rt-liq-score {
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mbds-rt-liq-max {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.mbds-rt-liq-tag {
    font-size: 0.58rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mbds-rt-liq-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.mbds-rt-liq-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mbds-rt-liq-meta {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    line-height: 1.4;
}

/* Notes tab */
.mbds-notes-bullets {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 12px;
}

.mbds-notes-bullet {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0 8px 14px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mbds-notes-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 8px;
    color: rgba(255, 255, 255, 0.3);
}

.mbds-notes-bullet:last-child { border-bottom: none; }

.mbds-notes-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.mbds-notes-hl {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 0.72rem;
    line-height: 1.45;
}

.mbds-notes-hl-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.mbds-notes-hl.warn {
    background: rgba(255, 183, 77, 0.07);
    border-color: rgba(255, 183, 77, 0.2);
    color: rgba(255, 183, 77, 0.95);
}

.mbds-notes-hl.warn .mbds-notes-hl-icon {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
}

.mbds-notes-hl.info {
    background: rgba(79, 195, 247, 0.07);
    border-color: rgba(79, 195, 247, 0.2);
    color: rgba(79, 195, 247, 0.95);
}

.mbds-notes-hl.info .mbds-notes-hl-icon {
    background: rgba(79, 195, 247, 0.2);
    color: #4FC3F7;
}

.mbds-notes-hl.sebi {
    background: rgba(206, 147, 216, 0.07);
    border-color: rgba(206, 147, 216, 0.2);
    color: rgba(206, 147, 216, 0.95);
}

.mbds-notes-hl.sebi .mbds-notes-hl-icon {
    background: rgba(206, 147, 216, 0.2);
    color: #CE93D8;
}

.mbds-notes-hl-text {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

/* Issuer card */
.mbds-issuer-card {
    margin-top: 12px;
}

.mbds-issuer-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.mbds-issuer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.05));
    border: 1px solid rgba(79, 195, 247, 0.25);
    color: #4FC3F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mbds-issuer-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mbds-issuer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-transform: lowercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mbds-issuer-sector {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: lowercase;
}

.mbds-issuer-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.mbds-issuer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #4FC3F7;
    text-decoration: none;
    padding: 5px 0;
}

.mbds-issuer-link-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.12);
    color: #4FC3F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* SGB "+/- gold price changes" tag below yield */
.mbds-sgb-tag {
    display: inline-block;
    font-size: 0.52rem;
    font-weight: 500;
    padding: 1px 7px;
    margin-top: 4px;
    border-radius: 20px;
    color: rgba(255, 183, 77, 0.9);
    background: rgba(255, 183, 77, 0.08);
    border: 1px solid rgba(255, 183, 77, 0.18);
    text-transform: lowercase;
    align-self: flex-start;
}

/* Optional signal hint row */
.mbds-signal {
    padding: 8px 18px;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(79, 195, 247, 0.85);
    background: rgba(79, 195, 247, 0.05);
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.mbds-signal.negative {
    color: rgba(239, 68, 68, 0.85);
    background: rgba(239, 68, 68, 0.05);
    border-bottom-color: rgba(239, 68, 68, 0.1);
}

/* ── Sticky action zone (buy / sell + tabs) ── */
.mbds-sticky {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mbds-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 18px;
}

.mbds-btn {
    height: 44px;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, transform 0.1s ease;
    text-transform: lowercase;
    -webkit-tap-highlight-color: transparent;
}

.mbds-btn:active {
    transform: scale(0.98);
}

.mbds-btn-buy {
    background: rgba(34, 197, 94, 0.14);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
}

.mbds-btn-buy:active {
    background: rgba(34, 197, 94, 0.22);
}

.mbds-btn-sell {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.mbds-btn-sell:active {
    background: rgba(239, 68, 68, 0.22);
}

/* Tab chip row */
.mbds-tabs {
    display: flex;
    gap: 6px;
    padding: 6px 18px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mbds-tabs::-webkit-scrollbar { display: none; }

.mbds-tab {
    flex-shrink: 0;
    padding: 6px 11px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    text-transform: lowercase;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mbds-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── Tab content ── */
.mbds-tab-content {
    padding: 16px 18px 32px;
}

.mbds-section-title {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 0 10px;
}

.mbds-section-title:first-child { margin-top: 0; }

.mbds-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
}

.mbds-row:last-child { border-bottom: none; }

.mbds-row-label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    font-weight: 400;
}

.mbds-row-value {
    color: #fff;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.mbds-row-value.accent { color: #4FC3F7; font-weight: 600; }
.mbds-row-value.positive { color: #22c55e; }
.mbds-row-value.negative { color: #ef4444; }

/* Notes within the tab */
.mbds-notes .mbds-note {
    padding: 10px 0;
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mbds-notes .mbds-note:last-child { border-bottom: none; }

.mbds-note-tag {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 500;
    padding: 1px 6px;
    margin-right: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.mbds-note-tag--imp,
.mbds-note-tag--important,
.mbds-note-tag--warning {
    background: rgba(255, 183, 77, 0.12);
    color: rgba(255, 183, 77, 0.9);
}

.mbds-note-tag--new,
.mbds-note-tag--info {
    background: rgba(79, 195, 247, 0.12);
    color: rgba(79, 195, 247, 0.9);
}

.mbds-note-tag--sebi {
    background: rgba(206, 147, 216, 0.12);
    color: rgba(206, 147, 216, 0.9);
}

/* Issuer description + link */
.mbds-issuer-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0 12px;
}

.mbds-link {
    color: #4FC3F7;
    text-decoration: none;
    border-bottom: 1px dashed rgba(79, 195, 247, 0.4);
}

/* Cashflow mini list */
.mbds-cashflows {
    margin-top: 8px;
}

.mbds-cf-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mbds-cf-row:last-child { border-bottom: none; }

.mbds-cf-date {
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
}

.mbds-cf-type {
    color: rgba(255, 255, 255, 0.55);
    text-transform: lowercase;
}

.mbds-cf-amt {
    color: #fff;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mbds-cf-row.maturity .mbds-cf-amt { color: #4FC3F7; }

/* Market depth mini */
.mbds-depth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mbds-depth-side {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.mbds-depth-title {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.mbds-depth-side.bids .mbds-depth-title { color: #22c55e; }
.mbds-depth-side.asks .mbds-depth-title { color: #ef4444; }

.mbds-depth-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

.mbds-depth-row-empty {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* Loading / error */
.mbds-loading, .mbds-error {
    padding: 60px 20px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Mobile Order Sheet — fits in viewport, no scroll
   ============================================ */
.mos-overlay {
    position: fixed;
    inset: 0;
    z-index: 10200;
    background: #0a0a0a;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    overflow: hidden;
}

.mos-overlay.visible {
    transform: translateX(0);
}

.mos-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.mos-back {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mos-head-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: lowercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mos-head-rating {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(79, 195, 247, 0.12);
    color: #4FC3F7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Two-row hero strip (available at + last traded at) */
.mos-hero {
    padding: 6px 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mos-hero-row {
    display: grid;
    grid-template-columns: 90px auto 1fr;
    align-items: baseline;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.mos-hero-label {
    font-size: 0.54rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mos-hero-yield {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4FC3F7;
}

.mos-hero-yield.secondary {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.mos-hero-price {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.5);
}

.mos-hero-last .mos-hero-label { color: rgba(255, 255, 255, 0.3); }

/* Body: 2-column grid, left = form, right = market depth */
.mos-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
    padding: 10px 14px 0;
    min-height: 0;
    overflow: hidden;
}

.mos-body-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.mos-body-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.mos-depth-title {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

/* Order type toggle */
.mos-order-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mos-toggle-btn {
    height: 34px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: lowercase;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.45);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mos-toggle-btn.active[data-type="buy"] {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.mos-toggle-btn.active[data-type="sell"] {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Exchange segmented */
.mos-exchange {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.mos-exchange-btn {
    padding: 5px 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 1;
}

.mos-exchange-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Input rows — compact */
.mos-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mos-field-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mos-field-input {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    height: 34px;
}

.mos-step {
    width: 32px;
    height: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font-weight: 500;
}

.mos-step:active {
    background: rgba(255, 255, 255, 0.06);
}

.mos-field-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.mos-field-input input::-webkit-outer-spin-button,
.mos-field-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Qty presets */
.mos-qty-presets {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.mos-qty-preset {
    flex: 1;
    padding: 4px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mos-qty-preset:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Market depth (right column) */
.mos-ob-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mos-ob-section.asks { padding-bottom: 2px; }
.mos-ob-section.bids { padding-top: 2px; }

.mos-ob-row {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 3px 6px;
    font-size: 0.62rem;
    font-variant-numeric: tabular-nums;
    position: relative;
    border-radius: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mos-ob-row.empty { height: 16px; }

.mos-ob-row.placeholder {
    color: rgba(255, 255, 255, 0.2);
    cursor: default;
}

.mos-ob-row.placeholder .mos-ob-cell.qty { color: rgba(255, 255, 255, 0.15); }

.mos-ob-spread-row {
    padding: 2px 6px;
    text-align: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    margin: 3px 0;
}

.mos-ob-spread-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mos-ob-row .mos-ob-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.09);
    z-index: 0;
    border-radius: 3px;
}

.mos-ob-row.bid .mos-ob-bar {
    background: rgba(34, 197, 94, 0.09);
    left: 0;
    right: auto;
}

.mos-ob-row .mos-ob-cell {
    position: relative;
    z-index: 1;
}

.mos-ob-row .mos-ob-cell.qty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.58rem;
    text-align: right;
}

.mos-ob-row.ask { color: rgba(239, 68, 68, 0.9); }
.mos-ob-row.bid { color: rgba(34, 197, 94, 0.9); }

.mos-ob-empty {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* Cost summary — sits above the submit bar */
.mos-summary {
    padding: 10px 14px 4px;
    flex-shrink: 0;
}

.mos-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.7rem;
}

.mos-summary-row.total {
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
}

.mos-summary-label {
    color: rgba(255, 255, 255, 0.55);
    text-transform: lowercase;
}

.mos-summary-value {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Submit bar — fixed bottom */
.mos-submit-bar {
    flex-shrink: 0;
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0));
    background: rgba(10, 10, 10, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mos-submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: lowercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

.mos-submit-btn[data-type="buy"] {
    background: #0a8f4c;
    color: #fff;
}

.mos-submit-btn[data-type="sell"] {
    background: #d32f2f;
    color: #fff;
}

.mos-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
