/* PWA Install Banner */
/* PWA Install Banner */
.install-banner {
    position: fixed;
    bottom: 70px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, #0d1220, #0a0e15);
    border: 1px solid rgba(0, 229, 176, 0.3);
    border-radius: 20px;
    padding: 12px 16px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.install-banner-content span {
    font-size: 13px;
    font-weight: 500;
    color: #e8edf8;
    flex: 1;
}

.install-banner-content button {
    background: #00e5b0;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 12px;
    color: #070b13;
    cursor: pointer;
    transition: all 0.2s;
}

.install-banner-content button:hover {
    background: #00cca0;
    transform: scale(1.02);
}

#close-banner {
    background: transparent;
    color: #94a3b8;
    padding: 8px;
    font-size: 16px;
}

#close-banner:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

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

/* Light mode */
body.light .install-banner {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: rgba(0, 229, 176, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light .install-banner-content span {
    color: #0f172a;
}



/* ╔═══════════════════════════════╗
   ║  CARDS                        ║
   ╚═══════════════════════════════╝ */
.card {
    background: var(--bg1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 10px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

/* accent top-line on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
    opacity: 0;
    transition: var(--tr);
}

.card:hover {
    border-color: var(--line3);
    box-shadow: var(--shadow-sm);
}

.card:hover::before { opacity: 1; }

.card .ch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.card .cd {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: var(--acc-glow);
    flex-shrink: 0;
}

.card .ct {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--txt3);
    font-family: var(--fm);
}

.card .ca {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ╔═══════════════════════════════╗
   ║  KPI CARDS                    ║
   ╚═══════════════════════════════╝ */
.kpi {
    background: var(--bg1);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 11px 13px;
    position: relative;
    overflow: hidden;
    transition: var(--tr);
}

/* diagonal tint background */
.kpi::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: currentColor;
    opacity: .04;
    pointer-events: none;
}

.kpi:hover {
    border-color: var(--line2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.kpi-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    opacity: .8;
}

.kl {
    font-size: .56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--txt3);
    margin-bottom: 5px;
    font-family: var(--fm);
}

.kv {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.3px;
    margin-bottom: 2px;
    line-height: 1.1;
    font-family: var(--f);
}

.ks {
    font-size: .56rem;
    color: var(--txt3);
    font-family: var(--fm);
}

/* ╔═══════════════════════════════╗
   ║  SIMPLE STAT CARDS            ║
   ╚═══════════════════════════════╝ */
.si {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 12px 10px;
    text-align: center;
    transition: var(--tr);
}

.si:hover {
    border-color: var(--line2);
    background: var(--bg3);
}

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

.sv {
    font-family: var(--fm);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: -.01em;
}

/* ╔═══════════════════════════════╗
   ║  TRANSACTION FEED             ║
   ╚═══════════════════════════════╝ */
.txfeed {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.txi {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 9px 11px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

/* left accent bar on hover */
.txi::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--acc);
    transform: scaleY(0);
    transition: transform .22s ease;
    border-radius: 0 2px 2px 0;
}

.txi:hover::before { transform: scaleY(1); }
.txi:hover { border-color: var(--line2); background: var(--bg3); }
.txi:active { transform: scale(0.992); background: var(--bg3); }

.txi-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    background: var(--bg3);
    border: 1px solid var(--line);
}

.txi-body {
    flex: 1;
    min-width: 0;
}

.txi-desc {
    font-weight: 600;
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
    letter-spacing: -.01em;
}

.txi-meta {
    font-size: .62rem;
    color: var(--txt3);
    font-family: var(--fm);
    letter-spacing: .02em;
}

.txi-amt {
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--fm);
    letter-spacing: -.02em;
}

.txi-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--txt3);
    font-size: .82rem;
    padding: 5px;
    border-radius: 6px;
    transition: var(--tr);
    flex-shrink: 0;
    opacity: .5;
}

.txi-del:hover {
    color: var(--red);
    background: rgba(255,69,102,.1);
    opacity: 1;
}

/* ╔═══════════════════════════════╗
   ║  BUTTONS                      ║
   ╚═══════════════════════════════╝ */
.btn-p, .btn-full {
    width: 100%;
    padding: 13px;
    background: var(--btn-bg, var(--acc));
    color: var(--btn-txt, #050c0a);
    border: none;
    border-radius: var(--rs);
    font-family: var(--f);
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--tr-spring);
    letter-spacing: .04em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,255,200,.18);
}

.btn-p::after, .btn-full::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn-p:hover:not(:disabled), .btn-full:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,255,200,.28);
}

