html, body {
    height: 100%;
    overflow: hidden;
}

.app-shell {
    display: none;
    flex-direction: column;
    height: 100vh;
    max-width: 100vw;
}

.app-shell.active {
    display: flex;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 100px 16px;
}

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-screen.hidden {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #0a0a0a;
    border-radius: 12px;
    padding: 32px 24px;
}

.login-card .login-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #ffffff;
}

.login-card h4 {
    text-align: center;
    margin-bottom: 4px;
    font-weight: 600;
}

.login-card p {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-card .form-control {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 48px;
}

.login-card .form-control:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.login-card .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 600;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 4px 0;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
}

.bottom-nav .tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s;
    cursor: pointer;
    min-height: 48px;
    border: none;
    background: none;
}

.bottom-nav .tab-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav .tab-btn span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav .tab-btn.active,
.bottom-nav .tab-btn:hover {
    color: #ffffff;
}

.bottom-nav .tab-btn.active i {
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.offcanvas {
    background: #0a0a0a;
    color: rgba(255,255,255,0.8);
}

.offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.offcanvas .list-group-item {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.05);
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.offcanvas .list-group-item i {
    width: 24px;
    color: #ffffff;
    margin-right: 12px;
}

.offcanvas .list-group-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

@media (min-width: 768px) {
    .main-content {
        padding: 24px 24px 100px 24px;
        max-width: 720px;
        margin: 0 auto;
    }

    .bottom-nav {
        max-width: 720px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
    }

    .login-card {
        padding: 40px 32px;
    }
}