/* THE MINT — UI kit (tabs, boosts, ops desk, polish) */

[hidden] { display: none !important; }

.btn-row { display: flex; gap: 8px; }
.btn-row > .opt-btn { flex: 1; }

.opt-btn.solid-gold { background: var(--gold); color: #000; }
.opt-btn.solid-green { background: var(--green); color: #000; }
.opt-btn.solid-white { background: #fff; color: #000; }
.opt-btn.danger { background: #450a0a; border-color: #f43f5e; color: #fecaca; }

.modal-title { font-weight: 900; letter-spacing: 0.5px; margin-bottom: 8px; }
.modal-title.gold { color: var(--gold); }
.modal-title.green { color: var(--green); }
.modal-lede { color: #666; font-size: 0.8rem; margin-bottom: 20px; }
.modal-note { color: #555; font-size: 0.7rem; margin: 8px 0 20px; }
.modal-wide { max-width: 560px; }
.modal-content.left { text-align: left; }
.modal-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: #888; }
.modal-row span:last-child { color: #fff; font-weight: 700; }
.modal-row.green { color: var(--green); }
.modal-row.green span:last-child { color: var(--green); }
.prestige-val.green { color: var(--green); }
.close-modal {
    position: absolute; top: 14px; right: 18px; border: 0; background: transparent;
    color: #666; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.close-modal:hover { color: #fff; }
.modal-content { position: relative; }
.confirm-actions { margin-top: 8px; }

/* --- OPS DESK (left panel actions) --- */
.ops-desk {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contract-card {
    background:
        linear-gradient(145deg, rgba(34, 197, 94, 0.12), transparent 55%),
        linear-gradient(180deg, #121212, #0a0a0a);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 14px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contract-card:hover {
    border-color: rgba(34, 197, 94, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.contract-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.contract-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--green);
}
.contract-reward {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
}
.contract-reward.ready {
    color: #000;
    background: var(--green);
    padding: 2px 8px;
    border-radius: 999px;
}
.contract-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e8e8e8;
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 2.2em;
}
.contract-bar {
    height: 5px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
}
.contract-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    transition: width 0.25s ease;
}
.contract-progress {
    margin-top: 7px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: #666;
}

.ops-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ops-link {
    text-align: center;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: 0.18s;
    font-weight: 700;
    font-size: 0.84rem;
    color: #e7ece8;
}
.ops-link:hover {
    border-color: #3a3a3a;
    background: #171717;
}
.ops-link.gold:hover { border-color: rgba(234, 179, 8, 0.4); }
.ops-link-kicker {
    display: block;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 4px;
}
.ops-link-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ddd;
}
.ops-link.gold .ops-link-title { color: var(--gold); }

.ops-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ops-tool {
    padding: 11px 10px;
    border-radius: 10px;
    border: 1px solid #222;
    background: #0d0d0d;
    color: #8a8a8a;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: 0.15s;
}
.ops-tool:hover { color: #fff; border-color: #3a3a3a; background: #151515; }
.ops-tool.quiet { color: #555; }
.ops-tool.danger { color: #f87171; border-color: rgba(239, 68, 68, 0.25); }
.ops-tool.danger:hover { background: #1a0808; border-color: rgba(239, 68, 68, 0.45); }

/* --- TAB DROPDOWN --- */
.shop-tabs-host { width: 100%; position: relative; z-index: 20; }

.tab-dropdown {
    position: relative;
    width: 100%;
}

.tab-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 20, 19, 0.98), rgba(10, 12, 11, 0.98));
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tab-dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.14);
}
.tab-dropdown.is-open .tab-dropdown-trigger {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.tab-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tab-dropdown-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 0.18s ease, border-color 0.15s;
    flex: 0 0 auto;
}
.tab-dropdown.is-open .tab-dropdown-caret {
    transform: rotate(225deg) translate(-1px, -1px);
    border-color: #bbb;
}

.tab-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(52vh, 320px);
    overflow: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 10, 9, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    z-index: 40;
    scrollbar-width: thin;
    scrollbar-color: #2a3a30 transparent;
    animation: tab-menu-in 0.16s ease-out;
}
@keyframes tab-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.tab-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #8a948d;
    font-family: var(--font-head);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: left;
    padding: 11px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
}
.tab-option:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.tab-option.active {
    color: #fff;
    background: rgba(34, 197, 94, 0.12);
    box-shadow: inset 3px 0 0 var(--tab-accent, var(--green));
}
.tab-option.is-locked {
    opacity: 0.45;
    color: #555;
    cursor: not-allowed;
}
.tab-option.is-locked:hover {
    color: #666;
    background: transparent;
}
.tab-option-lock {
    width: 8px;
    height: 9px;
    flex: 0 0 auto;
    border: 1.5px solid #666;
    border-radius: 2px 2px 1px 1px;
    box-shadow: inset 0 -3px 0 #2a2a2a;
    position: relative;
}
.tab-option-lock::before {
    content: '';
    position: absolute;
    left: 1px;
    top: -4px;
    width: 4px;
    height: 4px;
    border: 1.5px solid #666;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.tab-controls { margin-top: 4px; }
.controls-row { display: flex; justify-content: space-between; align-items: center; }
.controls-hint { font-size: 0.65rem; color: #444; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.controls-lede { font-size: 0.65rem; color: #666; font-weight: 600; margin-top: 4px; }

.shop-panel { display: none; }
.shop-panel.panel-active,
.shop-panel:not([hidden]) { display: block; }

/* --- SEGMENT CONTROL --- */
.seg-control { display: flex; gap: 6px; }
.seg-btn {
    flex: 1;
    border: 1px solid #222;
    background: #0a0a0a;
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.15s;
}
.seg-btn:hover { border-color: #333; color: #aaa; }
.seg-btn.active {
    border-color: rgba(34, 197, 94, 0.45);
    color: #fff;
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.12);
}

/* --- BOOSTS --- */
.boost-section-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #555;
    margin: 14px 0 8px;
}
.boost-section-label:first-child { margin-top: 0; }

.boost-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid #222;
    background: linear-gradient(90deg, #121212, #0c0c0c);
    cursor: pointer;
    transition: 0.18s;
    font-family: inherit;
    color: inherit;
}
.boost-card:hover:not(.locked):not(.owned) {
    transform: translateX(3px);
    border-color: #333;
    background: #151515;
}
.boost-card.affordable {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: inset 3px 0 0 var(--green);
}
.boost-card.locked {
    opacity: 0.45;
    cursor: default;
    filter: grayscale(0.4);
}
.boost-card.owned {
    cursor: default;
    border-color: #1a1a1a;
    background: #0a0a0a;
}
.boost-name { font-size: 0.9rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.boost-desc { font-size: 0.68rem; color: #777; }
.boost-side { text-align: right; flex-shrink: 0; }
.boost-mult {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1rem;
    color: var(--green);
}
.boost-mult.dim { color: #444; }
.boost-cost {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
}
.boost-card.affordable .boost-cost { color: #fff; }
.boost-owned {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #000;
    background: var(--green);
    padding: 4px 8px;
    border-radius: 6px;
}

/* --- MUTE --- */
.mute-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: rgba(10, 10, 10, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: 0.2s;
}
.mute-btn:hover { border-color: #444; color: #fff; }
.mute-btn.active { color: var(--green); border-color: rgba(34, 197, 94, 0.35); }
.mute-icon {
    width: 18px;
    height: 18px;
    display: block;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.3-3.9v7.8A4.5 4.5 0 0 0 16.5 12zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.3-3.9v7.8A4.5 4.5 0 0 0 16.5 12zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mute-btn:not(.active) .mute-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16.5 12a4.5 4.5 0 0 0-2.3-3.9v2.2l2.3 2.3V12zm2.5 0c0 .9-.2 1.8-.5 2.6l1.5 1.5A8.9 8.9 0 0 0 21 12a9 9 0 0 0-7-8.8v2.1a7 7 0 0 1 5 6.7zM4.3 3L3 4.3 7.7 9H3v6h4l5 5v-6.7l4.7 4.7c-.7.5-1.5.8-2.4 1.1v2.1a9 9 0 0 0 4.1-1.6L19.7 21 21 19.7 4.3 3zM12 5.8l-1.1 1.1L12 8.9V5.8z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16.5 12a4.5 4.5 0 0 0-2.3-3.9v2.2l2.3 2.3V12zm2.5 0c0 .9-.2 1.8-.5 2.6l1.5 1.5A8.9 8.9 0 0 0 21 12a9 9 0 0 0-7-8.8v2.1a7 7 0 0 1 5 6.7zM4.3 3L3 4.3 7.7 9H3v6h4l5 5v-6.7l4.7 4.7c-.7.5-1.5.8-2.4 1.1v2.1a9 9 0 0 0 4.1-1.6L19.7 21 21 19.7 4.3 3zM12 5.8l-1.1 1.1L12 8.9V5.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Casino */
.casino-terminal {
    text-align: center;
    padding: 22px 16px;
    background: linear-gradient(145deg, #160b28 0%, #050505 70%);
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 16px;
}
.casino-title { color: #a855f7; font-weight: 900; font-size: 1.2rem; margin-bottom: 4px; }
.casino-sub { font-size: 0.7rem; color: #888; margin-bottom: 18px; }
.casino-bets { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.casino-allin { border-color: #a855f7 !important; color: #a855f7 !important; }
.casino-result {
    min-height: 36px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    color: #aaa;
}

/* --- v1.5 layout --- */
.cash-head .nav-readout { margin: 0; }
.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.cash-rate {
    margin-top: 2px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green);
}
.rank-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 14px 10px;
}
.rank-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.rank-card .prestige-rank {
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    font-size: 1.05rem;
}
.rank-card .prestige-pill {
    letter-spacing: 0;
    font-size: 0.72rem;
    white-space: nowrap;
}
.rank-bonus {
    margin: 2px 0 8px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
}
.rank-card .next-rank-bar { margin-top: 0; height: 5px; background: rgba(255, 255, 255, 0.06); }
.rank-next {
    margin-top: 6px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #8a948d;
}
.panel-left-content > .hype-container { margin-top: 0; }
.hype-hint {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #7a847e;
}
.hype-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); }
.hype-label { letter-spacing: 0; font-size: 0.78rem; color: #9aa39c; text-transform: none; }

.prestige-btn.ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.prestige-gain {
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.stage-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    z-index: 12;
}
.stage-meta .status-label { margin-top: 0; letter-spacing: 0.12em; color: #6d756f; }
.skin-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.skin-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #7a847e;
}
.skin-row .skin-dock { margin-top: 0; }

.news-bar {
    height: 32px;
    background: rgba(8, 10, 9, 0.72);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}
.news-content { color: #8a948d; font-size: 0.72rem; }

.buy-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.buy-bar .controls-hint {
    flex: 0 0 auto;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.78rem;
    color: #9aa39c;
}
.buy-bar .seg-control { flex: 1; }
.controls-lede {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #8a948d;
    font-weight: 500;
    margin: 0;
}

.upg-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sale-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: #111;
    background: var(--gold);
    border-radius: 999px;
    padding: 1px 6px;
}
.count-badge {
    background: transparent;
    color: #8a948d;
    padding: 0;
    min-width: 0;
}

button.staff-card {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
}
.staff-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.staff-name { font-weight: 700; color: #fff; }
.staff-desc { font-size: 0.75rem; color: #8a948d; }
.staff-side {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #dbe7ff;
    white-space: nowrap;
}
.staff-card.hired .staff-name { color: #8a948d; }
.staff-card.hired .staff-side { color: #6d756f; }

body[data-mint-height="tiny"] .hype-hint,
body[data-mint-height="short"] .hype-hint { display: none; }