.btn-p:active, .btn-full:active {
    transform: translateY(0);
    filter: brightness(.96);
}

.btn-p:disabled, .btn-full:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.btn-d {
    width: 100%;
    padding: 11px;
    background: rgba(255,69,102,.07);
    border: 1px solid rgba(255,69,102,.18);
    border-radius: var(--rs);
    color: var(--red);
    font-family: var(--f);
    font-weight: 700;
    font-size: .83rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--tr);
    letter-spacing: .02em;
}

.btn-d:hover {
    background: rgba(255,69,102,.14);
    border-color: rgba(255,69,102,.28);
    transform: translateY(-1px);
    box-shadow: var(--red-glow);
}

.btn-s {
    padding: 7px 14px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    color: var(--txt2);
    font-family: var(--f);
    font-weight: 700;
    font-size: .73rem;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    letter-spacing: .02em;
}

.btn-s:hover {
    background: var(--bg3);
    border-color: var(--line2);
    color: var(--txt);
}

.btn-ic {
    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;
    font-size: .88rem;
    transition: var(--tr);
    flex-shrink: 0;
}

.btn-ic:hover {
    background: var(--bg3);
    border-color: var(--line3);
    color: var(--acc);
}

/* ╔═══════════════════════════════╗
   ║  PROGRESS BARS                ║
   ╚═══════════════════════════════╝ */
.pwrap {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 13px 14px;
    margin-bottom: 10px;
}

.ph {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--txt2);
    margin-bottom: 8px;
    font-family: var(--fm);
}

.pbar {
    height: 6px;
    background: var(--bg4);
    border-radius: 20px;
    overflow: hidden;
}

.pfill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--acc2), var(--acc));
    transition: width .7s cubic-bezier(.34,1.4,.64,1);
    box-shadow: 0 0 8px var(--acc);
    position: relative;
}

.pfill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3));
    border-radius: 20px;
}

/* ╔═══════════════════════════════╗
   ║  INFO BLOCKS                  ║
   ╚═══════════════════════════════╝ */
.iblock {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-left: 3px solid;
    border-radius: var(--rs);
    padding: 13px 15px;
    margin-bottom: 10px;
}

.iblock.ca  { border-left-color: var(--acc); }
.iblock.cb  { border-left-color: var(--acc2); }
.iblock.cc  { border-left-color: var(--amb); }
.iblock.cd2 { border-left-color: var(--pur); }
.iblock.ce  { border-left-color: var(--red); }
.iblock.cf  { border-left-color: var(--cyn); }
.iblock.cg  { border-left-color: var(--grn); }

.iblock > strong {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--txt3);
    margin-bottom: 8px;
    font-family: var(--fm);
}

.ir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.ir:last-child { border-bottom: none; }

.il {
    color: var(--txt2);
    font-size: .83rem;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.iv {
    font-family: var(--fm);
    font-size: .8rem;
    font-weight: 500;
    max-width: 60%;
    text-align: right;
    word-break: break-all;
    color: var(--txt1);
}

/* ╔═══════════════════════════════╗
   ║  FORMS                        ║
   ╚═══════════════════════════════╝ */
.field { margin-bottom: 13px; }

.field label {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--txt3);
    margin-bottom: 5px;
    font-family: var(--fm);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg2);
    border: 1px solid var(--line2);
    border-radius: var(--rs);
    color: var(--txt);
    font-family: var(--f);
    font-size: .92rem;
    transition: var(--tr);
    -webkit-appearance: none;
    appearance: none;
    font-weight: 500;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--acc);
    background: var(--bg3);
    box-shadow: 0 0 0 3px rgba(0,255,200,.09), var(--acc-glow);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--txt3); }

.field select option {
    background: var(--bg2);
    color: var(--txt);
}

.field textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* field grid */
.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ╔═══════════════════════════════╗
   ║  MODALS                       ║
   ╚═══════════════════════════════╝ */
.moverlay, .modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(3,7,16,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.moverlay.on, .modal-bg.on { display: flex; }

.modal {
    background: var(--bg1);
    border: 1px solid var(--line2);
    border-radius: 18px;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--line3);
    animation: modalIn .22s cubic-bezier(.34,1.4,.64,1);
}

@keyframes modalIn {
    from { opacity:0; transform: scale(.94) translateY(12px); }
    to   { opacity:1; transform: scale(1)  translateY(0);     }
}

.mhdr, .mh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: -.01em;
    position: sticky;
    top: 0;
    background: var(--bg1);
    z-index: 1;
    border-radius: 18px 18px 0 0;
}

.mt { /* modal title */
    font-weight: 800;
    font-size: .92rem;
}

