/* ==================== 共享极简登录注册弹窗样式 (暗黑毛玻璃质感) ==================== */

.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: authPopupFadeIn 0.25s ease-out;
}

.auth-popup-overlay.hidden {
    display: none !important;
}

.auth-popup-card {
    background: rgba(28, 30, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: authPopupScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes authPopupScaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-popup-tabs {
    display: flex;
    gap: 1.2rem;
}

.auth-popup-tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.auth-popup-tab-btn.active {
    color: #ffffff;
}

.auth-popup-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 2px;
}

.auth-popup-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease;
}

.auth-popup-close-btn:hover {
    color: #ffffff;
}

.auth-popup-body {
    padding: 1.5rem;
}

.auth-popup-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-popup-form-group.hidden {
    display: none !important;
}

.auth-popup-form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-popup-form-group input {
    background: #151722;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.auth-popup-form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.auth-popup-submit-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.auth-popup-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.auth-popup-submit-btn:active {
    transform: translateY(0);
}

.auth-popup-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

/* ==================== VIP 在线支付模块样式扩展 ==================== */
.vip-popup-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.vip-popup-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.8rem 0;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.vip-popup-tab-btn.active {
    color: #fbbf24;
}

.vip-popup-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 2px;
}

.vip-popup-tab-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1rem;
}

.vip-popup-packages {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.vip-popup-pkg-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 0.4rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vip-popup-pkg-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.vip-popup-pkg-card.selected {
    background: rgba(251, 191, 36, 0.04);
    border-color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
}

.vip-popup-pkg-badge {
    position: absolute;
    top: -8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0a0a0c;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    line-height: 1;
    transform: scale(0.9);
}

.vip-popup-pkg-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.vip-popup-pkg-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fbbf24;
}

.vip-popup-pkg-price span {
    font-size: 0.6rem;
    font-weight: normal;
    color: #94a3b8;
}

.vip-popup-pkg-duration {
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.vip-popup-pay-hint {
    font-size: 0.68rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    margin-top: 0.2rem;
}

.vip-popup-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
    text-align: center;
}

.vip-popup-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(251, 191, 36, 0.15);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: vip-pay-spin 1s linear infinite;
}

@keyframes vip-pay-spin {
    to { transform: rotate(360deg); }
}

/* ==================== 共享个人中心下拉菜单样式 (完全同步 RunBeat 极简毛玻璃风格) ==================== */

/* 用户头像与菜单定位包裹容器 */
.user-profile-menu {
    position: relative !important;
    display: inline-block;
}

/* 统一已登录用户名按钮样式 */
.username-display {
    background: rgba(168, 85, 247, 0.08) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    color: #c084fc !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 99px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.username-display:hover {
    background: rgba(168, 85, 247, 0.15) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

/* 统一未登录“登录/注册”按钮样式 */
.nav-link-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 99px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* 下拉菜单面板容器 */
.profile-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    background: rgba(37, 39, 54, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    width: 160px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 0.5rem !important;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
}

/* 激活展示 */
.profile-dropdown.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 头部样式 */
.profile-dropdown .dropdown-header {
    padding: 0.6rem 0.6rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: left !important;
    margin-bottom: 0.25rem !important;
    background: transparent !important;
}

.profile-dropdown .dropdown-header p {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 0.2rem 0 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* 状态徽章 (普通注册用户) */
.profile-dropdown .badge-vip-status {
    font-size: 0.68rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #94a3b8 !important;
    font-weight: bold !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

/* 状态徽章 (VIP会员) */
.profile-dropdown .badge-vip-status.vip {
    color: #fbbf24 !important;
    font-weight: bold !important;
    background: transparent !important;
    border: none !important;
}

.profile-dropdown .badge-vip-status.vip span {
    display: block !important;
    font-size: 0.62rem !important;
    color: #64748b !important;
    font-weight: normal !important;
    margin-top: 0.1rem !important;
}

/* 下拉菜单主体 */
.profile-dropdown .dropdown-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 下拉菜单项 */
.profile-dropdown .dropdown-item {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    margin-bottom: 0.25rem !important;
}

.profile-dropdown .dropdown-item:last-child {
    margin-bottom: 0 !important;
}

/* 刷新账户状态项 */
.profile-dropdown #btn-refresh-status {
    color: #818cf8 !important;
}
.profile-dropdown #btn-refresh-status i {
    color: #818cf8 !important;
    font-size: 0.75rem !important;
}
.profile-dropdown #btn-refresh-status:hover {
    background: rgba(129, 140, 248, 0.1) !important;
}

/* 激活 VIP 项 */
.profile-dropdown #btn-open-vip-modal {
    color: #fbbf24 !important;
}
.profile-dropdown #btn-open-vip-modal i {
    color: #fbbf24 !important;
    font-size: 0.75rem !important;
}
.profile-dropdown #btn-open-vip-modal:hover {
    background: rgba(251, 191, 36, 0.1) !important;
}

/* 退出登录项 */
.profile-dropdown #btn-logout {
    color: #f87171 !important;
}
.profile-dropdown #btn-logout i {
    color: #f87171 !important;
    font-size: 0.75rem !important;
}
.profile-dropdown #btn-logout:hover {
    background: rgba(248, 113, 113, 0.1) !important;
}

