* {
    font-family: "Archivo",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    background: transparent;
    width: 0px;
    height: 0px;
}
body {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.search_bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(148,163,184,.25);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-bar-inner {
    max-width: 80rem;
    margin: auto;
    display: flex;
    height: 64px;
}

.bottom-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 10px;
    color: #64748b;
    position: relative;
    transition: all .2s ease;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 800;
}

.bottom-item i {
    display: block;
    font-size: 17px;
    margin-bottom: 2px;
    color: #94a3b8;
}

/* INDICATOR */
.bottom-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 999px;
    transition: width .2s ease;
}

/* ACTIVE */
.bottom-item.active {
    font-weight: 800;
}
.bottom-item.active::after {
    width: 22px;
}

/* WATCHLIST */
.bottom-item.tab-watchlist.active,
.bottom-item.tab-watchlist.active i {
    color: #0ea5e9;
}
.bottom-item.tab-watchlist.active::after {
    background: #0ea5e9;
}

/* POSITION */
.bottom-item.tab-position.active,
.bottom-item.tab-position.active i {
    color: #10b981;
}
.bottom-item.tab-position.active::after {
    background: #10b981;
}

/* ORDERS */
.bottom-item.tab-orders.active,
.bottom-item.tab-orders.active i {
    color: #f59e0b;
}
.bottom-item.tab-orders.active::after {
    background: #f59e0b;
}

/* PROFILE */
.bottom-item.tab-profile.active,
.bottom-item.tab-profile.active i {
    color: #f43f5e;
}
.bottom-item.tab-profile.active::after {
    background: #f43f5e;
}

.my_watchlist {
    margin-bottom: 80px;
}

.btn-mini {
    padding: 6px 0;
    font-size: 9px;
    font-weight: 600;
    border-radius: 6px;
    border-width: 0px;
    transition: all .15s ease;
}
.btn-mini:hover {
    filter: brightness(0.95);
}

.pksbb {
    max-height: 200px;
    overflow: scroll;
}

/* ===== BLUR OVERLAY ===== */
.footer-blur-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: white;
}

/* ===== FIXED CARD (TOP 10%) ===== */
.footer-action-fixed {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    backdrop-filter: blur(1px);
    width: 100%;
    background: white;
}

/* ===== BAR ===== */
.footer-bar {
    position: relative;
    border: 0px solid #e2e8f0;
    background: rgba(248,250,252,.85);
    border-radius: 12px;
    padding: 10px 12px;
}

/* ===== ACTIONS ===== */
.footer-actions {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.footer-actions::-webkit-scrollbar {
    display: none;
}
.footer-actions .btn-mini {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===== CLOSE BUTTON (×) ===== */
.footer-close {
    position: absolute;
    top: -25px;
    left: 10px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    cursor: pointer;

    transition: transform .18s ease, box-shadow .18s ease;
}
.footer-close i {
    font-size: 14px;
    color: #FF004D;
    line-height: 1;
}
.footer-close:hover {
    transform: scale(1.08);
    box-shadow:
    0 8px 22px rgba(249,115,22,.45),
    inset 0 0 0 1px rgba(255,255,255,.35);
}
.footer-close:active {
    transform: scale(.9);
}

.footer-close i {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
    transform-origin: center;
}
.footer-close:hover i {
    animation: gloriousBack 0.8s cubic-bezier(0.68,-0.55,0.265,1.55);
    color: #FF6B9D;
    text-shadow: 0 0 10px rgba(255,0,77,0.5);
}
@keyframes gloriousBack {
    0% {
        transform: scale(1) rotate(0deg) translateX(0);
    }
    30% {
        transform: scale(1.2) rotate(-10deg) translateX(-5px);
    }
    50% {
        transform: scale(1.1) rotate(-20deg) translateX(-10px);
    }
    70% {
        transform: scale(1.05) rotate(-10deg) translateX(-5px);
    }
    100% {
        transform: scale(1) rotate(0deg) translateX(0);
    }
}