.mbtn-x {
    width: 28px; height: 28px;
    border: 1px solid var(--line);
    background: var(--bg3);
    border-radius: 8px;
    color: var(--txt3);
    font-size: .82rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tr);
    flex-shrink: 0;
}

.mbtn-x:hover { background: rgba(255,69,102,.12); color: var(--red); border-color: rgba(255,69,102,.2); }

.mbtns {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
}

.mbtn {
    flex: 1;
    padding: 11px;
    border-radius: var(--rs);
    font-family: var(--f);
    font-weight: 700;
    font-size: .83rem;
    cursor: pointer;
    transition: var(--tr);
    border: 1px solid var(--line);
    background: var(--bg2);
    color: var(--txt2);
    letter-spacing: .02em;
}

.mbtn:hover { background: var(--bg3); color: var(--txt); }

.mbtn.ok {
    background: var(--acc);
    color: var(--btn-txt);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,255,200,.2);
}

.mbtn.ok:hover { filter: brightness(1.1); }

/* ╔═══════════════════════════════╗
   ║  TOAST / NOTIFICATIONS        ║
   ╚═══════════════════════════════╝ */
.toast {
    position: fixed;
    bottom: calc(var(--nav) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg3);
    border: 1px solid var(--line2);
    border-radius: var(--pill);
    padding: 10px 18px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--txt1);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: all .28s cubic-bezier(.34,1.4,.64,1);
    white-space: nowrap;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    max-width: 90vw;
    text-align: center;
    letter-spacing: .01em;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.ok  { border-color: rgba(0,255,200,.25); color: var(--acc);  }
.toast.err { border-color: rgba(255,69,102,.25); color: var(--red); }
.toast.wa  { border-color: rgba(255,184,48,.25); color: var(--amb); }

/* ╔═══════════════════════════════╗
   ║  SIDE MENU                    ║
   ╚═══════════════════════════════╝ */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3,7,16,.55);
    backdrop-filter: blur(4px);
    z-index: 800;
    display: none;
    opacity: 0;
    transition: opacity .22s ease;
}

.side-menu-overlay.on { display: block; }
.side-menu-overlay.vis { opacity: 1; }

.side-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 300px);
    background: var(--bg1);
    border-left: 1px solid var(--line2);
    z-index: 801;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.on { transform: translateX(0); }

.sm-hdr {
    padding: 20px 18px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sm-title {
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.01em;
}

.sm-items {
    flex: 1;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.sm-item:hover { background: var(--bg2); color: var(--txt); }
.sm-item.on    { background: rgba(0,255,200,.08); color: var(--acc); }

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

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

/* ╔═══════════════════════════════╗
   ║  NOTIFICATION PANEL           ║
   ╚═══════════════════════════════╝ */
.notif-panel {
    position: fixed;
    top: var(--hdr); right: 0;
    width: min(90vw, 340px);
    background: var(--bg1);
    border: 1px solid var(--line2);
    border-top: none;
    border-radius: 0 0 var(--r) var(--r);
    z-index: 700;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--tr);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.notif-panel.on { transform: translateY(0); opacity: 1; pointer-events: auto; }

.np-hdr {
    padding: 14px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.np-items { overflow-y: auto; flex: 1; }

.np-item {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background .15s;
    position: relative;
}

.np-item:hover { background: var(--bg2); }

.np-item.unread {
    background: rgba(0,255,200,.04);
    border-left: 3px solid var(--acc);
}

.np-item.unread::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: var(--acc-glow);
}

.np-title {
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: 3px;
    display: flex; align-items: center; gap: 5px;
    letter-spacing: -.01em;
}

.np-body {
    font-size: .78rem;
    color: var(--txt2);
    line-height: 1.45;
    margin-bottom: 3px;
}

.np-meta {
    font-size: .65rem;
    color: var(--txt3);
    font-family: var(--fm);
}

/* ╔═══════════════════════════════╗
   ║  BADGES                       ║
   ╚═══════════════════════════════╝ */
.bdg {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--pill);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .3px;
    font-family: var(--fm);
}

.bdg-ok {
    background: rgba(0,255,200,.1);
    color: var(--acc);
    border: 1px solid rgba(0,255,200,.2);
}

.bdg-wa {
    background: rgba(255,184,48,.1);
    color: var(--amb);
    border: 1px solid rgba(255,184,48,.2);
}

.bdg-er {
    background: rgba(255,69,102,.1);
    color: var(--red);
    border: 1px solid rgba(255,69,102,.2);
}

/* ╔═══════════════════════════════╗
   ║  TABLES                       ║
   ╚═══════════════════════════════╝ */
.tw {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--rs);
    border: 1px solid var(--line);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    min-width: 360px;
}

