﻿/* =============================
   THEME ROOT VARIABLES
   ============================= */
:root {
    /* Dark (default) */
    --bg-main: #0B1E3C;
    --bg-card: rgba(255,255,255,.05);
    --bg-card-border: rgba(255,255,255,.12);
    --text-main: #ffffff;
    --text-soft: rgba(255,255,255,.7);
    --btn-bg: rgba(255,255,255,.10);
    --btn-border: rgba(255,255,255,.25);
    --btn-hover-bg: rgba(255,255,255,.18);
    /* Strong buttons (nav, primary) */
    --btn-strong-bg: #111827;
    --btn-strong-text: #ffffff;
    --bottom-nav-bg: rgba(0,0,0,.50);
    --r-lg: 16px;
    --r-md: 10px;
    /* Brand */
    --brand-gold: #F5C043; /* accessible warm gold */
    --brand-gold-shadow: rgba(245, 192, 67, .4);
}

    /* Light Mode overrides */
    :root.light {
        --bg-main: #f5f7fa;
        --bg-card: #ffffff;
        --bg-card-border: rgba(15,23,42,.08);
        --text-main: #0b1e3c;
        --text-soft: #4a5568;
        --btn-bg: #e2e8f0;
        --btn-border: rgba(15,23,42,.12);
        --btn-hover-bg: #cbd5e0;
        --btn-strong-bg: #0b1e3c;
        --btn-strong-text: #ffffff;
        --bottom-nav-bg: #ffffff;
    }

/* =============================
   GLOBAL
   ============================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background .25s, color .25s;
}

/* Views */
.view {
    display: none;
}

    .view.active {
        display: block;
    }

/* =============================
   LAYOUT / HEADER / DASHBOARD
   ============================= */
.app-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 88px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.wallet-block {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.wallet-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
}

.wallet-subtext {
    font-size: 12px;
    color: var(--text-soft);
}

/* Brand */
.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

/* =============================
   GENERIC BUTTONS
   ============================= */
.header-btn,
.btn,
.tiny-btn {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--r-md);
    color: var(--text-main);
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}

    .header-btn:hover,
    .btn:hover,
    .tiny-btn:hover {
        background: var(--btn-hover-bg);
    }

/* Strong buttons (used where we want less “see-through”) */
.nav-btn,
.btn-primary {
    background: var(--btn-strong-bg);
    color: var(--btn-strong-text);
    border-color: var(--btn-border);
}

/* Generic button sizes */
.btn {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Disabled states */
.btn[disabled],
.btn.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    filter: grayscale(100%) !important;
    pointer-events: none !important;
    transition: all 0.15s ease-in-out;
}

.btn-primary[disabled],
.btn-primary.disabled {
    background-color: #bfc5d2 !important;
    border-color: #bfc5d2 !important;
    color: #4b5563 !important;
    box-shadow: none !important;
}

.btn[disabled]:hover,
.btn.disabled:hover {
    opacity: 0.55;
    filter: grayscale(100%);
}

/* =============================
   NETWORK CARD / ADDRESS
   ============================= */
.network-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.netrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 24px;
    margin-bottom: 6px;
}

.net-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
}

.address-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.address-hash {
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}

.address-hint {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 16px;
}

.tiny-btn {
    padding: 6px 8px;
    font-size: 11px;
}

.network-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
}

    .network-btn .caret {
        font-size: 12px;
        opacity: .8;
    }

/* =============================
   MANAGE ROW / HOLDINGS
   ============================= */
.manage-row {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
    gap: 8px;
}

#openTokenModalBtn,
#buyCryptoBtn {
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 14px;
}

#holdingsList {
    margin-top: 8px;
}

.holding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    background: var(--bg-card);
}

    .holding-row .left {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .holding-row .icon {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        overflow: hidden;
        display: grid;
        place-items: center;
    }

        .holding-row .icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .holding-row .name {
        color: var(--text-soft);
        font-size: .9rem;
    }

.empty {
    padding: 20px;
    border: 1px dashed var(--bg-card-border);
    border-radius: 12px;
    text-align: center;
    color: var(--text-soft);
}

/* =============================
   BOTTOM NAV – more solid now
   ============================= */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bottom-nav-bg);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--bg-card-border);
    z-index: 20;
}

    .bottom-nav .inner {
        max-width: 980px;
        margin: 0 auto;
        padding: 10px 16px;
        display: flex;
        gap: 10px;
        justify-content: space-around;
    }

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--btn-border);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: .15s;
}

    .nav-btn:hover,
    .nav-btn:focus {
        background: var(--btn-hover-bg);
        border-color: var(--btn-border);
        transform: translateY(-1px);
    }
    /* Active tab pops with brand gold */
    .nav-btn.active {
        background: var(--brand-gold);
        border-color: var(--brand-gold);
        color: #0b1e3c;
        box-shadow: 0 0 8px var(--brand-gold-shadow);
    }

