/* css/layouts.css — FinanceAI · Redesign */

/* ╔═══════════════════════════════╗
   ║  HEADER                       ║
   ╚═══════════════════════════════╝ */
.hdr {
    height: var(--hdr);
    background: var(--bg1);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    flex-shrink: 0;
    z-index: 200;
    position: relative;
    width: 100%;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

/* thin accent line at bottom */
.hdr::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--acc) 40%, var(--acc2) 65%, transparent 100%);
    opacity: .25;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.logo-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    position: relative;
}

.logo-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

/* Fallback quando imagem não carrega */
.logo-fb {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
    color: #050c0a;
    font-weight: 800;
    box-shadow: var(--acc-glow);
}

.logo-text {
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: -.4px;
    white-space: nowrap;
    line-height: 1;
}

.logo-text em {
    color: var(--acc);
    font-style: normal;
}

.logo-sub {
    font-size: .5rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: var(--pill);
    background: var(--bg3);
    color: var(--txt3);
    border: 1px solid var(--line);
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-family: var(--fm);
}

.hdr-r {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hdr-icon-btn, .ibtn {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--txt2);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tr);
    position: relative;
    flex-shrink: 0;
}

.hdr-icon-btn:hover, .ibtn:hover {
    background: var(--bg3);
    border-color: var(--line3);
    color: var(--acc);
}

.hdr-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--red);
    color: white;
    font-size: .52rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: var(--pill);
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg1);
    box-shadow: var(--red-glow);
    font-family: var(--fm);
}

.bell-dot {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--red);
    color: white;
    font-size: .52rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: var(--pill);
    display: none;
    align-items: center; justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg1);
    animation: pulse 2.2s ease-in-out infinite;
    font-family: var(--fm);
}

.bell-dot.on { display: flex; }

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--red-glow); }
    50% { transform: scale(1.15); box-shadow: 0 0 20px rgba(255,69,102,.5); }
}

/* ╔═══════════════════════════════╗
   ║  BOTTOM NAVIGATION            ║
   ╚═══════════════════════════════╝ */
.bnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav) + var(--safe-bottom));
    background: var(--bg1);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    z-index: 200;
    padding: 0;
    padding-bottom: var(--safe-bottom);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

/* top accent line */
.bnav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--acc) 40%, var(--acc2) 65%, transparent 100%);
    opacity: .2;
}

.nb {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: var(--txt3);
    font-size: .6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--f);
    letter-spacing: .02em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

.nb:active { transform: scale(.94); }

.nb-icon {
    width: 36px; height: 30px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    transition: all .22s ease;
    position: relative;
}

.nb-icon svg {
    transition: all .22s;
    width: 19px; height: 19px;
}

.nb.on { color: var(--acc); }

.nb.on .nb-icon {
    background: rgba(0,255,200,.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,255,200,.1);
}

.nb.on .nb-icon svg {
    stroke: var(--acc);
    stroke-width: 2.2;
    filter: drop-shadow(0 0 4px rgba(0,255,200,.4));
}

/* add button */
.nb.nb-add .nb-icon {
    background: var(--acc);
    width: 44px; height: 34px;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(0,255,200,.3);
    transform: translateY(-4px);
}

.nb.nb-add .nb-icon svg {
    stroke: var(--btn-txt);
    stroke-width: 2.5;
}

.nb.nb-add { color: var(--txt2); }

.nb.nb-add.on .nb-icon {
    box-shadow: 0 10px 30px rgba(0,255,200,.5);
}

/* ╔═══════════════════════════════╗
   ║  VIEWS                        ║
   ╚═══════════════════════════════╝ */