.tbl th {
    text-align: left;
    padding: 11px 10px;
    background: var(--bg2);
    color: var(--txt3);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    border-bottom: 1px solid var(--line);
    font-family: var(--fm);
}

.tbl td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    font-family: var(--fm);
    font-size: .78rem;
}

.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg2); }

/* ╔═══════════════════════════════╗
   ║  WATCHLIST ITEMS              ║
   ╚═══════════════════════════════╝ */
.witem {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 12px;
    transition: var(--tr);
    margin-bottom: 6px;
}

.witem:hover { border-color: var(--line2); background: var(--bg3); }

.wi-logo {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem;
    flex-shrink: 0;
    background: var(--bg3);
    border: 1px solid var(--line);
    color: var(--acc);
    font-family: var(--fm);
}

.wi-info { flex: 1; min-width: 0; }

.wi-ticker {
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: -.01em;
    font-family: var(--fm);
}

.wi-name {
    font-size: .65rem;
    color: var(--txt3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wi-price { text-align: right; flex-shrink: 0; }

.wi-val {
    font-weight: 800;
    font-size: .92rem;
    font-family: var(--fm);
    letter-spacing: -.01em;
}

.wi-chg {
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 3px;
    font-family: var(--fm);
}

.wi-chg.pos { background: rgba(0,229,122,.1); color: var(--grn); }
.wi-chg.neg { background: rgba(255,69,102,.1); color: var(--red); }

.wi-acts {
    display: flex;
    gap: 4px;
    margin-left: 6px;
    flex-shrink: 0;
}

/* ╔═══════════════════════════════╗
   ║  METAS GRID                   ║
   ╚═══════════════════════════════╝ */
.mgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.mitem {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 15px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

.mitem:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

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

.mname {
    font-weight: 700;
    font-size: .86rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.mval {
    font-family: var(--fm);
    font-size: .78rem;
    font-weight: 700;
    color: var(--acc);
    flex-shrink: 0;
}

.mpbar {
    height: 5px;
    background: var(--bg4);
    border-radius: 20px;
    overflow: hidden;
    margin: 8px 0 7px;
}

.mpfill {
    height: 100%;
    background: linear-gradient(90deg, var(--acc2), var(--acc));
    border-radius: 20px;
    transition: width .45s ease;
    box-shadow: 0 0 7px var(--acc);
}

.mfoot {
    display: flex;
    justify-content: space-between;
    font-size: .65rem;
    color: var(--txt3);
    font-family: var(--fm);
}

/* ╔═══════════════════════════════╗
   ║  AÇÕES GRID                   ║
   ╚═══════════════════════════════╝ */
.acoes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.acao-card {
    cursor: pointer;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 13px;
    transition: var(--tr);
    overflow: hidden;
    position: relative;
}

.acao-card:hover {
    border-color: var(--line3);
    background: var(--bg3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.acao-hdr {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.acao-logo {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--acc2), var(--acc));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .78rem;
    flex-shrink: 0;
    color: #fff;
    font-family: var(--fm);
}

.acao-name { font-weight: 700; font-size: .83rem; letter-spacing: -.01em; }
.acao-ticker { font-size: .65rem; color: var(--txt3); font-family: var(--fm); }

.acao-price {
    font-weight: 800;
    font-size: .98rem;
    font-family: var(--fm);
    letter-spacing: -.01em;
    margin-bottom: 3px;
}

/* ╔═══════════════════════════════╗
   ║  INSIGHTS                     ║
   ╚═══════════════════════════════╝ */
.insight {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-left: 3px solid;
    border-radius: var(--rs);
    padding: 13px 15px;
    transition: var(--tr);
}

.insight:hover { border-color: var(--line2); transform: translateX(2px); }

.insight.blue  { border-left-color: var(--acc2); }
.insight.green { border-left-color: var(--grn); }
.insight.amber { border-left-color: var(--amb); }
.insight.red   { border-left-color: var(--red); }

.in-lb {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--txt3);
    margin-bottom: 4px;
    letter-spacing: .7px;
    font-family: var(--fm);
}

.in-val {
    font-weight: 800;
    font-size: .98rem;
    margin-bottom: 3px;
    letter-spacing: -.01em;
}

.in-sub { font-size: .68rem; color: var(--txt2); }

/* ╔═══════════════════════════════╗
   ║  COMPRAS / SHOPPING           ║
   ╚═══════════════════════════════╝ */
.compras-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.compra-item {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 11px;
    transition: var(--tr);
}

.compra-item:hover { border-color: var(--line2); }

.compra-item.comprado {
    opacity: .65;
    background: rgba(0,229,122,.04);
}

.compra-check {
    width: 22px; height: 22px;
    border-radius: 5px;
    border: 1.5px solid var(--acc);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: transparent;
    transition: var(--tr);
    flex-shrink: 0;
}

.compra-check.checked {
    background: var(--acc);
    color: #050c0a;
}

.compra-nome {
    flex: 3;
    font-size: .83rem;
    font-weight: 600;
    min-width: 0;
    letter-spacing: -.01em;
}

.compra-nome.riscado {
    text-decoration: line-through;
    color: var(--txt3);
}

.compra-detalhes {
    font-size: .65rem;
    color: var(--txt3);
    margin-top: 2px;
    font-family: var(--fm);
}

.compra-valor {
    font-family: var(--fm);
    font-size: .83rem;
    font-weight: 600;
    margin-right: 4px;
    flex-shrink: 0;
}

.compra-remove {
    color: var(--txt3);
    cursor: pointer;
    padding: 4px;
    font-size: .83rem;
    border-radius: 5px;
    transition: var(--tr);
    flex-shrink: 0;
    opacity: .5;
}

.compra-remove:hover {
    color: var(--red);
    background: rgba(255,69,102,.1);
    opacity: 1;
}

.compras-total {
    background: var(--bg1);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.compras-total span {
    font-size: .73rem;
    color: var(--txt3);
    font-family: var(--fm);
}

.compras-total strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--acc);
    font-family: var(--fm);
}

/* ╔═══════════════════════════════╗
   ║  CONFIG ITEMS (toggles)       ║
   ╚═══════════════════════════════╝ */
.cfg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

.cfg-item.cfg-last { border-bottom: none; }

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

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

.cfg-lb {
    font-size: .83rem;
    font-weight: 600;
    color: var(--txt1);
    line-height: 1.2;
    letter-spacing: -.01em;
}

.cfg-desc {
    font-size: .68rem;
    color: var(--txt3);
    margin-top: 2px;
    line-height: 1.3;
}

/* Toggle switch */
.tgl {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.tgl input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Track — desabilitado: cinza escuro */
.tslider {
    position: absolute;
    inset: 0;
    background: var(--bg4);
    border-radius: var(--pill);
    transition: background .22s ease, box-shadow .22s ease;
    border: 1.5px solid var(--line2);
}

/* Bolinha — desabilitado: cinza, lado esquerdo */
.tslider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--txt3);
    border-radius: 50%;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background .22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Track — habilitado: accent colorido */
.tgl input:checked + .tslider {
    background: var(--acc);
    border-color: var(--acc);
    box-shadow: 0 0 12px rgba(0,255,200,.3);
}

/* Bolinha — habilitado: branca/escura, lado direito */
.tgl input:checked + .tslider::before {
    transform: translateY(-50%) translateX(20px);
    background: #050c0a;
    box-shadow: 0 1px 6px rgba(0,0,0,.25);
}

/* Color picker swatches */
.cor-op {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--tr-spring);
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.cor-op:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.cor-op.on {
    border-color: var(--txt1);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg1), 0 0 0 4px var(--txt1);
}

/* Keybox (license key display) */
.keybox {
    background: var(--bg2);
    border: 1px solid var(--line2);
    border-radius: var(--rs);
    padding: 12px 14px;
    font-family: var(--fm);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-align: center;
    color: var(--acc);
    margin-bottom: 14px;
    word-break: break-all;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
}

/* Footer */
.ftr {
    text-align: center;
    font-size: .65rem;
    color: var(--txt3);
    padding: 16px 0 4px;
    font-family: var(--fm);
    letter-spacing: .04em;
}

/* brow = button row */
.brow {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Backup items */
.bk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.bk-item:last-child { border-bottom: none; }

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

.bk-body { flex: 1; min-width: 0; }

.bk-name {
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.bk-sub {
    font-size: .68rem;
    color: var(--txt3);
    margin-top: 2px;
    font-family: var(--fm);
}

/* Avatar */
.av-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 4px;
    gap: 8px;
}

.av {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc2), var(--pur));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    flex-shrink: 0;
}

.av img { width: 100%; height: 100%; object-fit: cover; }

.av-btn {
    font-size: .73rem;
    color: var(--acc);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--pill);
    background: rgba(0,255,200,.08);
    border: 1px solid rgba(0,255,200,.15);
    transition: var(--tr);
}

