body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 18px), 400px);
    max-width: 400px;
    height: 68px;
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px 8px;
    z-index: 100002;
    background: linear-gradient(180deg, rgba(255, 248, 244, 0.94), rgba(254, 211, 193, 0.9));
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 12px 32px rgba(92, 58, 46, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 0 0 1px rgba(196, 122, 98, 0.14);
    overflow: visible;
    box-sizing: border-box;
}

.bottom-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 160, 138, 0.85), #c47a62, rgba(232, 160, 138, 0.85), transparent);
    pointer-events: none;
}

.bottom-nav .nav-btn {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 100002;
    width: 20%;
    min-width: 0;
    height: 54px;
    margin: 0 !important;
    padding: 0 2px 2px !important;
    cursor: pointer;
    position: relative;
    color: #6b4034 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    text-transform: none;
    font-weight: 700;
    transition: color 0.25s ease;
}

.bottom-nav .nav-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    color: currentColor;
    stroke-width: 1.7;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35));
    transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.bottom-nav .nav-btn img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.bottom-nav .nav-btn span {
    font-size: 0.62rem;
    font-weight: 700;
    color: #6b4034 !important;
    margin-top: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    background: none !important;
    -webkit-text-fill-color: #6b4034;
    animation: none !important;
}

.bottom-nav .nav-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #e8a08a, #c47a62);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.bottom-nav .nav-btn:hover {
    color: #9a3412 !important;
}

.bottom-nav .nav-btn:hover svg {
    transform: translateY(-1px);
}

.bottom-nav .nav-btn:hover span,
.bottom-nav .nav-btn.active span {
    color: #9a3412 !important;
    -webkit-text-fill-color: #9a3412;
}

.bottom-nav .nav-btn.active {
    color: #9a3412 !important;
}

.bottom-nav .nav-btn.active svg {
    filter: drop-shadow(0 2px 6px rgba(196, 122, 98, 0.45));
}

.bottom-nav .nav-btn.active::after {
    width: 16px;
}

.bottom-nav .nav-btn.home-icon {
    width: 58px;
    min-width: 58px;
    height: 58px;
    margin: 0 2px 10px !important;
    padding: 0 !important;
    justify-content: center;
    border-radius: 50% !important;
    background: linear-gradient(160deg, #ffe4d6 0%, #e8a08a 46%, #c47a62 100%) !important;
    box-shadow:
        0 10px 20px rgba(196, 122, 98, 0.42),
        0 0 0 5px rgba(255, 240, 232, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.bottom-nav .nav-btn.home-icon::after {
    display: none;
}

.bottom-nav .nav-btn.home-icon svg {
    width: 26px;
    height: 26px;
    color: #fff8f4;
    filter: drop-shadow(0 1px 2px rgba(92, 58, 46, 0.35));
}

.bottom-nav .nav-btn.home-icon span {
    display: none;
}

.bottom-nav .nav-btn.home-icon:hover,
.bottom-nav .nav-btn.home-icon.active {
    color: #fff8f4 !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 14px 24px rgba(196, 122, 98, 0.5),
        0 0 0 5px rgba(255, 240, 232, 0.98),
        0 0 18px rgba(232, 160, 138, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.bottom-nav .nav-btn.home-icon:hover svg,
.bottom-nav .nav-btn.home-icon.active svg {
    color: #fff;
    transform: none;
    filter: drop-shadow(0 2px 4px rgba(92, 58, 46, 0.35));
}

@media (prefers-reduced-motion: reduce) {
    .bottom-nav .nav-btn,
    .bottom-nav .nav-btn svg,
    .bottom-nav .nav-btn::after {
        transition: none;
    }
}