.views {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.view {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.view.on {
    display: flex;
    flex-direction: column;
    animation: viewIn .28s cubic-bezier(.4,0,.2,1);
}

@keyframes viewIn {
    from { opacity:0; transform: translateY(8px); }
    to   { opacity:1; transform: translateY(0);   }
}

/* ╔═══════════════════════════════╗
   ║  TAB BARS                     ║
   ╚═══════════════════════════════╝ */
.tbar {
    background: var(--bg1);
    border-bottom: 1px solid var(--line);
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    overflow-x: auto;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tbar::-webkit-scrollbar { display: none; }

.tsel {
    display: flex;
    gap: 2px;
    background: var(--bg2);
    padding: 2px;
    border-radius: var(--pill);
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.tbtn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--txt3);
    font-weight: 600;
    font-size: .73rem;
    border-radius: var(--pill);
    cursor: pointer;
    transition: var(--tr);
    font-family: var(--f);
    white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
    position: relative;
}

.tbtn:hover { color: var(--txt2); background: var(--bg3); }

.tbtn.on {
    background: var(--bg1);
    color: var(--acc);
    box-shadow: 0 3px 10px rgba(0,0,0,.2), 0 0 0 1px var(--line3);
}

.tbtn .dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: var(--red-glow);
    display: none;
}

.tbtn .dot.on { display: block; }

/* ╔═══════════════════════════════╗
   ║  SCROLL / WRAP                ║
   ╚═══════════════════════════════╝ */
.scr {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.wrap {
    width: 100%;
    padding: 12px 12px calc(var(--nav) + 16px);
}

/* ╔═══════════════════════════════╗
   ║  SECTION VISIBILITY           ║
   ╚═══════════════════════════════╝ */
.sec { display: none; }
.sec.on { display: block; }

/* ╔═══════════════════════════════╗
   ║  PERIOD BAR                   ║
   ╚═══════════════════════════════╝ */
.period-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.period-bar::-webkit-scrollbar { display: none; }

.dnav {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg2);
    padding: 2px 6px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.dnav button {
    width: 24px; height: 24px;
    border: none;
    background: transparent;
    color: var(--txt2);
    cursor: pointer;
    font-size: .78rem;
    border-radius: 6px;
    transition: var(--tr);
    display: flex; align-items: center; justify-content: center;
}

.dnav button:hover { background: var(--bg3); color: var(--acc); }

.dnav span {
    font-size: .72rem;
    font-weight: 600;
    color: var(--txt1);
    min-width: 80px;
    text-align: center;
    font-family: var(--fm);
    white-space: nowrap;
}

.psel {
    display: flex;
    gap: 2px;
    background: var(--bg2);
    padding: 2px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.ppbtn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: var(--txt3);
    font-family: var(--f);
    font-weight: 600;
    font-size: .7rem;
    border-radius: var(--pill);
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
}

.ppbtn:hover { color: var(--txt2); background: var(--bg3); }

.ppbtn.on {
    background: var(--acc);
    color: var(--btn-txt);
    box-shadow: 0 3px 10px rgba(0,255,200,.2);
}

/* ╔═══════════════════════════════╗
   ║  DESKTOP SIDEBAR              ║
   ╚═══════════════════════════════╝ */
#desktop-sidebar {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    background: var(--bg1);
    border-right: 1px solid var(--line);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    position: relative;
}

/* vertical accent glow on right edge */
#desktop-sidebar::after {
    content: '';
    position: absolute;
    top: 20%; bottom: 20%; right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--acc), transparent);
    opacity: .18;
}

.ds-brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 11px;
}

.ds-logo-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: transparent;
    position: relative;
}

.ds-logo-icon img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; display: block; }

.ds-logo-fb {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #050c0a;
}

.ds-name {
    font-weight: 800;
    font-size: .95rem;
    color: var(--txt);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.ds-name em { color: var(--acc); font-style: normal; }

.ds-sub {
    font-size: .58rem;
    color: var(--txt3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-family: var(--fm);
}

.ds-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ds-sep {
    height: 1px;
    background: var(--line);
    margin: 10px 8px;
}

.ds-lbl {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--txt3);
    padding: 5px 10px;
    margin-top: 4px;
    font-family: var(--fm);
}

.ds-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: var(--txt2);
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    width: 100%;
    text-align: left;
    font-family: var(--f);
    letter-spacing: -.01em;
}

.ds-item:hover {
    background: var(--bg2);
    color: var(--txt);
    transform: translateX(2px);
}

.ds-item.on {
    background: rgba(0,255,200,.08);
    color: var(--acc);
    border: 1px solid rgba(0,255,200,.1);
}