.av-btn:hover { background: rgba(0,255,200,.14); }

.av-name {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.av-role {
    font-size: .68rem;
    color: var(--txt3);
    font-family: var(--fm);
}

/* Modal fields */
.mfield {
    padding: 0 16px 12px;
}

.mfield label {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--txt3);
    margin-bottom: 5px;
    font-family: var(--fm);
}

.mfield input,
.mfield select {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg2);
    border: 1px solid var(--line2);
    border-radius: var(--rs);
    color: var(--txt);
    font-family: var(--f);
    font-size: .92rem;
    transition: var(--tr);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-weight: 500;
}

.mfield input:focus,
.mfield select:focus {
    outline: none;
    border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(0,255,200,.09);
}

/* smsg = status message */
.smsg {
    font-size: .75rem;
    margin-top: 8px;
    min-height: 20px;
    text-align: center;
    color: var(--txt3);
    line-height: 1.5;
}

/* lform = license form container */
.lform {
    background: var(--bg1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 12px;
}

/* ttype = transaction type selector */
.ttype {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.ttbtn {
    flex: 1;
    padding: 11px;
    border: 1.5px solid var(--line2);
    border-radius: var(--rs);
    background: var(--bg2);
    color: var(--txt2);
    font-family: var(--f);
    font-weight: 700;
    font-size: .83rem;
    cursor: pointer;
    transition: var(--tr);
    text-align: center;
}

.ttbtn.on.inc {
    background: rgba(0,229,122,.1);
    border-color: rgba(0,229,122,.3);
    color: var(--grn);
}

.ttbtn.on.exp {
    background: rgba(255,69,102,.1);
    border-color: rgba(255,69,102,.3);
    color: var(--red);
}

/* rgroup = radio group */
.rgroup {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ropt {
    flex: 1;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: var(--rs);
    background: var(--bg2);
    color: var(--txt2);
    font-family: var(--f);
    font-weight: 600;
    font-size: .75rem;
    cursor: pointer;
    transition: var(--tr);
    text-align: center;
}

.ropt.on {
    background: rgba(0,255,200,.1);
    border-color: rgba(0,255,200,.25);
    color: var(--acc);
}

/* AI card */
.ai-card {
    background: linear-gradient(135deg, rgba(0,255,200,.07), rgba(61,139,255,.05));
    border: 1px solid rgba(0,255,200,.2);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 12px;
}

.ai-badge {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--acc);
    margin-bottom: 10px;
    font-family: var(--fm);
}

.ai-text {
    font-size: .82rem;
    color: var(--txt2);
    line-height: 1.7;
}

/* fsb = footer small bar */
.fsb {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

/* cat-list */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ╔═══════════════════════════════╗
   ║  CÂMBIO                       ║
   ╚═══════════════════════════════╝ */
.cambio-item {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.cambio-sym {
    font-weight: 700;
    font-size: .7rem;
    color: var(--txt2);
    white-space: nowrap;
}

.cambio-val {
    font-family: var(--fm);
    font-weight: 800;
    font-size: .78rem;
    color: var(--txt1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cambio-chg {
    font-family: var(--fm);
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.cambio-up { background: rgba(0,229,122,.1);  color: var(--grn); }
.cambio-dn { background: rgba(255,69,102,.1); color: var(--red); }

/* ╔═══════════════════════════════╗
   ║  COMPARATIVO MÊS A MÊS        ║
   ╚═══════════════════════════════╝ */
.cmp-item {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cmp-lbl {
    font-size: .65rem;
    color: var(--txt3);
    font-weight: 600;
    flex-shrink: 0;
}

.cmp-val {
    font-family: var(--fm);
    font-weight: 700;
    font-size: .85rem;
    flex: 1;
    text-align: right;
}

.cmp-delta {
    font-family: var(--fm);
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 4px;
}

.cmp-pos { background: rgba(0,229,122,.1);  color: var(--grn); }
.cmp-neg { background: rgba(255,69,102,.1); color: var(--red); }

/* ╔═══════════════════════════════╗
   ║  VOZ BUTTON — recording state ║
   ╚═══════════════════════════════╝ */
/* Recording: sempre vermelho pulsante independente da cor de fundo escolhida.
   O !important é necessário pois App.applyVozBg seta background via style inline. */
#voz-btn.recording {
    background: var(--red) !important;
    box-shadow: 0 0 0 4px rgba(255,69,102,.25), 0 8px 24px rgba(255,69,102,.4) !important;
    animation: vozPulse 1s ease-in-out infinite;
    color: #fff !important;
}

@keyframes vozPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,69,102,.2),  0 8px 24px rgba(255,69,102,.35) !important; }
    50%       { box-shadow: 0 0 0 10px rgba(255,69,102,.1), 0 8px 32px rgba(255,69,102,.55) !important; }
}

/* ╔═══════════════════════════════╗
   ║  SCORE CARD                   ║
   ╚═══════════════════════════════╝ */
.score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px;
}

.score-ring-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.score-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.score-num {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--fm);
    letter-spacing: -.03em;
}

.score-lbl-sm {
    font-size: .48rem;
    color: var(--txt3);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: var(--fm);
}

.score-emoji {
    font-size: .8rem;
    margin-top: 1px;
}

.score-label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--txt1);
    text-align: center;
    letter-spacing: -.01em;
}

