/* Profile Page Styles */

/* Quick Actions Bar */
.quick-actions-bar .quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
    cursor: pointer;
    min-width: 140px;
}
.quick-actions-bar .quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: white;
}
.quick-actions-bar .quick-action-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .quick-actions-bar .quick-action-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}
.info-card-icon.balance {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}
.info-card-icon.vip {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
}
.info-card-icon.account {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.info-card-icon.security {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}
.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}
.info-card-subtitle {
    font-size: 0.85rem;
    color: #888;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.info-list li:last-child {
    border-bottom: none;
}
.info-label {
    color: #666;
    font-size: 0.95rem;
}
.info-value {
    font-weight: 500;
    color: #333;
}

/* Action Buttons */
.action-btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s;
}
.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}
.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}
.action-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}
.action-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
    cursor: pointer;
}
.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: white;
}
.quick-action-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Button Effects */
.effect-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
.effect-glow {
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); }
    to { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8), 0 0 30px rgba(40, 167, 69, 0.6); }
}
.effect-bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* VIP Status Card */
.vip-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.vip-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.vip-status-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}
.vip-status-level {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.vip-status-expire {
    font-size: 0.85rem;
    opacity: 0.8;
}
.vip-upgrade-btn {
    margin-top: 15px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.vip-upgrade-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Recharge Modal Styles */
.recharge-amount-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}
.recharge-amount-card:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.recharge-amount-card.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}
.recharge-amount-card .amount {
    font-size: 1.5rem;
    font-weight: 700;
}
.recharge-amount-card .bonus {
    font-size: 0.85rem;
    color: #28a745;
    margin-top: 4px;
}
.recharge-amount-card.selected .bonus {
    color: rgba(255,255,255,0.9);
}

/* Payment Method Option */
.payment-method-option {
    cursor: pointer;
    transition: all 0.3s;
}
.payment-method-option:hover {
    border-color: #667eea !important;
}
.payment-method-option.selected {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #f0f0ff 0%, #e8e8ff 100%);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Mobile Bottom Toolbar */
.mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg, #ffffff);
    border-top: 1px solid var(--border-color, #e0e0e0);
    padding: 8px 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .mobile-toolbar.enabled {
        display: block;
    }
    body.has-mobile-toolbar {
        padding-bottom: 70px;
    }
}
.mobile-toolbar-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted, #666);
    font-size: 0.75rem;
    padding: 4px 12px;
    transition: color 0.2s;
}
.mobile-toolbar-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}
.mobile-toolbar-item:hover,
.mobile-toolbar-item.active {
    color: var(--primary-color, #667eea);
}
[data-theme="dark"] .mobile-toolbar {
    background: var(--card-bg, #1e1e2f);
    border-color: var(--border-color, rgba(255,255,255,0.1));
}
[data-theme="dark"] .mobile-toolbar-item {
    color: var(--text-muted, #a0a0a0);
}
[data-theme="dark"] .mobile-toolbar-item:hover,
[data-theme="dark"] .mobile-toolbar-item.active {
    color: var(--primary-color, #667eea);
}

/* Message Box Styles */
.message-item {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.message-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    transform: translateX(4px);
}
.message-item.unread {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-left: 4px solid #667eea;
}
.message-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.message-item .message-title {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.message-item.unread .message-title {
    color: #333;
}
.message-item .message-preview {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}
.message-item .message-time {
    color: #999;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Message checkbox for batch select */
.message-item .message-checkbox {
    display: none;
    margin-right: 12px;
}
.message-item.batch-select-mode .message-checkbox {
    display: block;
}
.message-item.selected {
    background: rgba(102, 126, 234, 0.15) !important;
}
.message-type-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.message-new-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    animation: pulse-new 1.5s infinite;
}
@keyframes pulse-new {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
[data-theme="dark"] .message-item:hover {
    background: rgba(102, 126, 234, 0.08);
}
[data-theme="dark"] .message-item.unread {
    background: rgba(102, 126, 234, 0.15);
}
[data-theme="dark"] .message-item .message-preview {
    color: #aaa;
}
[data-theme="dark"] .message-item .message-title {
    color: #e0e0e0;
}

/* Notification Badge Animation */
#unread-badge {
    transform: translate(-25%, -25%) !important;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

/* Badge pulse animation - applied via JavaScript when badge is visible */
#unread-badge.badge-visible {
    animation: badge-pulse 2s infinite;
}

/* Badge bounce animation for new notifications */
#unread-badge.badge-bounce {
    animation: badge-pulse 2s infinite, badge-bounce 0.5s ease;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}
@keyframes badge-bounce {
    0% { transform: translate(-25%, -25%) scale(0); }
    50% { transform: translate(-25%, -25%) scale(1.2); }
    100% { transform: translate(-25%, -25%) scale(1); }
}

/* Message Pagination */
.messages-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}
.messages-pagination .btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.messages-pagination .page-info {
    font-size: 0.85rem;
    color: #666;
    margin: 0 12px;
}
[data-theme="dark"] .messages-pagination {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .messages-pagination .page-info {
    color: #aaa;
}

/* Message Detail Modal Styling */
.message-detail-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}
[data-theme="dark"] .message-detail-content {
    background: rgba(255,255,255,0.05);
    color: #e0e0e0;
}

/* Bell icon shake animation for new messages */
.bell-shake {
    animation: bell-shake 0.5s ease-in-out;
}
@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
}