.ds-item-ic {
    width: 30px; height: 30px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    background: var(--bg2);
    transition: var(--tr);
    border: 1px solid var(--line);
}

.ds-item.on .ds-item-ic {
    background: rgba(0,255,200,.12);
    border-color: rgba(0,255,200,.2);
}

.ds-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: .68rem;
    color: var(--txt3);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ds-theme-row {
    display: flex;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
}

.ds-theme-btn {
    flex: 1;
    padding: 7px;
    border: none;
    background: transparent;
    color: var(--txt3);
    font-family: var(--f);
    font-size: .73rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
}

.ds-theme-btn:hover { background: var(--bg3); color: var(--txt); }
.ds-theme-btn.on    { background: var(--bg3); color: var(--txt1); }

/* ╔═══════════════════════════════╗
   ║  GRID LAYOUTS                 ║
   ╚═══════════════════════════════╝ */
.kgrid {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.kg2 { grid-template-columns: repeat(2, 1fr); }
.kg3 { grid-template-columns: repeat(3, 1fr); }
.kg4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 420px) {
    .kg4 { grid-template-columns: repeat(4, 1fr); }
}

.sgrid {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.sg2 { grid-template-columns: repeat(2, 1fr); }
.sg3 { grid-template-columns: repeat(3, 1fr); }
.sg4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 400px) {
    .sg4 { grid-template-columns: repeat(4, 1fr); }
}

.c2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 480px) {
    .c2col { grid-template-columns: 1fr 1fr; }
}

.c2col > * { min-width: 0; box-sizing: border-box; }

/* ╔═══════════════════════════════╗
   ║  CHART CONTAINERS             ║
   ╚═══════════════════════════════╝ */
.cw { position: relative; width: 100%; }
.cw160 { height: 160px; }
.cw180 { height: 180px; }
.cw200 { height: 200px; }
.cw220 { height: 220px; }

/* ╔═══════════════════════════════╗
   ║  DESKTOP BREAKPOINTS          ║
   ╚═══════════════════════════════╝ */
@media (min-width: 601px) {
    #app {
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }
}

@media (min-width: 768px) {
    html, body { overflow: hidden; }

    #desktop-wrap {
        display: flex;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
        background: var(--bg);
    }

    #desktop-sidebar { display: flex; }

    #app {
        flex: 1;
        max-width: none;
        margin: 0;
        border: none;
        box-shadow: none;
        height: 100vh;
        border-radius: 0;
    }

    .bnav { display: none !important; }

    #voz-btn { bottom: 28px; right: 28px; }
    .toast   { bottom: 28px; }

    .wrap { padding-bottom: 28px; }

    .kg4  { grid-template-columns: repeat(4, 1fr) !important; }
    .kg3  { grid-template-columns: repeat(3, 1fr) !important; }
    .kg2  { grid-template-columns: repeat(2, 1fr) !important; }
    .sg4  { grid-template-columns: repeat(4, 1fr) !important; }
    .sg3  { grid-template-columns: repeat(3, 1fr) !important; }
    .frow { grid-template-columns: 1fr 1fr !important; }
    .mgrid { grid-template-columns: repeat(2, 1fr) !important; }
    .acoes-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .calc-dets  { grid-template-columns: repeat(3, 1fr) !important; }

    .hdr { padding: 0 22px; }
}

@media (min-width: 1100px) {
    #desktop-sidebar {
        width: 260px;
        min-width: 260px;
    }

    #app { max-width: none; }

    .kg4 { grid-template-columns: repeat(4, 1fr) !important; }

    .wrap { padding: 18px 22px 28px; }

    .acoes-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ╔═══════════════════════════════╗
   ║  WELCOME OVERLAY (modal)      ║
   ╚═══════════════════════════════╝ */
#welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background:
        radial-gradient(ellipse 80% 55% at 65% 25%, rgba(0,255,200,.11) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 8%  80%, rgba(61,139,255,.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 90% 85%, rgba(182,109,255,.06) 0%, transparent 50%),
        #070b13;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInOverlay .35s ease;
    overflow: hidden;
}

