* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #050505;
    margin: 0;
    min-height: 100vh;
}

@media (min-width: 500px) {
    body {
        background: linear-gradient(to right, #120024, #000000, #001a2c);
        display: flex;
        justify-content: center;
    }
}

.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #0f0f0f;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Splash */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.splash.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-text {
    font-size: 120px;
    font-weight: 900;
    letter-spacing: -10px;
    background: linear-gradient(90deg, #333 50%, #00E676 50%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fillEz 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillEz {
    0% {
        background-position        background-position: 0 0;
    }
}

/* UI Elements */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #00E676;
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #2979FF;
    bottom: 100px;
    right: -100px;
}

.brand {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 900;
    color: #00E676;
    z-index: 100;
    letter-spacing: -1px;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    pointer-events: none;
}

.page-content {
    padding: 24px 20px 120px 20px;
    position: relative;
    z-index: 1;
    animation: screenIn 0.4s;
}

@keyframes screenIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    padding-right: 60px;
}

.sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: 0.2s;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    z-index: 10;
    display: block;
    text-decoration: none;
    text-align: center;
}

.btn:active {
    transform: scale(0.96);
}

.btn-p {
    background: #00E676;
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25);
}

.btn-o {
    background: transparent;
    color: #00E676;
    border: 2px solid #00E676;
}

.btn-d {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-top: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.b-r {
    background: rgba(255, 82, 82, 0.15);
    color: #FF5252;
}

.b-g {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
}

.b-b {
    background: rgba(41, 121, 255, 0.15);
    color: #448AFF;
}

.b-y {
    background: rgba(255, 171, 0, 0.15);
    color: #FFAB00;
}

/* Charts */
.chart-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    margin-top: 15px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 10%;
}

.bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: 1s;
}

.bar.active {
    background: #00E676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.bar-label {
    font-size: 10px;
    color: #555;
}

/* Bottom Nav */
.bnav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 85px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    padding-bottom: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bnav.hidden {
    transform: translateX(-50%) translateY(100%);
}

.nav-i {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #444;
    transition: 0.3s;
    width: 50px;
    text-decoration: none;
}

.nav-i.active {
    color: #00E676;
}

.nav-t {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

.scan-wrap {
    margin-top: -35px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #00E676, #00B0FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 230, 118, 0.5);
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.scan-wrap:active {
    transform: scale(0.9);
}

/* Mine Tabs & Accordion */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tab.active {
    background: rgba(0, 230, 118, 0.1);
    color: #00E676;
    border-color: rgba(0, 230, 118, 0.3);
}

.mine-view {
    display: none;
}

.mine-view.active {
    display: block;
    animation: screenIn 0.3s;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body.open {
    max-height: 500px;
}

.detail-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.img-dummy {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.row:last-child {
    border-bottom: none;
}

.img-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: #1e1e1e;
    width: 85%;
    max-width: 350px;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 0.8;
    }
}

.skel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    animation: pulse 1s infinite alternate;
}