/* ========================================
   MODERN PROFILE PAGE - REDESIGNED
   ======================================== */

.modern-account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.modern-account-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modern-account-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.modern-account-icon svg {
    width: 32px;
    height: 32px;
    color: white;
    stroke: white;
    fill: none;
}

.modern-account-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.modern-account-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.modern-account-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.modern-account-badges-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-profile-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.modern-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.modern-profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.modern-profile-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.modern-admin-badge,
.modern-2fa-badge,
.modern-premium-badge,
.modern-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.modern-admin-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modern-2fa-badge {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.modern-2fa-badge.disabled {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.modern-premium-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.modern-email-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.modern-premium-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
}

.modern-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.modern-tab svg {
    width: 18px;
    height: 18px;
}

.modern-tab:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.modern-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.modern-tab-content {
    display: none;
}

.modern-tab-content.active {
    display: block;
}

.modern-content-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.modern-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.modern-section-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.modern-section-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
}

.modern-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.modern-section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.modern-form-group {
    margin-bottom: 24px;
}

.modern-form-group:last-child {
    margin-bottom: 0;
}

.modern-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.modern-form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 8px 0;
}

.modern-form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.modern-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-input-group {
    display: flex;
    gap: 12px;
}

.modern-input-group .modern-form-input {
    flex: 1;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.modern-btn svg {
    width: 16px;
    height: 16px;
}

.modern-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modern-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.password-strength-indicator {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.password-tips {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.password-tip {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
}

.modern-info-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 14px;
}

.modern-info-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.modern-security-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-top: 24px;
}

.modern-security-tip-icon {
    width: 24px;
    height: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.modern-security-tip-text {
    font-size: 14px;
    color: var(--text-color);
}

.modern-security-tip-text strong {
    color: #f59e0b;
}

.modern-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-toggle-row:last-child {
    border-bottom: none;
}

.modern-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.modern-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.modern-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.modern-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.modern-toggle-switch input:checked + .modern-toggle-slider {
    background: #3b82f6;
}

.modern-toggle-switch input:checked + .modern-toggle-slider:before {
    transform: translateX(24px);
}

.payment-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.payment-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payment-id {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.payment-status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.payment-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.payment-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.payment-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.payment-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 12px;
}

.payment-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-detail-label {
    color: var(--text-secondary);
    font-size: 10px;
}

.payment-detail-value {
    color: var(--text-color);
    font-weight: 600;
    font-size: 12px;
}

@media (max-width: 768px) {
    .modern-profile-header {
        padding: 24px;
    }
    
    .modern-tabs {
        gap: 4px;
    }
    
    .modern-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .modern-tab svg {
        width: 16px;
        height: 16px;
    }
    
    .modern-content-section {
        padding: 20px;
    }
    
    .modern-section-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .modern-input-group {
        flex-direction: column;
    }
    
    .payment-details {
        grid-template-columns: 1fr;
    }
}
