/* User Menu Dropdown Styles */
.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    position: relative;
}

/* User Dropdown - 初始隐藏状态 */
.user-menu-wrapper .user-dropdown,
.user-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 220px !important;
    max-width: 280px !important;
    padding: 8px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    display: block !important;
}

/* User Dropdown - 显示状态 */
.user-menu-wrapper .user-dropdown.show,
.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* User Info Section */
.user-dropdown .user-info,
.user-info {
    padding: 12px 16px !important;
    background: white !important;
    border-bottom: 1px solid #E5E7EB !important;
    margin: 0 !important;
}

.user-dropdown .user-email,
.user-email {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.5 !important;
}

.user-dropdown .user-balance,
.user-balance {
    font-size: 12px !important;
    color: #6B7280 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.user-dropdown .dropdown-divider {
    height: 1px !important;
    background: #E5E7EB !important;
    margin: 8px 0 !important;
    border: none !important;
}

/* Dropdown Items - 用户菜单项 */
.user-dropdown .dropdown-item {
    width: 100% !important;
    padding: 10px 16px !important;
    background: none !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #374151 !important;
    transition: background 0.2s !important;
    text-align: left !important;
}

.user-dropdown .dropdown-item:hover {
    background: #F3F4F6 !important;
    color: #374151 !important;
}

.user-dropdown .dropdown-item svg {
    flex-shrink: 0 !important;
    width: 14px !important;
    height: 14px !important;
    color: currentColor !important;
}

.user-dropdown .dropdown-item:hover svg {
    color: currentColor !important;
}

.user-dropdown .dropdown-item span {
    flex: 1 !important;
    text-align: left !important;
}

/* Logout Button - 特殊样式 */
.user-dropdown .dropdown-item:last-child {
    color: #EF4444 !important;
}

.user-dropdown .dropdown-item:last-child:hover {
    background: #FEF2F2 !important;
    color: #EF4444 !important;
}

/* Phone Numbers Modal Styles */
.phone-numbers-modal-content {
    max-width: 600px !important;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white !important;
}

.phone-numbers-modal-content .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
}

.phone-numbers-modal-content .modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.phone-numbers-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.my-numbers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.number-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s;
}

.number-card:hover {
    border-color: #9CA3AF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.number-card-info {
    flex: 1;
}

.number-card-phone {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.number-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge.suspended {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.expired {
    background: #E5E7EB;
    color: #374151;
}

.number-card-cost {
    font-size: 13px;
    color: #6B7280;
}

.number-card-actions {
    display: flex;
    gap: 8px;
}

.number-action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.number-action-btn.cancel {
    background: #FEE2E2;
    color: #991B1B;
}

.number-action-btn.cancel:hover {
    background: #FEE2E2;
    color: #7F1D1D;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.buy-number-btn-modal {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.buy-number-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.buy-number-btn-modal svg {
    flex-shrink: 0;
}