/* =============================
   MODALS
   ============================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    padding: 16px;
}

.modal {
    background: var(--bg-main); /* solid background */
    color: var(--text-main);
    border-radius: 18px;
    border: 1px solid var(--bg-card-border);
    width: min(560px,92vw);
    max-height: 86vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--bg-card-border);
}

.modal-body {
    padding: 14px 16px 16px;
    overflow: auto;
}

/* Make header buttons inside modal slightly brighter */
.modal .header-btn {
    background: var(--btn-bg);
    border-color: var(--btn-border);
    color: var(--text-main);
}

    .modal .header-btn:hover {
        background: var(--btn-hover-bg);
    }

/* QR */
.qr-wrap {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.mono,
/* Mnemonic box (dark + light friendly) */
.mono-dark {
    background: rgba(255,255,255,0.06); /* subtle translucent layer */
    color: var(--text-main); /* ALWAYS readable in dark + light */
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 12px;
}

#welcome-phrase {
    color: var(--text-main) !important;
}

/* =============================
   SEARCH / TOKENS LIST
   ============================= */
.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.search-box {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
}

    .search-box::placeholder {
        color: var(--text-soft);
    }

.add-token-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tokens-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    overflow: hidden;
}

.token-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bg-card-border);
    cursor: pointer;
}

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

.token-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.token-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
}

    .token-icon img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

.token-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.token-symbol {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.token-name {
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 160px;
}

.token-right {
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    color: var(--text-main);
}

/* =============================
   SWAP
   ============================= */
.center {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}

.swap-card {
    background: var(--bg-card); /* adapts to dark/light */
    color: var(--text-main); /* adapts to dark/light */
    border-radius: 20px;
    padding: 20px;
    margin-top: 16px;
    position: relative;
}

/* Swap card top row (slippage + gear) */
.swap-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.swap-card-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buy row stacked (pill on top, amount underneath) */
.swap-row-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* Read-only buy amount – flexible font and wrapping for long numbers */
.amount-buy {
    width: 100%;
    font-size: clamp(26px, 7vw, 42px);
    line-height: 1.1;
    overflow-wrap: anywhere; /* allow wrapping if it still doesn't fit */
    word-break: break-all;
}


.slippage-current {
    font-size: 11px;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

/* Small circular gear button */
.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    padding: 0;
}

    .icon-btn:hover {
        background: #e5e7eb;
    }

/* Slippage settings popover */
.swap-settings-panel {
    position: absolute;
    right: 16px;
    top: 52px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
    padding: 12px 14px 14px;
    width: min(280px, 84vw);
    z-index: 15;
    display: none; /* toggled via JS later */
}

.swap-settings-panel.open {
    display: block;
}

.swap-card.swap-settings-open .swap-settings-panel {
    display: block;
}

.slippage-title-row {
    margin-bottom: 8px;
}

.slippage-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.slippage-sub {
    font-size: 11px;
    color: #6b7280;
}

.slippage-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.slippage-pill {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.slippage-pill:hover {
    background: #e5e7eb;
}

.slippage-pill.active {
    background: #111827;
    border-color: #111827;
    color: #f9fafb;
}

/* Custom slippage pill with input */
.slippage-pill-input {
    padding: 4px 8px;
    background: #f9fafb;
}

.slippage-pill-input input {
    width: 64px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    text-align: right;
}

/* Keep custom pill light even when active */
.slippage-pill-input.active {
    background: #f9fafb;
    border-color: #111827; /* optional: still show it's selected */
    color: #111827;
}

.slippage-pill-input.active input {
    color: #111827;
}

.slippage-percent-symbol {
    font-size: 11px;
    color: #6b7280;
}

/* Existing swap styles */
.swap-label {
    color: var(--text-soft);
    font-size: 14px;
}

.swap-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amount {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 42px;
    font-weight: 700;
}

/* Token pill */
.token-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f6f7fb;
    border-radius: 999px;
    border: 1px solid #eaeaea;
    cursor: pointer;
    background: #ffffff;
    color: #0B1E3C; /* fallback text color */
}
.buy-pill-container {
    flex: 0 0 25%; /* takes 25% of the row width */
    display: flex;
    justify-content: flex-start;
}

.buy-spacer {
    flex: 1; /* takes remaining 75% */
}

/* =============================
   BUY pill: shrink-to-content version
   ============================= */
.buy-pill {
    width: auto; /* override inherited grid behavior */
    max-width: none; /* remove 46vw from shared pill rules */
    display: inline-flex; /* shrink EXACTLY to content width */
    white-space: nowrap; /* single-line */
    overflow: visible; /* no ellipsis */
    text-overflow: clip; /* no clipping */
    padding: 10px 12px; /* same as Sell pill */
    border-radius: 999px; /* same look */
}


/* Make sure the token symbol text itself is dark */
.token-pill span {
    color: #0B1E3C;
    font-weight: 600;
}

.swap-divider {
    display: flex;
    justify-content: center;
    margin: -10px 0;
}

.swap-down {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 8px 10px;
}

.rate {
    color: var(--text-soft);
    font-size: 13px;
    margin-top: 8px;
}

.wide {
    width: 100%;
}

/* Sell balance line */
#view-swap .swap-card {
    padding: 18px 16px;
    margin-top: 16px;
}