.score-bar-wrap {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 10px 12px;
}

/* ╔═══════════════════════════════╗
   ║  CÂMBIO GRID                  ║
   ╚═══════════════════════════════╝ */
.cambio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Em telas mais largas, 4 colunas */
@media (min-width: 420px) {
    .cambio-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

.cambio-time {
    font-size: .6rem;
    color: var(--txt3);
    font-family: var(--fm);
}

/* ╔═══════════════════════════════╗
   ║  CALCULADORA RESULTADO        ║
   ╚═══════════════════════════════╝ */
.calc-res {
    background: rgba(0,255,200,.05);
    border: 1px solid rgba(0,255,200,.15);
    border-radius: var(--rs);
    padding: 16px;
    text-align: center;
    margin-top: 8px;
}

.calc-res-lbl {
    font-size: .58rem;
    color: var(--txt3);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-family: var(--fm);
    margin-bottom: 8px;
}

.calc-res-total {
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--acc);
    line-height: 1;
    font-family: var(--fm);
    letter-spacing: -.04em;
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-all;
}

.calc-res-sub {
    font-size: .7rem;
    color: var(--txt3);
    margin-bottom: 14px;
    min-height: 18px;
}

.calc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 2px;
}

.calc-stat {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 10px 6px;
    text-align: center;
    min-width: 0;
}