/* Grid de linhas — igual ao hero do manual */
#welcome-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,255,200,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,200,.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 90% at 55% 45%, black 15%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 55% 45%, black 15%, transparent 75%);
}

/* Brilho central suave */
#welcome-overlay::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 60%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,255,200,.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.welcome-modal {
    background: var(--bg1);
    border: 1px solid var(--line2);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 22px 20px 20px;
    box-shadow: 0 32px 64px rgba(0,0,0,.65), 0 0 0 1px var(--line3);
    animation: welcomeIn .32s cubic-bezier(.34,1.4,.64,1);
    position: relative;
    z-index: 1;
}

@keyframes welcomeIn {
    from { opacity: 0; transform: scale(.93) translateY(16px); }
    to   { opacity: 1; transform: scale(1)  translateY(0);     }
}

.welcome-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.welcome-version {
    font-size: .58rem;
    color: var(--txt3);
    font-family: var(--fm);
    letter-spacing: .04em;
    margin-top: 2px;
}

.welcome-tagline {
    font-size: .82rem;
    color: var(--txt2);
    line-height: 1.55;
    margin-bottom: 16px;
    text-align: left;
}

/* Garante que o conteúdo fica acima do grid de fundo */
#welcome-overlay > div:first-child {
    position: relative;
    z-index: 1;
}

/* ╔═══════════════════════════════╗
   ║  LICENSE STATUS BOX           ║
   ╚═══════════════════════════════╝ */
.lic-status-box {
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid;
    text-align: center;
}

.lic-status-box.active {
    background: rgba(0,255,200,.06);
    border-color: rgba(0,255,200,.18);
}

.lic-status-box.inactive {
    background: rgba(255,69,102,.06);
    border-color: rgba(255,69,102,.18);
}

.lic-status-box.expiring {
    background: rgba(255,184,48,.06);
    border-color: rgba(255,184,48,.18);
}

/* ╔═══════════════════════════════╗
   ║  SUB TAB SELECTOR             ║
   ╚═══════════════════════════════╝ */
.sub-tsel {
    display: flex;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 3px;
    margin-bottom: 14px;
}

.sub-tbtn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--txt2);
    font-family: var(--f);
    font-weight: 600;
    font-size: .73rem;
    border-radius: var(--pill);
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
}

.sub-tbtn.on {
    background: var(--acc);
    color: var(--btn-txt);
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(0,255,200,.2);
}

.sub-tbtn:not(.on):hover { background: var(--bg3); color: var(--txt1); }

/* ╔═══════════════════════════════╗
   ║  VOICE BUTTON                 ║
   ╚═══════════════════════════════╝ */
#voz-btn {
    position: fixed;
    bottom: calc(var(--nav) + 18px);
    right: 18px;
    z-index: 500;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--voz-bg, var(--acc2));
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: var(--tr-spring);
}

#voz-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.12);
}

/* ╔═══════════════════════════════╗
   ║  FLOAT BUY BUTTON             ║
   ╚═══════════════════════════════╝ */
#float-buy {
    position: fixed;
    bottom: calc(var(--nav) + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: none;              /* shown only by JS when ≤7 days */
    align-items: center;
    gap: 7px;
    padding: 9px 18px 9px 14px;
    background: linear-gradient(135deg, var(--amb), #f97316);
    color: #fff;
    font-family: var(--f);
    font-weight: 700;
    font-size: .76rem;
    text-decoration: none;
    border-radius: var(--pill);
    box-shadow: 0 6px 20px rgba(245,158,11,.4);
    white-space: nowrap;
    transition: var(--tr-spring);
    letter-spacing: .02em;
}

/* Single warning icon — no key in HTML text */
#float-buy::before {
    content: '⚠️';
    font-size: .82rem;
    flex-shrink: 0;
}

#float-buy:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 28px rgba(245,158,11,.55);
    filter: brightness(1.08);
}

@media (min-width: 768px) {
    #float-buy {
        bottom: 28px;
        left: auto;
        right: 90px;
        transform: none;
    }

    #float-buy:hover {
        transform: translateY(-2px);
    }
}