#view-swap .swap-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

/* Buy token row: keep same 1fr/auto grid but make the pill shrink-to-content */
#view-swap .swap-row-buy {
    grid-template-columns: 1fr auto; /* left = spacer, right = pill */
}

/* The right-hand cell (pill container) should hug the right edge */
#view-swap .buy-pill-container {
    justify-self: end;
}

/* Buy pill overrides: no max-width, no ellipsis, shrink exactly to content */
#view-swap .buy-pill {
    width: auto;
    max-width: none;
    display: inline-flex;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

#view-swap .amount {
    font-size: clamp(28px, 9vw, 64px);
    line-height: 1.05;
}

#view-swap .token-pill {
    max-width: 46vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(14px, 3.8vw, 16px);
    padding: 10px 12px;
}

#view-swap .swap-sell-balance-line {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    margin-bottom: 4px;
}

#view-swap .balance-hint {
    font-size: 12px;
    color: var(--text-soft); /* or var(--text-main) */
}

#view-swap .rate {
    font-size: clamp(12px, 2.8vw, 14px);
    white-space: normal;
    line-height: 1.3;
}

#view-swap #btnQuote {
    width: 100%;
    font-size: clamp(14px, 3.6vw, 16px);
    padding: 14px 16px;
}

/* Flip button */
#view-swap #btnFlip {
    background: #0B1E3C;
    color: #fff;
    border: 1px solid #dbe1f1;
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

    #view-swap #btnFlip:hover {
        opacity: .9;
    }

    #view-swap #btnFlip:focus {
        outline: 2px solid var(--brand-gold);
        outline-offset: 2px;
    }

/* Responsive swap layout */
@media (max-width: 420px) {
    #view-swap .swap-row {
        grid-template-columns: 1fr;
    }

    #view-swap .token-pill {
        grid-column: 1;
        justify-self: end;
        max-width: 100%;
    }

    #view-swap .swap-card {
        padding: 16px 14px;
    }

    .swap-settings-panel {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

@media (max-width: 500px) and (max-height: 750px) {
    #view-swap .swap-row {
        grid-template-columns: 1fr;
    }

    #view-swap .token-pill {
        justify-self: end;
    }
}

/* =============================
   SEND
   ============================= */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}

.label {
    font-size: 12px;
    color: #6b7280;
}

.input {
    background: #fff;
    color: #0b1e3c;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
}

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

.grow {
    flex: 1;
}

.status {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 8px;
    word-break: break-word;
}

/* =============================
   MISC
   ============================= */
/* Hide creator tools button for now if present */
#openToolsBtn {
    display: none !important;
}

/* Success banner text */
.swap-success {
    color: #4ade80; /* Tailwind “green-400” look */
    font-size: 15px;
    font-weight: 600;
}

.swap-error {
    color: #f87171; /* red-400 */
    font-size: 15px;
    font-weight: 600;
}

#snackbar-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.snack {
    min-width: 280px;
    max-width: 380px;
    color: white;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    opacity: 0;
    animation: snackfade 4s ease forwards;
    pointer-events: auto;
}

.snack-error {
    background: #ef4444; /* red */
}

.snack-success {
    background: #10b981; /* green */
}

@keyframes snackfade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.snack.snack-success.swap-snack {
    display: inline-flex;
    flex-direction: column; /* <-- key change */
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
}
z
.swap-snack-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.swap-snack-icon {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
}

.swap-snack-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swap-snack-text {
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* adjust this # to tighten spacing */
}

.top-buy-btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
}

/* Base style — applies to both light & dark modes */
.top-settings-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* 🔆 Light Mode */
body.light .top-settings-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827; /* readable dark glyph */
}

/* 🌙 Dark Mode */
body.dark .top-settings-btn {
    background: rgba(15, 23, 42, 0.95); /* deep navy pill */
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: rgba(255, 255, 255, 0.85); /* slightly brightened cog */
}

/* Slight tweak so the two buttons feel matched */
.header-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.header-buy-icon {
    font-size: 16px;
    line-height: 1;
}

.header-settings {
    width: 32px;
    height: 32px;
}

.icon-cog-char {
    font-size: 18px; /* tweak until it feels right */
    line-height: 1;
}

.milestone-card {
    margin-top: 4px;
}

/* Title + subtext */
.milestone-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.milestone-sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-main);
}

/* Small pill on the right (network / label) */
.milestone-chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid var(--bg-card-border);
    background: rgba(255,255,255,0.04);
    color: var(--text-soft);
}

/* Progress bar shell */
.milestone-progress-shell {
    margin-top: 12px;
}

.milestone-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35); /* slate-ish */
    overflow: hidden;
}

.milestone-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #F5C043, #f97316);
    box-shadow: 0 0 8px var(--brand-gold-shadow);
    transition: width .25s ease-out;
}

.milestone-progress-row {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-soft);
}

/* Status line under the bar */
.milestone-status {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-soft);
}