.calc-stat-lbl {
    font-size: .55rem;
    color: var(--txt3);
    font-family: var(--fm);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-stat-val {
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--fm);
    letter-spacing: -.02em;
    word-break: break-all;
}

/* ╔═══════════════════════════════╗
   ║  SOBRE / ABOUT CARD           ║
   ╚═══════════════════════════════╝ */
.sobre-hero {
    text-align: center;
    padding: 24px 16px !important;
}

.sobre-logo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: transparent;
    margin: 0 auto 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.sobre-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}

.sobre-sub {
    font-size: .72rem;
    color: var(--txt2);
    margin-top: 5px;
    margin-bottom: 16px;
}

.sobre-stats {
    max-width: 240px;
    margin: 0 auto 16px;
}

.sobre-desc {
    font-size: .76rem;
    color: var(--txt2);
    line-height: 1.8;
    max-width: 300px;
    margin: 0 auto;
}

/* ╔═══════════════════════════════╗
   ║  SCORE BAR WRAP               ║
   ╚═══════════════════════════════╝ */
/* Reset ph margin inside score-bar-wrap so there's no double spacing */
.score-bar-wrap .ph {
    margin-bottom: 6px;
    font-size: .68rem;
}

/* ╔═══════════════════════════════╗
   ║  WELCOME OVERLAY              ║
   ╚═══════════════════════════════╝ */
.welcome-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

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

.welcome-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

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

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-bottom: 18px;
}

.welcome-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--rs);
    padding: 10px 12px;
    transition: var(--tr);
}

.welcome-feat:hover {
    border-color: var(--line3);
    background: var(--bg3);
}

.welcome-feat-ic {
    font-size: 1rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--bg3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
}

.welcome-feat-title {
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: -.01em;
    color: var(--txt1);
}

.welcome-feat-desc {
    font-size: .68rem;
    color: var(--txt3);
    margin-top: 1px;
    line-height: 1.35;
}

.welcome-cta {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .82rem;
}

.welcome-hint {
    margin-top: 10px;
    font-size: .68rem;
    color: var(--txt3);
    text-align: center;
    line-height: 1.5;
}

/* ╔═══════════════════════════════╗
   ║  LOGO TRANSPARENTE            ║
   ╚═══════════════════════════════╝ */

/* Quando a pref logo-transp está ativa, remove o gradiente de todos os containers */
html.logo-transp .logo-icon,
html.logo-transp .ds-logo-icon,
html.logo-transp .sobre-logo-wrap,
html.logo-transp .welcome-logo-wrap {
    background: transparent !important;
    box-shadow: none !important;
}

