.bottom-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    background: rgba(10, 15, 30, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(12px);
}

.bottom-nav-item {
    min-height: 56px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    background: rgba(120, 166, 255, 0.14);
    color: var(--text);
}

.app-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 48;
}

.app-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    background: rgba(10, 15, 30, 0.98);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: 1px solid var(--border);
    border-bottom: 0;
    padding: 12px 14px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.24s ease;
    max-height: 80vh;
    overflow: auto;
}

body.drawer-open .app-drawer {
    transform: translateY(0);
}

body.drawer-open .app-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.drawer-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 12px;
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.drawer-header h2 {
    margin: 4px 0 0;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.drawer-search {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.drawer-app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

.drawer-app-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.drawer-app-name {
    font-weight: 600;
}

.drawer-empty {
    display: none;
    margin-top: 8px;
    text-align: center;
    color: var(--text-soft);
}
