/* Universal Bottom Nav */
body {
    padding-bottom: 70px !important; /* Space for bottom nav */
}
.top-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
.top-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #64748b; /* Sleeker unselected color */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    user-select: none;
    position: relative;
}
.top-bottom-nav .nav-item.active {
    color: #00d2ff;
    transform: translateY(-2px);
}
.top-bottom-nav .nav-item .nav-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-bottom-nav .nav-item .nav-icon svg {
    transition: all 0.3s ease;
}
.top-bottom-nav .nav-item.active .nav-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.4));
}
.top-bottom-nav .nav-item .nav-label {
    font-size: 0.65rem;
    font-weight: 600;
}
/* 通知バッジ（新着ドット） */
.top-bottom-nav .nav-item .nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    width: 9px;
    height: 9px;
    background: #f43f5e;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.6);
    animation: pulse-badge 2s ease infinite;
    pointer-events: none;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Rich Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.login-modal-card {
    background: rgba(20, 25, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 20px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.login-modal-overlay.active .login-modal-card {
    transform: translateY(0);
}
.login-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse-glow 2s infinite;
}
.login-modal-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}
.login-modal-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 25px;
}
.login-modal-btn {
    background: linear-gradient(135deg, #4285F4 0%, #3b76d9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    margin-bottom: 15px;
}
.login-modal-cancel {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}
@keyframes pulse-glow {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
    100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
}