/* Imagens em modo transparente ocupam 100% do container */
html.logo-transp .logo-icon img,
html.logo-transp .ds-logo-icon img,
html.logo-transp .sobre-logo-img,
html.logo-transp .welcome-logo-img {
    width: 100% !important;
    height: 100% !important;
}

/* ╔═══════════════════════════════════════════╗
   ║  SIDE MENU — classes para substituir      ║
   ║  inline styles do SideMenu.js             ║
   ╚═══════════════════════════════════════════╝ */

/* Painel deslizante */
#side-menu-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(300px, 88vw);
    background: var(--bg1);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 40px rgba(0,0,0,.55), 1px 0 0 var(--line);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

/* Header do painel */
.sm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.sm-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sm-logo-wrap {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--acc-glow);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.sm-logo-wrap img {
    width: 82%; height: 82%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.sm-name {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

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

.sm-subtitle {
    font-size: .55rem;
    color: var(--txt3);
    font-family: var(--fm);
    letter-spacing: .04em;
    margin-top: 1px;
}

.sm-close-btn {
    width: 32px; height: 32px;
    border-radius: 7px;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--txt2);
    cursor: pointer;
    font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tr);
    flex-shrink: 0;
    min-width: 44px; min-height: 44px; /* touch target */
}

.sm-close-btn:hover {
    background: rgba(255,69,102,.1);
    color: var(--red);
    border-color: rgba(255,69,102,.3);
}

/* Conteúdo scrollável */
.sm-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    scrollbar-width: none;
}
.sm-content::-webkit-scrollbar { display: none; }

/* Footer do painel */
.sm-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sm-footer-txt {
    font-size: .6rem;
    color: var(--txt3);
    font-family: var(--fm);
}

.sm-theme-btn {
    width: 32px; height: 32px;
    border-radius: 7px;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--txt2);
    cursor: pointer;
    font-size: .82rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tr);
    min-width: 44px; min-height: 44px; /* touch target */
}

.sm-theme-btn:hover {
    background: var(--bg3);
    border-color: var(--line2);
}

/* Seção (cabeçalho clicável) */
.sm-section-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--f);
    transition: all .18s;
    text-align: left;
}

.sm-section-btn:hover {
    background: var(--bg2);
    border-color: var(--line);
}

.sm-section-btn.active {
    background: rgba(var(--sm-rgb), .1);
    border-color: rgba(var(--sm-rgb), .25);
}

.sm-section-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
    background: rgba(var(--sm-rgb), .15);
    border: 1px solid rgba(var(--sm-rgb), .2);
}

.sm-section-label {
    flex: 1;
    text-align: left;
    font-size: .85rem;
    font-weight: 700;
    color: var(--txt1);
    letter-spacing: -.01em;
}

.sm-section-btn.active .sm-section-label {
    color: rgb(var(--sm-rgb));
}

.sm-chevron {
    font-size: .75rem;
    color: var(--txt3);
    opacity: .5;
    flex-shrink: 0;
}

.sm-section-btn.active .sm-chevron {
    color: rgb(var(--sm-rgb));
    opacity: 1;
}

/* Subitem */
.sm-sub-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: var(--f);
    color: var(--txt2);
    transition: background .15s, color .15s;
}

.sm-sub-btn:hover {
    background: var(--bg2);
    color: var(--txt1);
}

.sm-sub-ic {
    font-size: .82rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.sm-sub-info { flex: 1; min-width: 0; }

.sm-sub-label {
    font-size: .82rem;
    font-weight: 600;
    color: inherit;
    letter-spacing: -.01em;
    display: block;
}

.sm-sub-desc {
    font-size: .65rem;
    color: var(--txt3);
    margin-top: 1px;
    display: block;
}

.sm-sub-arrow {
    font-size: .75rem;
    color: var(--txt3);
    opacity: .5;
}

/* Separador entre seções */
.sm-section-wrap {
    margin-bottom: 2px;
}

.sm-subs-wrap {
    margin-top: 2px;
}

/* FAQ styles */
.faq-answer.hidden {
    display: none;
}

.faq-answer {
    display: block;
}

/* Install cards */
.install-card {
    transition: all 0.2s ease;
}

.install-card:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
}

/* Quick cards */
.quick-card {
    transition: all 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
    background: rgba(0, 229, 176, 0.05);
}

/* Guide items */
.guide-item {
    transition: all 0.2s ease;
}

.guide-item:hover {
    transform: translateX(4px);
}

/* Welcome card */
.welcome-card {
    transition: all 0.2s ease;
}