/* ===== APPS PAGE ===== */
.apps-page {
    position: fixed;
    inset: 0;
    bottom: 68px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    height: 100vh;
    backdrop-filter: blur(10px);
}

.apps-page.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.apps-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 16px;
    -webkit-overflow-scrolling: touch;

}

.apps-row {
    display: flex;
    margin-bottom: 6px;
    border-radius: 18px;
    padding: 12px 6px;
    backdrop-filter: blur(10px);
}

.app-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 8px 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-cell:hover {
    transform: scale(1.05);
}

.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s, filter 0.3s;
}

.app-icon.colored {
    color: #fff;
}

.app-icon.light {
    background: #b3b3b3;
    color: var(--white-color);
}

.app-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.app-badge:hover {
    transform: scale(1.2);
}

.app-badge.remove {
    background: var(--pink-color);
}

.app-badge.add {
    background: var(--secondary-color);
}

.app-name {
    font-size: 10.5px;
    color: #444;
    text-align: center;
    line-height: 1.3;
    max-width: 76px;
    font-weight: 500;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 105;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.open {
    opacity: 0;
    pointer-events: auto;
}

/* ===== ARC CONTAINER ===== */
.arc-container {
    position: fixed;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 220px;
    pointer-events: none;
    z-index: 110;
}

.arc-bg {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 350px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.arc-bg.open {
    opacity: 1;
}

.arc-menu {
    position: absolute;
    bottom: 75px;
    width: 100%;
    height: 200px;
    opacity: 0;
    transform: scale(0.6) translateY(30px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arc-menu.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.arc-item {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.arc-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.arc-item .tooltip {
    position: absolute;
    top: -28px;
    font-size: 11px;
    white-space: nowrap;
    background: rgba(30, 30, 47, 0.9);
    padding: 4px 10px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.arc-item:hover .tooltip {
    opacity: 1;
}

.arc-label {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.arc-label.open {
    opacity: 1;
}

.arc-menu.open .arc-item {
    animation: popIn 0.35s ease backwards;
}

.arc-menu.open .arc-item:nth-child(1) {
    animation-delay: 0.02s;
}

.arc-menu.open .arc-item:nth-child(2) {
    animation-delay: 0.05s;
}

.arc-menu.open .arc-item:nth-child(3) {
    animation-delay: 0.08s;
}

.arc-menu.open .arc-item:nth-child(4) {
    animation-delay: 0.11s;
}

.arc-menu.open .arc-item:nth-child(5) {
    animation-delay: 0.14s;
}

.arc-menu.open .arc-item:nth-child(6) {
    animation-delay: 0.17s;
}

.arc-menu.open .arc-item:nth-child(7) {
    animation-delay: 0.20s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== BOTTOM BAR ===== */
.bottom-bar-wrapper {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 120;
    background-color: #96969633;
    backdrop-filter: blur(35px);
    padding-block: 8px;
}

.bottom-bar {
    position: relative;
    width: 94%;
    max-width: 600px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    z-index: 2;
}

.bar-link {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    background-color: var(--white-color);
}

.bar-link:not(:first-child) {
    border: 2px solid #595CA3;
}

.bar-link:hover {
    transform: translateY(-3px);
}

.bar-link:active {
    transform: scale(0.95);
}

.bar-link.active {
    color: #fff;
    background: var(--primary-color);
}

.bar-toggle {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white-color);
    border: 2px solid #595CA3;
    padding: 0;
}

.bar-toggle:hover {
    transform: translateY(-3px);
}

.bar-toggle.open {
    background: var(--primary-color);
}

.bar-toggle picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar-toggle picture img {
    width: 24px;
    height: 24px;
}

@media (max-width: 767.98px) {
    .menu-wrapper {
        display: none;
    }
}